2fcc2b06d00d7fb39cd1f69dda1546a97c492b57
[debian/gnuradio] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 enable_option_checking=no
788 ac_subst_vars='LTLIBOBJS
789 with_LIBDIRPATH
790 with_SWIGDIRPATH
791 with_PYDIRPATH
792 with_SWIG_INCLUDES
793 with_INCLUDES
794 abs_top_builddir
795 abs_top_srcdir
796 with_dirs
797 skipped_dirs
798 build_dirs
799 docs_LDFLAG
800 docs_LIBDIRPATH
801 docs_INCLUDEDIR
802 docs_LA
803 docs_INCLUDES
804 grc_LDFLAG
805 grc_LIBDIRPATH
806 grc_INCLUDEDIR
807 grc_LA
808 grc_INCLUDES
809 PYTHONW
810 XDG_UTILS_FALSE
811 XDG_UTILS_TRUE
812 XDG_UTILS
813 gnuradio_examples_LDFLAG
814 gnuradio_examples_LIBDIRPATH
815 gnuradio_examples_INCLUDEDIR
816 gnuradio_examples_LA
817 gnuradio_examples_INCLUDES
818 gr_utils_LDFLAG
819 gr_utils_LIBDIRPATH
820 gr_utils_INCLUDEDIR
821 gr_utils_LA
822 gr_utils_INCLUDES
823 gr_sounder_LDFLAG
824 gr_sounder_LIBDIRPATH
825 gr_sounder_INCLUDEDIR
826 gr_sounder_LA
827 gr_sounder_INCLUDES
828 gr_qtgui_LDFLAG
829 gr_qtgui_LIBDIRPATH
830 gr_qtgui_INCLUDEDIR
831 gr_qtgui_LA
832 gr_qtgui_INCLUDES
833 BUILD_QT_FALSE
834 BUILD_QT_TRUE
835 QT_UIC_EXEC
836 QT_MOC_EXEC
837 QT_LIBS
838 QT_INCLUDES
839 QMAKE_INCLUDES
840 QWTPLOT3D_LIBS
841 QWTPLOT3D_CFLAGS
842 QWT_LIBS
843 QWT_CFLAGS
844 QTOPENGL_CPPFLAGS
845 QTOPENGL_INCLUDEDIR
846 QTOPENGL_LIBS
847 QTOPENGL_CFLAGS
848 QTGUI_CPPFLAGS
849 QTGUI_INCLUDEDIR
850 QTGUI_LIBS
851 QTGUI_CFLAGS
852 QTCORE_CPPFLAGS
853 QTCORE_INCLUDEDIR
854 QTCORE_LIBS
855 QTCORE_CFLAGS
856 gr_wxgui_LDFLAG
857 gr_wxgui_LIBDIRPATH
858 gr_wxgui_INCLUDEDIR
859 gr_wxgui_LA
860 gr_wxgui_INCLUDES
861 gr_video_sdl_LDFLAG
862 gr_video_sdl_LIBDIRPATH
863 gr_video_sdl_INCLUDEDIR
864 gr_video_sdl_LA
865 gr_video_sdl_INCLUDES
866 SDL_CPPFLAGS
867 SDL_CONFIG
868 SDL_INCLUDEDIR
869 SDL_LIBS
870 SDL_CFLAGS
871 gr_trellis_LDFLAG
872 gr_trellis_LIBDIRPATH
873 gr_trellis_INCLUDEDIR
874 gr_trellis_LA
875 gr_trellis_INCLUDES
876 gr_radio_astronomy_LDFLAG
877 gr_radio_astronomy_LIBDIRPATH
878 gr_radio_astronomy_INCLUDEDIR
879 gr_radio_astronomy_LA
880 gr_radio_astronomy_INCLUDES
881 gr_radar_mono_LDFLAG
882 gr_radar_mono_LIBDIRPATH
883 gr_radar_mono_INCLUDEDIR
884 gr_radar_mono_LA
885 gr_radar_mono_INCLUDES
886 gr_pager_LDFLAG
887 gr_pager_LIBDIRPATH
888 gr_pager_INCLUDEDIR
889 gr_pager_LA
890 gr_pager_INCLUDES
891 gr_gsm_fr_vocoder_LDFLAG
892 gr_gsm_fr_vocoder_LIBDIRPATH
893 gr_gsm_fr_vocoder_INCLUDEDIR
894 gr_gsm_fr_vocoder_LA
895 gr_gsm_fr_vocoder_INCLUDES
896 gr_gpio_LDFLAG
897 gr_gpio_LIBDIRPATH
898 gr_gpio_INCLUDEDIR
899 gr_gpio_LA
900 gr_gpio_INCLUDES
901 gr_cvsd_vocoder_LDFLAG
902 gr_cvsd_vocoder_LIBDIRPATH
903 gr_cvsd_vocoder_INCLUDEDIR
904 gr_cvsd_vocoder_LA
905 gr_cvsd_vocoder_INCLUDES
906 gr_audio_windows_LDFLAG
907 gr_audio_windows_LIBDIRPATH
908 gr_audio_windows_INCLUDEDIR
909 gr_audio_windows_LA
910 gr_audio_windows_INCLUDES
911 WINAUDIO_LIBS
912 gr_audio_portaudio_LDFLAG
913 gr_audio_portaudio_LIBDIRPATH
914 gr_audio_portaudio_INCLUDEDIR
915 gr_audio_portaudio_LA
916 gr_audio_portaudio_INCLUDES
917 PORTAUDIO_CPPFLAGS
918 PORTAUDIO_INCLUDEDIR
919 PORTAUDIO_LIBS
920 PORTAUDIO_CFLAGS
921 gr_audio_osx_LDFLAG
922 gr_audio_osx_LIBDIRPATH
923 gr_audio_osx_INCLUDEDIR
924 gr_audio_osx_LA
925 gr_audio_osx_INCLUDES
926 gr_audio_oss_LDFLAG
927 gr_audio_oss_LIBDIRPATH
928 gr_audio_oss_INCLUDEDIR
929 gr_audio_oss_LA
930 gr_audio_oss_INCLUDES
931 OSS_LIBS
932 gr_audio_jack_LDFLAG
933 gr_audio_jack_LIBDIRPATH
934 gr_audio_jack_INCLUDEDIR
935 gr_audio_jack_LA
936 gr_audio_jack_INCLUDES
937 JACK_CPPFLAGS
938 JACK_INCLUDEDIR
939 JACK_LIBS
940 JACK_CFLAGS
941 gr_audio_alsa_LDFLAG
942 gr_audio_alsa_LIBDIRPATH
943 gr_audio_alsa_INCLUDEDIR
944 gr_audio_alsa_LA
945 gr_audio_alsa_INCLUDES
946 ALSA_CPPFLAGS
947 ALSA_INCLUDEDIR
948 ALSA_LIBS
949 ALSA_CFLAGS
950 gr_gcell_LDFLAG
951 gr_gcell_LIBDIRPATH
952 gr_gcell_INCLUDEDIR
953 gr_gcell_LA
954 gr_gcell_INCLUDES
955 gr_usrp2_LDFLAG
956 gr_usrp2_LIBDIRPATH
957 gr_usrp2_INCLUDEDIR
958 gr_usrp2_LA
959 gr_usrp2_INCLUDES
960 gr_usrp_LDFLAG
961 gr_usrp_LIBDIRPATH
962 gr_usrp_INCLUDEDIR
963 gr_usrp_LA
964 gr_usrp_INCLUDES
965 usrp2_LDFLAG
966 usrp2_LIBDIRPATH
967 usrp2_INCLUDEDIR
968 usrp2_LA
969 usrp2_INCLUDES
970 USRP2_LA
971 USRP2_INCLUDES
972 subdirs
973 usrp_LDFLAG
974 usrp_LIBDIRPATH
975 usrp_INCLUDEDIR
976 usrp_LA
977 usrp_INCLUDES
978 usrp_darwin_omnithread_pc_requires
979 XAS
980 XCC
981 USB_CPPFLAGS
982 USB_INCLUDEDIR
983 USB_LIBS
984 USB_CFLAGS
985 FUSB_TECH_ra_wb_FALSE
986 FUSB_TECH_ra_wb_TRUE
987 FUSB_TECH_linux_FALSE
988 FUSB_TECH_linux_TRUE
989 FUSB_TECH_generic_FALSE
990 FUSB_TECH_generic_TRUE
991 FUSB_TECH_win32_FALSE
992 FUSB_TECH_win32_TRUE
993 FUSB_TECH_darwin_FALSE
994 FUSB_TECH_darwin_TRUE
995 FUSB_TECH
996 mblock_LDFLAG
997 mblock_LIBDIRPATH
998 mblock_INCLUDEDIR
999 mblock_LA
1000 mblock_INCLUDES
1001 pmt_LDFLAG
1002 pmt_LIBDIRPATH
1003 pmt_INCLUDEDIR
1004 pmt_LA
1005 pmt_INCLUDES
1006 gnuradio_core_LDFLAG
1007 gnuradio_core_LIBDIRPATH
1008 gnuradio_core_INCLUDEDIR
1009 gnuradio_core_LA
1010 gnuradio_core_INCLUDES
1011 gnuradio_core_PYDIRPATH
1012 gnuradio_core_SWIGDIRPATH
1013 gnuradio_core_I
1014 GSL_CPPFLAGS
1015 GSL_INCLUDEDIR
1016 GSL_LIBS
1017 GSL_CFLAGS
1018 CBLAS_LIBS
1019 gcell_LDFLAG
1020 gcell_LIBDIRPATH
1021 gcell_INCLUDEDIR
1022 gcell_LA
1023 gcell_INCLUDES
1024 gcell_spu_LA
1025 gcell_spu_INCLUDES
1026 SPU_GCC_PROG
1027 omnithread_LDFLAG
1028 omnithread_LIBDIRPATH
1029 omnithread_INCLUDEDIR
1030 omnithread_LA
1031 omnithread_INCLUDES
1032 gruel_LDFLAG
1033 gruel_LIBDIRPATH
1034 gruel_INCLUDEDIR
1035 gruel_LA
1036 gruel_INCLUDES
1037 GR_HAVE_BYTESWAP
1038 GR_HAVE_NETINET_IN
1039 GR_HAVE_ARPA_INET
1040 SVNDATE
1041 SVNVERSION
1042 SVN
1043 BOOST_PROGRAM_OPTIONS_LIB
1044 BOOST_DATE_TIME_LIB
1045 BOOST_THREAD_LIB
1046 BOOST_CXXFLAGS
1047 BOOST_LDFLAGS
1048 BOOST_CPPFLAGS
1049 GUILE
1050 CPPUNIT_INCLUDES
1051 CPPUNIT_CONFIG
1052 CPPUNIT_CPPFLAGS
1053 CPPUNIT_INCLUDEDIR
1054 CPPUNIT_LIBS
1055 CPPUNIT_CFLAGS
1056 MD_CPU_generic_FALSE
1057 MD_CPU_generic_TRUE
1058 MD_CPU_powerpc_FALSE
1059 MD_CPU_powerpc_TRUE
1060 MD_SUBCPU_x86_64_FALSE
1061 MD_SUBCPU_x86_64_TRUE
1062 MD_CPU_x86_FALSE
1063 MD_CPU_x86_TRUE
1064 MD_SUBCPU
1065 MD_CPU
1066 generate_docs
1067 enable_latex_docs
1068 enable_html_docs
1069 enable_xml_docs
1070 enable_dot
1071 DOC_FALSE
1072 DOC_TRUE
1073 DOT
1074 DOXYGEN
1075 FFTW3F_CPPFLAGS
1076 FFTW3F_INCLUDEDIR
1077 FFTW3F_LIBS
1078 FFTW3F_CFLAGS
1079 PKG_CONFIG
1080 HAVE_DOT
1081 LIBOBJS
1082 HAVE_CREATEFILEMAPPING_FALSE
1083 HAVE_CREATEFILEMAPPING_TRUE
1084 LIBGNURADIO_CORE_EXTRA_LDFLAGS
1085 SHM_OPEN_LIBS
1086 ALLOCA
1087 GR_ARCH_BIGENDIAN
1088 IPC_LIBS
1089 CXX_FOR_BUILD
1090 OMNITHREAD_NT_FALSE
1091 OMNITHREAD_NT_TRUE
1092 OMNITHREAD_POSIX_FALSE
1093 OMNITHREAD_POSIX_TRUE
1094 PTHREAD_CFLAGS
1095 PTHREAD_LIBS
1096 PTHREAD_CC
1097 acx_pthread_config
1098 HAS_XMLTO_FALSE
1099 HAS_XMLTO_TRUE
1100 XMLTO
1101 SWIG_PYTHON_CPPFLAGS
1102 SWIG_PYTHON_OPT
1103 SWIG_PYTHON_LIB
1104 PYTHON_LDFLAGS
1105 PYTHON_CPPFLAGS
1106 pkgpyexecdir
1107 pyexecdir
1108 pkgpythondir
1109 pythondir
1110 PYTHON_PLATFORM
1111 PYTHON_EXEC_PREFIX
1112 PYTHON_PREFIX
1113 PYTHON_VERSION
1114 PYTHON
1115 SWIG
1116 NO_UNDEFINED
1117 FLIBS
1118 ac_ct_F77
1119 FFLAGS
1120 F77
1121 ENABLE_FORTRAN_FALSE
1122 ENABLE_FORTRAN_TRUE
1123 OTOOL64
1124 OTOOL
1125 LIPO
1126 NMEDIT
1127 DSYMUTIL
1128 lt_ECHO
1129 RANLIB
1130 AR
1131 NM
1132 ac_ct_DUMPBIN
1133 DUMPBIN
1134 LD
1135 FGREP
1136 SED
1137 LIBTOOL
1138 OBJDUMP
1139 DLLTOOL
1140 AS
1141 RM_PROG
1142 LN_S
1143 am__fastdepCCAS_FALSE
1144 am__fastdepCCAS_TRUE
1145 CCASDEPMODE
1146 CCASFLAGS
1147 CCAS
1148 lf_CXXFLAGS
1149 lf_CFLAGS
1150 swig_CXXFLAGS
1151 autoconf_default_CXXFLAGS
1152 autoconf_default_CFLAGS
1153 gr_libdir_suffix
1154 CXXCPP
1155 am__fastdepCXX_FALSE
1156 am__fastdepCXX_TRUE
1157 CXXDEPMODE
1158 ac_ct_CXX
1159 CXXFLAGS
1160 CXX
1161 EGREP
1162 GREP
1163 CPP
1164 am__fastdepCC_FALSE
1165 am__fastdepCC_TRUE
1166 CCDEPMODE
1167 AMDEPBACKSLASH
1168 AMDEP_FALSE
1169 AMDEP_TRUE
1170 am__quote
1171 am__include
1172 DEPDIR
1173 OBJEXT
1174 EXEEXT
1175 ac_ct_CC
1176 CPPFLAGS
1177 LDFLAGS
1178 CFLAGS
1179 CC
1180 DEFINES
1181 am__untar
1182 am__tar
1183 AMTAR
1184 am__leading_dot
1185 SET_MAKE
1186 AWK
1187 mkdir_p
1188 MKDIR_P
1189 INSTALL_STRIP_PROGRAM
1190 STRIP
1191 install_sh
1192 MAKEINFO
1193 AUTOHEADER
1194 AUTOMAKE
1195 AUTOCONF
1196 ACLOCAL
1197 VERSION
1198 PACKAGE
1199 CYGPATH_W
1200 am__isrc
1201 INSTALL_DATA
1202 INSTALL_SCRIPT
1203 INSTALL_PROGRAM
1204 target_os
1205 target_vendor
1206 target_cpu
1207 target
1208 host_os
1209 host_vendor
1210 host_cpu
1211 host
1212 build_os
1213 build_vendor
1214 build_cpu
1215 build
1216 target_alias
1217 host_alias
1218 build_alias
1219 LIBS
1220 ECHO_T
1221 ECHO_N
1222 ECHO_C
1223 DEFS
1224 mandir
1225 localedir
1226 libdir
1227 psdir
1228 pdfdir
1229 dvidir
1230 htmldir
1231 infodir
1232 docdir
1233 oldincludedir
1234 includedir
1235 localstatedir
1236 sharedstatedir
1237 sysconfdir
1238 datadir
1239 datarootdir
1240 libexecdir
1241 sbindir
1242 bindir
1243 program_transform_name
1244 prefix
1245 exec_prefix
1246 PACKAGE_BUGREPORT
1247 PACKAGE_STRING
1248 PACKAGE_VERSION
1249 PACKAGE_TARNAME
1250 PACKAGE_NAME
1251 PATH_SEPARATOR
1252 SHELL'
1253 ac_subst_files=''
1254 ac_user_opts='
1255 enable_option_checking
1256 enable_dependency_tracking
1257 with_gprof
1258 with_prof
1259 enable_shared
1260 enable_static
1261 with_pic
1262 enable_fast_install
1263 with_gnu_ld
1264 enable_libtool_lock
1265 enable_fortran
1266 with_pythondir
1267 enable_doxygen
1268 enable_dot
1269 with_md_cpu
1270 enable_altivec
1271 with_cppunit_prefix
1272 with_cppunit_exec_prefix
1273 with_boost
1274 with_boost_libdir
1275 with_boost_thread
1276 with_boost_date_time
1277 with_boost_program_options
1278 enable_all_components
1279 enable_gruel
1280 with_gruel
1281 enable_omnithread
1282 with_omnithread
1283 enable_gcell
1284 enable_gnuradio_core
1285 with_gnuradio_core
1286 with_cblas
1287 enable_pmt
1288 with_pmt
1289 enable_mblock
1290 with_mblock
1291 enable_usrp
1292 with_usrp
1293 with_fusb_tech
1294 enable_usrp2
1295 enable_gr_usrp
1296 enable_gr_usrp2
1297 enable_gr_gcell
1298 enable_gr_audio_alsa
1299 enable_gr_audio_jack
1300 enable_gr_audio_oss
1301 enable_gr_audio_osx
1302 enable_gr_audio_portaudio
1303 enable_gr_audio_windows
1304 enable_gr_cvsd_vocoder
1305 enable_gr_gpio
1306 enable_gr_gsm_fr_vocoder
1307 enable_gr_pager
1308 enable_gr_radar_mono
1309 enable_gr_radio_astronomy
1310 enable_gr_trellis
1311 enable_gr_video_sdl
1312 with_sdl_prefix
1313 with_sdl_exec_prefix
1314 enable_sdltest
1315 enable_gr_wxgui
1316 with_gr_wxgui
1317 enable_gr_qtgui
1318 with_qwt_libdir
1319 with_qwt_incdir
1320 with_qwt_lib
1321 with_qwtplot3d_libdir
1322 with_qwtplot3d_incdir
1323 with_qwtplot3d_lib
1324 enable_gr_sounder
1325 enable_gr_utils
1326 enable_gnuradio_examples
1327 enable_grc
1328 enable_docs
1329 '
1330       ac_precious_vars='build_alias
1331 host_alias
1332 target_alias
1333 CC
1334 CFLAGS
1335 LDFLAGS
1336 LIBS
1337 CPPFLAGS
1338 CPP
1339 CXX
1340 CXXFLAGS
1341 CCC
1342 CXXCPP
1343 CCAS
1344 CCASFLAGS
1345 F77
1346 FFLAGS
1347 PKG_CONFIG
1348 FFTW3F_CFLAGS
1349 FFTW3F_LIBS
1350 FFTW3F_INCLUDEDIR
1351 CPPUNIT_CFLAGS
1352 CPPUNIT_LIBS
1353 CPPUNIT_INCLUDEDIR
1354 GSL_CFLAGS
1355 GSL_LIBS
1356 GSL_INCLUDEDIR
1357 USB_CFLAGS
1358 USB_LIBS
1359 USB_INCLUDEDIR
1360 ALSA_CFLAGS
1361 ALSA_LIBS
1362 ALSA_INCLUDEDIR
1363 JACK_CFLAGS
1364 JACK_LIBS
1365 JACK_INCLUDEDIR
1366 PORTAUDIO_CFLAGS
1367 PORTAUDIO_LIBS
1368 PORTAUDIO_INCLUDEDIR
1369 SDL_CFLAGS
1370 SDL_LIBS
1371 SDL_INCLUDEDIR
1372 QTCORE_CFLAGS
1373 QTCORE_LIBS
1374 QTCORE_INCLUDEDIR
1375 QTGUI_CFLAGS
1376 QTGUI_LIBS
1377 QTGUI_INCLUDEDIR
1378 QTOPENGL_CFLAGS
1379 QTOPENGL_LIBS
1380 QTOPENGL_INCLUDEDIR'
1381 ac_subdirs_all='usrp2/firmware'
1382
1383 # Initialize some variables set by options.
1384 ac_init_help=
1385 ac_init_version=false
1386 ac_unrecognized_opts=
1387 ac_unrecognized_sep=
1388 # The variables have the same names as the options, with
1389 # dashes changed to underlines.
1390 cache_file=/dev/null
1391 exec_prefix=NONE
1392 no_create=
1393 no_recursion=
1394 prefix=NONE
1395 program_prefix=NONE
1396 program_suffix=NONE
1397 program_transform_name=s,x,x,
1398 silent=
1399 site=
1400 srcdir=
1401 verbose=
1402 x_includes=NONE
1403 x_libraries=NONE
1404
1405 # Installation directory options.
1406 # These are left unexpanded so users can "make install exec_prefix=/foo"
1407 # and all the variables that are supposed to be based on exec_prefix
1408 # by default will actually change.
1409 # Use braces instead of parens because sh, perl, etc. also accept them.
1410 # (The list follows the same order as the GNU Coding Standards.)
1411 bindir='${exec_prefix}/bin'
1412 sbindir='${exec_prefix}/sbin'
1413 libexecdir='${exec_prefix}/libexec'
1414 datarootdir='${prefix}/share'
1415 datadir='${datarootdir}'
1416 sysconfdir='${prefix}/etc'
1417 sharedstatedir='${prefix}/com'
1418 localstatedir='${prefix}/var'
1419 includedir='${prefix}/include'
1420 oldincludedir='/usr/include'
1421 docdir='${datarootdir}/doc/${PACKAGE}'
1422 infodir='${datarootdir}/info'
1423 htmldir='${docdir}'
1424 dvidir='${docdir}'
1425 pdfdir='${docdir}'
1426 psdir='${docdir}'
1427 libdir='${exec_prefix}/lib'
1428 localedir='${datarootdir}/locale'
1429 mandir='${datarootdir}/man'
1430
1431 ac_prev=
1432 ac_dashdash=
1433 for ac_option
1434 do
1435   # If the previous option needs an argument, assign it.
1436   if test -n "$ac_prev"; then
1437     eval $ac_prev=\$ac_option
1438     ac_prev=
1439     continue
1440   fi
1441
1442   case $ac_option in
1443   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1444   *)    ac_optarg=yes ;;
1445   esac
1446
1447   # Accept the important Cygnus configure options, so we can diagnose typos.
1448
1449   case $ac_dashdash$ac_option in
1450   --)
1451     ac_dashdash=yes ;;
1452
1453   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1454     ac_prev=bindir ;;
1455   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1456     bindir=$ac_optarg ;;
1457
1458   -build | --build | --buil | --bui | --bu)
1459     ac_prev=build_alias ;;
1460   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1461     build_alias=$ac_optarg ;;
1462
1463   -cache-file | --cache-file | --cache-fil | --cache-fi \
1464   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1465     ac_prev=cache_file ;;
1466   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1467   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1468     cache_file=$ac_optarg ;;
1469
1470   --config-cache | -C)
1471     cache_file=config.cache ;;
1472
1473   -datadir | --datadir | --datadi | --datad)
1474     ac_prev=datadir ;;
1475   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1476     datadir=$ac_optarg ;;
1477
1478   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1479   | --dataroo | --dataro | --datar)
1480     ac_prev=datarootdir ;;
1481   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1482   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1483     datarootdir=$ac_optarg ;;
1484
1485   -disable-* | --disable-*)
1486     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1487     # Reject names that are not valid shell variable names.
1488     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1490    { (exit 1); exit 1; }; }
1491     ac_useropt_orig=$ac_useropt
1492     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493     case $ac_user_opts in
1494       *"
1495 "enable_$ac_useropt"
1496 "*) ;;
1497       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1498          ac_unrecognized_sep=', ';;
1499     esac
1500     eval enable_$ac_useropt=no ;;
1501
1502   -docdir | --docdir | --docdi | --doc | --do)
1503     ac_prev=docdir ;;
1504   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1505     docdir=$ac_optarg ;;
1506
1507   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1508     ac_prev=dvidir ;;
1509   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1510     dvidir=$ac_optarg ;;
1511
1512   -enable-* | --enable-*)
1513     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1514     # Reject names that are not valid shell variable names.
1515     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1516       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1517    { (exit 1); exit 1; }; }
1518     ac_useropt_orig=$ac_useropt
1519     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1520     case $ac_user_opts in
1521       *"
1522 "enable_$ac_useropt"
1523 "*) ;;
1524       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1525          ac_unrecognized_sep=', ';;
1526     esac
1527     eval enable_$ac_useropt=\$ac_optarg ;;
1528
1529   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1530   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1531   | --exec | --exe | --ex)
1532     ac_prev=exec_prefix ;;
1533   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1534   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1535   | --exec=* | --exe=* | --ex=*)
1536     exec_prefix=$ac_optarg ;;
1537
1538   -gas | --gas | --ga | --g)
1539     # Obsolete; use --with-gas.
1540     with_gas=yes ;;
1541
1542   -help | --help | --hel | --he | -h)
1543     ac_init_help=long ;;
1544   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1545     ac_init_help=recursive ;;
1546   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1547     ac_init_help=short ;;
1548
1549   -host | --host | --hos | --ho)
1550     ac_prev=host_alias ;;
1551   -host=* | --host=* | --hos=* | --ho=*)
1552     host_alias=$ac_optarg ;;
1553
1554   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1555     ac_prev=htmldir ;;
1556   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1557   | --ht=*)
1558     htmldir=$ac_optarg ;;
1559
1560   -includedir | --includedir | --includedi | --included | --include \
1561   | --includ | --inclu | --incl | --inc)
1562     ac_prev=includedir ;;
1563   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1564   | --includ=* | --inclu=* | --incl=* | --inc=*)
1565     includedir=$ac_optarg ;;
1566
1567   -infodir | --infodir | --infodi | --infod | --info | --inf)
1568     ac_prev=infodir ;;
1569   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1570     infodir=$ac_optarg ;;
1571
1572   -libdir | --libdir | --libdi | --libd)
1573     ac_prev=libdir ;;
1574   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1575     libdir=$ac_optarg ;;
1576
1577   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1578   | --libexe | --libex | --libe)
1579     ac_prev=libexecdir ;;
1580   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1581   | --libexe=* | --libex=* | --libe=*)
1582     libexecdir=$ac_optarg ;;
1583
1584   -localedir | --localedir | --localedi | --localed | --locale)
1585     ac_prev=localedir ;;
1586   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1587     localedir=$ac_optarg ;;
1588
1589   -localstatedir | --localstatedir | --localstatedi | --localstated \
1590   | --localstate | --localstat | --localsta | --localst | --locals)
1591     ac_prev=localstatedir ;;
1592   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1593   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1594     localstatedir=$ac_optarg ;;
1595
1596   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1597     ac_prev=mandir ;;
1598   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1599     mandir=$ac_optarg ;;
1600
1601   -nfp | --nfp | --nf)
1602     # Obsolete; use --without-fp.
1603     with_fp=no ;;
1604
1605   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1606   | --no-cr | --no-c | -n)
1607     no_create=yes ;;
1608
1609   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1610   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1611     no_recursion=yes ;;
1612
1613   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1614   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1615   | --oldin | --oldi | --old | --ol | --o)
1616     ac_prev=oldincludedir ;;
1617   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1618   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1619   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1620     oldincludedir=$ac_optarg ;;
1621
1622   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1623     ac_prev=prefix ;;
1624   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1625     prefix=$ac_optarg ;;
1626
1627   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1628   | --program-pre | --program-pr | --program-p)
1629     ac_prev=program_prefix ;;
1630   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1631   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1632     program_prefix=$ac_optarg ;;
1633
1634   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1635   | --program-suf | --program-su | --program-s)
1636     ac_prev=program_suffix ;;
1637   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1638   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1639     program_suffix=$ac_optarg ;;
1640
1641   -program-transform-name | --program-transform-name \
1642   | --program-transform-nam | --program-transform-na \
1643   | --program-transform-n | --program-transform- \
1644   | --program-transform | --program-transfor \
1645   | --program-transfo | --program-transf \
1646   | --program-trans | --program-tran \
1647   | --progr-tra | --program-tr | --program-t)
1648     ac_prev=program_transform_name ;;
1649   -program-transform-name=* | --program-transform-name=* \
1650   | --program-transform-nam=* | --program-transform-na=* \
1651   | --program-transform-n=* | --program-transform-=* \
1652   | --program-transform=* | --program-transfor=* \
1653   | --program-transfo=* | --program-transf=* \
1654   | --program-trans=* | --program-tran=* \
1655   | --progr-tra=* | --program-tr=* | --program-t=*)
1656     program_transform_name=$ac_optarg ;;
1657
1658   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1659     ac_prev=pdfdir ;;
1660   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1661     pdfdir=$ac_optarg ;;
1662
1663   -psdir | --psdir | --psdi | --psd | --ps)
1664     ac_prev=psdir ;;
1665   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1666     psdir=$ac_optarg ;;
1667
1668   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669   | -silent | --silent | --silen | --sile | --sil)
1670     silent=yes ;;
1671
1672   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1673     ac_prev=sbindir ;;
1674   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1675   | --sbi=* | --sb=*)
1676     sbindir=$ac_optarg ;;
1677
1678   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1679   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1680   | --sharedst | --shareds | --shared | --share | --shar \
1681   | --sha | --sh)
1682     ac_prev=sharedstatedir ;;
1683   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1684   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1685   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1686   | --sha=* | --sh=*)
1687     sharedstatedir=$ac_optarg ;;
1688
1689   -site | --site | --sit)
1690     ac_prev=site ;;
1691   -site=* | --site=* | --sit=*)
1692     site=$ac_optarg ;;
1693
1694   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1695     ac_prev=srcdir ;;
1696   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1697     srcdir=$ac_optarg ;;
1698
1699   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1700   | --syscon | --sysco | --sysc | --sys | --sy)
1701     ac_prev=sysconfdir ;;
1702   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1703   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1704     sysconfdir=$ac_optarg ;;
1705
1706   -target | --target | --targe | --targ | --tar | --ta | --t)
1707     ac_prev=target_alias ;;
1708   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1709     target_alias=$ac_optarg ;;
1710
1711   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1712     verbose=yes ;;
1713
1714   -version | --version | --versio | --versi | --vers | -V)
1715     ac_init_version=: ;;
1716
1717   -with-* | --with-*)
1718     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1719     # Reject names that are not valid shell variable names.
1720     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1721       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1722    { (exit 1); exit 1; }; }
1723     ac_useropt_orig=$ac_useropt
1724     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1725     case $ac_user_opts in
1726       *"
1727 "with_$ac_useropt"
1728 "*) ;;
1729       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1730          ac_unrecognized_sep=', ';;
1731     esac
1732     eval with_$ac_useropt=\$ac_optarg ;;
1733
1734   -without-* | --without-*)
1735     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1736     # Reject names that are not valid shell variable names.
1737     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1738       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1739    { (exit 1); exit 1; }; }
1740     ac_useropt_orig=$ac_useropt
1741     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1742     case $ac_user_opts in
1743       *"
1744 "with_$ac_useropt"
1745 "*) ;;
1746       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1747          ac_unrecognized_sep=', ';;
1748     esac
1749     eval with_$ac_useropt=no ;;
1750
1751   --x)
1752     # Obsolete; use --with-x.
1753     with_x=yes ;;
1754
1755   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1756   | --x-incl | --x-inc | --x-in | --x-i)
1757     ac_prev=x_includes ;;
1758   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1759   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1760     x_includes=$ac_optarg ;;
1761
1762   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1763   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1764     ac_prev=x_libraries ;;
1765   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1766   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1767     x_libraries=$ac_optarg ;;
1768
1769   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1770 Try \`$0 --help' for more information." >&2
1771    { (exit 1); exit 1; }; }
1772     ;;
1773
1774   *=*)
1775     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1776     # Reject names that are not valid shell variable names.
1777     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1778       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1779    { (exit 1); exit 1; }; }
1780     eval $ac_envvar=\$ac_optarg
1781     export $ac_envvar ;;
1782
1783   *)
1784     # FIXME: should be removed in autoconf 3.0.
1785     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1786     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1787       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1788     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1789     ;;
1790
1791   esac
1792 done
1793
1794 if test -n "$ac_prev"; then
1795   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1796   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1797    { (exit 1); exit 1; }; }
1798 fi
1799
1800 if test -n "$ac_unrecognized_opts"; then
1801   case $enable_option_checking in
1802     no) ;;
1803     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1804    { (exit 1); exit 1; }; } ;;
1805     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1806   esac
1807 fi
1808
1809 # Check all directory arguments for consistency.
1810 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1811                 datadir sysconfdir sharedstatedir localstatedir includedir \
1812                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1813                 libdir localedir mandir
1814 do
1815   eval ac_val=\$$ac_var
1816   # Remove trailing slashes.
1817   case $ac_val in
1818     */ )
1819       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1820       eval $ac_var=\$ac_val;;
1821   esac
1822   # Be sure to have absolute directory names.
1823   case $ac_val in
1824     [\\/$]* | ?:[\\/]* )  continue;;
1825     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1826   esac
1827   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1828    { (exit 1); exit 1; }; }
1829 done
1830
1831 # There might be people who depend on the old broken behavior: `$host'
1832 # used to hold the argument of --host etc.
1833 # FIXME: To remove some day.
1834 build=$build_alias
1835 host=$host_alias
1836 target=$target_alias
1837
1838 # FIXME: To remove some day.
1839 if test "x$host_alias" != x; then
1840   if test "x$build_alias" = x; then
1841     cross_compiling=maybe
1842     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1843     If a cross compiler is detected then cross compile mode will be used." >&2
1844   elif test "x$build_alias" != "x$host_alias"; then
1845     cross_compiling=yes
1846   fi
1847 fi
1848
1849 ac_tool_prefix=
1850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1851
1852 test "$silent" = yes && exec 6>/dev/null
1853
1854
1855 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1856 ac_ls_di=`ls -di .` &&
1857 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1858   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1859    { (exit 1); exit 1; }; }
1860 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1861   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1862    { (exit 1); exit 1; }; }
1863
1864
1865 # Find the source files, if location was not specified.
1866 if test -z "$srcdir"; then
1867   ac_srcdir_defaulted=yes
1868   # Try the directory containing this script, then the parent directory.
1869   ac_confdir=`$as_dirname -- "$as_myself" ||
1870 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1871          X"$as_myself" : 'X\(//\)[^/]' \| \
1872          X"$as_myself" : 'X\(//\)$' \| \
1873          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1874 $as_echo X"$as_myself" |
1875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1876             s//\1/
1877             q
1878           }
1879           /^X\(\/\/\)[^/].*/{
1880             s//\1/
1881             q
1882           }
1883           /^X\(\/\/\)$/{
1884             s//\1/
1885             q
1886           }
1887           /^X\(\/\).*/{
1888             s//\1/
1889             q
1890           }
1891           s/.*/./; q'`
1892   srcdir=$ac_confdir
1893   if test ! -r "$srcdir/$ac_unique_file"; then
1894     srcdir=..
1895   fi
1896 else
1897   ac_srcdir_defaulted=no
1898 fi
1899 if test ! -r "$srcdir/$ac_unique_file"; then
1900   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1901   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1902    { (exit 1); exit 1; }; }
1903 fi
1904 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1905 ac_abs_confdir=`(
1906         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1907    { (exit 1); exit 1; }; }
1908         pwd)`
1909 # When building in place, set srcdir=.
1910 if test "$ac_abs_confdir" = "$ac_pwd"; then
1911   srcdir=.
1912 fi
1913 # Remove unnecessary trailing slashes from srcdir.
1914 # Double slashes in file names in object file debugging info
1915 # mess up M-x gdb in Emacs.
1916 case $srcdir in
1917 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1918 esac
1919 for ac_var in $ac_precious_vars; do
1920   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1921   eval ac_env_${ac_var}_value=\$${ac_var}
1922   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1923   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1924 done
1925
1926 #
1927 # Report the --help message.
1928 #
1929 if test "$ac_init_help" = "long"; then
1930   # Omit some internal or obsolete options to make the list less imposing.
1931   # This message is too long to be a string in the A/UX 3.1 sh.
1932   cat <<_ACEOF
1933 \`configure' configures this package to adapt to many kinds of systems.
1934
1935 Usage: $0 [OPTION]... [VAR=VALUE]...
1936
1937 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1938 VAR=VALUE.  See below for descriptions of some of the useful variables.
1939
1940 Defaults for the options are specified in brackets.
1941
1942 Configuration:
1943   -h, --help              display this help and exit
1944       --help=short        display options specific to this package
1945       --help=recursive    display the short help of all the included packages
1946   -V, --version           display version information and exit
1947   -q, --quiet, --silent   do not print \`checking...' messages
1948       --cache-file=FILE   cache test results in FILE [disabled]
1949   -C, --config-cache      alias for \`--cache-file=config.cache'
1950   -n, --no-create         do not create output files
1951       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1952
1953 Installation directories:
1954   --prefix=PREFIX         install architecture-independent files in PREFIX
1955                           [$ac_default_prefix]
1956   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1957                           [PREFIX]
1958
1959 By default, \`make install' will install all the files in
1960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1962 for instance \`--prefix=\$HOME'.
1963
1964 For better control, use the options below.
1965
1966 Fine tuning of the installation directories:
1967   --bindir=DIR            user executables [EPREFIX/bin]
1968   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1969   --libexecdir=DIR        program executables [EPREFIX/libexec]
1970   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1971   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1972   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1973   --libdir=DIR            object code libraries [EPREFIX/lib]
1974   --includedir=DIR        C header files [PREFIX/include]
1975   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1976   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1977   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1978   --infodir=DIR           info documentation [DATAROOTDIR/info]
1979   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1980   --mandir=DIR            man documentation [DATAROOTDIR/man]
1981   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1982   --htmldir=DIR           html documentation [DOCDIR]
1983   --dvidir=DIR            dvi documentation [DOCDIR]
1984   --pdfdir=DIR            pdf documentation [DOCDIR]
1985   --psdir=DIR             ps documentation [DOCDIR]
1986 _ACEOF
1987
1988   cat <<\_ACEOF
1989
1990 Program names:
1991   --program-prefix=PREFIX            prepend PREFIX to installed program names
1992   --program-suffix=SUFFIX            append SUFFIX to installed program names
1993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1994
1995 System types:
1996   --build=BUILD     configure for building on BUILD [guessed]
1997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1998   --target=TARGET   configure for building compilers for TARGET [HOST]
1999 _ACEOF
2000 fi
2001
2002 if test -n "$ac_init_help"; then
2003
2004   cat <<\_ACEOF
2005
2006 Optional Features:
2007   --disable-option-checking  ignore unrecognized --enable/--with options
2008   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2009   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2010   --disable-dependency-tracking  speeds up one-time build
2011   --enable-dependency-tracking   do not reject slow dependency extractors
2012   --enable-shared[=PKGS]  build shared libraries [default=yes]
2013   --enable-static[=PKGS]  build static libraries [default=no]
2014   --enable-fast-install[=PKGS]
2015                           optimize for fast installation [default=yes]
2016   --disable-libtool-lock  avoid locking (might break parallel builds)
2017   --enable-fortran        enable fortran (no)
2018   --enable-doxygen        enable documentation generation with doxygen (auto)
2019   --enable-dot            use 'dot' to generate graphs in doxygen (auto)
2020   --enable-altivec        enable altivec on PowerPC (yes)
2021   --enable-all-components Build all configurable components (default), or stop on failed dependencies
2022
2023   --enable-gruel          Stop if gruel fails configuration
2024   --enable-omnithread     Stop if omnithread fails configuration
2025   --enable-gcell          Stop if gcell fails configuration
2026   --enable-gnuradio-core  Stop if gnuradio-core fails configuration
2027   --enable-pmt            Stop if pmt fails configuration
2028   --enable-mblock         Stop if mblock fails configuration
2029   --enable-usrp           Stop if usrp fails configuration
2030   --enable-usrp2          Stop if usrp2 fails configuration
2031   --enable-gr-usrp        Stop if gr-usrp fails configuration
2032   --enable-gr-usrp2       Stop if gr-usrp2 fails configuration
2033   --enable-gr-gcell       Stop if gr-gcell fails configuration
2034   --enable-gr-audio-alsa  Stop if gr-audio-alsa fails configuration
2035   --enable-gr-audio-jack  Stop if gr-audio-jack fails configuration
2036   --enable-gr-audio-oss   Stop if gr-audio-oss fails configuration
2037   --enable-gr-audio-osx   Stop if gr-audio-osx fails configuration
2038   --enable-gr-audio-portaudio
2039                           Stop if gr-audio-portaudio fails configuration
2040   --enable-gr-audio-windows
2041                           Stop if gr-audio-windows fails configuration
2042   --enable-gr-cvsd-vocoder
2043                           Stop if gr-cvsd-vocoder fails configuration
2044   --enable-gr-gpio        Stop if gr-gpio fails configuration
2045   --enable-gr-gsm-fr-vocoder
2046                           Stop if gr-gsm-fr-vocoder fails configuration
2047   --enable-gr-pager       Stop if gr-pager fails configuration
2048   --enable-gr-radar-mono  Stop if gr-radar-mono fails configuration
2049   --enable-gr-radio-astronomy
2050                           Stop if gr-radio-astronomy fails configuration
2051   --enable-gr-trellis     Stop if gr-trellis fails configuration
2052   --enable-gr-video-sdl   Stop if gr-video-sdl fails configuration
2053   --disable-sdltest       Do not try to compile and run a test SDL program
2054   --enable-gr-wxgui       Stop if gr-wxgui fails configuration
2055   --enable-gr-qtgui       Stop if gr-qtgui fails configuration
2056   --enable-gr-sounder     Stop if gr-sounder fails configuration
2057   --enable-gr-utils       Stop if gr-utils fails configuration
2058   --enable-gnuradio-examples
2059                           Stop if gnuradio-examples fails configuration
2060   --enable-grc            Stop if grc fails configuration
2061   --enable-docs           Stop if docs fails configuration
2062
2063 Optional Packages:
2064   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2065   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2066   --with-gprof            Turn on gprof profiling
2067   --with-prof             Turn on prof profiling
2068   --with-pic              try to use only PIC/non-PIC objects [default=use
2069                           both]
2070   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2071   --with-pythondir=DIR    python installation directory (cross-compiling)
2072                           [default=$prefix/lib/python2.5/site-packages]
2073   --with-md-cpu=ARCH      set machine dependent speedups (auto)
2074   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
2075   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
2076   --with-boost[=DIR]      use boost (default is yes) - it is possible to
2077                           specify the root directory for boost (optional)
2078   --with-boost-libdir=LIB_DIR
2079                           Force given directory for boost libraries. Note that
2080                           this will overwrite library path detection, so use
2081                           this parameter only if default library detection
2082                           fails and you know exactly where your boost
2083                           libraries are located.
2084   --with-boost-thread[=special-lib]
2085                           Use the thread library from
2086                           boost. It is possible to specify a certain library
2087                           to the linker. E.g.,
2088                           --with-boost-thread=boost_thread-gcc41-mt-1_35
2089   --with-boost-date-time[=special-lib]
2090                           Use the date_time library from
2091                           boost. It is possible to specify a certain library
2092                           to the linker. E.g.,
2093                           --with-boost-date-time=boost_date_time-gcc41-mt-1_35
2094   --with-boost-program-options[=special-lib]
2095                           Use the program_options library
2096                           from boost. It is possible to specify a certain
2097                           library to the linker. E.g.,
2098                           --with-boost-program-options=boost_program_options-gcc41-mt-1_35
2099   --with-gruel[=PATH]     Use package gruel if installed in PATH (if
2100                           specified) or PKG_CONFIG_PATH (if PATH not
2101                           specified); stop if gruel not found
2102   --with-omnithread[=PATH]
2103                           Use package omnithread if installed in PATH (if
2104                           specified) or PKG_CONFIG_PATH (if PATH not
2105                           specified); stop if omnithread not found
2106   --with-gnuradio-core[=PATH]
2107                           Use package gnuradio-core if installed in PATH (if
2108                           specified) or PKG_CONFIG_PATH (if PATH not
2109                           specified); stop if gnuradio-core not found
2110   --with-cblas=<lib>      use CBLAS library <lib>
2111   --with-pmt[=PATH]       Use package pmt if installed in PATH (if specified)
2112                           or PKG_CONFIG_PATH (if PATH not specified); stop if
2113                           pmt not found
2114   --with-mblock[=PATH]    Use package mblock if installed in PATH (if
2115                           specified) or PKG_CONFIG_PATH (if PATH not
2116                           specified); stop if mblock not found
2117   --with-usrp[=PATH]      Use package usrp if installed in PATH (if specified)
2118                           or PKG_CONFIG_PATH (if PATH not specified); stop if
2119                           usrp not found
2120   --with-fusb-tech=OS     Set fast USB technique (default=auto)
2121   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
2122   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
2123   --with-gr-wxgui[=PATH]  Use package gr-wxgui if installed in PATH (if
2124                           specified) or PKG_CONFIG_PATH (if PATH not
2125                           specified); stop if gr-wxgui not found
2126   --with-qwt-libdir=path  Prefix where QWT library is installed (optional)
2127   --with-qwt-incdir=path  Prefix where QWT include files are (optional)
2128   --with-qwt-lib=library  QWT library name (optional)
2129   --with-qwtplot3d-libdir=path  Prefix where QWTPLOT3D library is installed (optional)
2130   --with-qwtplot3d-incdir=path  Prefix where QWTPLOT3D include files are (optional)
2131   --with-qwtplot3d-lib=library  QWT Plot3D library name (optional)
2132
2133 Some influential environment variables:
2134   CC          C compiler command
2135   CFLAGS      C compiler flags
2136   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2137               nonstandard directory <lib dir>
2138   LIBS        libraries to pass to the linker, e.g. -l<library>
2139   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2140               you have headers in a nonstandard directory <include dir>
2141   CPP         C preprocessor
2142   CXX         C++ compiler command
2143   CXXFLAGS    C++ compiler flags
2144   CXXCPP      C++ preprocessor
2145   CCAS        assembler compiler command (defaults to CC)
2146   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2147   F77         Fortran 77 compiler command
2148   FFLAGS      Fortran 77 compiler flags
2149   PKG_CONFIG  path to pkg-config utility
2150   FFTW3F_CFLAGS
2151               C compiler flags for FFTW3F, overriding pkg-config
2152   FFTW3F_LIBS linker flags for FFTW3F, overriding pkg-config
2153   FFTW3F_INCLUDEDIR
2154               includedir for FFTW3F, overriding pkg-config
2155   CPPUNIT_CFLAGS
2156               C compiler flags for CPPUNIT, overriding pkg-config
2157   CPPUNIT_LIBS
2158               linker flags for CPPUNIT, overriding pkg-config
2159   CPPUNIT_INCLUDEDIR
2160               includedir for CPPUNIT, overriding pkg-config
2161   GSL_CFLAGS  C compiler flags for GSL, overriding pkg-config
2162   GSL_LIBS    linker flags for GSL, overriding pkg-config
2163   GSL_INCLUDEDIR
2164               includedir for GSL, overriding pkg-config
2165   USB_CFLAGS  C compiler flags for USB, overriding pkg-config
2166   USB_LIBS    linker flags for USB, overriding pkg-config
2167   USB_INCLUDEDIR
2168               includedir for USB, overriding pkg-config
2169   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2170   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2171   ALSA_INCLUDEDIR
2172               includedir for ALSA, overriding pkg-config
2173   JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
2174   JACK_LIBS   linker flags for JACK, overriding pkg-config
2175   JACK_INCLUDEDIR
2176               includedir for JACK, overriding pkg-config
2177   PORTAUDIO_CFLAGS
2178               C compiler flags for PORTAUDIO, overriding pkg-config
2179   PORTAUDIO_LIBS
2180               linker flags for PORTAUDIO, overriding pkg-config
2181   PORTAUDIO_INCLUDEDIR
2182               includedir for PORTAUDIO, overriding pkg-config
2183   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
2184   SDL_LIBS    linker flags for SDL, overriding pkg-config
2185   SDL_INCLUDEDIR
2186               includedir for SDL, overriding pkg-config
2187   QTCORE_CFLAGS
2188               C compiler flags for QTCORE, overriding pkg-config
2189   QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
2190   QTCORE_INCLUDEDIR
2191               includedir for QTCORE, overriding pkg-config
2192   QTGUI_CFLAGS
2193               C compiler flags for QTGUI, overriding pkg-config
2194   QTGUI_LIBS  linker flags for QTGUI, overriding pkg-config
2195   QTGUI_INCLUDEDIR
2196               includedir for QTGUI, overriding pkg-config
2197   QTOPENGL_CFLAGS
2198               C compiler flags for QTOPENGL, overriding pkg-config
2199   QTOPENGL_LIBS
2200               linker flags for QTOPENGL, overriding pkg-config
2201   QTOPENGL_INCLUDEDIR
2202               includedir for QTOPENGL, overriding pkg-config
2203
2204 Use these variables to override the choices made by `configure' or to help
2205 it to find libraries and programs with nonstandard names/locations.
2206
2207 _ACEOF
2208 ac_status=$?
2209 fi
2210
2211 if test "$ac_init_help" = "recursive"; then
2212   # If there are subdirs, report their specific --help.
2213   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2214     test -d "$ac_dir" ||
2215       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2216       continue
2217     ac_builddir=.
2218
2219 case "$ac_dir" in
2220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2221 *)
2222   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2223   # A ".." for each directory in $ac_dir_suffix.
2224   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2225   case $ac_top_builddir_sub in
2226   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2227   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2228   esac ;;
2229 esac
2230 ac_abs_top_builddir=$ac_pwd
2231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2232 # for backward compatibility:
2233 ac_top_builddir=$ac_top_build_prefix
2234
2235 case $srcdir in
2236   .)  # We are building in place.
2237     ac_srcdir=.
2238     ac_top_srcdir=$ac_top_builddir_sub
2239     ac_abs_top_srcdir=$ac_pwd ;;
2240   [\\/]* | ?:[\\/]* )  # Absolute name.
2241     ac_srcdir=$srcdir$ac_dir_suffix;
2242     ac_top_srcdir=$srcdir
2243     ac_abs_top_srcdir=$srcdir ;;
2244   *) # Relative name.
2245     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2246     ac_top_srcdir=$ac_top_build_prefix$srcdir
2247     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2248 esac
2249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2250
2251     cd "$ac_dir" || { ac_status=$?; continue; }
2252     # Check for guested configure.
2253     if test -f "$ac_srcdir/configure.gnu"; then
2254       echo &&
2255       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2256     elif test -f "$ac_srcdir/configure"; then
2257       echo &&
2258       $SHELL "$ac_srcdir/configure" --help=recursive
2259     else
2260       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2261     fi || ac_status=$?
2262     cd "$ac_pwd" || { ac_status=$?; break; }
2263   done
2264 fi
2265
2266 test -n "$ac_init_help" && exit $ac_status
2267 if $ac_init_version; then
2268   cat <<\_ACEOF
2269 configure
2270 generated by GNU Autoconf 2.63
2271
2272 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2273 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2274 This configure script is free software; the Free Software Foundation
2275 gives unlimited permission to copy, distribute and modify it.
2276 _ACEOF
2277   exit
2278 fi
2279 cat >config.log <<_ACEOF
2280 This file contains any messages produced by compilers while
2281 running configure, to aid debugging if configure makes a mistake.
2282
2283 It was created by $as_me, which was
2284 generated by GNU Autoconf 2.63.  Invocation command line was
2285
2286   $ $0 $@
2287
2288 _ACEOF
2289 exec 5>>config.log
2290 {
2291 cat <<_ASUNAME
2292 ## --------- ##
2293 ## Platform. ##
2294 ## --------- ##
2295
2296 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2297 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2298 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2299 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2300 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2301
2302 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2303 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2304
2305 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2306 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2307 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2308 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2309 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2310 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2311 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2312
2313 _ASUNAME
2314
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   $as_echo "PATH: $as_dir"
2321 done
2322 IFS=$as_save_IFS
2323
2324 } >&5
2325
2326 cat >&5 <<_ACEOF
2327
2328
2329 ## ----------- ##
2330 ## Core tests. ##
2331 ## ----------- ##
2332
2333 _ACEOF
2334
2335
2336 # Keep a trace of the command line.
2337 # Strip out --no-create and --no-recursion so they do not pile up.
2338 # Strip out --silent because we don't want to record it for future runs.
2339 # Also quote any args containing shell meta-characters.
2340 # Make two passes to allow for proper duplicate-argument suppression.
2341 ac_configure_args=
2342 ac_configure_args0=
2343 ac_configure_args1=
2344 ac_must_keep_next=false
2345 for ac_pass in 1 2
2346 do
2347   for ac_arg
2348   do
2349     case $ac_arg in
2350     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2351     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2352     | -silent | --silent | --silen | --sile | --sil)
2353       continue ;;
2354     *\'*)
2355       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2356     esac
2357     case $ac_pass in
2358     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2359     2)
2360       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2361       if test $ac_must_keep_next = true; then
2362         ac_must_keep_next=false # Got value, back to normal.
2363       else
2364         case $ac_arg in
2365           *=* | --config-cache | -C | -disable-* | --disable-* \
2366           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2367           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2368           | -with-* | --with-* | -without-* | --without-* | --x)
2369             case "$ac_configure_args0 " in
2370               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2371             esac
2372             ;;
2373           -* ) ac_must_keep_next=true ;;
2374         esac
2375       fi
2376       ac_configure_args="$ac_configure_args '$ac_arg'"
2377       ;;
2378     esac
2379   done
2380 done
2381 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2382 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2383
2384 # When interrupted or exit'd, cleanup temporary files, and complete
2385 # config.log.  We remove comments because anyway the quotes in there
2386 # would cause problems or look ugly.
2387 # WARNING: Use '\'' to represent an apostrophe within the trap.
2388 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2389 trap 'exit_status=$?
2390   # Save into config.log some information that might help in debugging.
2391   {
2392     echo
2393
2394     cat <<\_ASBOX
2395 ## ---------------- ##
2396 ## Cache variables. ##
2397 ## ---------------- ##
2398 _ASBOX
2399     echo
2400     # The following way of writing the cache mishandles newlines in values,
2401 (
2402   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2403     eval ac_val=\$$ac_var
2404     case $ac_val in #(
2405     *${as_nl}*)
2406       case $ac_var in #(
2407       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2409       esac
2410       case $ac_var in #(
2411       _ | IFS | as_nl) ;; #(
2412       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2413       *) $as_unset $ac_var ;;
2414       esac ;;
2415     esac
2416   done
2417   (set) 2>&1 |
2418     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2419     *${as_nl}ac_space=\ *)
2420       sed -n \
2421         "s/'\''/'\''\\\\'\'''\''/g;
2422           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2423       ;; #(
2424     *)
2425       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2426       ;;
2427     esac |
2428     sort
2429 )
2430     echo
2431
2432     cat <<\_ASBOX
2433 ## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##
2436 _ASBOX
2437     echo
2438     for ac_var in $ac_subst_vars
2439     do
2440       eval ac_val=\$$ac_var
2441       case $ac_val in
2442       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443       esac
2444       $as_echo "$ac_var='\''$ac_val'\''"
2445     done | sort
2446     echo
2447
2448     if test -n "$ac_subst_files"; then
2449       cat <<\_ASBOX
2450 ## ------------------- ##
2451 ## File substitutions. ##
2452 ## ------------------- ##
2453 _ASBOX
2454       echo
2455       for ac_var in $ac_subst_files
2456       do
2457         eval ac_val=\$$ac_var
2458         case $ac_val in
2459         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460         esac
2461         $as_echo "$ac_var='\''$ac_val'\''"
2462       done | sort
2463       echo
2464     fi
2465
2466     if test -s confdefs.h; then
2467       cat <<\_ASBOX
2468 ## ----------- ##
2469 ## confdefs.h. ##
2470 ## ----------- ##
2471 _ASBOX
2472       echo
2473       cat confdefs.h
2474       echo
2475     fi
2476     test "$ac_signal" != 0 &&
2477       $as_echo "$as_me: caught signal $ac_signal"
2478     $as_echo "$as_me: exit $exit_status"
2479   } >&5
2480   rm -f core *.core core.conftest.* &&
2481     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2482     exit $exit_status
2483 ' 0
2484 for ac_signal in 1 2 13 15; do
2485   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2486 done
2487 ac_signal=0
2488
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rm -f -r conftest* confdefs.h
2491
2492 # Predefined preprocessor variables.
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_NAME "$PACKAGE_NAME"
2496 _ACEOF
2497
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2501 _ACEOF
2502
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2506 _ACEOF
2507
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_STRING "$PACKAGE_STRING"
2511 _ACEOF
2512
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 _ACEOF
2517
2518
2519 # Let the site file select an alternate cache file if it wants to.
2520 # Prefer an explicitly selected file to automatically selected ones.
2521 ac_site_file1=NONE
2522 ac_site_file2=NONE
2523 if test -n "$CONFIG_SITE"; then
2524   ac_site_file1=$CONFIG_SITE
2525 elif test "x$prefix" != xNONE; then
2526   ac_site_file1=$prefix/share/config.site
2527   ac_site_file2=$prefix/etc/config.site
2528 else
2529   ac_site_file1=$ac_default_prefix/share/config.site
2530   ac_site_file2=$ac_default_prefix/etc/config.site
2531 fi
2532 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533 do
2534   test "x$ac_site_file" = xNONE && continue
2535   if test -r "$ac_site_file"; then
2536     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2537 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538     sed 's/^/| /' "$ac_site_file" >&5
2539     . "$ac_site_file"
2540   fi
2541 done
2542
2543 if test -r "$cache_file"; then
2544   # Some versions of bash will fail to source /dev/null (special
2545   # files actually), so we avoid doing that.
2546   if test -f "$cache_file"; then
2547     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2548 $as_echo "$as_me: loading cache $cache_file" >&6;}
2549     case $cache_file in
2550       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551       *)                      . "./$cache_file";;
2552     esac
2553   fi
2554 else
2555   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2556 $as_echo "$as_me: creating cache $cache_file" >&6;}
2557   >$cache_file
2558 fi
2559
2560 # Check that the precious variables saved in the cache have kept the same
2561 # value.
2562 ac_cache_corrupted=false
2563 for ac_var in $ac_precious_vars; do
2564   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565   eval ac_new_set=\$ac_env_${ac_var}_set
2566   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567   eval ac_new_val=\$ac_env_${ac_var}_value
2568   case $ac_old_set,$ac_new_set in
2569     set,)
2570       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572       ac_cache_corrupted=: ;;
2573     ,set)
2574       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576       ac_cache_corrupted=: ;;
2577     ,);;
2578     *)
2579       if test "x$ac_old_val" != "x$ac_new_val"; then
2580         # differences in whitespace do not lead to failure.
2581         ac_old_val_w=`echo x $ac_old_val`
2582         ac_new_val_w=`echo x $ac_new_val`
2583         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2585 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586           ac_cache_corrupted=:
2587         else
2588           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590           eval $ac_var=\$ac_old_val
2591         fi
2592         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2593 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2594         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2595 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2596       fi;;
2597   esac
2598   # Pass precious variables to config.status.
2599   if test "$ac_new_set" = set; then
2600     case $ac_new_val in
2601     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602     *) ac_arg=$ac_var=$ac_new_val ;;
2603     esac
2604     case " $ac_configure_args " in
2605       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2606       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2607     esac
2608   fi
2609 done
2610 if $ac_cache_corrupted; then
2611   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2614 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2615   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2616 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2617    { (exit 1); exit 1; }; }
2618 fi
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642
2643
2644 ac_config_headers="$ac_config_headers config.h"
2645
2646
2647
2648 ac_aux_dir=
2649 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2650   if test -f "$ac_dir/install-sh"; then
2651     ac_aux_dir=$ac_dir
2652     ac_install_sh="$ac_aux_dir/install-sh -c"
2653     break
2654   elif test -f "$ac_dir/install.sh"; then
2655     ac_aux_dir=$ac_dir
2656     ac_install_sh="$ac_aux_dir/install.sh -c"
2657     break
2658   elif test -f "$ac_dir/shtool"; then
2659     ac_aux_dir=$ac_dir
2660     ac_install_sh="$ac_aux_dir/shtool install -c"
2661     break
2662   fi
2663 done
2664 if test -z "$ac_aux_dir"; then
2665   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2666 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2667    { (exit 1); exit 1; }; }
2668 fi
2669
2670 # These three variables are undocumented and unsupported,
2671 # and are intended to be withdrawn in a future Autoconf release.
2672 # They can cause serious problems if a builder's source tree is in a directory
2673 # whose full name contains unusual characters.
2674 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2675 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2676 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2677
2678
2679 # Make sure we can run config.sub.
2680 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2681   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2682 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2683    { (exit 1); exit 1; }; }
2684
2685 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2686 $as_echo_n "checking build system type... " >&6; }
2687 if test "${ac_cv_build+set}" = set; then
2688   $as_echo_n "(cached) " >&6
2689 else
2690   ac_build_alias=$build_alias
2691 test "x$ac_build_alias" = x &&
2692   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2693 test "x$ac_build_alias" = x &&
2694   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2695 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2696    { (exit 1); exit 1; }; }
2697 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2698   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2699 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2700    { (exit 1); exit 1; }; }
2701
2702 fi
2703 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2704 $as_echo "$ac_cv_build" >&6; }
2705 case $ac_cv_build in
2706 *-*-*) ;;
2707 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2708 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2709    { (exit 1); exit 1; }; };;
2710 esac
2711 build=$ac_cv_build
2712 ac_save_IFS=$IFS; IFS='-'
2713 set x $ac_cv_build
2714 shift
2715 build_cpu=$1
2716 build_vendor=$2
2717 shift; shift
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2720 build_os=$*
2721 IFS=$ac_save_IFS
2722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2723
2724
2725 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2726 $as_echo_n "checking host system type... " >&6; }
2727 if test "${ac_cv_host+set}" = set; then
2728   $as_echo_n "(cached) " >&6
2729 else
2730   if test "x$host_alias" = x; then
2731   ac_cv_host=$ac_cv_build
2732 else
2733   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2734     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2735 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2736    { (exit 1); exit 1; }; }
2737 fi
2738
2739 fi
2740 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2741 $as_echo "$ac_cv_host" >&6; }
2742 case $ac_cv_host in
2743 *-*-*) ;;
2744 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2745 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2746    { (exit 1); exit 1; }; };;
2747 esac
2748 host=$ac_cv_host
2749 ac_save_IFS=$IFS; IFS='-'
2750 set x $ac_cv_host
2751 shift
2752 host_cpu=$1
2753 host_vendor=$2
2754 shift; shift
2755 # Remember, the first character of IFS is used to create $*,
2756 # except with old shells:
2757 host_os=$*
2758 IFS=$ac_save_IFS
2759 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2760
2761
2762 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2763 $as_echo_n "checking target system type... " >&6; }
2764 if test "${ac_cv_target+set}" = set; then
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test "x$target_alias" = x; then
2768   ac_cv_target=$ac_cv_host
2769 else
2770   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2771     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2772 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2773    { (exit 1); exit 1; }; }
2774 fi
2775
2776 fi
2777 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2778 $as_echo "$ac_cv_target" >&6; }
2779 case $ac_cv_target in
2780 *-*-*) ;;
2781 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2782 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2783    { (exit 1); exit 1; }; };;
2784 esac
2785 target=$ac_cv_target
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_target
2788 shift
2789 target_cpu=$1
2790 target_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 target_os=$*
2795 IFS=$ac_save_IFS
2796 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 # The aliases save the names the user supplied, while $host etc.
2800 # will get canonicalized.
2801 test -n "$target_alias" &&
2802   test "$program_prefix$program_suffix$program_transform_name" = \
2803     NONENONEs,x,x, &&
2804   program_prefix=${target_alias}-
2805
2806 am__api_version='1.10'
2807
2808 # Find a good install program.  We prefer a C program (faster),
2809 # so one script is as good as another.  But avoid the broken or
2810 # incompatible versions:
2811 # SysV /etc/install, /usr/sbin/install
2812 # SunOS /usr/etc/install
2813 # IRIX /sbin/install
2814 # AIX /bin/install
2815 # AmigaOS /C/install, which installs bootblocks on floppy discs
2816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2819 # OS/2's system install, which has a completely different semantic
2820 # ./install, which can be erroneously created by make from ./install.sh.
2821 # Reject install programs that cannot install multiple files.
2822 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2823 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2824 if test -z "$INSTALL"; then
2825 if test "${ac_cv_path_install+set}" = set; then
2826   $as_echo_n "(cached) " >&6
2827 else
2828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833   # Account for people who put trailing slashes in PATH elements.
2834 case $as_dir/ in
2835   ./ | .// | /cC/* | \
2836   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2837   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2838   /usr/ucb/* ) ;;
2839   *)
2840     # OSF1 and SCO ODT 3.0 have their own names for install.
2841     # Don't use installbsd from OSF since it installs stuff as root
2842     # by default.
2843     for ac_prog in ginstall scoinst install; do
2844       for ac_exec_ext in '' $ac_executable_extensions; do
2845         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2846           if test $ac_prog = install &&
2847             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848             # AIX install.  It has an incompatible calling convention.
2849             :
2850           elif test $ac_prog = install &&
2851             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2852             # program-specific install script used by HP pwplus--don't use.
2853             :
2854           else
2855             rm -rf conftest.one conftest.two conftest.dir
2856             echo one > conftest.one
2857             echo two > conftest.two
2858             mkdir conftest.dir
2859             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2860               test -s conftest.one && test -s conftest.two &&
2861               test -s conftest.dir/conftest.one &&
2862               test -s conftest.dir/conftest.two
2863             then
2864               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2865               break 3
2866             fi
2867           fi
2868         fi
2869       done
2870     done
2871     ;;
2872 esac
2873
2874 done
2875 IFS=$as_save_IFS
2876
2877 rm -rf conftest.one conftest.two conftest.dir
2878
2879 fi
2880   if test "${ac_cv_path_install+set}" = set; then
2881     INSTALL=$ac_cv_path_install
2882   else
2883     # As a last resort, use the slow shell script.  Don't cache a
2884     # value for INSTALL within a source directory, because that will
2885     # break other packages using the cache if that directory is
2886     # removed, or if the value is a relative name.
2887     INSTALL=$ac_install_sh
2888   fi
2889 fi
2890 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2891 $as_echo "$INSTALL" >&6; }
2892
2893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2894 # It thinks the first close brace ends the variable substitution.
2895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2896
2897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2898
2899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2900
2901 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2902 $as_echo_n "checking whether build environment is sane... " >&6; }
2903 # Just in case
2904 sleep 1
2905 echo timestamp > conftest.file
2906 # Do `set' in a subshell so we don't clobber the current shell's
2907 # arguments.  Must try -L first in case configure is actually a
2908 # symlink; some systems play weird games with the mod time of symlinks
2909 # (eg FreeBSD returns the mod time of the symlink's containing
2910 # directory).
2911 if (
2912    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2913    if test "$*" = "X"; then
2914       # -L didn't work.
2915       set X `ls -t $srcdir/configure conftest.file`
2916    fi
2917    rm -f conftest.file
2918    if test "$*" != "X $srcdir/configure conftest.file" \
2919       && test "$*" != "X conftest.file $srcdir/configure"; then
2920
2921       # If neither matched, then we have a broken ls.  This can happen
2922       # if, for instance, CONFIG_SHELL is bash and it inherits a
2923       # broken ls alias from the environment.  This has actually
2924       # happened.  Such a system could not be considered "sane".
2925       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2926 alias in your environment" >&5
2927 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2928 alias in your environment" >&2;}
2929    { (exit 1); exit 1; }; }
2930    fi
2931
2932    test "$2" = conftest.file
2933    )
2934 then
2935    # Ok.
2936    :
2937 else
2938    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2939 Check your system clock" >&5
2940 $as_echo "$as_me: error: newly created file is older than distributed files!
2941 Check your system clock" >&2;}
2942    { (exit 1); exit 1; }; }
2943 fi
2944 { $as_echo "$as_me:$LINENO: result: yes" >&5
2945 $as_echo "yes" >&6; }
2946 test "$program_prefix" != NONE &&
2947   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2948 # Use a double $ so make ignores it.
2949 test "$program_suffix" != NONE &&
2950   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2951 # Double any \ or $.
2952 # By default was `s,x,x', remove it if useless.
2953 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2954 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2955
2956 # expand $ac_aux_dir to an absolute path
2957 am_aux_dir=`cd $ac_aux_dir && pwd`
2958
2959 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2960 # Use eval to expand $SHELL
2961 if eval "$MISSING --run true"; then
2962   am_missing_run="$MISSING --run "
2963 else
2964   am_missing_run=
2965   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2966 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2967 fi
2968
2969 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2970 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2971 if test -z "$MKDIR_P"; then
2972   if test "${ac_cv_path_mkdir+set}" = set; then
2973   $as_echo_n "(cached) " >&6
2974 else
2975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980   for ac_prog in mkdir gmkdir; do
2981          for ac_exec_ext in '' $ac_executable_extensions; do
2982            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2983            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2984              'mkdir (GNU coreutils) '* | \
2985              'mkdir (coreutils) '* | \
2986              'mkdir (fileutils) '4.1*)
2987                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2988                break 3;;
2989            esac
2990          done
2991        done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996
2997   if test "${ac_cv_path_mkdir+set}" = set; then
2998     MKDIR_P="$ac_cv_path_mkdir -p"
2999   else
3000     # As a last resort, use the slow shell script.  Don't cache a
3001     # value for MKDIR_P within a source directory, because that will
3002     # break other packages using the cache if that directory is
3003     # removed, or if the value is a relative name.
3004     test -d ./--version && rmdir ./--version
3005     MKDIR_P="$ac_install_sh -d"
3006   fi
3007 fi
3008 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3009 $as_echo "$MKDIR_P" >&6; }
3010
3011 mkdir_p="$MKDIR_P"
3012 case $mkdir_p in
3013   [\\/$]* | ?:[\\/]*) ;;
3014   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3015 esac
3016
3017 for ac_prog in gawk mawk nawk awk
3018 do
3019   # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_AWK+set}" = set; then
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$AWK"; then
3027   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034   for ac_exec_ext in '' $ac_executable_extensions; do
3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036     ac_cv_prog_AWK="$ac_prog"
3037     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 AWK=$ac_cv_prog_AWK
3047 if test -n "$AWK"; then
3048   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3049 $as_echo "$AWK" >&6; }
3050 else
3051   { $as_echo "$as_me:$LINENO: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056   test -n "$AWK" && break
3057 done
3058
3059 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3060 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3061 set x ${MAKE-make}
3062 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3063 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3064   $as_echo_n "(cached) " >&6
3065 else
3066   cat >conftest.make <<\_ACEOF
3067 SHELL = /bin/sh
3068 all:
3069         @echo '@@@%%%=$(MAKE)=@@@%%%'
3070 _ACEOF
3071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3072 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3073   *@@@%%%=?*=@@@%%%*)
3074     eval ac_cv_prog_make_${ac_make}_set=yes;;
3075   *)
3076     eval ac_cv_prog_make_${ac_make}_set=no;;
3077 esac
3078 rm -f conftest.make
3079 fi
3080 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3081   { $as_echo "$as_me:$LINENO: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083   SET_MAKE=
3084 else
3085   { $as_echo "$as_me:$LINENO: result: no" >&5
3086 $as_echo "no" >&6; }
3087   SET_MAKE="MAKE=${MAKE-make}"
3088 fi
3089
3090 rm -rf .tst 2>/dev/null
3091 mkdir .tst 2>/dev/null
3092 if test -d .tst; then
3093   am__leading_dot=.
3094 else
3095   am__leading_dot=_
3096 fi
3097 rmdir .tst 2>/dev/null
3098
3099 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3100   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3101   # is not polluted with repeated "-I."
3102   am__isrc=' -I$(srcdir)'
3103   # test to see if srcdir already configured
3104   if test -f $srcdir/config.status; then
3105     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3106 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3107    { (exit 1); exit 1; }; }
3108   fi
3109 fi
3110
3111 # test whether we have cygpath
3112 if test -z "$CYGPATH_W"; then
3113   if (cygpath --version) >/dev/null 2>/dev/null; then
3114     CYGPATH_W='cygpath -w'
3115   else
3116     CYGPATH_W=echo
3117   fi
3118 fi
3119
3120
3121 # Define the identity of the package.
3122  PACKAGE=gnuradio
3123  VERSION=3.2.2
3124
3125
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE "$PACKAGE"
3128 _ACEOF
3129
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define VERSION "$VERSION"
3133 _ACEOF
3134
3135 # Some tools Automake needs.
3136
3137 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3138
3139
3140 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3141
3142
3143 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3144
3145
3146 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3147
3148
3149 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3150
3151 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3152
3153 # Installed binaries are usually stripped using `strip' when the user
3154 # run `make install-strip'.  However `strip' might not be the right
3155 # tool to use in cross-compilation environments, therefore Automake
3156 # will honor the `STRIP' environment variable to overrule this program.
3157 if test "$cross_compiling" != no; then
3158   if test -n "$ac_tool_prefix"; then
3159   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}strip; ac_word=$2
3161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_STRIP+set}" = set; then
3164   $as_echo_n "(cached) " >&6
3165 else
3166   if test -n "$STRIP"; then
3167   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174   for ac_exec_ext in '' $ac_executable_extensions; do
3175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3177     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 STRIP=$ac_cv_prog_STRIP
3187 if test -n "$STRIP"; then
3188   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3189 $as_echo "$STRIP" >&6; }
3190 else
3191   { $as_echo "$as_me:$LINENO: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$ac_cv_prog_STRIP"; then
3198   ac_ct_STRIP=$STRIP
3199   # Extract the first word of "strip", so it can be a program name with args.
3200 set dummy strip; ac_word=$2
3201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$ac_ct_STRIP"; then
3207   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214   for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_prog_ac_ct_STRIP="strip"
3217     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3227 if test -n "$ac_ct_STRIP"; then
3228   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3229 $as_echo "$ac_ct_STRIP" >&6; }
3230 else
3231   { $as_echo "$as_me:$LINENO: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235   if test "x$ac_ct_STRIP" = x; then
3236     STRIP=":"
3237   else
3238     case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244     STRIP=$ac_ct_STRIP
3245   fi
3246 else
3247   STRIP="$ac_cv_prog_STRIP"
3248 fi
3249
3250 fi
3251 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3252
3253 # We need awk for the "check" target.  The system "awk" is bad on
3254 # some platforms.
3255 # Always define AMTAR for backward compatibility.
3256
3257 AMTAR=${AMTAR-"${am_missing_run}tar"}
3258
3259 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3260
3261
3262
3263
3264
3265
3266 DEFINES=""
3267
3268
3269 if test -n "${CFLAGS}"; then
3270   user_set_cflags=yes
3271 fi
3272 if test -n "${CXXFLAGS}"; then
3273   user_set_cxxflags=yes
3274 fi
3275
3276
3277 DEPDIR="${am__leading_dot}deps"
3278
3279 ac_config_commands="$ac_config_commands depfiles"
3280
3281
3282 am_make=${MAKE-make}
3283 cat > confinc << 'END'
3284 am__doit:
3285         @echo done
3286 .PHONY: am__doit
3287 END
3288 # If we don't find an include directive, just comment out the code.
3289 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3290 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3291 am__include="#"
3292 am__quote=
3293 _am_result=none
3294 # First try GNU make style include.
3295 echo "include confinc" > confmf
3296 # We grep out `Entering directory' and `Leaving directory'
3297 # messages which can occur if `w' ends up in MAKEFLAGS.
3298 # In particular we don't look at `^make:' because GNU make might
3299 # be invoked under some other name (usually "gmake"), in which
3300 # case it prints its new name instead of `make'.
3301 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3302    am__include=include
3303    am__quote=
3304    _am_result=GNU
3305 fi
3306 # Now try BSD make style include.
3307 if test "$am__include" = "#"; then
3308    echo '.include "confinc"' > confmf
3309    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3310       am__include=.include
3311       am__quote="\""
3312       _am_result=BSD
3313    fi
3314 fi
3315
3316
3317 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3318 $as_echo "$_am_result" >&6; }
3319 rm -f confinc confmf
3320
3321 # Check whether --enable-dependency-tracking was given.
3322 if test "${enable_dependency_tracking+set}" = set; then
3323   enableval=$enable_dependency_tracking;
3324 fi
3325
3326 if test "x$enable_dependency_tracking" != xno; then
3327   am_depcomp="$ac_aux_dir/depcomp"
3328   AMDEPBACKSLASH='\'
3329 fi
3330  if test "x$enable_dependency_tracking" != xno; then
3331   AMDEP_TRUE=
3332   AMDEP_FALSE='#'
3333 else
3334   AMDEP_TRUE='#'
3335   AMDEP_FALSE=
3336 fi
3337
3338
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 if test -n "$ac_tool_prefix"; then
3345   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then
3350   $as_echo_n "(cached) " >&6
3351 else
3352   if test -n "$CC"; then
3353   ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360   for ac_exec_ext in '' $ac_executable_extensions; do
3361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3363     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364     break 2
3365   fi
3366 done
3367 done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377   { $as_echo "$as_me:$LINENO: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382 fi
3383 if test -z "$ac_cv_prog_CC"; then
3384   ac_ct_CC=$CC
3385   # Extract the first word of "gcc", so it can be a program name with args.
3386 set dummy gcc; ac_word=$2
3387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$ac_ct_CC"; then
3393   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400   for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_ac_ct_CC="gcc"
3403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417   { $as_echo "$as_me:$LINENO: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421   if test "x$ac_ct_CC" = x; then
3422     CC=""
3423   else
3424     case $cross_compiling:$ac_tool_warned in
3425 yes:)
3426 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3429 esac
3430     CC=$ac_ct_CC
3431   fi
3432 else
3433   CC="$ac_cv_prog_CC"
3434 fi
3435
3436 if test -z "$CC"; then
3437           if test -n "$ac_tool_prefix"; then
3438     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}cc; ac_word=$2
3440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then
3443   $as_echo_n "(cached) " >&6
3444 else
3445   if test -n "$CC"; then
3446   ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453   for ac_exec_ext in '' $ac_executable_extensions; do
3454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455     ac_cv_prog_CC="${ac_tool_prefix}cc"
3456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3469 else
3470   { $as_echo "$as_me:$LINENO: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474
3475   fi
3476 fi
3477 if test -z "$CC"; then
3478   # Extract the first word of "cc", so it can be a program name with args.
3479 set dummy cc; ac_word=$2
3480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_CC+set}" = set; then
3483   $as_echo_n "(cached) " >&6
3484 else
3485   if test -n "$CC"; then
3486   ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488   ac_prog_rejected=no
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494   for ac_exec_ext in '' $ac_executable_extensions; do
3495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497        ac_prog_rejected=yes
3498        continue
3499      fi
3500     ac_cv_prog_CC="cc"
3501     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505 done
3506 IFS=$as_save_IFS
3507
3508 if test $ac_prog_rejected = yes; then
3509   # We found a bogon in the path, so make sure we never use it.
3510   set dummy $ac_cv_prog_CC
3511   shift
3512   if test $# != 0; then
3513     # We chose a different compiler from the bogus one.
3514     # However, it has the same basename, so the bogon will be chosen
3515     # first if we set CC to just the basename; use the full file name.
3516     shift
3517     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3518   fi
3519 fi
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:$LINENO: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$CC"; then
3534   if test -n "$ac_tool_prefix"; then
3535   for ac_prog in cl.exe
3536   do
3537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_CC+set}" = set; then
3542   $as_echo_n "(cached) " >&6
3543 else
3544   if test -n "$CC"; then
3545   ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   for ac_exec_ext in '' $ac_executable_extensions; do
3553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3568 else
3569   { $as_echo "$as_me:$LINENO: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573
3574     test -n "$CC" && break
3575   done
3576 fi
3577 if test -z "$CC"; then
3578   ac_ct_CC=$CC
3579   for ac_prog in cl.exe
3580 do
3581   # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3586   $as_echo_n "(cached) " >&6
3587 else
3588   if test -n "$ac_ct_CC"; then
3589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596   for ac_exec_ext in '' $ac_executable_extensions; do
3597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598     ac_cv_prog_ac_ct_CC="$ac_prog"
3599     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603 done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3612 else
3613   { $as_echo "$as_me:$LINENO: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618   test -n "$ac_ct_CC" && break
3619 done
3620
3621   if test "x$ac_ct_CC" = x; then
3622     CC=""
3623   else
3624     case $cross_compiling:$ac_tool_warned in
3625 yes:)
3626 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3629 esac
3630     CC=$ac_ct_CC
3631   fi
3632 fi
3633
3634 fi
3635
3636
3637 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3640 See \`config.log' for more details." >&5
3641 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3642 See \`config.log' for more details." >&2;}
3643    { (exit 1); exit 1; }; }; }
3644
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3647 set X $ac_compile
3648 ac_compiler=$2
3649 { (ac_try="$ac_compiler --version >&5"
3650 case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656   (eval "$ac_compiler --version >&5") 2>&5
3657   ac_status=$?
3658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }
3660 { (ac_try="$ac_compiler -v >&5"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666 $as_echo "$ac_try_echo") >&5
3667   (eval "$ac_compiler -v >&5") 2>&5
3668   ac_status=$?
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }
3671 { (ac_try="$ac_compiler -V >&5"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677 $as_echo "$ac_try_echo") >&5
3678   (eval "$ac_compiler -V >&5") 2>&5
3679   ac_status=$?
3680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }
3682
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689
3690 int
3691 main ()
3692 {
3693
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 ac_clean_files_save=$ac_clean_files
3699 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3700 # Try to create an executable without -o first, disregard a.out.
3701 # It will help us diagnose broken compilers, and finding out an intuition
3702 # of exeext.
3703 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3704 $as_echo_n "checking for C compiler default output file name... " >&6; }
3705 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3706
3707 # The possible output files:
3708 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3709
3710 ac_rmfiles=
3711 for ac_file in $ac_files
3712 do
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3716   esac
3717 done
3718 rm -f $ac_rmfiles
3719
3720 if { (ac_try="$ac_link_default"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3726 $as_echo "$ac_try_echo") >&5
3727   (eval "$ac_link_default") 2>&5
3728   ac_status=$?
3729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; then
3731   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3733 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3734 # so that the user can short-circuit this test for compilers unknown to
3735 # Autoconf.
3736 for ac_file in $ac_files ''
3737 do
3738   test -f "$ac_file" || continue
3739   case $ac_file in
3740     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3741         ;;
3742     [ab].out )
3743         # We found the default executable, but exeext='' is most
3744         # certainly right.
3745         break;;
3746     *.* )
3747         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3748         then :; else
3749            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3750         fi
3751         # We set ac_cv_exeext here because the later test for it is not
3752         # safe: cross compilers may not add the suffix if given an `-o'
3753         # argument, so we may need to know it at that point already.
3754         # Even if this section looks crufty: it has the advantage of
3755         # actually working.
3756         break;;
3757     * )
3758         break;;
3759   esac
3760 done
3761 test "$ac_cv_exeext" = no && ac_cv_exeext=
3762
3763 else
3764   ac_file=''
3765 fi
3766
3767 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3768 $as_echo "$ac_file" >&6; }
3769 if test -z "$ac_file"; then
3770   $as_echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3776 See \`config.log' for more details." >&5
3777 $as_echo "$as_me: error: C compiler cannot create executables
3778 See \`config.log' for more details." >&2;}
3779    { (exit 77); exit 77; }; }; }
3780 fi
3781
3782 ac_exeext=$ac_cv_exeext
3783
3784 # Check that the compiler produces executables we can run.  If not, either
3785 # the compiler is broken, or we cross compile.
3786 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3787 $as_echo_n "checking whether the C compiler works... " >&6; }
3788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3789 # If not cross compiling, check that we can run a simple program.
3790 if test "$cross_compiling" != yes; then
3791   if { ac_try='./$ac_file'
3792   { (case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3797 $as_echo "$ac_try_echo") >&5
3798   (eval "$ac_try") 2>&5
3799   ac_status=$?
3800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; }; then
3802     cross_compiling=no
3803   else
3804     if test "$cross_compiling" = maybe; then
3805         cross_compiling=yes
3806     else
3807         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details." >&5
3812 $as_echo "$as_me: error: cannot run C compiled programs.
3813 If you meant to cross compile, use \`--host'.
3814 See \`config.log' for more details." >&2;}
3815    { (exit 1); exit 1; }; }; }
3816     fi
3817   fi
3818 fi
3819 { $as_echo "$as_me:$LINENO: result: yes" >&5
3820 $as_echo "yes" >&6; }
3821
3822 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3823 ac_clean_files=$ac_clean_files_save
3824 # Check that the compiler produces executables we can run.  If not, either
3825 # the compiler is broken, or we cross compile.
3826 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3827 $as_echo_n "checking whether we are cross compiling... " >&6; }
3828 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3829 $as_echo "$cross_compiling" >&6; }
3830
3831 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3832 $as_echo_n "checking for suffix of executables... " >&6; }
3833 if { (ac_try="$ac_link"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3839 $as_echo "$ac_try_echo") >&5
3840   (eval "$ac_link") 2>&5
3841   ac_status=$?
3842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); }; then
3844   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3845 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3846 # work properly (i.e., refer to `conftest.exe'), while it won't with
3847 # `rm'.
3848 for ac_file in conftest.exe conftest conftest.*; do
3849   test -f "$ac_file" || continue
3850   case $ac_file in
3851     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853           break;;
3854     * ) break;;
3855   esac
3856 done
3857 else
3858   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3861 See \`config.log' for more details." >&5
3862 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3863 See \`config.log' for more details." >&2;}
3864    { (exit 1); exit 1; }; }; }
3865 fi
3866
3867 rm -f conftest$ac_cv_exeext
3868 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3869 $as_echo "$ac_cv_exeext" >&6; }
3870
3871 rm -f conftest.$ac_ext
3872 EXEEXT=$ac_cv_exeext
3873 ac_exeext=$EXEEXT
3874 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3875 $as_echo_n "checking for suffix of object files... " >&6; }
3876 if test "${ac_cv_objext+set}" = set; then
3877   $as_echo_n "(cached) " >&6
3878 else
3879   cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885
3886 int
3887 main ()
3888 {
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 rm -f conftest.o conftest.obj
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3901 $as_echo "$ac_try_echo") >&5
3902   (eval "$ac_compile") 2>&5
3903   ac_status=$?
3904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; then
3906   for ac_file in conftest.o conftest.obj conftest.*; do
3907   test -f "$ac_file" || continue;
3908   case $ac_file in
3909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3910     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3911        break;;
3912   esac
3913 done
3914 else
3915   $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3921 See \`config.log' for more details." >&5
3922 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3923 See \`config.log' for more details." >&2;}
3924    { (exit 1); exit 1; }; }; }
3925 fi
3926
3927 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3928 fi
3929 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3930 $as_echo "$ac_cv_objext" >&6; }
3931 OBJEXT=$ac_cv_objext
3932 ac_objext=$OBJEXT
3933 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3934 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3935 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3936   $as_echo_n "(cached) " >&6
3937 else
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944
3945 int
3946 main ()
3947 {
3948 #ifndef __GNUC__
3949        choke me
3950 #endif
3951
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 rm -f conftest.$ac_objext
3957 if { (ac_try="$ac_compile"
3958 case "(($ac_try" in
3959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960   *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3963 $as_echo "$ac_try_echo") >&5
3964   (eval "$ac_compile") 2>conftest.er1
3965   ac_status=$?
3966   grep -v '^ *+' conftest.er1 >conftest.err
3967   rm -f conftest.er1
3968   cat conftest.err >&5
3969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } && {
3971          test -z "$ac_c_werror_flag" ||
3972          test ! -s conftest.err
3973        } && test -s conftest.$ac_objext; then
3974   ac_compiler_gnu=yes
3975 else
3976   $as_echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979         ac_compiler_gnu=no
3980 fi
3981
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3984
3985 fi
3986 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3988 if test $ac_compiler_gnu = yes; then
3989   GCC=yes
3990 else
3991   GCC=
3992 fi
3993 ac_test_CFLAGS=${CFLAGS+set}
3994 ac_save_CFLAGS=$CFLAGS
3995 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3997 if test "${ac_cv_prog_cc_g+set}" = set; then
3998   $as_echo_n "(cached) " >&6
3999 else
4000   ac_save_c_werror_flag=$ac_c_werror_flag
4001    ac_c_werror_flag=yes
4002    ac_cv_prog_cc_g=no
4003    CFLAGS="-g"
4004    cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010
4011 int
4012 main ()
4013 {
4014
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4021 case "(($ac_try" in
4022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023   *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4026 $as_echo "$ac_try_echo") >&5
4027   (eval "$ac_compile") 2>conftest.er1
4028   ac_status=$?
4029   grep -v '^ *+' conftest.er1 >conftest.err
4030   rm -f conftest.er1
4031   cat conftest.err >&5
4032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); } && {
4034          test -z "$ac_c_werror_flag" ||
4035          test ! -s conftest.err
4036        } && test -s conftest.$ac_objext; then
4037   ac_cv_prog_cc_g=yes
4038 else
4039   $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042         CFLAGS=""
4043       cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h.  */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4060 case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4065 $as_echo "$ac_try_echo") >&5
4066   (eval "$ac_compile") 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } && {
4073          test -z "$ac_c_werror_flag" ||
4074          test ! -s conftest.err
4075        } && test -s conftest.$ac_objext; then
4076   :
4077 else
4078   $as_echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081         ac_c_werror_flag=$ac_save_c_werror_flag
4082          CFLAGS="-g"
4083          cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089
4090 int
4091 main ()
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (ac_try="$ac_compile"
4100 case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4105 $as_echo "$ac_try_echo") >&5
4106   (eval "$ac_compile") 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } && {
4113          test -z "$ac_c_werror_flag" ||
4114          test ! -s conftest.err
4115        } && test -s conftest.$ac_objext; then
4116   ac_cv_prog_cc_g=yes
4117 else
4118   $as_echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121
4122 fi
4123
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 fi
4126
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131    ac_c_werror_flag=$ac_save_c_werror_flag
4132 fi
4133 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136   CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138   if test "$GCC" = yes; then
4139     CFLAGS="-g -O2"
4140   else
4141     CFLAGS="-g"
4142   fi
4143 else
4144   if test "$GCC" = yes; then
4145     CFLAGS="-O2"
4146   else
4147     CFLAGS=
4148   fi
4149 fi
4150 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if test "${ac_cv_prog_cc_c89+set}" = set; then
4153   $as_echo_n "(cached) " >&6
4154 else
4155   ac_cv_prog_cc_c89=no
4156 ac_save_CC=$CC
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 #include <stdarg.h>
4164 #include <stdio.h>
4165 #include <sys/types.h>
4166 #include <sys/stat.h>
4167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4171      char **p;
4172      int i;
4173 {
4174   return p[i];
4175 }
4176 static char *f (char * (*g) (char **, int), char **p, ...)
4177 {
4178   char *s;
4179   va_list v;
4180   va_start (v,p);
4181   s = g (p, va_arg (v,int));
4182   va_end (v);
4183   return s;
4184 }
4185
4186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4187    function prototypes and stuff, but not '\xHH' hex character constants.
4188    These don't provoke an error unfortunately, instead are silently treated
4189    as 'x'.  The following induces an error, until -std is added to get
4190    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4191    array size at least.  It's necessary to write '\x00'==0 to get something
4192    that's true only with -std.  */
4193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4194
4195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196    inside strings and character constants.  */
4197 #define FOO(x) 'x'
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204 int argc;
4205 char **argv;
4206 int
4207 main ()
4208 {
4209 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216 do
4217   CC="$ac_save_CC $ac_arg"
4218   rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4220 case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4225 $as_echo "$ac_try_echo") >&5
4226   (eval "$ac_compile") 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } && {
4233          test -z "$ac_c_werror_flag" ||
4234          test ! -s conftest.err
4235        } && test -s conftest.$ac_objext; then
4236   ac_cv_prog_cc_c89=$ac_arg
4237 else
4238   $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241
4242 fi
4243
4244 rm -f core conftest.err conftest.$ac_objext
4245   test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249
4250 fi
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c89" in
4253   x)
4254     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256   xno)
4257     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4259   *)
4260     CC="$CC $ac_cv_prog_cc_c89"
4261     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 esac
4264
4265
4266 ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272 depcc="$CC"   am_compiler_list=
4273
4274 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4275 $as_echo_n "checking dependency style of $depcc... " >&6; }
4276 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4280   # We make a subdir and do the tests there.  Otherwise we can end up
4281   # making bogus files that we don't know about and never remove.  For
4282   # instance it was reported that on HP-UX the gcc test will end up
4283   # making a dummy file named `D' -- because `-MD' means `put the output
4284   # in D'.
4285   mkdir conftest.dir
4286   # Copy depcomp to subdir because otherwise we won't find it if we're
4287   # using a relative directory.
4288   cp "$am_depcomp" conftest.dir
4289   cd conftest.dir
4290   # We will build objects and dependencies in a subdirectory because
4291   # it helps to detect inapplicable dependency modes.  For instance
4292   # both Tru64's cc and ICC support -MD to output dependencies as a
4293   # side effect of compilation, but ICC will put the dependencies in
4294   # the current directory while Tru64 will put them in the object
4295   # directory.
4296   mkdir sub
4297
4298   am_cv_CC_dependencies_compiler_type=none
4299   if test "$am_compiler_list" = ""; then
4300      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4301   fi
4302   for depmode in $am_compiler_list; do
4303     # Setup a source with many dependencies, because some compilers
4304     # like to wrap large dependency lists on column 80 (with \), and
4305     # we should not choose a depcomp mode which is confused by this.
4306     #
4307     # We need to recreate these files for each test, as the compiler may
4308     # overwrite some of them when testing with obscure command lines.
4309     # This happens at least with the AIX C compiler.
4310     : > sub/conftest.c
4311     for i in 1 2 3 4 5 6; do
4312       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4313       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4314       # Solaris 8's {/usr,}/bin/sh.
4315       touch sub/conftst$i.h
4316     done
4317     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4318
4319     case $depmode in
4320     nosideeffect)
4321       # after this tag, mechanisms are not by side-effect, so they'll
4322       # only be used when explicitly requested
4323       if test "x$enable_dependency_tracking" = xyes; then
4324         continue
4325       else
4326         break
4327       fi
4328       ;;
4329     none) break ;;
4330     esac
4331     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4332     # mode.  It turns out that the SunPro C++ compiler does not properly
4333     # handle `-M -o', and we need to detect this.
4334     if depmode=$depmode \
4335        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4336        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4338          >/dev/null 2>conftest.err &&
4339        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4342        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343       # icc doesn't choke on unknown options, it will just issue warnings
4344       # or remarks (even with -Werror).  So we grep stderr for any message
4345       # that says an option was ignored or not supported.
4346       # When given -MP, icc 7.0 and 7.1 complain thusly:
4347       #   icc: Command line warning: ignoring option '-M'; no argument required
4348       # The diagnosis changed in icc 8.0:
4349       #   icc: Command line remark: option '-MP' not supported
4350       if (grep 'ignoring option' conftest.err ||
4351           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352         am_cv_CC_dependencies_compiler_type=$depmode
4353         break
4354       fi
4355     fi
4356   done
4357
4358   cd ..
4359   rm -rf conftest.dir
4360 else
4361   am_cv_CC_dependencies_compiler_type=none
4362 fi
4363
4364 fi
4365 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4368
4369  if
4370   test "x$enable_dependency_tracking" != xno \
4371   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4372   am__fastdepCC_TRUE=
4373   am__fastdepCC_FALSE='#'
4374 else
4375   am__fastdepCC_TRUE='#'
4376   am__fastdepCC_FALSE=
4377 fi
4378
4379
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4386 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4387 # On Suns, sometimes $CPP names a directory.
4388 if test -n "$CPP" && test -d "$CPP"; then
4389   CPP=
4390 fi
4391 if test -z "$CPP"; then
4392   if test "${ac_cv_prog_CPP+set}" = set; then
4393   $as_echo_n "(cached) " >&6
4394 else
4395       # Double quotes because CPP needs to be expanded
4396     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4397     do
4398       ac_preproc_ok=false
4399 for ac_c_preproc_warn_flag in '' yes
4400 do
4401   # Use a header file that comes with gcc, so configuring glibc
4402   # with a fresh cross-compiler works.
4403   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4404   # <limits.h> exists even on freestanding compilers.
4405   # On the NeXT, cc -E runs the code through the compiler's parser,
4406   # not just through cpp. "Syntax error" is here to catch this case.
4407   cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #ifdef __STDC__
4414 # include <limits.h>
4415 #else
4416 # include <assert.h>
4417 #endif
4418                      Syntax error
4419 _ACEOF
4420 if { (ac_try="$ac_cpp conftest.$ac_ext"
4421 case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4426 $as_echo "$ac_try_echo") >&5
4427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } >/dev/null && {
4434          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4435          test ! -s conftest.err
4436        }; then
4437   :
4438 else
4439   $as_echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442   # Broken: fails on valid input.
4443 continue
4444 fi
4445
4446 rm -f conftest.err conftest.$ac_ext
4447
4448   # OK, works on sane cases.  Now check whether nonexistent headers
4449   # can be detected and how.
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <ac_nonexistent.h>
4457 _ACEOF
4458 if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } >/dev/null && {
4472          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4473          test ! -s conftest.err
4474        }; then
4475   # Broken: success on invalid input.
4476 continue
4477 else
4478   $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481   # Passes both tests.
4482 ac_preproc_ok=:
4483 break
4484 fi
4485
4486 rm -f conftest.err conftest.$ac_ext
4487
4488 done
4489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4490 rm -f conftest.err conftest.$ac_ext
4491 if $ac_preproc_ok; then
4492   break
4493 fi
4494
4495     done
4496     ac_cv_prog_CPP=$CPP
4497
4498 fi
4499   CPP=$ac_cv_prog_CPP
4500 else
4501   ac_cv_prog_CPP=$CPP
4502 fi
4503 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4504 $as_echo "$CPP" >&6; }
4505 ac_preproc_ok=false
4506 for ac_c_preproc_warn_flag in '' yes
4507 do
4508   # Use a header file that comes with gcc, so configuring glibc
4509   # with a fresh cross-compiler works.
4510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511   # <limits.h> exists even on freestanding compilers.
4512   # On the NeXT, cc -E runs the code through the compiler's parser,
4513   # not just through cpp. "Syntax error" is here to catch this case.
4514   cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520 #ifdef __STDC__
4521 # include <limits.h>
4522 #else
4523 # include <assert.h>
4524 #endif
4525                      Syntax error
4526 _ACEOF
4527 if { (ac_try="$ac_cpp conftest.$ac_ext"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4533 $as_echo "$ac_try_echo") >&5
4534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4535   ac_status=$?
4536   grep -v '^ *+' conftest.er1 >conftest.err
4537   rm -f conftest.er1
4538   cat conftest.err >&5
4539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } >/dev/null && {
4541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4542          test ! -s conftest.err
4543        }; then
4544   :
4545 else
4546   $as_echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549   # Broken: fails on valid input.
4550 continue
4551 fi
4552
4553 rm -f conftest.err conftest.$ac_ext
4554
4555   # OK, works on sane cases.  Now check whether nonexistent headers
4556   # can be detected and how.
4557   cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563 #include <ac_nonexistent.h>
4564 _ACEOF
4565 if { (ac_try="$ac_cpp conftest.$ac_ext"
4566 case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4571 $as_echo "$ac_try_echo") >&5
4572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4573   ac_status=$?
4574   grep -v '^ *+' conftest.er1 >conftest.err
4575   rm -f conftest.er1
4576   cat conftest.err >&5
4577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); } >/dev/null && {
4579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4580          test ! -s conftest.err
4581        }; then
4582   # Broken: success on invalid input.
4583 continue
4584 else
4585   $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588   # Passes both tests.
4589 ac_preproc_ok=:
4590 break
4591 fi
4592
4593 rm -f conftest.err conftest.$ac_ext
4594
4595 done
4596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4597 rm -f conftest.err conftest.$ac_ext
4598 if $ac_preproc_ok; then
4599   :
4600 else
4601   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4604 See \`config.log' for more details." >&5
4605 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4606 See \`config.log' for more details." >&2;}
4607    { (exit 1); exit 1; }; }; }
4608 fi
4609
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615
4616
4617
4618 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4620 if test "${ac_cv_path_GREP+set}" = set; then
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if test -z "$GREP"; then
4624   ac_path_GREP_found=false
4625   # Loop through the user's path and test for each of PROGNAME-LIST
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_prog in grep ggrep; do
4632     for ac_exec_ext in '' $ac_executable_extensions; do
4633       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4634       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4635 # Check for GNU ac_path_GREP and select it if it is found.
4636   # Check for GNU $ac_path_GREP
4637 case `"$ac_path_GREP" --version 2>&1` in
4638 *GNU*)
4639   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4640 *)
4641   ac_count=0
4642   $as_echo_n 0123456789 >"conftest.in"
4643   while :
4644   do
4645     cat "conftest.in" "conftest.in" >"conftest.tmp"
4646     mv "conftest.tmp" "conftest.in"
4647     cp "conftest.in" "conftest.nl"
4648     $as_echo 'GREP' >> "conftest.nl"
4649     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651     ac_count=`expr $ac_count + 1`
4652     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4653       # Best one so far, save it but keep looking for a better one
4654       ac_cv_path_GREP="$ac_path_GREP"
4655       ac_path_GREP_max=$ac_count
4656     fi
4657     # 10*(2^10) chars as input seems more than enough
4658     test $ac_count -gt 10 && break
4659   done
4660   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 esac
4662
4663       $ac_path_GREP_found && break 3
4664     done
4665   done
4666 done
4667 IFS=$as_save_IFS
4668   if test -z "$ac_cv_path_GREP"; then
4669     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4670 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4671    { (exit 1); exit 1; }; }
4672   fi
4673 else
4674   ac_cv_path_GREP=$GREP
4675 fi
4676
4677 fi
4678 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4679 $as_echo "$ac_cv_path_GREP" >&6; }
4680  GREP="$ac_cv_path_GREP"
4681
4682
4683 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4684 $as_echo_n "checking for egrep... " >&6; }
4685 if test "${ac_cv_path_EGREP+set}" = set; then
4686   $as_echo_n "(cached) " >&6
4687 else
4688   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4689    then ac_cv_path_EGREP="$GREP -E"
4690    else
4691      if test -z "$EGREP"; then
4692   ac_path_EGREP_found=false
4693   # Loop through the user's path and test for each of PROGNAME-LIST
4694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_prog in egrep; do
4700     for ac_exec_ext in '' $ac_executable_extensions; do
4701       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4702       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4703 # Check for GNU ac_path_EGREP and select it if it is found.
4704   # Check for GNU $ac_path_EGREP
4705 case `"$ac_path_EGREP" --version 2>&1` in
4706 *GNU*)
4707   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708 *)
4709   ac_count=0
4710   $as_echo_n 0123456789 >"conftest.in"
4711   while :
4712   do
4713     cat "conftest.in" "conftest.in" >"conftest.tmp"
4714     mv "conftest.tmp" "conftest.in"
4715     cp "conftest.in" "conftest.nl"
4716     $as_echo 'EGREP' >> "conftest.nl"
4717     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719     ac_count=`expr $ac_count + 1`
4720     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4721       # Best one so far, save it but keep looking for a better one
4722       ac_cv_path_EGREP="$ac_path_EGREP"
4723       ac_path_EGREP_max=$ac_count
4724     fi
4725     # 10*(2^10) chars as input seems more than enough
4726     test $ac_count -gt 10 && break
4727   done
4728   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 esac
4730
4731       $ac_path_EGREP_found && break 3
4732     done
4733   done
4734 done
4735 IFS=$as_save_IFS
4736   if test -z "$ac_cv_path_EGREP"; then
4737     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4738 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4739    { (exit 1); exit 1; }; }
4740   fi
4741 else
4742   ac_cv_path_EGREP=$EGREP
4743 fi
4744
4745    fi
4746 fi
4747 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4748 $as_echo "$ac_cv_path_EGREP" >&6; }
4749  EGREP="$ac_cv_path_EGREP"
4750
4751
4752 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4753 $as_echo_n "checking for ANSI C header files... " >&6; }
4754 if test "${ac_cv_header_stdc+set}" = set; then
4755   $as_echo_n "(cached) " >&6
4756 else
4757   cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763 #include <stdlib.h>
4764 #include <stdarg.h>
4765 #include <string.h>
4766 #include <float.h>
4767
4768 int
4769 main ()
4770 {
4771
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (ac_try="$ac_compile"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783 $as_echo "$ac_try_echo") >&5
4784   (eval "$ac_compile") 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } && {
4791          test -z "$ac_c_werror_flag" ||
4792          test ! -s conftest.err
4793        } && test -s conftest.$ac_objext; then
4794   ac_cv_header_stdc=yes
4795 else
4796   $as_echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799         ac_cv_header_stdc=no
4800 fi
4801
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803
4804 if test $ac_cv_header_stdc = yes; then
4805   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4806   cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h.  */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h.  */
4812 #include <string.h>
4813
4814 _ACEOF
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816   $EGREP "memchr" >/dev/null 2>&1; then
4817   :
4818 else
4819   ac_cv_header_stdc=no
4820 fi
4821 rm -f conftest*
4822
4823 fi
4824
4825 if test $ac_cv_header_stdc = yes; then
4826   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4827   cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h.  */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h.  */
4833 #include <stdlib.h>
4834
4835 _ACEOF
4836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837   $EGREP "free" >/dev/null 2>&1; then
4838   :
4839 else
4840   ac_cv_header_stdc=no
4841 fi
4842 rm -f conftest*
4843
4844 fi
4845
4846 if test $ac_cv_header_stdc = yes; then
4847   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4848   if test "$cross_compiling" = yes; then
4849   :
4850 else
4851   cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #include <ctype.h>
4858 #include <stdlib.h>
4859 #if ((' ' & 0x0FF) == 0x020)
4860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862 #else
4863 # define ISLOWER(c) \
4864                    (('a' <= (c) && (c) <= 'i') \
4865                      || ('j' <= (c) && (c) <= 'r') \
4866                      || ('s' <= (c) && (c) <= 'z'))
4867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4868 #endif
4869
4870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4871 int
4872 main ()
4873 {
4874   int i;
4875   for (i = 0; i < 256; i++)
4876     if (XOR (islower (i), ISLOWER (i))
4877         || toupper (i) != TOUPPER (i))
4878       return 2;
4879   return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886   *) ac_try_echo=$ac_try;;
4887 esac
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890   (eval "$ac_link") 2>&5
4891   ac_status=$?
4892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4894   { (case "(($ac_try" in
4895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896   *) ac_try_echo=$ac_try;;
4897 esac
4898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4899 $as_echo "$ac_try_echo") >&5
4900   (eval "$ac_try") 2>&5
4901   ac_status=$?
4902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; }; then
4904   :
4905 else
4906   $as_echo "$as_me: program exited with status $ac_status" >&5
4907 $as_echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 ( exit $ac_status )
4911 ac_cv_header_stdc=no
4912 fi
4913 rm -rf conftest.dSYM
4914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4915 fi
4916
4917
4918 fi
4919 fi
4920 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4921 $as_echo "$ac_cv_header_stdc" >&6; }
4922 if test $ac_cv_header_stdc = yes; then
4923
4924 cat >>confdefs.h <<\_ACEOF
4925 #define STDC_HEADERS 1
4926 _ACEOF
4927
4928 fi
4929
4930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4941                   inttypes.h stdint.h unistd.h
4942 do
4943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4945 $as_echo_n "checking for $ac_header... " >&6; }
4946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4947   $as_echo_n "(cached) " >&6
4948 else
4949   cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 $ac_includes_default
4956
4957 #include <$ac_header>
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4961 case "(($ac_try" in
4962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963   *) ac_try_echo=$ac_try;;
4964 esac
4965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4966 $as_echo "$ac_try_echo") >&5
4967   (eval "$ac_compile") 2>conftest.er1
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
4971   cat conftest.err >&5
4972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } && {
4974          test -z "$ac_c_werror_flag" ||
4975          test ! -s conftest.err
4976        } && test -s conftest.$ac_objext; then
4977   eval "$as_ac_Header=yes"
4978 else
4979   $as_echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982         eval "$as_ac_Header=no"
4983 fi
4984
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 fi
4987 ac_res=`eval 'as_val=${'$as_ac_Header'}
4988                  $as_echo "$as_val"'`
4989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4990 $as_echo "$ac_res" >&6; }
4991 as_val=`eval 'as_val=${'$as_ac_Header'}
4992                  $as_echo "$as_val"'`
4993    if test "x$as_val" = x""yes; then
4994   cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4996 _ACEOF
4997
4998 fi
4999
5000 done
5001
5002
5003
5004   if test "${ac_cv_header_minix_config_h+set}" = set; then
5005   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5006 $as_echo_n "checking for minix/config.h... " >&6; }
5007 if test "${ac_cv_header_minix_config_h+set}" = set; then
5008   $as_echo_n "(cached) " >&6
5009 fi
5010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5011 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5012 else
5013   # Is the header compilable?
5014 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5015 $as_echo_n "checking minix/config.h usability... " >&6; }
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 $ac_includes_default
5023 #include <minix/config.h>
5024 _ACEOF
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5027 case "(($ac_try" in
5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029   *) ac_try_echo=$ac_try;;
5030 esac
5031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5032 $as_echo "$ac_try_echo") >&5
5033   (eval "$ac_compile") 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } && {
5040          test -z "$ac_c_werror_flag" ||
5041          test ! -s conftest.err
5042        } && test -s conftest.$ac_objext; then
5043   ac_header_compiler=yes
5044 else
5045   $as_echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048         ac_header_compiler=no
5049 fi
5050
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5053 $as_echo "$ac_header_compiler" >&6; }
5054
5055 # Is the header present?
5056 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5057 $as_echo_n "checking minix/config.h presence... " >&6; }
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 #include <minix/config.h>
5065 _ACEOF
5066 if { (ac_try="$ac_cpp conftest.$ac_ext"
5067 case "(($ac_try" in
5068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069   *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072 $as_echo "$ac_try_echo") >&5
5073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } >/dev/null && {
5080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081          test ! -s conftest.err
5082        }; then
5083   ac_header_preproc=yes
5084 else
5085   $as_echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088   ac_header_preproc=no
5089 fi
5090
5091 rm -f conftest.err conftest.$ac_ext
5092 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5093 $as_echo "$ac_header_preproc" >&6; }
5094
5095 # So?  What about this header?
5096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5097   yes:no: )
5098     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5099 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5100     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5101 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5102     ac_header_preproc=yes
5103     ;;
5104   no:yes:* )
5105     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5106 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5107     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5108 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5109     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5110 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5111     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5112 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5113     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5114 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5115     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5116 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5117
5118     ;;
5119 esac
5120 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5121 $as_echo_n "checking for minix/config.h... " >&6; }
5122 if test "${ac_cv_header_minix_config_h+set}" = set; then
5123   $as_echo_n "(cached) " >&6
5124 else
5125   ac_cv_header_minix_config_h=$ac_header_preproc
5126 fi
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5128 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5129
5130 fi
5131 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5132   MINIX=yes
5133 else
5134   MINIX=
5135 fi
5136
5137
5138   if test "$MINIX" = yes; then
5139
5140 cat >>confdefs.h <<\_ACEOF
5141 #define _POSIX_SOURCE 1
5142 _ACEOF
5143
5144
5145 cat >>confdefs.h <<\_ACEOF
5146 #define _POSIX_1_SOURCE 2
5147 _ACEOF
5148
5149
5150 cat >>confdefs.h <<\_ACEOF
5151 #define _MINIX 1
5152 _ACEOF
5153
5154   fi
5155
5156
5157
5158   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5159 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5160 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5161   $as_echo_n "(cached) " >&6
5162 else
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169
5170 #         define __EXTENSIONS__ 1
5171           $ac_includes_default
5172 int
5173 main ()
5174 {
5175
5176   ;
5177   return 0;
5178 }
5179 _ACEOF
5180 rm -f conftest.$ac_objext
5181 if { (ac_try="$ac_compile"
5182 case "(($ac_try" in
5183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184   *) ac_try_echo=$ac_try;;
5185 esac
5186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5187 $as_echo "$ac_try_echo") >&5
5188   (eval "$ac_compile") 2>conftest.er1
5189   ac_status=$?
5190   grep -v '^ *+' conftest.er1 >conftest.err
5191   rm -f conftest.er1
5192   cat conftest.err >&5
5193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } && {
5195          test -z "$ac_c_werror_flag" ||
5196          test ! -s conftest.err
5197        } && test -s conftest.$ac_objext; then
5198   ac_cv_safe_to_define___extensions__=yes
5199 else
5200   $as_echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203         ac_cv_safe_to_define___extensions__=no
5204 fi
5205
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 fi
5208 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5209 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5210   test $ac_cv_safe_to_define___extensions__ = yes &&
5211     cat >>confdefs.h <<\_ACEOF
5212 #define __EXTENSIONS__ 1
5213 _ACEOF
5214
5215   cat >>confdefs.h <<\_ACEOF
5216 #define _ALL_SOURCE 1
5217 _ACEOF
5218
5219   cat >>confdefs.h <<\_ACEOF
5220 #define _GNU_SOURCE 1
5221 _ACEOF
5222
5223   cat >>confdefs.h <<\_ACEOF
5224 #define _POSIX_PTHREAD_SEMANTICS 1
5225 _ACEOF
5226
5227   cat >>confdefs.h <<\_ACEOF
5228 #define _TANDEM_SOURCE 1
5229 _ACEOF
5230
5231
5232 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
5233 $as_echo_n "checking for library containing strerror... " >&6; }
5234 if test "${ac_cv_search_strerror+set}" = set; then
5235   $as_echo_n "(cached) " >&6
5236 else
5237   ac_func_search_save_LIBS=$LIBS
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244
5245 /* Override any GCC internal prototype to avoid an error.
5246    Use char because int might match the return type of a GCC
5247    builtin and then its argument prototype would still apply.  */
5248 #ifdef __cplusplus
5249 extern "C"
5250 #endif
5251 char strerror ();
5252 int
5253 main ()
5254 {
5255 return strerror ();
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 for ac_lib in '' cposix; do
5261   if test -z "$ac_lib"; then
5262     ac_res="none required"
5263   else
5264     ac_res=-l$ac_lib
5265     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5266   fi
5267   rm -f conftest.$ac_objext conftest$ac_exeext
5268 if { (ac_try="$ac_link"
5269 case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5274 $as_echo "$ac_try_echo") >&5
5275   (eval "$ac_link") 2>conftest.er1
5276   ac_status=$?
5277   grep -v '^ *+' conftest.er1 >conftest.err
5278   rm -f conftest.er1
5279   cat conftest.err >&5
5280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } && {
5282          test -z "$ac_c_werror_flag" ||
5283          test ! -s conftest.err
5284        } && test -s conftest$ac_exeext && {
5285          test "$cross_compiling" = yes ||
5286          $as_test_x conftest$ac_exeext
5287        }; then
5288   ac_cv_search_strerror=$ac_res
5289 else
5290   $as_echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293
5294 fi
5295
5296 rm -rf conftest.dSYM
5297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5298       conftest$ac_exeext
5299   if test "${ac_cv_search_strerror+set}" = set; then
5300   break
5301 fi
5302 done
5303 if test "${ac_cv_search_strerror+set}" = set; then
5304   :
5305 else
5306   ac_cv_search_strerror=no
5307 fi
5308 rm conftest.$ac_ext
5309 LIBS=$ac_func_search_save_LIBS
5310 fi
5311 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5312 $as_echo "$ac_cv_search_strerror" >&6; }
5313 ac_res=$ac_cv_search_strerror
5314 if test "$ac_res" != no; then
5315   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5316
5317 fi
5318
5319
5320
5321 ac_ext=cpp
5322 ac_cpp='$CXXCPP $CPPFLAGS'
5323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5326 if test -z "$CXX"; then
5327   if test -n "$CCC"; then
5328     CXX=$CCC
5329   else
5330     if test -n "$ac_tool_prefix"; then
5331   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5332   do
5333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_CXX+set}" = set; then
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if test -n "$CXX"; then
5341   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5351     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 CXX=$ac_cv_prog_CXX
5361 if test -n "$CXX"; then
5362   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5363 $as_echo "$CXX" >&6; }
5364 else
5365   { $as_echo "$as_me:$LINENO: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370     test -n "$CXX" && break
5371   done
5372 fi
5373 if test -z "$CXX"; then
5374   ac_ct_CXX=$CXX
5375   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5376 do
5377   # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5382   $as_echo_n "(cached) " >&6
5383 else
5384   if test -n "$ac_ct_CXX"; then
5385   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392   for ac_exec_ext in '' $ac_executable_extensions; do
5393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394     ac_cv_prog_ac_ct_CXX="$ac_prog"
5395     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399 done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5405 if test -n "$ac_ct_CXX"; then
5406   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5407 $as_echo "$ac_ct_CXX" >&6; }
5408 else
5409   { $as_echo "$as_me:$LINENO: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414   test -n "$ac_ct_CXX" && break
5415 done
5416
5417   if test "x$ac_ct_CXX" = x; then
5418     CXX="g++"
5419   else
5420     case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426     CXX=$ac_ct_CXX
5427   fi
5428 fi
5429
5430   fi
5431 fi
5432 # Provide some information about the compiler.
5433 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5434 set X $ac_compile
5435 ac_compiler=$2
5436 { (ac_try="$ac_compiler --version >&5"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5442 $as_echo "$ac_try_echo") >&5
5443   (eval "$ac_compiler --version >&5") 2>&5
5444   ac_status=$?
5445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }
5447 { (ac_try="$ac_compiler -v >&5"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454   (eval "$ac_compiler -v >&5") 2>&5
5455   ac_status=$?
5456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }
5458 { (ac_try="$ac_compiler -V >&5"
5459 case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5464 $as_echo "$ac_try_echo") >&5
5465   (eval "$ac_compiler -V >&5") 2>&5
5466   ac_status=$?
5467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }
5469
5470 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5471 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5472 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5473   $as_echo_n "(cached) " >&6
5474 else
5475   cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481
5482 int
5483 main ()
5484 {
5485 #ifndef __GNUC__
5486        choke me
5487 #endif
5488
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5495 case "(($ac_try" in
5496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497   *) ac_try_echo=$ac_try;;
5498 esac
5499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5500 $as_echo "$ac_try_echo") >&5
5501   (eval "$ac_compile") 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } && {
5508          test -z "$ac_cxx_werror_flag" ||
5509          test ! -s conftest.err
5510        } && test -s conftest.$ac_objext; then
5511   ac_compiler_gnu=yes
5512 else
5513   $as_echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516         ac_compiler_gnu=no
5517 fi
5518
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5521
5522 fi
5523 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5524 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5525 if test $ac_compiler_gnu = yes; then
5526   GXX=yes
5527 else
5528   GXX=
5529 fi
5530 ac_test_CXXFLAGS=${CXXFLAGS+set}
5531 ac_save_CXXFLAGS=$CXXFLAGS
5532 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5533 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5534 if test "${ac_cv_prog_cxx_g+set}" = set; then
5535   $as_echo_n "(cached) " >&6
5536 else
5537   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5538    ac_cxx_werror_flag=yes
5539    ac_cv_prog_cxx_g=no
5540    CXXFLAGS="-g"
5541    cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h.  */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h.  */
5547
5548 int
5549 main ()
5550 {
5551
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5558 case "(($ac_try" in
5559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560   *) ac_try_echo=$ac_try;;
5561 esac
5562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5563 $as_echo "$ac_try_echo") >&5
5564   (eval "$ac_compile") 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && {
5571          test -z "$ac_cxx_werror_flag" ||
5572          test ! -s conftest.err
5573        } && test -s conftest.$ac_objext; then
5574   ac_cv_prog_cxx_g=yes
5575 else
5576   $as_echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579         CXXFLAGS=""
5580       cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586
5587 int
5588 main ()
5589 {
5590
5591   ;
5592   return 0;
5593 }
5594 _ACEOF
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5597 case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602 $as_echo "$ac_try_echo") >&5
5603   (eval "$ac_compile") 2>conftest.er1
5604   ac_status=$?
5605   grep -v '^ *+' conftest.er1 >conftest.err
5606   rm -f conftest.er1
5607   cat conftest.err >&5
5608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } && {
5610          test -z "$ac_cxx_werror_flag" ||
5611          test ! -s conftest.err
5612        } && test -s conftest.$ac_objext; then
5613   :
5614 else
5615   $as_echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5619          CXXFLAGS="-g"
5620          cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626
5627 int
5628 main ()
5629 {
5630
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (ac_try="$ac_compile"
5637 case "(($ac_try" in
5638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639   *) ac_try_echo=$ac_try;;
5640 esac
5641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5642 $as_echo "$ac_try_echo") >&5
5643   (eval "$ac_compile") 2>conftest.er1
5644   ac_status=$?
5645   grep -v '^ *+' conftest.er1 >conftest.err
5646   rm -f conftest.er1
5647   cat conftest.err >&5
5648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); } && {
5650          test -z "$ac_cxx_werror_flag" ||
5651          test ! -s conftest.err
5652        } && test -s conftest.$ac_objext; then
5653   ac_cv_prog_cxx_g=yes
5654 else
5655   $as_echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658
5659 fi
5660
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 fi
5663
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 fi
5666
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5669 fi
5670 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5671 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5672 if test "$ac_test_CXXFLAGS" = set; then
5673   CXXFLAGS=$ac_save_CXXFLAGS
5674 elif test $ac_cv_prog_cxx_g = yes; then
5675   if test "$GXX" = yes; then
5676     CXXFLAGS="-g -O2"
5677   else
5678     CXXFLAGS="-g"
5679   fi
5680 else
5681   if test "$GXX" = yes; then
5682     CXXFLAGS="-O2"
5683   else
5684     CXXFLAGS=
5685   fi
5686 fi
5687 ac_ext=c
5688 ac_cpp='$CPP $CPPFLAGS'
5689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692
5693 depcc="$CXX"  am_compiler_list=
5694
5695 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5696 $as_echo_n "checking dependency style of $depcc... " >&6; }
5697 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5698   $as_echo_n "(cached) " >&6
5699 else
5700   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5701   # We make a subdir and do the tests there.  Otherwise we can end up
5702   # making bogus files that we don't know about and never remove.  For
5703   # instance it was reported that on HP-UX the gcc test will end up
5704   # making a dummy file named `D' -- because `-MD' means `put the output
5705   # in D'.
5706   mkdir conftest.dir
5707   # Copy depcomp to subdir because otherwise we won't find it if we're
5708   # using a relative directory.
5709   cp "$am_depcomp" conftest.dir
5710   cd conftest.dir
5711   # We will build objects and dependencies in a subdirectory because
5712   # it helps to detect inapplicable dependency modes.  For instance
5713   # both Tru64's cc and ICC support -MD to output dependencies as a
5714   # side effect of compilation, but ICC will put the dependencies in
5715   # the current directory while Tru64 will put them in the object
5716   # directory.
5717   mkdir sub
5718
5719   am_cv_CXX_dependencies_compiler_type=none
5720   if test "$am_compiler_list" = ""; then
5721      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5722   fi
5723   for depmode in $am_compiler_list; do
5724     # Setup a source with many dependencies, because some compilers
5725     # like to wrap large dependency lists on column 80 (with \), and
5726     # we should not choose a depcomp mode which is confused by this.
5727     #
5728     # We need to recreate these files for each test, as the compiler may
5729     # overwrite some of them when testing with obscure command lines.
5730     # This happens at least with the AIX C compiler.
5731     : > sub/conftest.c
5732     for i in 1 2 3 4 5 6; do
5733       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5734       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5735       # Solaris 8's {/usr,}/bin/sh.
5736       touch sub/conftst$i.h
5737     done
5738     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5739
5740     case $depmode in
5741     nosideeffect)
5742       # after this tag, mechanisms are not by side-effect, so they'll
5743       # only be used when explicitly requested
5744       if test "x$enable_dependency_tracking" = xyes; then
5745         continue
5746       else
5747         break
5748       fi
5749       ;;
5750     none) break ;;
5751     esac
5752     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5753     # mode.  It turns out that the SunPro C++ compiler does not properly
5754     # handle `-M -o', and we need to detect this.
5755     if depmode=$depmode \
5756        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5757        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5758        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5759          >/dev/null 2>conftest.err &&
5760        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5761        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5762        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5763        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5764       # icc doesn't choke on unknown options, it will just issue warnings
5765       # or remarks (even with -Werror).  So we grep stderr for any message
5766       # that says an option was ignored or not supported.
5767       # When given -MP, icc 7.0 and 7.1 complain thusly:
5768       #   icc: Command line warning: ignoring option '-M'; no argument required
5769       # The diagnosis changed in icc 8.0:
5770       #   icc: Command line remark: option '-MP' not supported
5771       if (grep 'ignoring option' conftest.err ||
5772           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5773         am_cv_CXX_dependencies_compiler_type=$depmode
5774         break
5775       fi
5776     fi
5777   done
5778
5779   cd ..
5780   rm -rf conftest.dir
5781 else
5782   am_cv_CXX_dependencies_compiler_type=none
5783 fi
5784
5785 fi
5786 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5787 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5788 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5789
5790  if
5791   test "x$enable_dependency_tracking" != xno \
5792   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5793   am__fastdepCXX_TRUE=
5794   am__fastdepCXX_FALSE='#'
5795 else
5796   am__fastdepCXX_TRUE='#'
5797   am__fastdepCXX_FALSE=
5798 fi
5799
5800
5801 ac_ext=cpp
5802 ac_cpp='$CXXCPP $CPPFLAGS'
5803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5806 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5807 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5808 if test -z "$CXXCPP"; then
5809   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5810   $as_echo_n "(cached) " >&6
5811 else
5812       # Double quotes because CXXCPP needs to be expanded
5813     for CXXCPP in "$CXX -E" "/lib/cpp"
5814     do
5815       ac_preproc_ok=false
5816 for ac_cxx_preproc_warn_flag in '' yes
5817 do
5818   # Use a header file that comes with gcc, so configuring glibc
5819   # with a fresh cross-compiler works.
5820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821   # <limits.h> exists even on freestanding compilers.
5822   # On the NeXT, cc -E runs the code through the compiler's parser,
5823   # not just through cpp. "Syntax error" is here to catch this case.
5824   cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h.  */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h.  */
5830 #ifdef __STDC__
5831 # include <limits.h>
5832 #else
5833 # include <assert.h>
5834 #endif
5835                      Syntax error
5836 _ACEOF
5837 if { (ac_try="$ac_cpp conftest.$ac_ext"
5838 case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5843 $as_echo "$ac_try_echo") >&5
5844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845   ac_status=$?
5846   grep -v '^ *+' conftest.er1 >conftest.err
5847   rm -f conftest.er1
5848   cat conftest.err >&5
5849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } >/dev/null && {
5851          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5852          test ! -s conftest.err
5853        }; then
5854   :
5855 else
5856   $as_echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859   # Broken: fails on valid input.
5860 continue
5861 fi
5862
5863 rm -f conftest.err conftest.$ac_ext
5864
5865   # OK, works on sane cases.  Now check whether nonexistent headers
5866   # can be detected and how.
5867   cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873 #include <ac_nonexistent.h>
5874 _ACEOF
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5876 case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5881 $as_echo "$ac_try_echo") >&5
5882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5883   ac_status=$?
5884   grep -v '^ *+' conftest.er1 >conftest.err
5885   rm -f conftest.er1
5886   cat conftest.err >&5
5887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } >/dev/null && {
5889          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5890          test ! -s conftest.err
5891        }; then
5892   # Broken: success on invalid input.
5893 continue
5894 else
5895   $as_echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898   # Passes both tests.
5899 ac_preproc_ok=:
5900 break
5901 fi
5902
5903 rm -f conftest.err conftest.$ac_ext
5904
5905 done
5906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5907 rm -f conftest.err conftest.$ac_ext
5908 if $ac_preproc_ok; then
5909   break
5910 fi
5911
5912     done
5913     ac_cv_prog_CXXCPP=$CXXCPP
5914
5915 fi
5916   CXXCPP=$ac_cv_prog_CXXCPP
5917 else
5918   ac_cv_prog_CXXCPP=$CXXCPP
5919 fi
5920 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5921 $as_echo "$CXXCPP" >&6; }
5922 ac_preproc_ok=false
5923 for ac_cxx_preproc_warn_flag in '' yes
5924 do
5925   # Use a header file that comes with gcc, so configuring glibc
5926   # with a fresh cross-compiler works.
5927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5928   # <limits.h> exists even on freestanding compilers.
5929   # On the NeXT, cc -E runs the code through the compiler's parser,
5930   # not just through cpp. "Syntax error" is here to catch this case.
5931   cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937 #ifdef __STDC__
5938 # include <limits.h>
5939 #else
5940 # include <assert.h>
5941 #endif
5942                      Syntax error
5943 _ACEOF
5944 if { (ac_try="$ac_cpp conftest.$ac_ext"
5945 case "(($ac_try" in
5946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947   *) ac_try_echo=$ac_try;;
5948 esac
5949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5950 $as_echo "$ac_try_echo") >&5
5951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5952   ac_status=$?
5953   grep -v '^ *+' conftest.er1 >conftest.err
5954   rm -f conftest.er1
5955   cat conftest.err >&5
5956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } >/dev/null && {
5958          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959          test ! -s conftest.err
5960        }; then
5961   :
5962 else
5963   $as_echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966   # Broken: fails on valid input.
5967 continue
5968 fi
5969
5970 rm -f conftest.err conftest.$ac_ext
5971
5972   # OK, works on sane cases.  Now check whether nonexistent headers
5973   # can be detected and how.
5974   cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 #include <ac_nonexistent.h>
5981 _ACEOF
5982 if { (ac_try="$ac_cpp conftest.$ac_ext"
5983 case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5988 $as_echo "$ac_try_echo") >&5
5989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } >/dev/null && {
5996          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5997          test ! -s conftest.err
5998        }; then
5999   # Broken: success on invalid input.
6000 continue
6001 else
6002   $as_echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005   # Passes both tests.
6006 ac_preproc_ok=:
6007 break
6008 fi
6009
6010 rm -f conftest.err conftest.$ac_ext
6011
6012 done
6013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014 rm -f conftest.err conftest.$ac_ext
6015 if $ac_preproc_ok; then
6016   :
6017 else
6018   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6020 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6021 See \`config.log' for more details." >&5
6022 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6023 See \`config.log' for more details." >&2;}
6024    { (exit 1); exit 1; }; }; }
6025 fi
6026
6027 ac_ext=c
6028 ac_cpp='$CPP $CPPFLAGS'
6029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032
6033
6034
6035
6036
6037
6038
6039   ac_ext=cpp
6040 ac_cpp='$CXXCPP $CPPFLAGS'
6041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6044
6045
6046
6047     { $as_echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
6048 $as_echo_n "checking whether C++ has std::isnan... " >&6; }
6049   cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055 #include <cmath>
6056 int
6057 main ()
6058 {
6059
6060    std::isnan(0);
6061
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (ac_try="$ac_compile"
6068 case "(($ac_try" in
6069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070   *) ac_try_echo=$ac_try;;
6071 esac
6072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6073 $as_echo "$ac_try_echo") >&5
6074   (eval "$ac_compile") 2>conftest.er1
6075   ac_status=$?
6076   grep -v '^ *+' conftest.er1 >conftest.err
6077   rm -f conftest.er1
6078   cat conftest.err >&5
6079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } && {
6081          test -z "$ac_cxx_werror_flag" ||
6082          test ! -s conftest.err
6083        } && test -s conftest.$ac_objext; then
6084    { $as_echo "$as_me:$LINENO: result: yes" >&5
6085 $as_echo "yes" >&6; }
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define CXX_HAS_STD_ISNAN /**/
6089 _ACEOF
6090
6091 else
6092   $as_echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095          { $as_echo "$as_me:$LINENO: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100
6101       ac_ext=c
6102 ac_cpp='$CPP $CPPFLAGS'
6103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6106
6107
6108
6109
6110
6111
6112
6113   { $as_echo "$as_me:$LINENO: checking gr_libdir_suffix" >&5
6114 $as_echo_n "checking gr_libdir_suffix... " >&6; }
6115   gr_libdir_suffix=""
6116
6117
6118   case "$host_os" in
6119     linux*) is_linux=yes ;;
6120     *)      is_linux=no  ;;
6121   esac
6122
6123   if test "$is_linux" = no || test "$host_cpu" != "x86_64" && test "$host_cpu" != "powerpc64"; then
6124     gr_libdir_suffix=""
6125   elif test "$cross_compiling" = yes; then
6126
6127   if test "$ac_cv_cxx_compiler_gnu" = "yes";
6128   then
6129     gr_libdir_suffix=`$CXX -Wl,--verbose 2>/dev/null | sed -n -e '/SEARCH_DIR/{s/;.*$//; s,^.*/,,; s/".*$//; s/^lib//; p}'`
6130   fi
6131
6132   elif test "$host_cpu" = "x86_64"; then
6133     if test -d /lib64 && test ! -L /lib64; then
6134       gr_libdir_suffix=64
6135     fi
6136   else
6137
6138   if test "$ac_cv_cxx_compiler_gnu" = "yes";
6139   then
6140     gr_libdir_suffix=`$CXX -Wl,--verbose 2>/dev/null | sed -n -e '/SEARCH_DIR/{s/;.*$//; s,^.*/,,; s/".*$//; s/^lib//; p}'`
6141   fi
6142
6143   fi
6144   { $as_echo "$as_me:$LINENO: result: $gr_libdir_suffix" >&5
6145 $as_echo "$gr_libdir_suffix" >&6; }
6146
6147
6148   { $as_echo "$as_me:$LINENO: checking whether to append 64 to libdir" >&5
6149 $as_echo_n "checking whether to append 64 to libdir... " >&6; }
6150   t=${libdir##*/lib}
6151   if test "$t" != 64 && test "$gr_libdir_suffix" = "64"; then
6152     libdir=${libdir}64
6153     { $as_echo "$as_me:$LINENO: result: yes. Setting libdir to $libdir" >&5
6154 $as_echo "yes. Setting libdir to $libdir" >&6; }
6155   else
6156     { $as_echo "$as_me:$LINENO: result: no" >&5
6157 $as_echo "no" >&6; }
6158   fi
6159
6160
6161 if test "$user_set_cflags" != yes; then
6162   autoconf_default_CFLAGS="$CFLAGS"
6163   CFLAGS=""
6164 fi
6165
6166
6167
6168 if test "$user_set_cxxflags" != yes; then
6169   autoconf_default_CXXFLAGS="$CXXFLAGS"
6170   CXXFLAGS=""
6171   if test "$GXX" = yes; then
6172     case "$host_cpu" in
6173         powerpc*)
6174                            swig_CXXFLAGS="-g1 -O2 -Wno-strict-aliasing -Wno-parentheses"
6175         ;;
6176         *)
6177         swig_CXXFLAGS="-g -O1 -Wno-strict-aliasing -Wno-parentheses"
6178         ;;
6179     esac
6180   fi
6181 fi
6182
6183
6184
6185 if test x${PKG_CONFIG_PATH} = x; then
6186     PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig
6187 else
6188     PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig:${PKG_CONFIG_PATH}
6189 fi
6190 export PKG_CONFIG_PATH
6191
6192
6193       cc_warning_flags="-Wall -Werror-implicit-function-declaration"
6194   cxx_warning_flags="-Wall -Woverloaded-virtual"
6195   if test -n "${CC}"
6196   then
6197
6198   echo 'void f(){}' > conftest.c
6199   for i in $cc_warning_flags
6200   do
6201     { $as_echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6202 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6203     if test -z "`${CC} $i -c conftest.c 2>&1`"
6204     then
6205       lf_CFLAGS="${lf_CFLAGS} $i"
6206       { $as_echo "$as_me:$LINENO: result: yes" >&5
6207 $as_echo "yes" >&6; }
6208     else
6209       { $as_echo "$as_me:$LINENO: result: no" >&5
6210 $as_echo "no" >&6; }
6211     fi
6212   done
6213   rm -f conftest.c conftest.o
6214
6215
6216   fi
6217   if test -n "${CXX}"
6218   then
6219
6220   echo 'void f(){}' > conftest.cc
6221   for i in $cxx_warning_flags
6222   do
6223     { $as_echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6224 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6225     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6226     then
6227       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6228       { $as_echo "$as_me:$LINENO: result: yes" >&5
6229 $as_echo "yes" >&6; }
6230     else
6231       { $as_echo "$as_me:$LINENO: result: no" >&5
6232 $as_echo "no" >&6; }
6233     fi
6234   done
6235   rm -f conftest.cc conftest.o
6236
6237
6238   fi
6239
6240
6241     { $as_echo "$as_me:$LINENO: checking whether user wants gprof" >&5
6242 $as_echo_n "checking whether user wants gprof... " >&6; }
6243
6244 # Check whether --with-gprof was given.
6245 if test "${with_gprof+set}" = set; then
6246   withval=$with_gprof;
6247 else
6248    with_gprof=no
6249 fi
6250
6251   { $as_echo "$as_me:$LINENO: result: $with_gprof" >&5
6252 $as_echo "$with_gprof" >&6; }
6253
6254     cc_profiling_flags="-pg"
6255   cxx_profiling_flags="-pg"
6256   ld_profiling_flags="-pg"
6257   if test $with_gprof = yes
6258   then
6259     if test -n "${CC}"
6260     then
6261
6262   echo 'void f(){}' > conftest.c
6263   for i in $cc_profiling_flags
6264   do
6265     { $as_echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6266 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6267     if test -z "`${CC} $i -c conftest.c 2>&1`"
6268     then
6269       lf_CFLAGS="${lf_CFLAGS} $i"
6270       { $as_echo "$as_me:$LINENO: result: yes" >&5
6271 $as_echo "yes" >&6; }
6272     else
6273       { $as_echo "$as_me:$LINENO: result: no" >&5
6274 $as_echo "no" >&6; }
6275     fi
6276   done
6277   rm -f conftest.c conftest.o
6278
6279
6280     fi
6281     if test -n "${CXX}"
6282     then
6283
6284   echo 'void f(){}' > conftest.cc
6285   for i in $cxx_profiling_flags
6286   do
6287     { $as_echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6288 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6289     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6290     then
6291       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6292       { $as_echo "$as_me:$LINENO: result: yes" >&5
6293 $as_echo "yes" >&6; }
6294     else
6295       { $as_echo "$as_me:$LINENO: result: no" >&5
6296 $as_echo "no" >&6; }
6297     fi
6298   done
6299   rm -f conftest.cc conftest.o
6300
6301
6302     fi
6303   fi
6304
6305
6306     { $as_echo "$as_me:$LINENO: checking whether user wants prof" >&5
6307 $as_echo_n "checking whether user wants prof... " >&6; }
6308
6309 # Check whether --with-prof was given.
6310 if test "${with_prof+set}" = set; then
6311   withval=$with_prof;
6312 else
6313    with_prof=no
6314 fi
6315
6316   { $as_echo "$as_me:$LINENO: result: $with_prof" >&5
6317 $as_echo "$with_prof" >&6; }
6318
6319     cc_profiling_flags="-p"
6320   cxx_profiling_flags="-p"
6321   ld_profiling_flags="-p"
6322   if test $with_prof = yes
6323   then
6324     if test -n "${CC}"
6325     then
6326
6327   echo 'void f(){}' > conftest.c
6328   for i in $cc_profiling_flags
6329   do
6330     { $as_echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6331 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6332     if test -z "`${CC} $i -c conftest.c 2>&1`"
6333     then
6334       lf_CFLAGS="${lf_CFLAGS} $i"
6335       { $as_echo "$as_me:$LINENO: result: yes" >&5
6336 $as_echo "yes" >&6; }
6337     else
6338       { $as_echo "$as_me:$LINENO: result: no" >&5
6339 $as_echo "no" >&6; }
6340     fi
6341   done
6342   rm -f conftest.c conftest.o
6343
6344
6345     fi
6346     if test -n "${CXX}"
6347     then
6348
6349   echo 'void f(){}' > conftest.cc
6350   for i in $cxx_profiling_flags
6351   do
6352     { $as_echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6353 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6354     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6355     then
6356       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6357       { $as_echo "$as_me:$LINENO: result: yes" >&5
6358 $as_echo "yes" >&6; }
6359     else
6360       { $as_echo "$as_me:$LINENO: result: no" >&5
6361 $as_echo "no" >&6; }
6362     fi
6363   done
6364   rm -f conftest.cc conftest.o
6365
6366
6367     fi
6368   fi
6369
6370 # By default we simply use the C compiler to build assembly code.
6371
6372 test "${CCAS+set}" = set || CCAS=$CC
6373 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6374
6375
6376
6377 depcc="$CCAS"   am_compiler_list=
6378
6379 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6380 $as_echo_n "checking dependency style of $depcc... " >&6; }
6381 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
6382   $as_echo_n "(cached) " >&6
6383 else
6384   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6385   # We make a subdir and do the tests there.  Otherwise we can end up
6386   # making bogus files that we don't know about and never remove.  For
6387   # instance it was reported that on HP-UX the gcc test will end up
6388   # making a dummy file named `D' -- because `-MD' means `put the output
6389   # in D'.
6390   mkdir conftest.dir
6391   # Copy depcomp to subdir because otherwise we won't find it if we're
6392   # using a relative directory.
6393   cp "$am_depcomp" conftest.dir
6394   cd conftest.dir
6395   # We will build objects and dependencies in a subdirectory because
6396   # it helps to detect inapplicable dependency modes.  For instance
6397   # both Tru64's cc and ICC support -MD to output dependencies as a
6398   # side effect of compilation, but ICC will put the dependencies in
6399   # the current directory while Tru64 will put them in the object
6400   # directory.
6401   mkdir sub
6402
6403   am_cv_CCAS_dependencies_compiler_type=none
6404   if test "$am_compiler_list" = ""; then
6405      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6406   fi
6407   for depmode in $am_compiler_list; do
6408     # Setup a source with many dependencies, because some compilers
6409     # like to wrap large dependency lists on column 80 (with \), and
6410     # we should not choose a depcomp mode which is confused by this.
6411     #
6412     # We need to recreate these files for each test, as the compiler may
6413     # overwrite some of them when testing with obscure command lines.
6414     # This happens at least with the AIX C compiler.
6415     : > sub/conftest.c
6416     for i in 1 2 3 4 5 6; do
6417       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6418       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6419       # Solaris 8's {/usr,}/bin/sh.
6420       touch sub/conftst$i.h
6421     done
6422     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6423
6424     case $depmode in
6425     nosideeffect)
6426       # after this tag, mechanisms are not by side-effect, so they'll
6427       # only be used when explicitly requested
6428       if test "x$enable_dependency_tracking" = xyes; then
6429         continue
6430       else
6431         break
6432       fi
6433       ;;
6434     none) break ;;
6435     esac
6436     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6437     # mode.  It turns out that the SunPro C++ compiler does not properly
6438     # handle `-M -o', and we need to detect this.
6439     if depmode=$depmode \
6440        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6441        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6442        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6443          >/dev/null 2>conftest.err &&
6444        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6445        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6446        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6447        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6448       # icc doesn't choke on unknown options, it will just issue warnings
6449       # or remarks (even with -Werror).  So we grep stderr for any message
6450       # that says an option was ignored or not supported.
6451       # When given -MP, icc 7.0 and 7.1 complain thusly:
6452       #   icc: Command line warning: ignoring option '-M'; no argument required
6453       # The diagnosis changed in icc 8.0:
6454       #   icc: Command line remark: option '-MP' not supported
6455       if (grep 'ignoring option' conftest.err ||
6456           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6457         am_cv_CCAS_dependencies_compiler_type=$depmode
6458         break
6459       fi
6460     fi
6461   done
6462
6463   cd ..
6464   rm -rf conftest.dir
6465 else
6466   am_cv_CCAS_dependencies_compiler_type=none
6467 fi
6468
6469 fi
6470 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6471 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6472 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6473
6474  if
6475   test "x$enable_dependency_tracking" != xno \
6476   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6477   am__fastdepCCAS_TRUE=
6478   am__fastdepCCAS_FALSE='#'
6479 else
6480   am__fastdepCCAS_TRUE='#'
6481   am__fastdepCCAS_FALSE=
6482 fi
6483
6484
6485 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6486 $as_echo_n "checking whether ln -s works... " >&6; }
6487 LN_S=$as_ln_s
6488 if test "$LN_S" = "ln -s"; then
6489   { $as_echo "$as_me:$LINENO: result: yes" >&5
6490 $as_echo "yes" >&6; }
6491 else
6492   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6493 $as_echo "no, using $LN_S" >&6; }
6494 fi
6495
6496 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6497 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6498 set x ${MAKE-make}
6499 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6501   $as_echo_n "(cached) " >&6
6502 else
6503   cat >conftest.make <<\_ACEOF
6504 SHELL = /bin/sh
6505 all:
6506         @echo '@@@%%%=$(MAKE)=@@@%%%'
6507 _ACEOF
6508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6510   *@@@%%%=?*=@@@%%%*)
6511     eval ac_cv_prog_make_${ac_make}_set=yes;;
6512   *)
6513     eval ac_cv_prog_make_${ac_make}_set=no;;
6514 esac
6515 rm -f conftest.make
6516 fi
6517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6518   { $as_echo "$as_me:$LINENO: result: yes" >&5
6519 $as_echo "yes" >&6; }
6520   SET_MAKE=
6521 else
6522   { $as_echo "$as_me:$LINENO: result: no" >&5
6523 $as_echo "no" >&6; }
6524   SET_MAKE="MAKE=${MAKE-make}"
6525 fi
6526
6527 # Find a good install program.  We prefer a C program (faster),
6528 # so one script is as good as another.  But avoid the broken or
6529 # incompatible versions:
6530 # SysV /etc/install, /usr/sbin/install
6531 # SunOS /usr/etc/install
6532 # IRIX /sbin/install
6533 # AIX /bin/install
6534 # AmigaOS /C/install, which installs bootblocks on floppy discs
6535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6538 # OS/2's system install, which has a completely different semantic
6539 # ./install, which can be erroneously created by make from ./install.sh.
6540 # Reject install programs that cannot install multiple files.
6541 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6543 if test -z "$INSTALL"; then
6544 if test "${ac_cv_path_install+set}" = set; then
6545   $as_echo_n "(cached) " >&6
6546 else
6547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552   # Account for people who put trailing slashes in PATH elements.
6553 case $as_dir/ in
6554   ./ | .// | /cC/* | \
6555   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6556   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6557   /usr/ucb/* ) ;;
6558   *)
6559     # OSF1 and SCO ODT 3.0 have their own names for install.
6560     # Don't use installbsd from OSF since it installs stuff as root
6561     # by default.
6562     for ac_prog in ginstall scoinst install; do
6563       for ac_exec_ext in '' $ac_executable_extensions; do
6564         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6565           if test $ac_prog = install &&
6566             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6567             # AIX install.  It has an incompatible calling convention.
6568             :
6569           elif test $ac_prog = install &&
6570             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6571             # program-specific install script used by HP pwplus--don't use.
6572             :
6573           else
6574             rm -rf conftest.one conftest.two conftest.dir
6575             echo one > conftest.one
6576             echo two > conftest.two
6577             mkdir conftest.dir
6578             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6579               test -s conftest.one && test -s conftest.two &&
6580               test -s conftest.dir/conftest.one &&
6581               test -s conftest.dir/conftest.two
6582             then
6583               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6584               break 3
6585             fi
6586           fi
6587         fi
6588       done
6589     done
6590     ;;
6591 esac
6592
6593 done
6594 IFS=$as_save_IFS
6595
6596 rm -rf conftest.one conftest.two conftest.dir
6597
6598 fi
6599   if test "${ac_cv_path_install+set}" = set; then
6600     INSTALL=$ac_cv_path_install
6601   else
6602     # As a last resort, use the slow shell script.  Don't cache a
6603     # value for INSTALL within a source directory, because that will
6604     # break other packages using the cache if that directory is
6605     # removed, or if the value is a relative name.
6606     INSTALL=$ac_install_sh
6607   fi
6608 fi
6609 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6610 $as_echo "$INSTALL" >&6; }
6611
6612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613 # It thinks the first close brace ends the variable substitution.
6614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6615
6616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6617
6618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6619
6620
6621 # AC_PROG_MKDIR_P
6622 # is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
6623 # Remove this macro when we can assume autoconf >= 2.60.
6624
6625 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6627 if test -z "$MKDIR_P"; then
6628   if test "${ac_cv_path_mkdir+set}" = set; then
6629   $as_echo_n "(cached) " >&6
6630 else
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_prog in mkdir gmkdir; do
6637          for ac_exec_ext in '' $ac_executable_extensions; do
6638            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6639            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6640              'mkdir (GNU coreutils) '* | \
6641              'mkdir (coreutils) '* | \
6642              'mkdir (fileutils) '4.1*)
6643                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6644                break 3;;
6645            esac
6646          done
6647        done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652
6653   if test "${ac_cv_path_mkdir+set}" = set; then
6654     MKDIR_P="$ac_cv_path_mkdir -p"
6655   else
6656     # As a last resort, use the slow shell script.  Don't cache a
6657     # value for MKDIR_P within a source directory, because that will
6658     # break other packages using the cache if that directory is
6659     # removed, or if the value is a relative name.
6660     test -d ./--version && rmdir ./--version
6661     MKDIR_P="$ac_install_sh -d"
6662   fi
6663 fi
6664 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6665 $as_echo "$MKDIR_P" >&6; }
6666
6667
6668 # Extract the first word of "rm", so it can be a program name with args.
6669 set dummy rm; ac_word=$2
6670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if test "${ac_cv_path_RM_PROG+set}" = set; then
6673   $as_echo_n "(cached) " >&6
6674 else
6675   case $RM_PROG in
6676   [\\/]* | ?:[\\/]*)
6677   ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6678   ;;
6679   *)
6680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685   for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6688     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695   ;;
6696 esac
6697 fi
6698 RM_PROG=$ac_cv_path_RM_PROG
6699 if test -n "$RM_PROG"; then
6700   { $as_echo "$as_me:$LINENO: result: $RM_PROG" >&5
6701 $as_echo "$RM_PROG" >&6; }
6702 else
6703   { $as_echo "$as_me:$LINENO: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707
6708
6709 enable_win32_dll=yes
6710
6711 case $host in
6712 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6713   if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}as; ac_word=$2
6716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_AS+set}" = set; then
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$AS"; then
6722   ac_cv_prog_AS="$AS" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729   for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_prog_AS="${ac_tool_prefix}as"
6732     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 AS=$ac_cv_prog_AS
6742 if test -n "$AS"; then
6743   { $as_echo "$as_me:$LINENO: result: $AS" >&5
6744 $as_echo "$AS" >&6; }
6745 else
6746   { $as_echo "$as_me:$LINENO: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_AS"; then
6753   ac_ct_AS=$AS
6754   # Extract the first word of "as", so it can be a program name with args.
6755 set dummy as; ac_word=$2
6756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$ac_ct_AS"; then
6762   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_prog_ac_ct_AS="as"
6772     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6782 if test -n "$ac_ct_AS"; then
6783   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6784 $as_echo "$ac_ct_AS" >&6; }
6785 else
6786   { $as_echo "$as_me:$LINENO: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790   if test "x$ac_ct_AS" = x; then
6791     AS="false"
6792   else
6793     case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     AS=$ac_ct_AS
6800   fi
6801 else
6802   AS="$ac_cv_prog_AS"
6803 fi
6804
6805   if test -n "$ac_tool_prefix"; then
6806   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6811   $as_echo_n "(cached) " >&6
6812 else
6813   if test -n "$DLLTOOL"; then
6814   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6824     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 DLLTOOL=$ac_cv_prog_DLLTOOL
6834 if test -n "$DLLTOOL"; then
6835   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6836 $as_echo "$DLLTOOL" >&6; }
6837 else
6838   { $as_echo "$as_me:$LINENO: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_DLLTOOL"; then
6845   ac_ct_DLLTOOL=$DLLTOOL
6846   # Extract the first word of "dlltool", so it can be a program name with args.
6847 set dummy dlltool; ac_word=$2
6848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$ac_ct_DLLTOOL"; then
6854   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861   for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6864     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6874 if test -n "$ac_ct_DLLTOOL"; then
6875   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6876 $as_echo "$ac_ct_DLLTOOL" >&6; }
6877 else
6878   { $as_echo "$as_me:$LINENO: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882   if test "x$ac_ct_DLLTOOL" = x; then
6883     DLLTOOL="false"
6884   else
6885     case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891     DLLTOOL=$ac_ct_DLLTOOL
6892   fi
6893 else
6894   DLLTOOL="$ac_cv_prog_DLLTOOL"
6895 fi
6896
6897   if test -n "$ac_tool_prefix"; then
6898   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6903   $as_echo_n "(cached) " >&6
6904 else
6905   if test -n "$OBJDUMP"; then
6906   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913   for ac_exec_ext in '' $ac_executable_extensions; do
6914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6916     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 OBJDUMP=$ac_cv_prog_OBJDUMP
6926 if test -n "$OBJDUMP"; then
6927   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6928 $as_echo "$OBJDUMP" >&6; }
6929 else
6930   { $as_echo "$as_me:$LINENO: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_OBJDUMP"; then
6937   ac_ct_OBJDUMP=$OBJDUMP
6938   # Extract the first word of "objdump", so it can be a program name with args.
6939 set dummy objdump; ac_word=$2
6940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$ac_ct_OBJDUMP"; then
6946   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953   for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6956     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6966 if test -n "$ac_ct_OBJDUMP"; then
6967   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6968 $as_echo "$ac_ct_OBJDUMP" >&6; }
6969 else
6970   { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974   if test "x$ac_ct_OBJDUMP" = x; then
6975     OBJDUMP="false"
6976   else
6977     case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983     OBJDUMP=$ac_ct_OBJDUMP
6984   fi
6985 else
6986   OBJDUMP="$ac_cv_prog_OBJDUMP"
6987 fi
6988
6989   ;;
6990 esac
6991
6992 test -z "$AS" && AS=as
6993
6994
6995
6996
6997
6998 test -z "$DLLTOOL" && DLLTOOL=dlltool
6999
7000
7001
7002
7003
7004 test -z "$OBJDUMP" && OBJDUMP=objdump
7005
7006
7007
7008
7009
7010
7011
7012 # Check whether --enable-shared was given.
7013 if test "${enable_shared+set}" = set; then
7014   enableval=$enable_shared; p=${PACKAGE-default}
7015     case $enableval in
7016     yes) enable_shared=yes ;;
7017     no) enable_shared=no ;;
7018     *)
7019       enable_shared=no
7020       # Look at the argument we got.  We use all the common list separators.
7021       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7022       for pkg in $enableval; do
7023         IFS="$lt_save_ifs"
7024         if test "X$pkg" = "X$p"; then
7025           enable_shared=yes
7026         fi
7027       done
7028       IFS="$lt_save_ifs"
7029       ;;
7030     esac
7031 else
7032   enable_shared=yes
7033 fi
7034
7035
7036
7037
7038
7039
7040
7041
7042         # Check whether --enable-static was given.
7043 if test "${enable_static+set}" = set; then
7044   enableval=$enable_static; p=${PACKAGE-default}
7045     case $enableval in
7046     yes) enable_static=yes ;;
7047     no) enable_static=no ;;
7048     *)
7049      enable_static=no
7050       # Look at the argument we got.  We use all the common list separators.
7051       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7052       for pkg in $enableval; do
7053         IFS="$lt_save_ifs"
7054         if test "X$pkg" = "X$p"; then
7055           enable_static=yes
7056         fi
7057       done
7058       IFS="$lt_save_ifs"
7059       ;;
7060     esac
7061 else
7062   enable_static=no
7063 fi
7064
7065
7066
7067
7068
7069
7070
7071
7072         case `pwd` in
7073   *\ * | *\     *)
7074     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7076 esac
7077
7078
7079
7080 macro_version='2.2.6'
7081 macro_revision='1.3012'
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095 ltmain="$ac_aux_dir/ltmain.sh"
7096
7097 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7098 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7099 if test "${ac_cv_path_SED+set}" = set; then
7100   $as_echo_n "(cached) " >&6
7101 else
7102             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7103      for ac_i in 1 2 3 4 5 6 7; do
7104        ac_script="$ac_script$as_nl$ac_script"
7105      done
7106      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7107      $as_unset ac_script || ac_script=
7108      if test -z "$SED"; then
7109   ac_path_SED_found=false
7110   # Loop through the user's path and test for each of PROGNAME-LIST
7111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_prog in sed gsed; do
7117     for ac_exec_ext in '' $ac_executable_extensions; do
7118       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7119       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7120 # Check for GNU ac_path_SED and select it if it is found.
7121   # Check for GNU $ac_path_SED
7122 case `"$ac_path_SED" --version 2>&1` in
7123 *GNU*)
7124   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7125 *)
7126   ac_count=0
7127   $as_echo_n 0123456789 >"conftest.in"
7128   while :
7129   do
7130     cat "conftest.in" "conftest.in" >"conftest.tmp"
7131     mv "conftest.tmp" "conftest.in"
7132     cp "conftest.in" "conftest.nl"
7133     $as_echo '' >> "conftest.nl"
7134     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7135     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7136     ac_count=`expr $ac_count + 1`
7137     if test $ac_count -gt ${ac_path_SED_max-0}; then
7138       # Best one so far, save it but keep looking for a better one
7139       ac_cv_path_SED="$ac_path_SED"
7140       ac_path_SED_max=$ac_count
7141     fi
7142     # 10*(2^10) chars as input seems more than enough
7143     test $ac_count -gt 10 && break
7144   done
7145   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7146 esac
7147
7148       $ac_path_SED_found && break 3
7149     done
7150   done
7151 done
7152 IFS=$as_save_IFS
7153   if test -z "$ac_cv_path_SED"; then
7154     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7155 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7156    { (exit 1); exit 1; }; }
7157   fi
7158 else
7159   ac_cv_path_SED=$SED
7160 fi
7161
7162 fi
7163 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7164 $as_echo "$ac_cv_path_SED" >&6; }
7165  SED="$ac_cv_path_SED"
7166   rm -f conftest.sed
7167
7168 test -z "$SED" && SED=sed
7169 Xsed="$SED -e 1s/^X//"
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7182 $as_echo_n "checking for fgrep... " >&6; }
7183 if test "${ac_cv_path_FGREP+set}" = set; then
7184   $as_echo_n "(cached) " >&6
7185 else
7186   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7187    then ac_cv_path_FGREP="$GREP -F"
7188    else
7189      if test -z "$FGREP"; then
7190   ac_path_FGREP_found=false
7191   # Loop through the user's path and test for each of PROGNAME-LIST
7192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197   for ac_prog in fgrep; do
7198     for ac_exec_ext in '' $ac_executable_extensions; do
7199       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7200       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7201 # Check for GNU ac_path_FGREP and select it if it is found.
7202   # Check for GNU $ac_path_FGREP
7203 case `"$ac_path_FGREP" --version 2>&1` in
7204 *GNU*)
7205   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7206 *)
7207   ac_count=0
7208   $as_echo_n 0123456789 >"conftest.in"
7209   while :
7210   do
7211     cat "conftest.in" "conftest.in" >"conftest.tmp"
7212     mv "conftest.tmp" "conftest.in"
7213     cp "conftest.in" "conftest.nl"
7214     $as_echo 'FGREP' >> "conftest.nl"
7215     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7216     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7217     ac_count=`expr $ac_count + 1`
7218     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7219       # Best one so far, save it but keep looking for a better one
7220       ac_cv_path_FGREP="$ac_path_FGREP"
7221       ac_path_FGREP_max=$ac_count
7222     fi
7223     # 10*(2^10) chars as input seems more than enough
7224     test $ac_count -gt 10 && break
7225   done
7226   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7227 esac
7228
7229       $ac_path_FGREP_found && break 3
7230     done
7231   done
7232 done
7233 IFS=$as_save_IFS
7234   if test -z "$ac_cv_path_FGREP"; then
7235     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7236 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7237    { (exit 1); exit 1; }; }
7238   fi
7239 else
7240   ac_cv_path_FGREP=$FGREP
7241 fi
7242
7243    fi
7244 fi
7245 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7246 $as_echo "$ac_cv_path_FGREP" >&6; }
7247  FGREP="$ac_cv_path_FGREP"
7248
7249
7250 test -z "$GREP" && GREP=grep
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270 # Check whether --with-gnu-ld was given.
7271 if test "${with_gnu_ld+set}" = set; then
7272   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7273 else
7274   with_gnu_ld=no
7275 fi
7276
7277 ac_prog=ld
7278 if test "$GCC" = yes; then
7279   # Check if gcc -print-prog-name=ld gives a path.
7280   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7281 $as_echo_n "checking for ld used by $CC... " >&6; }
7282   case $host in
7283   *-*-mingw*)
7284     # gcc leaves a trailing carriage return which upsets mingw
7285     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7286   *)
7287     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7288   esac
7289   case $ac_prog in
7290     # Accept absolute paths.
7291     [\\/]* | ?:[\\/]*)
7292       re_direlt='/[^/][^/]*/\.\./'
7293       # Canonicalize the pathname of ld
7294       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7295       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7296         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7297       done
7298       test -z "$LD" && LD="$ac_prog"
7299       ;;
7300   "")
7301     # If it fails, then pretend we aren't using GCC.
7302     ac_prog=ld
7303     ;;
7304   *)
7305     # If it is relative, then search for the first ld in PATH.
7306     with_gnu_ld=unknown
7307     ;;
7308   esac
7309 elif test "$with_gnu_ld" = yes; then
7310   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7311 $as_echo_n "checking for GNU ld... " >&6; }
7312 else
7313   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7314 $as_echo_n "checking for non-GNU ld... " >&6; }
7315 fi
7316 if test "${lt_cv_path_LD+set}" = set; then
7317   $as_echo_n "(cached) " >&6
7318 else
7319   if test -z "$LD"; then
7320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7321   for ac_dir in $PATH; do
7322     IFS="$lt_save_ifs"
7323     test -z "$ac_dir" && ac_dir=.
7324     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7325       lt_cv_path_LD="$ac_dir/$ac_prog"
7326       # Check to see if the program is GNU ld.  I'd rather use --version,
7327       # but apparently some variants of GNU ld only accept -v.
7328       # Break only if it was the GNU/non-GNU ld that we prefer.
7329       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7330       *GNU* | *'with BFD'*)
7331         test "$with_gnu_ld" != no && break
7332         ;;
7333       *)
7334         test "$with_gnu_ld" != yes && break
7335         ;;
7336       esac
7337     fi
7338   done
7339   IFS="$lt_save_ifs"
7340 else
7341   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7342 fi
7343 fi
7344
7345 LD="$lt_cv_path_LD"
7346 if test -n "$LD"; then
7347   { $as_echo "$as_me:$LINENO: result: $LD" >&5
7348 $as_echo "$LD" >&6; }
7349 else
7350   { $as_echo "$as_me:$LINENO: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7354 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7355    { (exit 1); exit 1; }; }
7356 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7357 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7359   $as_echo_n "(cached) " >&6
7360 else
7361   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7362 case `$LD -v 2>&1 </dev/null` in
7363 *GNU* | *'with BFD'*)
7364   lt_cv_prog_gnu_ld=yes
7365   ;;
7366 *)
7367   lt_cv_prog_gnu_ld=no
7368   ;;
7369 esac
7370 fi
7371 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7372 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7373 with_gnu_ld=$lt_cv_prog_gnu_ld
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7384 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7385 if test "${lt_cv_path_NM+set}" = set; then
7386   $as_echo_n "(cached) " >&6
7387 else
7388   if test -n "$NM"; then
7389   # Let the user override the test.
7390   lt_cv_path_NM="$NM"
7391 else
7392   lt_nm_to_check="${ac_tool_prefix}nm"
7393   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7394     lt_nm_to_check="$lt_nm_to_check nm"
7395   fi
7396   for lt_tmp_nm in $lt_nm_to_check; do
7397     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7398     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7399       IFS="$lt_save_ifs"
7400       test -z "$ac_dir" && ac_dir=.
7401       tmp_nm="$ac_dir/$lt_tmp_nm"
7402       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7403         # Check to see if the nm accepts a BSD-compat flag.
7404         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7405         #   nm: unknown option "B" ignored
7406         # Tru64's nm complains that /dev/null is an invalid object file
7407         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7408         */dev/null* | *'Invalid file or object type'*)
7409           lt_cv_path_NM="$tmp_nm -B"
7410           break
7411           ;;
7412         *)
7413           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7414           */dev/null*)
7415             lt_cv_path_NM="$tmp_nm -p"
7416             break
7417             ;;
7418           *)
7419             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7420             continue # so that we can try to find one that supports BSD flags
7421             ;;
7422           esac
7423           ;;
7424         esac
7425       fi
7426     done
7427     IFS="$lt_save_ifs"
7428   done
7429   : ${lt_cv_path_NM=no}
7430 fi
7431 fi
7432 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7433 $as_echo "$lt_cv_path_NM" >&6; }
7434 if test "$lt_cv_path_NM" != "no"; then
7435   NM="$lt_cv_path_NM"
7436 else
7437   # Didn't find any BSD compatible name lister, look for dumpbin.
7438   if test -n "$ac_tool_prefix"; then
7439   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7440   do
7441     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$DUMPBIN"; then
7449   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456   for ac_exec_ext in '' $ac_executable_extensions; do
7457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7459     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 DUMPBIN=$ac_cv_prog_DUMPBIN
7469 if test -n "$DUMPBIN"; then
7470   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7471 $as_echo "$DUMPBIN" >&6; }
7472 else
7473   { $as_echo "$as_me:$LINENO: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477
7478     test -n "$DUMPBIN" && break
7479   done
7480 fi
7481 if test -z "$DUMPBIN"; then
7482   ac_ct_DUMPBIN=$DUMPBIN
7483   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7484 do
7485   # Extract the first word of "$ac_prog", so it can be a program name with args.
7486 set dummy $ac_prog; ac_word=$2
7487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$ac_ct_DUMPBIN"; then
7493   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500   for ac_exec_ext in '' $ac_executable_extensions; do
7501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7503     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7513 if test -n "$ac_ct_DUMPBIN"; then
7514   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7515 $as_echo "$ac_ct_DUMPBIN" >&6; }
7516 else
7517   { $as_echo "$as_me:$LINENO: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522   test -n "$ac_ct_DUMPBIN" && break
7523 done
7524
7525   if test "x$ac_ct_DUMPBIN" = x; then
7526     DUMPBIN=":"
7527   else
7528     case $cross_compiling:$ac_tool_warned in
7529 yes:)
7530 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532 ac_tool_warned=yes ;;
7533 esac
7534     DUMPBIN=$ac_ct_DUMPBIN
7535   fi
7536 fi
7537
7538
7539   if test "$DUMPBIN" != ":"; then
7540     NM="$DUMPBIN"
7541   fi
7542 fi
7543 test -z "$NM" && NM=nm
7544
7545
7546
7547
7548
7549
7550 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7551 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7552 if test "${lt_cv_nm_interface+set}" = set; then
7553   $as_echo_n "(cached) " >&6
7554 else
7555   lt_cv_nm_interface="BSD nm"
7556   echo "int some_variable = 0;" > conftest.$ac_ext
7557   (eval echo "\"\$as_me:7557: $ac_compile\"" >&5)
7558   (eval "$ac_compile" 2>conftest.err)
7559   cat conftest.err >&5
7560   (eval echo "\"\$as_me:7560: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7561   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7562   cat conftest.err >&5
7563   (eval echo "\"\$as_me:7563: output\"" >&5)
7564   cat conftest.out >&5
7565   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7566     lt_cv_nm_interface="MS dumpbin"
7567   fi
7568   rm -f conftest*
7569 fi
7570 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7571 $as_echo "$lt_cv_nm_interface" >&6; }
7572
7573 # find the maximum length of command line arguments
7574 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7575 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7576 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7577   $as_echo_n "(cached) " >&6
7578 else
7579     i=0
7580   teststring="ABCD"
7581
7582   case $build_os in
7583   msdosdjgpp*)
7584     # On DJGPP, this test can blow up pretty badly due to problems in libc
7585     # (any single argument exceeding 2000 bytes causes a buffer overrun
7586     # during glob expansion).  Even if it were fixed, the result of this
7587     # check would be larger than it should be.
7588     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7589     ;;
7590
7591   gnu*)
7592     # Under GNU Hurd, this test is not required because there is
7593     # no limit to the length of command line arguments.
7594     # Libtool will interpret -1 as no limit whatsoever
7595     lt_cv_sys_max_cmd_len=-1;
7596     ;;
7597
7598   cygwin* | mingw* | cegcc*)
7599     # On Win9x/ME, this test blows up -- it succeeds, but takes
7600     # about 5 minutes as the teststring grows exponentially.
7601     # Worse, since 9x/ME are not pre-emptively multitasking,
7602     # you end up with a "frozen" computer, even though with patience
7603     # the test eventually succeeds (with a max line length of 256k).
7604     # Instead, let's just punt: use the minimum linelength reported by
7605     # all of the supported platforms: 8192 (on NT/2K/XP).
7606     lt_cv_sys_max_cmd_len=8192;
7607     ;;
7608
7609   amigaos*)
7610     # On AmigaOS with pdksh, this test takes hours, literally.
7611     # So we just punt and use a minimum line length of 8192.
7612     lt_cv_sys_max_cmd_len=8192;
7613     ;;
7614
7615   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7616     # This has been around since 386BSD, at least.  Likely further.
7617     if test -x /sbin/sysctl; then
7618       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7619     elif test -x /usr/sbin/sysctl; then
7620       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7621     else
7622       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7623     fi
7624     # And add a safety zone
7625     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7626     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7627     ;;
7628
7629   interix*)
7630     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7631     lt_cv_sys_max_cmd_len=196608
7632     ;;
7633
7634   osf*)
7635     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7636     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7637     # nice to cause kernel panics so lets avoid the loop below.
7638     # First set a reasonable default.
7639     lt_cv_sys_max_cmd_len=16384
7640     #
7641     if test -x /sbin/sysconfig; then
7642       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7643         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7644       esac
7645     fi
7646     ;;
7647   sco3.2v5*)
7648     lt_cv_sys_max_cmd_len=102400
7649     ;;
7650   sysv5* | sco5v6* | sysv4.2uw2*)
7651     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7652     if test -n "$kargmax"; then
7653       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7654     else
7655       lt_cv_sys_max_cmd_len=32768
7656     fi
7657     ;;
7658   *)
7659     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7660     if test -n "$lt_cv_sys_max_cmd_len"; then
7661       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7662       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7663     else
7664       # Make teststring a little bigger before we do anything with it.
7665       # a 1K string should be a reasonable start.
7666       for i in 1 2 3 4 5 6 7 8 ; do
7667         teststring=$teststring$teststring
7668       done
7669       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7670       # If test is not a shell built-in, we'll probably end up computing a
7671       # maximum length that is only half of the actual maximum length, but
7672       # we can't tell.
7673       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7674                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7675               test $i != 17 # 1/2 MB should be enough
7676       do
7677         i=`expr $i + 1`
7678         teststring=$teststring$teststring
7679       done
7680       # Only check the string length outside the loop.
7681       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7682       teststring=
7683       # Add a significant safety factor because C++ compilers can tack on
7684       # massive amounts of additional arguments before passing them to the
7685       # linker.  It appears as though 1/2 is a usable value.
7686       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7687     fi
7688     ;;
7689   esac
7690
7691 fi
7692
7693 if test -n $lt_cv_sys_max_cmd_len ; then
7694   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7695 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7696 else
7697   { $as_echo "$as_me:$LINENO: result: none" >&5
7698 $as_echo "none" >&6; }
7699 fi
7700 max_cmd_len=$lt_cv_sys_max_cmd_len
7701
7702
7703
7704
7705
7706
7707 : ${CP="cp -f"}
7708 : ${MV="mv -f"}
7709 : ${RM="rm -f"}
7710
7711 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7712 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7713 # Try some XSI features
7714 xsi_shell=no
7715 ( _lt_dummy="a/b/c"
7716   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7717       = c,a/b,, \
7718     && eval 'test $(( 1 + 1 )) -eq 2 \
7719     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7720   && xsi_shell=yes
7721 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7722 $as_echo "$xsi_shell" >&6; }
7723
7724
7725 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7726 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7727 lt_shell_append=no
7728 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7729     >/dev/null 2>&1 \
7730   && lt_shell_append=yes
7731 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7732 $as_echo "$lt_shell_append" >&6; }
7733
7734
7735 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7736   lt_unset=unset
7737 else
7738   lt_unset=false
7739 fi
7740
7741
7742
7743
7744
7745 # test EBCDIC or ASCII
7746 case `echo X|tr X '\101'` in
7747  A) # ASCII based system
7748     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7749   lt_SP2NL='tr \040 \012'
7750   lt_NL2SP='tr \015\012 \040\040'
7751   ;;
7752  *) # EBCDIC based system
7753   lt_SP2NL='tr \100 \n'
7754   lt_NL2SP='tr \r\n \100\100'
7755   ;;
7756 esac
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7767 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7768 if test "${lt_cv_ld_reload_flag+set}" = set; then
7769   $as_echo_n "(cached) " >&6
7770 else
7771   lt_cv_ld_reload_flag='-r'
7772 fi
7773 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7774 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7775 reload_flag=$lt_cv_ld_reload_flag
7776 case $reload_flag in
7777 "" | " "*) ;;
7778 *) reload_flag=" $reload_flag" ;;
7779 esac
7780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7781 case $host_os in
7782   darwin*)
7783     if test "$GCC" = yes; then
7784       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7785     else
7786       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7787     fi
7788     ;;
7789 esac
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 if test -n "$ac_tool_prefix"; then
7800   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7805   $as_echo_n "(cached) " >&6
7806 else
7807   if test -n "$OBJDUMP"; then
7808   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815   for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 OBJDUMP=$ac_cv_prog_OBJDUMP
7828 if test -n "$OBJDUMP"; then
7829   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7830 $as_echo "$OBJDUMP" >&6; }
7831 else
7832   { $as_echo "$as_me:$LINENO: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836
7837 fi
7838 if test -z "$ac_cv_prog_OBJDUMP"; then
7839   ac_ct_OBJDUMP=$OBJDUMP
7840   # Extract the first word of "objdump", so it can be a program name with args.
7841 set dummy objdump; ac_word=$2
7842 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7845   $as_echo_n "(cached) " >&6
7846 else
7847   if test -n "$ac_ct_OBJDUMP"; then
7848   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855   for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7858     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7868 if test -n "$ac_ct_OBJDUMP"; then
7869   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7870 $as_echo "$ac_ct_OBJDUMP" >&6; }
7871 else
7872   { $as_echo "$as_me:$LINENO: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876   if test "x$ac_ct_OBJDUMP" = x; then
7877     OBJDUMP="false"
7878   else
7879     case $cross_compiling:$ac_tool_warned in
7880 yes:)
7881 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883 ac_tool_warned=yes ;;
7884 esac
7885     OBJDUMP=$ac_ct_OBJDUMP
7886   fi
7887 else
7888   OBJDUMP="$ac_cv_prog_OBJDUMP"
7889 fi
7890
7891 test -z "$OBJDUMP" && OBJDUMP=objdump
7892
7893
7894
7895
7896
7897
7898 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7899 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7900 if test "${lt_cv_deplibs_check_method+set}" = set; then
7901   $as_echo_n "(cached) " >&6
7902 else
7903   lt_cv_file_magic_cmd='$MAGIC_CMD'
7904 lt_cv_file_magic_test_file=
7905 lt_cv_deplibs_check_method='unknown'
7906 # Need to set the preceding variable on all platforms that support
7907 # interlibrary dependencies.
7908 # 'none' -- dependencies not supported.
7909 # `unknown' -- same as none, but documents that we really don't know.
7910 # 'pass_all' -- all dependencies passed with no checks.
7911 # 'test_compile' -- check by making test program.
7912 # 'file_magic [[regex]]' -- check by looking for files in library path
7913 # which responds to the $file_magic_cmd with a given extended regex.
7914 # If you have `file' or equivalent on your system and you're not sure
7915 # whether `pass_all' will *always* work, you probably want this one.
7916
7917 case $host_os in
7918 aix[4-9]*)
7919   lt_cv_deplibs_check_method=pass_all
7920   ;;
7921
7922 beos*)
7923   lt_cv_deplibs_check_method=pass_all
7924   ;;
7925
7926 bsdi[45]*)
7927   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7928   lt_cv_file_magic_cmd='/usr/bin/file -L'
7929   lt_cv_file_magic_test_file=/shlib/libc.so
7930   ;;
7931
7932 cygwin*)
7933   # func_win32_libid is a shell function defined in ltmain.sh
7934   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7935   lt_cv_file_magic_cmd='func_win32_libid'
7936   ;;
7937
7938 mingw* | pw32*)
7939   # Base MSYS/MinGW do not provide the 'file' command needed by
7940   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7941   # unless we find 'file', for example because we are cross-compiling.
7942   if ( file / ) >/dev/null 2>&1; then
7943     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7944     lt_cv_file_magic_cmd='func_win32_libid'
7945   else
7946     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7947     lt_cv_file_magic_cmd='$OBJDUMP -f'
7948   fi
7949   ;;
7950
7951 cegcc)
7952   # use the weaker test based on 'objdump'. See mingw*.
7953   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7954   lt_cv_file_magic_cmd='$OBJDUMP -f'
7955   ;;
7956
7957 darwin* | rhapsody*)
7958   lt_cv_deplibs_check_method=pass_all
7959   ;;
7960
7961 freebsd* | dragonfly*)
7962   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7963     case $host_cpu in
7964     i*86 )
7965       # Not sure whether the presence of OpenBSD here was a mistake.
7966       # Let's accept both of them until this is cleared up.
7967       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7968       lt_cv_file_magic_cmd=/usr/bin/file
7969       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7970       ;;
7971     esac
7972   else
7973     lt_cv_deplibs_check_method=pass_all
7974   fi
7975   ;;
7976
7977 gnu*)
7978   lt_cv_deplibs_check_method=pass_all
7979   ;;
7980
7981 hpux10.20* | hpux11*)
7982   lt_cv_file_magic_cmd=/usr/bin/file
7983   case $host_cpu in
7984   ia64*)
7985     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7986     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7987     ;;
7988   hppa*64*)
7989     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]'
7990     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7991     ;;
7992   *)
7993     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7994     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7995     ;;
7996   esac
7997   ;;
7998
7999 interix[3-9]*)
8000   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8001   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8002   ;;
8003
8004 irix5* | irix6* | nonstopux*)
8005   case $LD in
8006   *-32|*"-32 ") libmagic=32-bit;;
8007   *-n32|*"-n32 ") libmagic=N32;;
8008   *-64|*"-64 ") libmagic=64-bit;;
8009   *) libmagic=never-match;;
8010   esac
8011   lt_cv_deplibs_check_method=pass_all
8012   ;;
8013
8014 # This must be Linux ELF.
8015 linux* | k*bsd*-gnu)
8016   lt_cv_deplibs_check_method=pass_all
8017   ;;
8018
8019 netbsd* | netbsdelf*-gnu)
8020   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8021     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8022   else
8023     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8024   fi
8025   ;;
8026
8027 newos6*)
8028   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8029   lt_cv_file_magic_cmd=/usr/bin/file
8030   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8031   ;;
8032
8033 *nto* | *qnx*)
8034   lt_cv_deplibs_check_method=pass_all
8035   ;;
8036
8037 openbsd*)
8038   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8039     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8040   else
8041     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8042   fi
8043   ;;
8044
8045 osf3* | osf4* | osf5*)
8046   lt_cv_deplibs_check_method=pass_all
8047   ;;
8048
8049 rdos*)
8050   lt_cv_deplibs_check_method=pass_all
8051   ;;
8052
8053 solaris*)
8054   lt_cv_deplibs_check_method=pass_all
8055   ;;
8056
8057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8058   lt_cv_deplibs_check_method=pass_all
8059   ;;
8060
8061 sysv4 | sysv4.3*)
8062   case $host_vendor in
8063   motorola)
8064     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]'
8065     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8066     ;;
8067   ncr)
8068     lt_cv_deplibs_check_method=pass_all
8069     ;;
8070   sequent)
8071     lt_cv_file_magic_cmd='/bin/file'
8072     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8073     ;;
8074   sni)
8075     lt_cv_file_magic_cmd='/bin/file'
8076     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8077     lt_cv_file_magic_test_file=/lib/libc.so
8078     ;;
8079   siemens)
8080     lt_cv_deplibs_check_method=pass_all
8081     ;;
8082   pc)
8083     lt_cv_deplibs_check_method=pass_all
8084     ;;
8085   esac
8086   ;;
8087
8088 tpf*)
8089   lt_cv_deplibs_check_method=pass_all
8090   ;;
8091 esac
8092
8093 fi
8094 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8095 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8096 file_magic_cmd=$lt_cv_file_magic_cmd
8097 deplibs_check_method=$lt_cv_deplibs_check_method
8098 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111 if test -n "$ac_tool_prefix"; then
8112   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8113 set dummy ${ac_tool_prefix}ar; ac_word=$2
8114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_AR+set}" = set; then
8117   $as_echo_n "(cached) " >&6
8118 else
8119   if test -n "$AR"; then
8120   ac_cv_prog_AR="$AR" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127   for ac_exec_ext in '' $ac_executable_extensions; do
8128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129     ac_cv_prog_AR="${ac_tool_prefix}ar"
8130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 AR=$ac_cv_prog_AR
8140 if test -n "$AR"; then
8141   { $as_echo "$as_me:$LINENO: result: $AR" >&5
8142 $as_echo "$AR" >&6; }
8143 else
8144   { $as_echo "$as_me:$LINENO: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148
8149 fi
8150 if test -z "$ac_cv_prog_AR"; then
8151   ac_ct_AR=$AR
8152   # Extract the first word of "ar", so it can be a program name with args.
8153 set dummy ar; ac_word=$2
8154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8157   $as_echo_n "(cached) " >&6
8158 else
8159   if test -n "$ac_ct_AR"; then
8160   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165   IFS=$as_save_IFS
8166   test -z "$as_dir" && as_dir=.
8167   for ac_exec_ext in '' $ac_executable_extensions; do
8168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169     ac_cv_prog_ac_ct_AR="ar"
8170     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171     break 2
8172   fi
8173 done
8174 done
8175 IFS=$as_save_IFS
8176
8177 fi
8178 fi
8179 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8180 if test -n "$ac_ct_AR"; then
8181   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8182 $as_echo "$ac_ct_AR" >&6; }
8183 else
8184   { $as_echo "$as_me:$LINENO: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187
8188   if test "x$ac_ct_AR" = x; then
8189     AR="false"
8190   else
8191     case $cross_compiling:$ac_tool_warned in
8192 yes:)
8193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8195 ac_tool_warned=yes ;;
8196 esac
8197     AR=$ac_ct_AR
8198   fi
8199 else
8200   AR="$ac_cv_prog_AR"
8201 fi
8202
8203 test -z "$AR" && AR=ar
8204 test -z "$AR_FLAGS" && AR_FLAGS=cru
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 if test -n "$ac_tool_prefix"; then
8217   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8218 set dummy ${ac_tool_prefix}strip; ac_word=$2
8219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if test "${ac_cv_prog_STRIP+set}" = set; then
8222   $as_echo_n "(cached) " >&6
8223 else
8224   if test -n "$STRIP"; then
8225   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230   IFS=$as_save_IFS
8231   test -z "$as_dir" && as_dir=.
8232   for ac_exec_ext in '' $ac_executable_extensions; do
8233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8235     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236     break 2
8237   fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242 fi
8243 fi
8244 STRIP=$ac_cv_prog_STRIP
8245 if test -n "$STRIP"; then
8246   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8247 $as_echo "$STRIP" >&6; }
8248 else
8249   { $as_echo "$as_me:$LINENO: result: no" >&5
8250 $as_echo "no" >&6; }
8251 fi
8252
8253
8254 fi
8255 if test -z "$ac_cv_prog_STRIP"; then
8256   ac_ct_STRIP=$STRIP
8257   # Extract the first word of "strip", so it can be a program name with args.
8258 set dummy strip; ac_word=$2
8259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8262   $as_echo_n "(cached) " >&6
8263 else
8264   if test -n "$ac_ct_STRIP"; then
8265   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270   IFS=$as_save_IFS
8271   test -z "$as_dir" && as_dir=.
8272   for ac_exec_ext in '' $ac_executable_extensions; do
8273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274     ac_cv_prog_ac_ct_STRIP="strip"
8275     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276     break 2
8277   fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281
8282 fi
8283 fi
8284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8285 if test -n "$ac_ct_STRIP"; then
8286   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8287 $as_echo "$ac_ct_STRIP" >&6; }
8288 else
8289   { $as_echo "$as_me:$LINENO: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293   if test "x$ac_ct_STRIP" = x; then
8294     STRIP=":"
8295   else
8296     case $cross_compiling:$ac_tool_warned in
8297 yes:)
8298 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8300 ac_tool_warned=yes ;;
8301 esac
8302     STRIP=$ac_ct_STRIP
8303   fi
8304 else
8305   STRIP="$ac_cv_prog_STRIP"
8306 fi
8307
8308 test -z "$STRIP" && STRIP=:
8309
8310
8311
8312
8313
8314
8315 if test -n "$ac_tool_prefix"; then
8316   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if test "${ac_cv_prog_RANLIB+set}" = set; then
8321   $as_echo_n "(cached) " >&6
8322 else
8323   if test -n "$RANLIB"; then
8324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329   IFS=$as_save_IFS
8330   test -z "$as_dir" && as_dir=.
8331   for ac_exec_ext in '' $ac_executable_extensions; do
8332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8333     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8334     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335     break 2
8336   fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341 fi
8342 fi
8343 RANLIB=$ac_cv_prog_RANLIB
8344 if test -n "$RANLIB"; then
8345   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8346 $as_echo "$RANLIB" >&6; }
8347 else
8348   { $as_echo "$as_me:$LINENO: result: no" >&5
8349 $as_echo "no" >&6; }
8350 fi
8351
8352
8353 fi
8354 if test -z "$ac_cv_prog_RANLIB"; then
8355   ac_ct_RANLIB=$RANLIB
8356   # Extract the first word of "ranlib", so it can be a program name with args.
8357 set dummy ranlib; ac_word=$2
8358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8361   $as_echo_n "(cached) " >&6
8362 else
8363   if test -n "$ac_ct_RANLIB"; then
8364   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371   for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_prog_ac_ct_RANLIB="ranlib"
8374     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8384 if test -n "$ac_ct_RANLIB"; then
8385   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8386 $as_echo "$ac_ct_RANLIB" >&6; }
8387 else
8388   { $as_echo "$as_me:$LINENO: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392   if test "x$ac_ct_RANLIB" = x; then
8393     RANLIB=":"
8394   else
8395     case $cross_compiling:$ac_tool_warned in
8396 yes:)
8397 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399 ac_tool_warned=yes ;;
8400 esac
8401     RANLIB=$ac_ct_RANLIB
8402   fi
8403 else
8404   RANLIB="$ac_cv_prog_RANLIB"
8405 fi
8406
8407 test -z "$RANLIB" && RANLIB=:
8408
8409
8410
8411
8412
8413
8414 # Determine commands to create old-style static archives.
8415 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8416 old_postinstall_cmds='chmod 644 $oldlib'
8417 old_postuninstall_cmds=
8418
8419 if test -n "$RANLIB"; then
8420   case $host_os in
8421   openbsd*)
8422     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8423     ;;
8424   *)
8425     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8426     ;;
8427   esac
8428   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8429 fi
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464 # If no C compiler was specified, use CC.
8465 LTCC=${LTCC-"$CC"}
8466
8467 # If no C compiler flags were specified, use CFLAGS.
8468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8469
8470 # Allow CC to be a program name with arguments.
8471 compiler=$CC
8472
8473
8474 # Check for command to grab the raw symbol name followed by C symbol from nm.
8475 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8476 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8477 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8478   $as_echo_n "(cached) " >&6
8479 else
8480
8481 # These are sane defaults that work on at least a few old systems.
8482 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8483
8484 # Character class describing NM global symbol codes.
8485 symcode='[BCDEGRST]'
8486
8487 # Regexp to match symbols that can be accessed directly from C.
8488 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8489
8490 # Define system-specific variables.
8491 case $host_os in
8492 aix*)
8493   symcode='[BCDT]'
8494   ;;
8495 cygwin* | mingw* | pw32* | cegcc*)
8496   symcode='[ABCDGISTW]'
8497   ;;
8498 hpux*)
8499   if test "$host_cpu" = ia64; then
8500     symcode='[ABCDEGRST]'
8501   fi
8502   ;;
8503 irix* | nonstopux*)
8504   symcode='[BCDEGRST]'
8505   ;;
8506 osf*)
8507   symcode='[BCDEGQRST]'
8508   ;;
8509 solaris*)
8510   symcode='[BDRT]'
8511   ;;
8512 sco3.2v5*)
8513   symcode='[DT]'
8514   ;;
8515 sysv4.2uw2*)
8516   symcode='[DT]'
8517   ;;
8518 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8519   symcode='[ABDT]'
8520   ;;
8521 sysv4)
8522   symcode='[DFNSTU]'
8523   ;;
8524 esac
8525
8526 # If we're using GNU nm, then use its standard symbol codes.
8527 case `$NM -V 2>&1` in
8528 *GNU* | *'with BFD'*)
8529   symcode='[ABCDGIRSTW]' ;;
8530 esac
8531
8532 # Transform an extracted symbol line into a proper C declaration.
8533 # Some systems (esp. on ia64) link data and code symbols differently,
8534 # so use this general approach.
8535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8536
8537 # Transform an extracted symbol line into symbol name and symbol address
8538 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8539 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'"
8540
8541 # Handle CRLF in mingw tool chain
8542 opt_cr=
8543 case $build_os in
8544 mingw*)
8545   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8546   ;;
8547 esac
8548
8549 # Try without a prefix underscore, then with it.
8550 for ac_symprfx in "" "_"; do
8551
8552   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8553   symxfrm="\\1 $ac_symprfx\\2 \\2"
8554
8555   # Write the raw and C identifiers.
8556   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8557     # Fake it for dumpbin and say T for any non-static function
8558     # and D for any global variable.
8559     # Also find C++ and __fastcall symbols from MSVC++,
8560     # which start with @ or ?.
8561     lt_cv_sys_global_symbol_pipe="$AWK '"\
8562 "     {last_section=section; section=\$ 3};"\
8563 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8564 "     \$ 0!~/External *\|/{next};"\
8565 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8566 "     {if(hide[section]) next};"\
8567 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8568 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8569 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8570 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8571 "     ' prfx=^$ac_symprfx"
8572   else
8573     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8574   fi
8575
8576   # Check to see that the pipe works correctly.
8577   pipe_works=no
8578
8579   rm -f conftest*
8580   cat > conftest.$ac_ext <<_LT_EOF
8581 #ifdef __cplusplus
8582 extern "C" {
8583 #endif
8584 char nm_test_var;
8585 void nm_test_func(void);
8586 void nm_test_func(void){}
8587 #ifdef __cplusplus
8588 }
8589 #endif
8590 int main(){nm_test_var='a';nm_test_func();return(0);}
8591 _LT_EOF
8592
8593   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594   (eval $ac_compile) 2>&5
8595   ac_status=$?
8596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; then
8598     # Now try to grab the symbols.
8599     nlist=conftest.nm
8600     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8601   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8602   ac_status=$?
8603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } && test -s "$nlist"; then
8605       # Try sorting and uniquifying the output.
8606       if sort "$nlist" | uniq > "$nlist"T; then
8607         mv -f "$nlist"T "$nlist"
8608       else
8609         rm -f "$nlist"T
8610       fi
8611
8612       # Make sure that we snagged all the symbols we need.
8613       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8614         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8615           cat <<_LT_EOF > conftest.$ac_ext
8616 #ifdef __cplusplus
8617 extern "C" {
8618 #endif
8619
8620 _LT_EOF
8621           # Now generate the symbol file.
8622           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8623
8624           cat <<_LT_EOF >> conftest.$ac_ext
8625
8626 /* The mapping between symbol names and symbols.  */
8627 const struct {
8628   const char *name;
8629   void       *address;
8630 }
8631 lt__PROGRAM__LTX_preloaded_symbols[] =
8632 {
8633   { "@PROGRAM@", (void *) 0 },
8634 _LT_EOF
8635           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8636           cat <<\_LT_EOF >> conftest.$ac_ext
8637   {0, (void *) 0}
8638 };
8639
8640 /* This works around a problem in FreeBSD linker */
8641 #ifdef FREEBSD_WORKAROUND
8642 static const void *lt_preloaded_setup() {
8643   return lt__PROGRAM__LTX_preloaded_symbols;
8644 }
8645 #endif
8646
8647 #ifdef __cplusplus
8648 }
8649 #endif
8650 _LT_EOF
8651           # Now try linking the two files.
8652           mv conftest.$ac_objext conftstm.$ac_objext
8653           lt_save_LIBS="$LIBS"
8654           lt_save_CFLAGS="$CFLAGS"
8655           LIBS="conftstm.$ac_objext"
8656           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8657           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658   (eval $ac_link) 2>&5
8659   ac_status=$?
8660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8662             pipe_works=yes
8663           fi
8664           LIBS="$lt_save_LIBS"
8665           CFLAGS="$lt_save_CFLAGS"
8666         else
8667           echo "cannot find nm_test_func in $nlist" >&5
8668         fi
8669       else
8670         echo "cannot find nm_test_var in $nlist" >&5
8671       fi
8672     else
8673       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8674     fi
8675   else
8676     echo "$progname: failed program was:" >&5
8677     cat conftest.$ac_ext >&5
8678   fi
8679   rm -rf conftest* conftst*
8680
8681   # Do not use the global_symbol_pipe unless it works.
8682   if test "$pipe_works" = yes; then
8683     break
8684   else
8685     lt_cv_sys_global_symbol_pipe=
8686   fi
8687 done
8688
8689 fi
8690
8691 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8692   lt_cv_sys_global_symbol_to_cdecl=
8693 fi
8694 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8695   { $as_echo "$as_me:$LINENO: result: failed" >&5
8696 $as_echo "failed" >&6; }
8697 else
8698   { $as_echo "$as_me:$LINENO: result: ok" >&5
8699 $as_echo "ok" >&6; }
8700 fi
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723 # Check whether --enable-libtool-lock was given.
8724 if test "${enable_libtool_lock+set}" = set; then
8725   enableval=$enable_libtool_lock;
8726 fi
8727
8728 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8729
8730 # Some flags need to be propagated to the compiler or linker for good
8731 # libtool support.
8732 case $host in
8733 ia64-*-hpux*)
8734   # Find out which ABI we are using.
8735   echo 'int i;' > conftest.$ac_ext
8736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8737   (eval $ac_compile) 2>&5
8738   ac_status=$?
8739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); }; then
8741     case `/usr/bin/file conftest.$ac_objext` in
8742       *ELF-32*)
8743         HPUX_IA64_MODE="32"
8744         ;;
8745       *ELF-64*)
8746         HPUX_IA64_MODE="64"
8747         ;;
8748     esac
8749   fi
8750   rm -rf conftest*
8751   ;;
8752 *-*-irix6*)
8753   # Find out which ABI we are using.
8754   echo '#line 8754 "configure"' > conftest.$ac_ext
8755   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756   (eval $ac_compile) 2>&5
8757   ac_status=$?
8758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; then
8760     if test "$lt_cv_prog_gnu_ld" = yes; then
8761       case `/usr/bin/file conftest.$ac_objext` in
8762         *32-bit*)
8763           LD="${LD-ld} -melf32bsmip"
8764           ;;
8765         *N32*)
8766           LD="${LD-ld} -melf32bmipn32"
8767           ;;
8768         *64-bit*)
8769           LD="${LD-ld} -melf64bmip"
8770         ;;
8771       esac
8772     else
8773       case `/usr/bin/file conftest.$ac_objext` in
8774         *32-bit*)
8775           LD="${LD-ld} -32"
8776           ;;
8777         *N32*)
8778           LD="${LD-ld} -n32"
8779           ;;
8780         *64-bit*)
8781           LD="${LD-ld} -64"
8782           ;;
8783       esac
8784     fi
8785   fi
8786   rm -rf conftest*
8787   ;;
8788
8789 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8790 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8791   # Find out which ABI we are using.
8792   echo 'int i;' > conftest.$ac_ext
8793   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794   (eval $ac_compile) 2>&5
8795   ac_status=$?
8796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; then
8798     case `/usr/bin/file conftest.o` in
8799       *32-bit*)
8800         case $host in
8801           x86_64-*kfreebsd*-gnu)
8802             LD="${LD-ld} -m elf_i386_fbsd"
8803             ;;
8804           x86_64-*linux*)
8805             LD="${LD-ld} -m elf_i386"
8806             ;;
8807           ppc64-*linux*|powerpc64-*linux*)
8808             LD="${LD-ld} -m elf32ppclinux"
8809             ;;
8810           s390x-*linux*)
8811             LD="${LD-ld} -m elf_s390"
8812             ;;
8813           sparc64-*linux*)
8814             LD="${LD-ld} -m elf32_sparc"
8815             ;;
8816         esac
8817         ;;
8818       *64-bit*)
8819         case $host in
8820           x86_64-*kfreebsd*-gnu)
8821             LD="${LD-ld} -m elf_x86_64_fbsd"
8822             ;;
8823           x86_64-*linux*)
8824             LD="${LD-ld} -m elf_x86_64"
8825             ;;
8826           ppc*-*linux*|powerpc*-*linux*)
8827             LD="${LD-ld} -m elf64ppc"
8828             ;;
8829           s390*-*linux*|s390*-*tpf*)
8830             LD="${LD-ld} -m elf64_s390"
8831             ;;
8832           sparc*-*linux*)
8833             LD="${LD-ld} -m elf64_sparc"
8834             ;;
8835         esac
8836         ;;
8837     esac
8838   fi
8839   rm -rf conftest*
8840   ;;
8841
8842 *-*-sco3.2v5*)
8843   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8844   SAVE_CFLAGS="$CFLAGS"
8845   CFLAGS="$CFLAGS -belf"
8846   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8847 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8848 if test "${lt_cv_cc_needs_belf+set}" = set; then
8849   $as_echo_n "(cached) " >&6
8850 else
8851   ac_ext=c
8852 ac_cpp='$CPP $CPPFLAGS'
8853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8856
8857      cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h.  */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h.  */
8863
8864 int
8865 main ()
8866 {
8867
8868   ;
8869   return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (ac_try="$ac_link"
8874 case "(($ac_try" in
8875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876   *) ac_try_echo=$ac_try;;
8877 esac
8878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8879 $as_echo "$ac_try_echo") >&5
8880   (eval "$ac_link") 2>conftest.er1
8881   ac_status=$?
8882   grep -v '^ *+' conftest.er1 >conftest.err
8883   rm -f conftest.er1
8884   cat conftest.err >&5
8885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); } && {
8887          test -z "$ac_c_werror_flag" ||
8888          test ! -s conftest.err
8889        } && test -s conftest$ac_exeext && {
8890          test "$cross_compiling" = yes ||
8891          $as_test_x conftest$ac_exeext
8892        }; then
8893   lt_cv_cc_needs_belf=yes
8894 else
8895   $as_echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898         lt_cv_cc_needs_belf=no
8899 fi
8900
8901 rm -rf conftest.dSYM
8902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8903       conftest$ac_exeext conftest.$ac_ext
8904      ac_ext=c
8905 ac_cpp='$CPP $CPPFLAGS'
8906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
8910 fi
8911 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8912 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8913   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8914     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8915     CFLAGS="$SAVE_CFLAGS"
8916   fi
8917   ;;
8918 sparc*-*solaris*)
8919   # Find out which ABI we are using.
8920   echo 'int i;' > conftest.$ac_ext
8921   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922   (eval $ac_compile) 2>&5
8923   ac_status=$?
8924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; then
8926     case `/usr/bin/file conftest.o` in
8927     *64-bit*)
8928       case $lt_cv_prog_gnu_ld in
8929       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8930       *)
8931         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8932           LD="${LD-ld} -64"
8933         fi
8934         ;;
8935       esac
8936       ;;
8937     esac
8938   fi
8939   rm -rf conftest*
8940   ;;
8941 esac
8942
8943 need_locks="$enable_libtool_lock"
8944
8945
8946   case $host_os in
8947     rhapsody* | darwin*)
8948     if test -n "$ac_tool_prefix"; then
8949   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8950 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8954   $as_echo_n "(cached) " >&6
8955 else
8956   if test -n "$DSYMUTIL"; then
8957   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8958 else
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8961 do
8962   IFS=$as_save_IFS
8963   test -z "$as_dir" && as_dir=.
8964   for ac_exec_ext in '' $ac_executable_extensions; do
8965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8967     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8968     break 2
8969   fi
8970 done
8971 done
8972 IFS=$as_save_IFS
8973
8974 fi
8975 fi
8976 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8977 if test -n "$DSYMUTIL"; then
8978   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8979 $as_echo "$DSYMUTIL" >&6; }
8980 else
8981   { $as_echo "$as_me:$LINENO: result: no" >&5
8982 $as_echo "no" >&6; }
8983 fi
8984
8985
8986 fi
8987 if test -z "$ac_cv_prog_DSYMUTIL"; then
8988   ac_ct_DSYMUTIL=$DSYMUTIL
8989   # Extract the first word of "dsymutil", so it can be a program name with args.
8990 set dummy dsymutil; ac_word=$2
8991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8992 $as_echo_n "checking for $ac_word... " >&6; }
8993 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8994   $as_echo_n "(cached) " >&6
8995 else
8996   if test -n "$ac_ct_DSYMUTIL"; then
8997   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8998 else
8999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 for as_dir in $PATH
9001 do
9002   IFS=$as_save_IFS
9003   test -z "$as_dir" && as_dir=.
9004   for ac_exec_ext in '' $ac_executable_extensions; do
9005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9006     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9007     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9008     break 2
9009   fi
9010 done
9011 done
9012 IFS=$as_save_IFS
9013
9014 fi
9015 fi
9016 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9017 if test -n "$ac_ct_DSYMUTIL"; then
9018   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9019 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9020 else
9021   { $as_echo "$as_me:$LINENO: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024
9025   if test "x$ac_ct_DSYMUTIL" = x; then
9026     DSYMUTIL=":"
9027   else
9028     case $cross_compiling:$ac_tool_warned in
9029 yes:)
9030 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9032 ac_tool_warned=yes ;;
9033 esac
9034     DSYMUTIL=$ac_ct_DSYMUTIL
9035   fi
9036 else
9037   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9038 fi
9039
9040     if test -n "$ac_tool_prefix"; then
9041   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9042 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9043 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9046   $as_echo_n "(cached) " >&6
9047 else
9048   if test -n "$NMEDIT"; then
9049   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054   IFS=$as_save_IFS
9055   test -z "$as_dir" && as_dir=.
9056   for ac_exec_ext in '' $ac_executable_extensions; do
9057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9058     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9059     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9060     break 2
9061   fi
9062 done
9063 done
9064 IFS=$as_save_IFS
9065
9066 fi
9067 fi
9068 NMEDIT=$ac_cv_prog_NMEDIT
9069 if test -n "$NMEDIT"; then
9070   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9071 $as_echo "$NMEDIT" >&6; }
9072 else
9073   { $as_echo "$as_me:$LINENO: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076
9077
9078 fi
9079 if test -z "$ac_cv_prog_NMEDIT"; then
9080   ac_ct_NMEDIT=$NMEDIT
9081   # Extract the first word of "nmedit", so it can be a program name with args.
9082 set dummy nmedit; ac_word=$2
9083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9086   $as_echo_n "(cached) " >&6
9087 else
9088   if test -n "$ac_ct_NMEDIT"; then
9089   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9090 else
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9093 do
9094   IFS=$as_save_IFS
9095   test -z "$as_dir" && as_dir=.
9096   for ac_exec_ext in '' $ac_executable_extensions; do
9097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9098     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9099     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9100     break 2
9101   fi
9102 done
9103 done
9104 IFS=$as_save_IFS
9105
9106 fi
9107 fi
9108 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9109 if test -n "$ac_ct_NMEDIT"; then
9110   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9111 $as_echo "$ac_ct_NMEDIT" >&6; }
9112 else
9113   { $as_echo "$as_me:$LINENO: result: no" >&5
9114 $as_echo "no" >&6; }
9115 fi
9116
9117   if test "x$ac_ct_NMEDIT" = x; then
9118     NMEDIT=":"
9119   else
9120     case $cross_compiling:$ac_tool_warned in
9121 yes:)
9122 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124 ac_tool_warned=yes ;;
9125 esac
9126     NMEDIT=$ac_ct_NMEDIT
9127   fi
9128 else
9129   NMEDIT="$ac_cv_prog_NMEDIT"
9130 fi
9131
9132     if test -n "$ac_tool_prefix"; then
9133   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9134 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if test "${ac_cv_prog_LIPO+set}" = set; then
9138   $as_echo_n "(cached) " >&6
9139 else
9140   if test -n "$LIPO"; then
9141   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9142 else
9143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 for as_dir in $PATH
9145 do
9146   IFS=$as_save_IFS
9147   test -z "$as_dir" && as_dir=.
9148   for ac_exec_ext in '' $ac_executable_extensions; do
9149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9150     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9152     break 2
9153   fi
9154 done
9155 done
9156 IFS=$as_save_IFS
9157
9158 fi
9159 fi
9160 LIPO=$ac_cv_prog_LIPO
9161 if test -n "$LIPO"; then
9162   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9163 $as_echo "$LIPO" >&6; }
9164 else
9165   { $as_echo "$as_me:$LINENO: result: no" >&5
9166 $as_echo "no" >&6; }
9167 fi
9168
9169
9170 fi
9171 if test -z "$ac_cv_prog_LIPO"; then
9172   ac_ct_LIPO=$LIPO
9173   # Extract the first word of "lipo", so it can be a program name with args.
9174 set dummy lipo; ac_word=$2
9175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9176 $as_echo_n "checking for $ac_word... " >&6; }
9177 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9178   $as_echo_n "(cached) " >&6
9179 else
9180   if test -n "$ac_ct_LIPO"; then
9181   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9182 else
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184 for as_dir in $PATH
9185 do
9186   IFS=$as_save_IFS
9187   test -z "$as_dir" && as_dir=.
9188   for ac_exec_ext in '' $ac_executable_extensions; do
9189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9190     ac_cv_prog_ac_ct_LIPO="lipo"
9191     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9192     break 2
9193   fi
9194 done
9195 done
9196 IFS=$as_save_IFS
9197
9198 fi
9199 fi
9200 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9201 if test -n "$ac_ct_LIPO"; then
9202   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9203 $as_echo "$ac_ct_LIPO" >&6; }
9204 else
9205   { $as_echo "$as_me:$LINENO: result: no" >&5
9206 $as_echo "no" >&6; }
9207 fi
9208
9209   if test "x$ac_ct_LIPO" = x; then
9210     LIPO=":"
9211   else
9212     case $cross_compiling:$ac_tool_warned in
9213 yes:)
9214 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9216 ac_tool_warned=yes ;;
9217 esac
9218     LIPO=$ac_ct_LIPO
9219   fi
9220 else
9221   LIPO="$ac_cv_prog_LIPO"
9222 fi
9223
9224     if test -n "$ac_tool_prefix"; then
9225   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9226 set dummy ${ac_tool_prefix}otool; ac_word=$2
9227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if test "${ac_cv_prog_OTOOL+set}" = set; then
9230   $as_echo_n "(cached) " >&6
9231 else
9232   if test -n "$OTOOL"; then
9233   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9234 else
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 for as_dir in $PATH
9237 do
9238   IFS=$as_save_IFS
9239   test -z "$as_dir" && as_dir=.
9240   for ac_exec_ext in '' $ac_executable_extensions; do
9241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9242     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9243     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9244     break 2
9245   fi
9246 done
9247 done
9248 IFS=$as_save_IFS
9249
9250 fi
9251 fi
9252 OTOOL=$ac_cv_prog_OTOOL
9253 if test -n "$OTOOL"; then
9254   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9255 $as_echo "$OTOOL" >&6; }
9256 else
9257   { $as_echo "$as_me:$LINENO: result: no" >&5
9258 $as_echo "no" >&6; }
9259 fi
9260
9261
9262 fi
9263 if test -z "$ac_cv_prog_OTOOL"; then
9264   ac_ct_OTOOL=$OTOOL
9265   # Extract the first word of "otool", so it can be a program name with args.
9266 set dummy otool; ac_word=$2
9267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9268 $as_echo_n "checking for $ac_word... " >&6; }
9269 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9270   $as_echo_n "(cached) " >&6
9271 else
9272   if test -n "$ac_ct_OTOOL"; then
9273   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9274 else
9275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276 for as_dir in $PATH
9277 do
9278   IFS=$as_save_IFS
9279   test -z "$as_dir" && as_dir=.
9280   for ac_exec_ext in '' $ac_executable_extensions; do
9281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9282     ac_cv_prog_ac_ct_OTOOL="otool"
9283     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9284     break 2
9285   fi
9286 done
9287 done
9288 IFS=$as_save_IFS
9289
9290 fi
9291 fi
9292 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9293 if test -n "$ac_ct_OTOOL"; then
9294   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9295 $as_echo "$ac_ct_OTOOL" >&6; }
9296 else
9297   { $as_echo "$as_me:$LINENO: result: no" >&5
9298 $as_echo "no" >&6; }
9299 fi
9300
9301   if test "x$ac_ct_OTOOL" = x; then
9302     OTOOL=":"
9303   else
9304     case $cross_compiling:$ac_tool_warned in
9305 yes:)
9306 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308 ac_tool_warned=yes ;;
9309 esac
9310     OTOOL=$ac_ct_OTOOL
9311   fi
9312 else
9313   OTOOL="$ac_cv_prog_OTOOL"
9314 fi
9315
9316     if test -n "$ac_tool_prefix"; then
9317   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9318 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9322   $as_echo_n "(cached) " >&6
9323 else
9324   if test -n "$OTOOL64"; then
9325   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9329 do
9330   IFS=$as_save_IFS
9331   test -z "$as_dir" && as_dir=.
9332   for ac_exec_ext in '' $ac_executable_extensions; do
9333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9335     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9336     break 2
9337   fi
9338 done
9339 done
9340 IFS=$as_save_IFS
9341
9342 fi
9343 fi
9344 OTOOL64=$ac_cv_prog_OTOOL64
9345 if test -n "$OTOOL64"; then
9346   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9347 $as_echo "$OTOOL64" >&6; }
9348 else
9349   { $as_echo "$as_me:$LINENO: result: no" >&5
9350 $as_echo "no" >&6; }
9351 fi
9352
9353
9354 fi
9355 if test -z "$ac_cv_prog_OTOOL64"; then
9356   ac_ct_OTOOL64=$OTOOL64
9357   # Extract the first word of "otool64", so it can be a program name with args.
9358 set dummy otool64; ac_word=$2
9359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9362   $as_echo_n "(cached) " >&6
9363 else
9364   if test -n "$ac_ct_OTOOL64"; then
9365   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9366 else
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9369 do
9370   IFS=$as_save_IFS
9371   test -z "$as_dir" && as_dir=.
9372   for ac_exec_ext in '' $ac_executable_extensions; do
9373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9374     ac_cv_prog_ac_ct_OTOOL64="otool64"
9375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9376     break 2
9377   fi
9378 done
9379 done
9380 IFS=$as_save_IFS
9381
9382 fi
9383 fi
9384 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9385 if test -n "$ac_ct_OTOOL64"; then
9386   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9387 $as_echo "$ac_ct_OTOOL64" >&6; }
9388 else
9389   { $as_echo "$as_me:$LINENO: result: no" >&5
9390 $as_echo "no" >&6; }
9391 fi
9392
9393   if test "x$ac_ct_OTOOL64" = x; then
9394     OTOOL64=":"
9395   else
9396     case $cross_compiling:$ac_tool_warned in
9397 yes:)
9398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9400 ac_tool_warned=yes ;;
9401 esac
9402     OTOOL64=$ac_ct_OTOOL64
9403   fi
9404 else
9405   OTOOL64="$ac_cv_prog_OTOOL64"
9406 fi
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9435 $as_echo_n "checking for -single_module linker flag... " >&6; }
9436 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9437   $as_echo_n "(cached) " >&6
9438 else
9439   lt_cv_apple_cc_single_mod=no
9440       if test -z "${LT_MULTI_MODULE}"; then
9441         # By default we will add the -single_module flag. You can override
9442         # by either setting the environment variable LT_MULTI_MODULE
9443         # non-empty at configure time, or by adding -multi_module to the
9444         # link flags.
9445         rm -rf libconftest.dylib*
9446         echo "int foo(void){return 1;}" > conftest.c
9447         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9448 -dynamiclib -Wl,-single_module conftest.c" >&5
9449         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9450           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9451         _lt_result=$?
9452         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9453           lt_cv_apple_cc_single_mod=yes
9454         else
9455           cat conftest.err >&5
9456         fi
9457         rm -rf libconftest.dylib*
9458         rm -f conftest.*
9459       fi
9460 fi
9461 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9462 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9463     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9464 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9465 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9466   $as_echo_n "(cached) " >&6
9467 else
9468   lt_cv_ld_exported_symbols_list=no
9469       save_LDFLAGS=$LDFLAGS
9470       echo "_main" > conftest.sym
9471       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9472       cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478
9479 int
9480 main ()
9481 {
9482
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9489 case "(($ac_try" in
9490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491   *) ac_try_echo=$ac_try;;
9492 esac
9493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9494 $as_echo "$ac_try_echo") >&5
9495   (eval "$ac_link") 2>conftest.er1
9496   ac_status=$?
9497   grep -v '^ *+' conftest.er1 >conftest.err
9498   rm -f conftest.er1
9499   cat conftest.err >&5
9500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } && {
9502          test -z "$ac_c_werror_flag" ||
9503          test ! -s conftest.err
9504        } && test -s conftest$ac_exeext && {
9505          test "$cross_compiling" = yes ||
9506          $as_test_x conftest$ac_exeext
9507        }; then
9508   lt_cv_ld_exported_symbols_list=yes
9509 else
9510   $as_echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513         lt_cv_ld_exported_symbols_list=no
9514 fi
9515
9516 rm -rf conftest.dSYM
9517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9518       conftest$ac_exeext conftest.$ac_ext
9519         LDFLAGS="$save_LDFLAGS"
9520
9521 fi
9522 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9523 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9524     case $host_os in
9525     rhapsody* | darwin1.[012])
9526       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9527     darwin1.*)
9528       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9529     darwin*) # darwin 5.x on
9530       # if running on 10.5 or later, the deployment target defaults
9531       # to the OS version, if on x86, and 10.4, the deployment
9532       # target defaults to 10.4. Don't you love it?
9533       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9534         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9535           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9536         10.[012]*)
9537           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9538         10.*)
9539           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9540       esac
9541     ;;
9542   esac
9543     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9544       _lt_dar_single_mod='$single_module'
9545     fi
9546     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9547       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9548     else
9549       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9550     fi
9551     if test "$DSYMUTIL" != ":"; then
9552       _lt_dsymutil='~$DSYMUTIL $lib || :'
9553     else
9554       _lt_dsymutil=
9555     fi
9556     ;;
9557   esac
9558
9559
9560 for ac_header in dlfcn.h
9561 do
9562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9564 $as_echo_n "checking for $ac_header... " >&6; }
9565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9566   $as_echo_n "(cached) " >&6
9567 else
9568   cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574 $ac_includes_default
9575
9576 #include <$ac_header>
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (ac_try="$ac_compile"
9580 case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9585 $as_echo "$ac_try_echo") >&5
9586   (eval "$ac_compile") 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } && {
9593          test -z "$ac_c_werror_flag" ||
9594          test ! -s conftest.err
9595        } && test -s conftest.$ac_objext; then
9596   eval "$as_ac_Header=yes"
9597 else
9598   $as_echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601         eval "$as_ac_Header=no"
9602 fi
9603
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 fi
9606 ac_res=`eval 'as_val=${'$as_ac_Header'}
9607                  $as_echo "$as_val"'`
9608                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9609 $as_echo "$ac_res" >&6; }
9610 as_val=`eval 'as_val=${'$as_ac_Header'}
9611                  $as_echo "$as_val"'`
9612    if test "x$as_val" = x""yes; then
9613   cat >>confdefs.h <<_ACEOF
9614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9615 _ACEOF
9616
9617 fi
9618
9619 done
9620
9621
9622
9623 ac_ext=cpp
9624 ac_cpp='$CXXCPP $CPPFLAGS'
9625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9628 if test -z "$CXX"; then
9629   if test -n "$CCC"; then
9630     CXX=$CCC
9631   else
9632     if test -n "$ac_tool_prefix"; then
9633   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9634   do
9635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if test "${ac_cv_prog_CXX+set}" = set; then
9640   $as_echo_n "(cached) " >&6
9641 else
9642   if test -n "$CXX"; then
9643   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9644 else
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in $PATH
9647 do
9648   IFS=$as_save_IFS
9649   test -z "$as_dir" && as_dir=.
9650   for ac_exec_ext in '' $ac_executable_extensions; do
9651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9652     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9653     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9654     break 2
9655   fi
9656 done
9657 done
9658 IFS=$as_save_IFS
9659
9660 fi
9661 fi
9662 CXX=$ac_cv_prog_CXX
9663 if test -n "$CXX"; then
9664   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9665 $as_echo "$CXX" >&6; }
9666 else
9667   { $as_echo "$as_me:$LINENO: result: no" >&5
9668 $as_echo "no" >&6; }
9669 fi
9670
9671
9672     test -n "$CXX" && break
9673   done
9674 fi
9675 if test -z "$CXX"; then
9676   ac_ct_CXX=$CXX
9677   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9678 do
9679   # Extract the first word of "$ac_prog", so it can be a program name with args.
9680 set dummy $ac_prog; ac_word=$2
9681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9684   $as_echo_n "(cached) " >&6
9685 else
9686   if test -n "$ac_ct_CXX"; then
9687   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9688 else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692   IFS=$as_save_IFS
9693   test -z "$as_dir" && as_dir=.
9694   for ac_exec_ext in '' $ac_executable_extensions; do
9695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696     ac_cv_prog_ac_ct_CXX="$ac_prog"
9697     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9698     break 2
9699   fi
9700 done
9701 done
9702 IFS=$as_save_IFS
9703
9704 fi
9705 fi
9706 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9707 if test -n "$ac_ct_CXX"; then
9708   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9709 $as_echo "$ac_ct_CXX" >&6; }
9710 else
9711   { $as_echo "$as_me:$LINENO: result: no" >&5
9712 $as_echo "no" >&6; }
9713 fi
9714
9715
9716   test -n "$ac_ct_CXX" && break
9717 done
9718
9719   if test "x$ac_ct_CXX" = x; then
9720     CXX="g++"
9721   else
9722     case $cross_compiling:$ac_tool_warned in
9723 yes:)
9724 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9726 ac_tool_warned=yes ;;
9727 esac
9728     CXX=$ac_ct_CXX
9729   fi
9730 fi
9731
9732   fi
9733 fi
9734 # Provide some information about the compiler.
9735 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9736 set X $ac_compile
9737 ac_compiler=$2
9738 { (ac_try="$ac_compiler --version >&5"
9739 case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9744 $as_echo "$ac_try_echo") >&5
9745   (eval "$ac_compiler --version >&5") 2>&5
9746   ac_status=$?
9747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }
9749 { (ac_try="$ac_compiler -v >&5"
9750 case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756   (eval "$ac_compiler -v >&5") 2>&5
9757   ac_status=$?
9758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }
9760 { (ac_try="$ac_compiler -V >&5"
9761 case "(($ac_try" in
9762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763   *) ac_try_echo=$ac_try;;
9764 esac
9765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9766 $as_echo "$ac_try_echo") >&5
9767   (eval "$ac_compiler -V >&5") 2>&5
9768   ac_status=$?
9769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }
9771
9772 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9774 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9775   $as_echo_n "(cached) " >&6
9776 else
9777   cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h.  */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h.  */
9783
9784 int
9785 main ()
9786 {
9787 #ifndef __GNUC__
9788        choke me
9789 #endif
9790
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 rm -f conftest.$ac_objext
9796 if { (ac_try="$ac_compile"
9797 case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9802 $as_echo "$ac_try_echo") >&5
9803   (eval "$ac_compile") 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } && {
9810          test -z "$ac_cxx_werror_flag" ||
9811          test ! -s conftest.err
9812        } && test -s conftest.$ac_objext; then
9813   ac_compiler_gnu=yes
9814 else
9815   $as_echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818         ac_compiler_gnu=no
9819 fi
9820
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9823
9824 fi
9825 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9826 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9827 if test $ac_compiler_gnu = yes; then
9828   GXX=yes
9829 else
9830   GXX=
9831 fi
9832 ac_test_CXXFLAGS=${CXXFLAGS+set}
9833 ac_save_CXXFLAGS=$CXXFLAGS
9834 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9835 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9836 if test "${ac_cv_prog_cxx_g+set}" = set; then
9837   $as_echo_n "(cached) " >&6
9838 else
9839   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9840    ac_cxx_werror_flag=yes
9841    ac_cv_prog_cxx_g=no
9842    CXXFLAGS="-g"
9843    cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849
9850 int
9851 main ()
9852 {
9853
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (ac_try="$ac_compile"
9860 case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866   (eval "$ac_compile") 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } && {
9873          test -z "$ac_cxx_werror_flag" ||
9874          test ! -s conftest.err
9875        } && test -s conftest.$ac_objext; then
9876   ac_cv_prog_cxx_g=yes
9877 else
9878   $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881         CXXFLAGS=""
9882       cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888
9889 int
9890 main ()
9891 {
9892
9893   ;
9894   return 0;
9895 }
9896 _ACEOF
9897 rm -f conftest.$ac_objext
9898 if { (ac_try="$ac_compile"
9899 case "(($ac_try" in
9900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901   *) ac_try_echo=$ac_try;;
9902 esac
9903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9904 $as_echo "$ac_try_echo") >&5
9905   (eval "$ac_compile") 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } && {
9912          test -z "$ac_cxx_werror_flag" ||
9913          test ! -s conftest.err
9914        } && test -s conftest.$ac_objext; then
9915   :
9916 else
9917   $as_echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9921          CXXFLAGS="-g"
9922          cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928
9929 int
9930 main ()
9931 {
9932
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944 $as_echo "$ac_try_echo") >&5
9945   (eval "$ac_compile") 2>conftest.er1
9946   ac_status=$?
9947   grep -v '^ *+' conftest.er1 >conftest.err
9948   rm -f conftest.er1
9949   cat conftest.err >&5
9950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } && {
9952          test -z "$ac_cxx_werror_flag" ||
9953          test ! -s conftest.err
9954        } && test -s conftest.$ac_objext; then
9955   ac_cv_prog_cxx_g=yes
9956 else
9957   $as_echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960
9961 fi
9962
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi
9965
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 fi
9968
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9971 fi
9972 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9973 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9974 if test "$ac_test_CXXFLAGS" = set; then
9975   CXXFLAGS=$ac_save_CXXFLAGS
9976 elif test $ac_cv_prog_cxx_g = yes; then
9977   if test "$GXX" = yes; then
9978     CXXFLAGS="-g -O2"
9979   else
9980     CXXFLAGS="-g"
9981   fi
9982 else
9983   if test "$GXX" = yes; then
9984     CXXFLAGS="-O2"
9985   else
9986     CXXFLAGS=
9987   fi
9988 fi
9989 ac_ext=c
9990 ac_cpp='$CPP $CPPFLAGS'
9991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9994
9995 depcc="$CXX"  am_compiler_list=
9996
9997 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9998 $as_echo_n "checking dependency style of $depcc... " >&6; }
9999 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10000   $as_echo_n "(cached) " >&6
10001 else
10002   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10003   # We make a subdir and do the tests there.  Otherwise we can end up
10004   # making bogus files that we don't know about and never remove.  For
10005   # instance it was reported that on HP-UX the gcc test will end up
10006   # making a dummy file named `D' -- because `-MD' means `put the output
10007   # in D'.
10008   mkdir conftest.dir
10009   # Copy depcomp to subdir because otherwise we won't find it if we're
10010   # using a relative directory.
10011   cp "$am_depcomp" conftest.dir
10012   cd conftest.dir
10013   # We will build objects and dependencies in a subdirectory because
10014   # it helps to detect inapplicable dependency modes.  For instance
10015   # both Tru64's cc and ICC support -MD to output dependencies as a
10016   # side effect of compilation, but ICC will put the dependencies in
10017   # the current directory while Tru64 will put them in the object
10018   # directory.
10019   mkdir sub
10020
10021   am_cv_CXX_dependencies_compiler_type=none
10022   if test "$am_compiler_list" = ""; then
10023      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10024   fi
10025   for depmode in $am_compiler_list; do
10026     # Setup a source with many dependencies, because some compilers
10027     # like to wrap large dependency lists on column 80 (with \), and
10028     # we should not choose a depcomp mode which is confused by this.
10029     #
10030     # We need to recreate these files for each test, as the compiler may
10031     # overwrite some of them when testing with obscure command lines.
10032     # This happens at least with the AIX C compiler.
10033     : > sub/conftest.c
10034     for i in 1 2 3 4 5 6; do
10035       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10036       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10037       # Solaris 8's {/usr,}/bin/sh.
10038       touch sub/conftst$i.h
10039     done
10040     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10041
10042     case $depmode in
10043     nosideeffect)
10044       # after this tag, mechanisms are not by side-effect, so they'll
10045       # only be used when explicitly requested
10046       if test "x$enable_dependency_tracking" = xyes; then
10047         continue
10048       else
10049         break
10050       fi
10051       ;;
10052     none) break ;;
10053     esac
10054     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10055     # mode.  It turns out that the SunPro C++ compiler does not properly
10056     # handle `-M -o', and we need to detect this.
10057     if depmode=$depmode \
10058        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10059        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10060        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10061          >/dev/null 2>conftest.err &&
10062        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10063        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10064        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10065        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10066       # icc doesn't choke on unknown options, it will just issue warnings
10067       # or remarks (even with -Werror).  So we grep stderr for any message
10068       # that says an option was ignored or not supported.
10069       # When given -MP, icc 7.0 and 7.1 complain thusly:
10070       #   icc: Command line warning: ignoring option '-M'; no argument required
10071       # The diagnosis changed in icc 8.0:
10072       #   icc: Command line remark: option '-MP' not supported
10073       if (grep 'ignoring option' conftest.err ||
10074           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10075         am_cv_CXX_dependencies_compiler_type=$depmode
10076         break
10077       fi
10078     fi
10079   done
10080
10081   cd ..
10082   rm -rf conftest.dir
10083 else
10084   am_cv_CXX_dependencies_compiler_type=none
10085 fi
10086
10087 fi
10088 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10089 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10090 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10091
10092  if
10093   test "x$enable_dependency_tracking" != xno \
10094   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10095   am__fastdepCXX_TRUE=
10096   am__fastdepCXX_FALSE='#'
10097 else
10098   am__fastdepCXX_TRUE='#'
10099   am__fastdepCXX_FALSE=
10100 fi
10101
10102
10103 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10104     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10105     (test "X$CXX" != "Xg++"))) ; then
10106   ac_ext=cpp
10107 ac_cpp='$CXXCPP $CPPFLAGS'
10108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10111 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10112 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10113 if test -z "$CXXCPP"; then
10114   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10115   $as_echo_n "(cached) " >&6
10116 else
10117       # Double quotes because CXXCPP needs to be expanded
10118     for CXXCPP in "$CXX -E" "/lib/cpp"
10119     do
10120       ac_preproc_ok=false
10121 for ac_cxx_preproc_warn_flag in '' yes
10122 do
10123   # Use a header file that comes with gcc, so configuring glibc
10124   # with a fresh cross-compiler works.
10125   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10126   # <limits.h> exists even on freestanding compilers.
10127   # On the NeXT, cc -E runs the code through the compiler's parser,
10128   # not just through cpp. "Syntax error" is here to catch this case.
10129   cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h.  */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
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_try="$ac_cpp conftest.$ac_ext"
10143 case "(($ac_try" in
10144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145   *) ac_try_echo=$ac_try;;
10146 esac
10147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10148 $as_echo "$ac_try_echo") >&5
10149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } >/dev/null && {
10156          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10157          test ! -s conftest.err
10158        }; then
10159   :
10160 else
10161   $as_echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164   # Broken: fails on valid input.
10165 continue
10166 fi
10167
10168 rm -f conftest.err conftest.$ac_ext
10169
10170   # OK, works on sane cases.  Now check whether nonexistent headers
10171   # can be detected and how.
10172   cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 #include <ac_nonexistent.h>
10179 _ACEOF
10180 if { (ac_try="$ac_cpp conftest.$ac_ext"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10186 $as_echo "$ac_try_echo") >&5
10187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } >/dev/null && {
10194          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10195          test ! -s conftest.err
10196        }; then
10197   # Broken: success on invalid input.
10198 continue
10199 else
10200   $as_echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203   # Passes both tests.
10204 ac_preproc_ok=:
10205 break
10206 fi
10207
10208 rm -f conftest.err conftest.$ac_ext
10209
10210 done
10211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10212 rm -f conftest.err conftest.$ac_ext
10213 if $ac_preproc_ok; then
10214   break
10215 fi
10216
10217     done
10218     ac_cv_prog_CXXCPP=$CXXCPP
10219
10220 fi
10221   CXXCPP=$ac_cv_prog_CXXCPP
10222 else
10223   ac_cv_prog_CXXCPP=$CXXCPP
10224 fi
10225 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10226 $as_echo "$CXXCPP" >&6; }
10227 ac_preproc_ok=false
10228 for ac_cxx_preproc_warn_flag in '' yes
10229 do
10230   # Use a header file that comes with gcc, so configuring glibc
10231   # with a fresh cross-compiler works.
10232   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10233   # <limits.h> exists even on freestanding compilers.
10234   # On the NeXT, cc -E runs the code through the compiler's parser,
10235   # not just through cpp. "Syntax error" is here to catch this case.
10236   cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 #ifdef __STDC__
10243 # include <limits.h>
10244 #else
10245 # include <assert.h>
10246 #endif
10247                      Syntax error
10248 _ACEOF
10249 if { (ac_try="$ac_cpp conftest.$ac_ext"
10250 case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10255 $as_echo "$ac_try_echo") >&5
10256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10257   ac_status=$?
10258   grep -v '^ *+' conftest.er1 >conftest.err
10259   rm -f conftest.er1
10260   cat conftest.err >&5
10261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } >/dev/null && {
10263          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10264          test ! -s conftest.err
10265        }; then
10266   :
10267 else
10268   $as_echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271   # Broken: fails on valid input.
10272 continue
10273 fi
10274
10275 rm -f conftest.err conftest.$ac_ext
10276
10277   # OK, works on sane cases.  Now check whether nonexistent headers
10278   # can be detected and how.
10279   cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 #include <ac_nonexistent.h>
10286 _ACEOF
10287 if { (ac_try="$ac_cpp conftest.$ac_ext"
10288 case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } >/dev/null && {
10301          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10302          test ! -s conftest.err
10303        }; then
10304   # Broken: success on invalid input.
10305 continue
10306 else
10307   $as_echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310   # Passes both tests.
10311 ac_preproc_ok=:
10312 break
10313 fi
10314
10315 rm -f conftest.err conftest.$ac_ext
10316
10317 done
10318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10319 rm -f conftest.err conftest.$ac_ext
10320 if $ac_preproc_ok; then
10321   :
10322 else
10323   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10325 _lt_caught_CXX_error=yes; }
10326 fi
10327
10328 ac_ext=c
10329 ac_cpp='$CPP $CPPFLAGS'
10330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10333
10334 else
10335   _lt_caught_CXX_error=yes
10336 fi
10337
10338
10339
10340
10341 # Set options
10342
10343
10344
10345         enable_dlopen=no
10346
10347
10348
10349
10350
10351
10352 # Check whether --with-pic was given.
10353 if test "${with_pic+set}" = set; then
10354   withval=$with_pic; pic_mode="$withval"
10355 else
10356   pic_mode=default
10357 fi
10358
10359
10360 test -z "$pic_mode" && pic_mode=default
10361
10362
10363
10364
10365
10366
10367
10368   # Check whether --enable-fast-install was given.
10369 if test "${enable_fast_install+set}" = set; then
10370   enableval=$enable_fast_install; p=${PACKAGE-default}
10371     case $enableval in
10372     yes) enable_fast_install=yes ;;
10373     no) enable_fast_install=no ;;
10374     *)
10375       enable_fast_install=no
10376       # Look at the argument we got.  We use all the common list separators.
10377       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10378       for pkg in $enableval; do
10379         IFS="$lt_save_ifs"
10380         if test "X$pkg" = "X$p"; then
10381           enable_fast_install=yes
10382         fi
10383       done
10384       IFS="$lt_save_ifs"
10385       ;;
10386     esac
10387 else
10388   enable_fast_install=yes
10389 fi
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401 # This can be used to rebuild libtool when needed
10402 LIBTOOL_DEPS="$ltmain"
10403
10404 # Always use our own libtool.
10405 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431 test -z "$LN_S" && LN_S="ln -s"
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446 if test -n "${ZSH_VERSION+set}" ; then
10447    setopt NO_GLOB_SUBST
10448 fi
10449
10450 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
10451 $as_echo_n "checking for objdir... " >&6; }
10452 if test "${lt_cv_objdir+set}" = set; then
10453   $as_echo_n "(cached) " >&6
10454 else
10455   rm -f .libs 2>/dev/null
10456 mkdir .libs 2>/dev/null
10457 if test -d .libs; then
10458   lt_cv_objdir=.libs
10459 else
10460   # MS-DOS does not allow filenames that begin with a dot.
10461   lt_cv_objdir=_libs
10462 fi
10463 rmdir .libs 2>/dev/null
10464 fi
10465 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10466 $as_echo "$lt_cv_objdir" >&6; }
10467 objdir=$lt_cv_objdir
10468
10469
10470
10471
10472
10473 cat >>confdefs.h <<_ACEOF
10474 #define LT_OBJDIR "$lt_cv_objdir/"
10475 _ACEOF
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493 case $host_os in
10494 aix3*)
10495   # AIX sometimes has problems with the GCC collect2 program.  For some
10496   # reason, if we set the COLLECT_NAMES environment variable, the problems
10497   # vanish in a puff of smoke.
10498   if test "X${COLLECT_NAMES+set}" != Xset; then
10499     COLLECT_NAMES=
10500     export COLLECT_NAMES
10501   fi
10502   ;;
10503 esac
10504
10505 # Sed substitution that helps us do robust quoting.  It backslashifies
10506 # metacharacters that are still active within double-quoted strings.
10507 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10508
10509 # Same as above, but do not quote variable references.
10510 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10511
10512 # Sed substitution to delay expansion of an escaped shell variable in a
10513 # double_quote_subst'ed string.
10514 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10515
10516 # Sed substitution to delay expansion of an escaped single quote.
10517 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10518
10519 # Sed substitution to avoid accidental globbing in evaled expressions
10520 no_glob_subst='s/\*/\\\*/g'
10521
10522 # Global variables:
10523 ofile=libtool
10524 can_build_shared=yes
10525
10526 # All known linkers require a `.a' archive for static linking (except MSVC,
10527 # which needs '.lib').
10528 libext=a
10529
10530 with_gnu_ld="$lt_cv_prog_gnu_ld"
10531
10532 old_CC="$CC"
10533 old_CFLAGS="$CFLAGS"
10534
10535 # Set sane defaults for various variables
10536 test -z "$CC" && CC=cc
10537 test -z "$LTCC" && LTCC=$CC
10538 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10539 test -z "$LD" && LD=ld
10540 test -z "$ac_objext" && ac_objext=o
10541
10542 for cc_temp in $compiler""; do
10543   case $cc_temp in
10544     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10545     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10546     \-*) ;;
10547     *) break;;
10548   esac
10549 done
10550 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10551
10552
10553 # Only perform the check for file, if the check method requires it
10554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10555 case $deplibs_check_method in
10556 file_magic*)
10557   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10558     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10559 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10560 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10561   $as_echo_n "(cached) " >&6
10562 else
10563   case $MAGIC_CMD in
10564 [\\/*] |  ?:[\\/]*)
10565   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10566   ;;
10567 *)
10568   lt_save_MAGIC_CMD="$MAGIC_CMD"
10569   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10570   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10571   for ac_dir in $ac_dummy; do
10572     IFS="$lt_save_ifs"
10573     test -z "$ac_dir" && ac_dir=.
10574     if test -f $ac_dir/${ac_tool_prefix}file; then
10575       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10576       if test -n "$file_magic_test_file"; then
10577         case $deplibs_check_method in
10578         "file_magic "*)
10579           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10580           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10581           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10582             $EGREP "$file_magic_regex" > /dev/null; then
10583             :
10584           else
10585             cat <<_LT_EOF 1>&2
10586
10587 *** Warning: the command libtool uses to detect shared libraries,
10588 *** $file_magic_cmd, produces output that libtool cannot recognize.
10589 *** The result is that libtool may fail to recognize shared libraries
10590 *** as such.  This will affect the creation of libtool libraries that
10591 *** depend on shared libraries, but programs linked with such libtool
10592 *** libraries will work regardless of this problem.  Nevertheless, you
10593 *** may want to report the problem to your system manager and/or to
10594 *** bug-libtool@gnu.org
10595
10596 _LT_EOF
10597           fi ;;
10598         esac
10599       fi
10600       break
10601     fi
10602   done
10603   IFS="$lt_save_ifs"
10604   MAGIC_CMD="$lt_save_MAGIC_CMD"
10605   ;;
10606 esac
10607 fi
10608
10609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10610 if test -n "$MAGIC_CMD"; then
10611   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10612 $as_echo "$MAGIC_CMD" >&6; }
10613 else
10614   { $as_echo "$as_me:$LINENO: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617
10618
10619
10620
10621
10622 if test -z "$lt_cv_path_MAGIC_CMD"; then
10623   if test -n "$ac_tool_prefix"; then
10624     { $as_echo "$as_me:$LINENO: checking for file" >&5
10625 $as_echo_n "checking for file... " >&6; }
10626 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10627   $as_echo_n "(cached) " >&6
10628 else
10629   case $MAGIC_CMD in
10630 [\\/*] |  ?:[\\/]*)
10631   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10632   ;;
10633 *)
10634   lt_save_MAGIC_CMD="$MAGIC_CMD"
10635   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10636   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10637   for ac_dir in $ac_dummy; do
10638     IFS="$lt_save_ifs"
10639     test -z "$ac_dir" && ac_dir=.
10640     if test -f $ac_dir/file; then
10641       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10642       if test -n "$file_magic_test_file"; then
10643         case $deplibs_check_method in
10644         "file_magic "*)
10645           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10646           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10647           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10648             $EGREP "$file_magic_regex" > /dev/null; then
10649             :
10650           else
10651             cat <<_LT_EOF 1>&2
10652
10653 *** Warning: the command libtool uses to detect shared libraries,
10654 *** $file_magic_cmd, produces output that libtool cannot recognize.
10655 *** The result is that libtool may fail to recognize shared libraries
10656 *** as such.  This will affect the creation of libtool libraries that
10657 *** depend on shared libraries, but programs linked with such libtool
10658 *** libraries will work regardless of this problem.  Nevertheless, you
10659 *** may want to report the problem to your system manager and/or to
10660 *** bug-libtool@gnu.org
10661
10662 _LT_EOF
10663           fi ;;
10664         esac
10665       fi
10666       break
10667     fi
10668   done
10669   IFS="$lt_save_ifs"
10670   MAGIC_CMD="$lt_save_MAGIC_CMD"
10671   ;;
10672 esac
10673 fi
10674
10675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10676 if test -n "$MAGIC_CMD"; then
10677   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10678 $as_echo "$MAGIC_CMD" >&6; }
10679 else
10680   { $as_echo "$as_me:$LINENO: result: no" >&5
10681 $as_echo "no" >&6; }
10682 fi
10683
10684
10685   else
10686     MAGIC_CMD=:
10687   fi
10688 fi
10689
10690   fi
10691   ;;
10692 esac
10693
10694 # Use C for the default configuration in the libtool script
10695
10696 lt_save_CC="$CC"
10697 ac_ext=c
10698 ac_cpp='$CPP $CPPFLAGS'
10699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10702
10703
10704 # Source file extension for C test sources.
10705 ac_ext=c
10706
10707 # Object file extension for compiled C test sources.
10708 objext=o
10709 objext=$objext
10710
10711 # Code to be used in simple compile tests
10712 lt_simple_compile_test_code="int some_variable = 0;"
10713
10714 # Code to be used in simple link tests
10715 lt_simple_link_test_code='int main(){return(0);}'
10716
10717
10718
10719
10720
10721
10722
10723 # If no C compiler was specified, use CC.
10724 LTCC=${LTCC-"$CC"}
10725
10726 # If no C compiler flags were specified, use CFLAGS.
10727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10728
10729 # Allow CC to be a program name with arguments.
10730 compiler=$CC
10731
10732 # Save the default compiler, since it gets overwritten when the other
10733 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10734 compiler_DEFAULT=$CC
10735
10736 # save warnings/boilerplate of simple test code
10737 ac_outfile=conftest.$ac_objext
10738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10740 _lt_compiler_boilerplate=`cat conftest.err`
10741 $RM conftest*
10742
10743 ac_outfile=conftest.$ac_objext
10744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10746 _lt_linker_boilerplate=`cat conftest.err`
10747 $RM -r conftest*
10748
10749
10750 ## CAVEAT EMPTOR:
10751 ## There is no encapsulation within the following macros, do not change
10752 ## the running order or otherwise move them around unless you know exactly
10753 ## what you are doing...
10754 if test -n "$compiler"; then
10755
10756 lt_prog_compiler_no_builtin_flag=
10757
10758 if test "$GCC" = yes; then
10759   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10760
10761   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10762 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10763 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10764   $as_echo_n "(cached) " >&6
10765 else
10766   lt_cv_prog_compiler_rtti_exceptions=no
10767    ac_outfile=conftest.$ac_objext
10768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10769    lt_compiler_flag="-fno-rtti -fno-exceptions"
10770    # Insert the option either (1) after the last *FLAGS variable, or
10771    # (2) before a word containing "conftest.", or (3) at the end.
10772    # Note that $ac_compile itself does not contain backslashes and begins
10773    # with a dollar sign (not a hyphen), so the echo should work correctly.
10774    # The option is referenced via a variable to avoid confusing sed.
10775    lt_compile=`echo "$ac_compile" | $SED \
10776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10778    -e 's:$: $lt_compiler_flag:'`
10779    (eval echo "\"\$as_me:10779: $lt_compile\"" >&5)
10780    (eval "$lt_compile" 2>conftest.err)
10781    ac_status=$?
10782    cat conftest.err >&5
10783    echo "$as_me:10783: \$? = $ac_status" >&5
10784    if (exit $ac_status) && test -s "$ac_outfile"; then
10785      # The compiler can only warn and ignore the option if not recognized
10786      # So say no if there are warnings other than the usual output.
10787      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10790        lt_cv_prog_compiler_rtti_exceptions=yes
10791      fi
10792    fi
10793    $RM conftest*
10794
10795 fi
10796 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10797 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10798
10799 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10800     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10801 else
10802     :
10803 fi
10804
10805 fi
10806
10807
10808
10809
10810
10811
10812   lt_prog_compiler_wl=
10813 lt_prog_compiler_pic=
10814 lt_prog_compiler_static=
10815
10816 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10817 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10818
10819   if test "$GCC" = yes; then
10820     lt_prog_compiler_wl='-Wl,'
10821     lt_prog_compiler_static='-static'
10822
10823     case $host_os in
10824       aix*)
10825       # All AIX code is PIC.
10826       if test "$host_cpu" = ia64; then
10827         # AIX 5 now supports IA64 processor
10828         lt_prog_compiler_static='-Bstatic'
10829       fi
10830       ;;
10831
10832     amigaos*)
10833       case $host_cpu in
10834       powerpc)
10835             # see comment about AmigaOS4 .so support
10836             lt_prog_compiler_pic='-fPIC'
10837         ;;
10838       m68k)
10839             # FIXME: we need at least 68020 code to build shared libraries, but
10840             # adding the `-m68020' flag to GCC prevents building anything better,
10841             # like `-m68040'.
10842             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10843         ;;
10844       esac
10845       ;;
10846
10847     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10848       # PIC is the default for these OSes.
10849       ;;
10850
10851     mingw* | cygwin* | pw32* | os2* | cegcc*)
10852       # This hack is so that the source file can tell whether it is being
10853       # built for inclusion in a dll (and should export symbols for example).
10854       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10855       # (--disable-auto-import) libraries
10856       lt_prog_compiler_pic='-DDLL_EXPORT'
10857       ;;
10858
10859     darwin* | rhapsody*)
10860       # PIC is the default on this platform
10861       # Common symbols not allowed in MH_DYLIB files
10862       lt_prog_compiler_pic='-fno-common'
10863       ;;
10864
10865     hpux*)
10866       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10867       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10868       # sets the default TLS model and affects inlining.
10869       case $host_cpu in
10870       hppa*64*)
10871         # +Z the default
10872         ;;
10873       *)
10874         lt_prog_compiler_pic='-fPIC'
10875         ;;
10876       esac
10877       ;;
10878
10879     interix[3-9]*)
10880       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10881       # Instead, we relocate shared libraries at runtime.
10882       ;;
10883
10884     msdosdjgpp*)
10885       # Just because we use GCC doesn't mean we suddenly get shared libraries
10886       # on systems that don't support them.
10887       lt_prog_compiler_can_build_shared=no
10888       enable_shared=no
10889       ;;
10890
10891     *nto* | *qnx*)
10892       # QNX uses GNU C++, but need to define -shared option too, otherwise
10893       # it will coredump.
10894       lt_prog_compiler_pic='-fPIC -shared'
10895       ;;
10896
10897     sysv4*MP*)
10898       if test -d /usr/nec; then
10899         lt_prog_compiler_pic=-Kconform_pic
10900       fi
10901       ;;
10902
10903     *)
10904       lt_prog_compiler_pic='-fPIC'
10905       ;;
10906     esac
10907   else
10908     # PORTME Check for flag to pass linker flags through the system compiler.
10909     case $host_os in
10910     aix*)
10911       lt_prog_compiler_wl='-Wl,'
10912       if test "$host_cpu" = ia64; then
10913         # AIX 5 now supports IA64 processor
10914         lt_prog_compiler_static='-Bstatic'
10915       else
10916         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10917       fi
10918       ;;
10919
10920     mingw* | cygwin* | pw32* | os2* | cegcc*)
10921       # This hack is so that the source file can tell whether it is being
10922       # built for inclusion in a dll (and should export symbols for example).
10923       lt_prog_compiler_pic='-DDLL_EXPORT'
10924       ;;
10925
10926     hpux9* | hpux10* | hpux11*)
10927       lt_prog_compiler_wl='-Wl,'
10928       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10929       # not for PA HP-UX.
10930       case $host_cpu in
10931       hppa*64*|ia64*)
10932         # +Z the default
10933         ;;
10934       *)
10935         lt_prog_compiler_pic='+Z'
10936         ;;
10937       esac
10938       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10939       lt_prog_compiler_static='${wl}-a ${wl}archive'
10940       ;;
10941
10942     irix5* | irix6* | nonstopux*)
10943       lt_prog_compiler_wl='-Wl,'
10944       # PIC (with -KPIC) is the default.
10945       lt_prog_compiler_static='-non_shared'
10946       ;;
10947
10948     linux* | k*bsd*-gnu)
10949       case $cc_basename in
10950       # old Intel for x86_64 which still supported -KPIC.
10951       ecc*)
10952         lt_prog_compiler_wl='-Wl,'
10953         lt_prog_compiler_pic='-KPIC'
10954         lt_prog_compiler_static='-static'
10955         ;;
10956       # icc used to be incompatible with GCC.
10957       # ICC 10 doesn't accept -KPIC any more.
10958       icc* | ifort*)
10959         lt_prog_compiler_wl='-Wl,'
10960         lt_prog_compiler_pic='-fPIC'
10961         lt_prog_compiler_static='-static'
10962         ;;
10963       # Lahey Fortran 8.1.
10964       lf95*)
10965         lt_prog_compiler_wl='-Wl,'
10966         lt_prog_compiler_pic='--shared'
10967         lt_prog_compiler_static='--static'
10968         ;;
10969       pgcc* | pgf77* | pgf90* | pgf95*)
10970         # Portland Group compilers (*not* the Pentium gcc compiler,
10971         # which looks to be a dead project)
10972         lt_prog_compiler_wl='-Wl,'
10973         lt_prog_compiler_pic='-fpic'
10974         lt_prog_compiler_static='-Bstatic'
10975         ;;
10976       ccc*)
10977         lt_prog_compiler_wl='-Wl,'
10978         # All Alpha code is PIC.
10979         lt_prog_compiler_static='-non_shared'
10980         ;;
10981       xl*)
10982         # IBM XL C 8.0/Fortran 10.1 on PPC
10983         lt_prog_compiler_wl='-Wl,'
10984         lt_prog_compiler_pic='-qpic'
10985         lt_prog_compiler_static='-qstaticlink'
10986         ;;
10987       *)
10988         case `$CC -V 2>&1 | sed 5q` in
10989         *Sun\ C*)
10990           # Sun C 5.9
10991           lt_prog_compiler_pic='-KPIC'
10992           lt_prog_compiler_static='-Bstatic'
10993           lt_prog_compiler_wl='-Wl,'
10994           ;;
10995         *Sun\ F*)
10996           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10997           lt_prog_compiler_pic='-KPIC'
10998           lt_prog_compiler_static='-Bstatic'
10999           lt_prog_compiler_wl=''
11000           ;;
11001         esac
11002         ;;
11003       esac
11004       ;;
11005
11006     newsos6)
11007       lt_prog_compiler_pic='-KPIC'
11008       lt_prog_compiler_static='-Bstatic'
11009       ;;
11010
11011     *nto* | *qnx*)
11012       # QNX uses GNU C++, but need to define -shared option too, otherwise
11013       # it will coredump.
11014       lt_prog_compiler_pic='-fPIC -shared'
11015       ;;
11016
11017     osf3* | osf4* | osf5*)
11018       lt_prog_compiler_wl='-Wl,'
11019       # All OSF/1 code is PIC.
11020       lt_prog_compiler_static='-non_shared'
11021       ;;
11022
11023     rdos*)
11024       lt_prog_compiler_static='-non_shared'
11025       ;;
11026
11027     solaris*)
11028       lt_prog_compiler_pic='-KPIC'
11029       lt_prog_compiler_static='-Bstatic'
11030       case $cc_basename in
11031       f77* | f90* | f95*)
11032         lt_prog_compiler_wl='-Qoption ld ';;
11033       *)
11034         lt_prog_compiler_wl='-Wl,';;
11035       esac
11036       ;;
11037
11038     sunos4*)
11039       lt_prog_compiler_wl='-Qoption ld '
11040       lt_prog_compiler_pic='-PIC'
11041       lt_prog_compiler_static='-Bstatic'
11042       ;;
11043
11044     sysv4 | sysv4.2uw2* | sysv4.3*)
11045       lt_prog_compiler_wl='-Wl,'
11046       lt_prog_compiler_pic='-KPIC'
11047       lt_prog_compiler_static='-Bstatic'
11048       ;;
11049
11050     sysv4*MP*)
11051       if test -d /usr/nec ;then
11052         lt_prog_compiler_pic='-Kconform_pic'
11053         lt_prog_compiler_static='-Bstatic'
11054       fi
11055       ;;
11056
11057     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11058       lt_prog_compiler_wl='-Wl,'
11059       lt_prog_compiler_pic='-KPIC'
11060       lt_prog_compiler_static='-Bstatic'
11061       ;;
11062
11063     unicos*)
11064       lt_prog_compiler_wl='-Wl,'
11065       lt_prog_compiler_can_build_shared=no
11066       ;;
11067
11068     uts4*)
11069       lt_prog_compiler_pic='-pic'
11070       lt_prog_compiler_static='-Bstatic'
11071       ;;
11072
11073     *)
11074       lt_prog_compiler_can_build_shared=no
11075       ;;
11076     esac
11077   fi
11078
11079 case $host_os in
11080   # For platforms which do not support PIC, -DPIC is meaningless:
11081   *djgpp*)
11082     lt_prog_compiler_pic=
11083     ;;
11084   *)
11085     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11086     ;;
11087 esac
11088 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11089 $as_echo "$lt_prog_compiler_pic" >&6; }
11090
11091
11092
11093
11094
11095
11096 #
11097 # Check to make sure the PIC flag actually works.
11098 #
11099 if test -n "$lt_prog_compiler_pic"; then
11100   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11102 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11103   $as_echo_n "(cached) " >&6
11104 else
11105   lt_cv_prog_compiler_pic_works=no
11106    ac_outfile=conftest.$ac_objext
11107    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11108    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11109    # Insert the option either (1) after the last *FLAGS variable, or
11110    # (2) before a word containing "conftest.", or (3) at the end.
11111    # Note that $ac_compile itself does not contain backslashes and begins
11112    # with a dollar sign (not a hyphen), so the echo should work correctly.
11113    # The option is referenced via a variable to avoid confusing sed.
11114    lt_compile=`echo "$ac_compile" | $SED \
11115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11117    -e 's:$: $lt_compiler_flag:'`
11118    (eval echo "\"\$as_me:11118: $lt_compile\"" >&5)
11119    (eval "$lt_compile" 2>conftest.err)
11120    ac_status=$?
11121    cat conftest.err >&5
11122    echo "$as_me:11122: \$? = $ac_status" >&5
11123    if (exit $ac_status) && test -s "$ac_outfile"; then
11124      # The compiler can only warn and ignore the option if not recognized
11125      # So say no if there are warnings other than the usual output.
11126      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11127      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11128      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11129        lt_cv_prog_compiler_pic_works=yes
11130      fi
11131    fi
11132    $RM conftest*
11133
11134 fi
11135 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11136 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11137
11138 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11139     case $lt_prog_compiler_pic in
11140      "" | " "*) ;;
11141      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11142      esac
11143 else
11144     lt_prog_compiler_pic=
11145      lt_prog_compiler_can_build_shared=no
11146 fi
11147
11148 fi
11149
11150
11151
11152
11153
11154
11155 #
11156 # Check to make sure the static flag actually works.
11157 #
11158 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11159 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11160 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11161 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11162   $as_echo_n "(cached) " >&6
11163 else
11164   lt_cv_prog_compiler_static_works=no
11165    save_LDFLAGS="$LDFLAGS"
11166    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11167    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11168    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11169      # The linker can only warn and ignore the option if not recognized
11170      # So say no if there are warnings
11171      if test -s conftest.err; then
11172        # Append any errors to the config.log.
11173        cat conftest.err 1>&5
11174        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11175        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11176        if diff conftest.exp conftest.er2 >/dev/null; then
11177          lt_cv_prog_compiler_static_works=yes
11178        fi
11179      else
11180        lt_cv_prog_compiler_static_works=yes
11181      fi
11182    fi
11183    $RM -r conftest*
11184    LDFLAGS="$save_LDFLAGS"
11185
11186 fi
11187 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11188 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11189
11190 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11191     :
11192 else
11193     lt_prog_compiler_static=
11194 fi
11195
11196
11197
11198
11199
11200
11201
11202   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11204 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11205   $as_echo_n "(cached) " >&6
11206 else
11207   lt_cv_prog_compiler_c_o=no
11208    $RM -r conftest 2>/dev/null
11209    mkdir conftest
11210    cd conftest
11211    mkdir out
11212    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11213
11214    lt_compiler_flag="-o out/conftest2.$ac_objext"
11215    # Insert the option either (1) after the last *FLAGS variable, or
11216    # (2) before a word containing "conftest.", or (3) at the end.
11217    # Note that $ac_compile itself does not contain backslashes and begins
11218    # with a dollar sign (not a hyphen), so the echo should work correctly.
11219    lt_compile=`echo "$ac_compile" | $SED \
11220    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11222    -e 's:$: $lt_compiler_flag:'`
11223    (eval echo "\"\$as_me:11223: $lt_compile\"" >&5)
11224    (eval "$lt_compile" 2>out/conftest.err)
11225    ac_status=$?
11226    cat out/conftest.err >&5
11227    echo "$as_me:11227: \$? = $ac_status" >&5
11228    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11229    then
11230      # The compiler can only warn and ignore the option if not recognized
11231      # So say no if there are warnings
11232      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11233      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11234      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11235        lt_cv_prog_compiler_c_o=yes
11236      fi
11237    fi
11238    chmod u+w . 2>&5
11239    $RM conftest*
11240    # SGI C++ compiler will create directory out/ii_files/ for
11241    # template instantiation
11242    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11243    $RM out/* && rmdir out
11244    cd ..
11245    $RM -r conftest
11246    $RM conftest*
11247
11248 fi
11249 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11251
11252
11253
11254
11255
11256
11257   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11259 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11260   $as_echo_n "(cached) " >&6
11261 else
11262   lt_cv_prog_compiler_c_o=no
11263    $RM -r conftest 2>/dev/null
11264    mkdir conftest
11265    cd conftest
11266    mkdir out
11267    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11268
11269    lt_compiler_flag="-o out/conftest2.$ac_objext"
11270    # Insert the option either (1) after the last *FLAGS variable, or
11271    # (2) before a word containing "conftest.", or (3) at the end.
11272    # Note that $ac_compile itself does not contain backslashes and begins
11273    # with a dollar sign (not a hyphen), so the echo should work correctly.
11274    lt_compile=`echo "$ac_compile" | $SED \
11275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11277    -e 's:$: $lt_compiler_flag:'`
11278    (eval echo "\"\$as_me:11278: $lt_compile\"" >&5)
11279    (eval "$lt_compile" 2>out/conftest.err)
11280    ac_status=$?
11281    cat out/conftest.err >&5
11282    echo "$as_me:11282: \$? = $ac_status" >&5
11283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11284    then
11285      # The compiler can only warn and ignore the option if not recognized
11286      # So say no if there are warnings
11287      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11288      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11289      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11290        lt_cv_prog_compiler_c_o=yes
11291      fi
11292    fi
11293    chmod u+w . 2>&5
11294    $RM conftest*
11295    # SGI C++ compiler will create directory out/ii_files/ for
11296    # template instantiation
11297    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11298    $RM out/* && rmdir out
11299    cd ..
11300    $RM -r conftest
11301    $RM conftest*
11302
11303 fi
11304 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11306
11307
11308
11309
11310 hard_links="nottested"
11311 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11312   # do not overwrite the value of need_locks provided by the user
11313   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11314 $as_echo_n "checking if we can lock with hard links... " >&6; }
11315   hard_links=yes
11316   $RM conftest*
11317   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11318   touch conftest.a
11319   ln conftest.a conftest.b 2>&5 || hard_links=no
11320   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11321   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11322 $as_echo "$hard_links" >&6; }
11323   if test "$hard_links" = no; then
11324     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11325 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11326     need_locks=warn
11327   fi
11328 else
11329   need_locks=no
11330 fi
11331
11332
11333
11334
11335
11336
11337   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11338 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11339
11340   runpath_var=
11341   allow_undefined_flag=
11342   always_export_symbols=no
11343   archive_cmds=
11344   archive_expsym_cmds=
11345   compiler_needs_object=no
11346   enable_shared_with_static_runtimes=no
11347   export_dynamic_flag_spec=
11348   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11349   hardcode_automatic=no
11350   hardcode_direct=no
11351   hardcode_direct_absolute=no
11352   hardcode_libdir_flag_spec=
11353   hardcode_libdir_flag_spec_ld=
11354   hardcode_libdir_separator=
11355   hardcode_minus_L=no
11356   hardcode_shlibpath_var=unsupported
11357   inherit_rpath=no
11358   link_all_deplibs=unknown
11359   module_cmds=
11360   module_expsym_cmds=
11361   old_archive_from_new_cmds=
11362   old_archive_from_expsyms_cmds=
11363   thread_safe_flag_spec=
11364   whole_archive_flag_spec=
11365   # include_expsyms should be a list of space-separated symbols to be *always*
11366   # included in the symbol list
11367   include_expsyms=
11368   # exclude_expsyms can be an extended regexp of symbols to exclude
11369   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11370   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11371   # as well as any symbol that contains `d'.
11372   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11373   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11374   # platforms (ab)use it in PIC code, but their linkers get confused if
11375   # the symbol is explicitly referenced.  Since portable code cannot
11376   # rely on this symbol name, it's probably fine to never include it in
11377   # preloaded symbol tables.
11378   # Exclude shared library initialization/finalization symbols.
11379   extract_expsyms_cmds=
11380
11381   case $host_os in
11382   cygwin* | mingw* | pw32* | cegcc*)
11383     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11384     # When not using gcc, we currently assume that we are using
11385     # Microsoft Visual C++.
11386     if test "$GCC" != yes; then
11387       with_gnu_ld=no
11388     fi
11389     ;;
11390   interix*)
11391     # we just hope/assume this is gcc and not c89 (= MSVC++)
11392     with_gnu_ld=yes
11393     ;;
11394   openbsd*)
11395     with_gnu_ld=no
11396     ;;
11397   esac
11398
11399   ld_shlibs=yes
11400   if test "$with_gnu_ld" = yes; then
11401     # If archive_cmds runs LD, not CC, wlarc should be empty
11402     wlarc='${wl}'
11403
11404     # Set some defaults for GNU ld with shared library support. These
11405     # are reset later if shared libraries are not supported. Putting them
11406     # here allows them to be overridden if necessary.
11407     runpath_var=LD_RUN_PATH
11408     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11409     export_dynamic_flag_spec='${wl}--export-dynamic'
11410     # ancient GNU ld didn't support --whole-archive et. al.
11411     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11412       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11413     else
11414       whole_archive_flag_spec=
11415     fi
11416     supports_anon_versioning=no
11417     case `$LD -v 2>&1` in
11418       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11419       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11420       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11421       *\ 2.11.*) ;; # other 2.11 versions
11422       *) supports_anon_versioning=yes ;;
11423     esac
11424
11425     # See if GNU ld supports shared libraries.
11426     case $host_os in
11427     aix[3-9]*)
11428       # On AIX/PPC, the GNU linker is very broken
11429       if test "$host_cpu" != ia64; then
11430         ld_shlibs=no
11431         cat <<_LT_EOF 1>&2
11432
11433 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11434 *** to be unable to reliably create shared libraries on AIX.
11435 *** Therefore, libtool is disabling shared libraries support.  If you
11436 *** really care for shared libraries, you may want to modify your PATH
11437 *** so that a non-GNU linker is found, and then restart.
11438
11439 _LT_EOF
11440       fi
11441       ;;
11442
11443     amigaos*)
11444       case $host_cpu in
11445       powerpc)
11446             # see comment about AmigaOS4 .so support
11447             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11448             archive_expsym_cmds=''
11449         ;;
11450       m68k)
11451             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)'
11452             hardcode_libdir_flag_spec='-L$libdir'
11453             hardcode_minus_L=yes
11454         ;;
11455       esac
11456       ;;
11457
11458     beos*)
11459       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11460         allow_undefined_flag=unsupported
11461         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11462         # support --undefined.  This deserves some investigation.  FIXME
11463         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11464       else
11465         ld_shlibs=no
11466       fi
11467       ;;
11468
11469     cygwin* | mingw* | pw32* | cegcc*)
11470       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11471       # as there is no search path for DLLs.
11472       hardcode_libdir_flag_spec='-L$libdir'
11473       allow_undefined_flag=unsupported
11474       always_export_symbols=no
11475       enable_shared_with_static_runtimes=yes
11476       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11477
11478       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11479         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11480         # If the export-symbols file already is a .def file (1st line
11481         # is EXPORTS), use it as is; otherwise, prepend...
11482         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11483           cp $export_symbols $output_objdir/$soname.def;
11484         else
11485           echo EXPORTS > $output_objdir/$soname.def;
11486           cat $export_symbols >> $output_objdir/$soname.def;
11487         fi~
11488         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11489       else
11490         ld_shlibs=no
11491       fi
11492       ;;
11493
11494     interix[3-9]*)
11495       hardcode_direct=no
11496       hardcode_shlibpath_var=no
11497       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11498       export_dynamic_flag_spec='${wl}-E'
11499       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11500       # Instead, shared libraries are loaded at an image base (0x10000000 by
11501       # default) and relocated if they conflict, which is a slow very memory
11502       # consuming and fragmenting process.  To avoid this, we pick a random,
11503       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11504       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11505       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11506       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'
11507       ;;
11508
11509     gnu* | linux* | tpf* | k*bsd*-gnu)
11510       tmp_diet=no
11511       if test "$host_os" = linux-dietlibc; then
11512         case $cc_basename in
11513           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11514         esac
11515       fi
11516       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11517          && test "$tmp_diet" = no
11518       then
11519         tmp_addflag=
11520         tmp_sharedflag='-shared'
11521         case $cc_basename,$host_cpu in
11522         pgcc*)                          # Portland Group C compiler
11523           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'
11524           tmp_addflag=' $pic_flag'
11525           ;;
11526         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11527           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'
11528           tmp_addflag=' $pic_flag -Mnomain' ;;
11529         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11530           tmp_addflag=' -i_dynamic' ;;
11531         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11532           tmp_addflag=' -i_dynamic -nofor_main' ;;
11533         ifc* | ifort*)                  # Intel Fortran compiler
11534           tmp_addflag=' -nofor_main' ;;
11535         lf95*)                          # Lahey Fortran 8.1
11536           whole_archive_flag_spec=
11537           tmp_sharedflag='--shared' ;;
11538         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11539           tmp_sharedflag='-qmkshrobj'
11540           tmp_addflag= ;;
11541         esac
11542         case `$CC -V 2>&1 | sed 5q` in
11543         *Sun\ C*)                       # Sun C 5.9
11544           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'
11545           compiler_needs_object=yes
11546           tmp_sharedflag='-G' ;;
11547         *Sun\ F*)                       # Sun Fortran 8.3
11548           tmp_sharedflag='-G' ;;
11549         esac
11550         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11551
11552         if test "x$supports_anon_versioning" = xyes; then
11553           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11554             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11555             echo "local: *; };" >> $output_objdir/$libname.ver~
11556             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11557         fi
11558
11559         case $cc_basename in
11560         xlf*)
11561           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11562           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11563           hardcode_libdir_flag_spec=
11564           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11565           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11566           if test "x$supports_anon_versioning" = xyes; then
11567             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11568               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11569               echo "local: *; };" >> $output_objdir/$libname.ver~
11570               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11571           fi
11572           ;;
11573         esac
11574       else
11575         ld_shlibs=no
11576       fi
11577       ;;
11578
11579     netbsd* | netbsdelf*-gnu)
11580       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11581         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11582         wlarc=
11583       else
11584         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11586       fi
11587       ;;
11588
11589     solaris*)
11590       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11591         ld_shlibs=no
11592         cat <<_LT_EOF 1>&2
11593
11594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11595 *** create shared libraries on Solaris systems.  Therefore, libtool
11596 *** is disabling shared libraries support.  We urge you to upgrade GNU
11597 *** binutils to release 2.9.1 or newer.  Another option is to modify
11598 *** your PATH or compiler configuration so that the native linker is
11599 *** used, and then restart.
11600
11601 _LT_EOF
11602       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11603         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11604         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11605       else
11606         ld_shlibs=no
11607       fi
11608       ;;
11609
11610     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11611       case `$LD -v 2>&1` in
11612         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11613         ld_shlibs=no
11614         cat <<_LT_EOF 1>&2
11615
11616 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11617 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11618 *** is disabling shared libraries support.  We urge you to upgrade GNU
11619 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11620 *** your PATH or compiler configuration so that the native linker is
11621 *** used, and then restart.
11622
11623 _LT_EOF
11624         ;;
11625         *)
11626           # For security reasons, it is highly recommended that you always
11627           # use absolute paths for naming shared libraries, and exclude the
11628           # DT_RUNPATH tag from executables and libraries.  But doing so
11629           # requires that you compile everything twice, which is a pain.
11630           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11631             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11632             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11633             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11634           else
11635             ld_shlibs=no
11636           fi
11637         ;;
11638       esac
11639       ;;
11640
11641     sunos4*)
11642       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11643       wlarc=
11644       hardcode_direct=yes
11645       hardcode_shlibpath_var=no
11646       ;;
11647
11648     *)
11649       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11650         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11651         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11652       else
11653         ld_shlibs=no
11654       fi
11655       ;;
11656     esac
11657
11658     if test "$ld_shlibs" = no; then
11659       runpath_var=
11660       hardcode_libdir_flag_spec=
11661       export_dynamic_flag_spec=
11662       whole_archive_flag_spec=
11663     fi
11664   else
11665     # PORTME fill in a description of your system's linker (not GNU ld)
11666     case $host_os in
11667     aix3*)
11668       allow_undefined_flag=unsupported
11669       always_export_symbols=yes
11670       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'
11671       # Note: this linker hardcodes the directories in LIBPATH if there
11672       # are no directories specified by -L.
11673       hardcode_minus_L=yes
11674       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11675         # Neither direct hardcoding nor static linking is supported with a
11676         # broken collect2.
11677         hardcode_direct=unsupported
11678       fi
11679       ;;
11680
11681     aix[4-9]*)
11682       if test "$host_cpu" = ia64; then
11683         # On IA64, the linker does run time linking by default, so we don't
11684         # have to do anything special.
11685         aix_use_runtimelinking=no
11686         exp_sym_flag='-Bexport'
11687         no_entry_flag=""
11688       else
11689         # If we're using GNU nm, then we don't want the "-C" option.
11690         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11691         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11692           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'
11693         else
11694           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'
11695         fi
11696         aix_use_runtimelinking=no
11697
11698         # Test if we are trying to use run time linking or normal
11699         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11700         # need to do runtime linking.
11701         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11702           for ld_flag in $LDFLAGS; do
11703           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11704             aix_use_runtimelinking=yes
11705             break
11706           fi
11707           done
11708           ;;
11709         esac
11710
11711         exp_sym_flag='-bexport'
11712         no_entry_flag='-bnoentry'
11713       fi
11714
11715       # When large executables or shared objects are built, AIX ld can
11716       # have problems creating the table of contents.  If linking a library
11717       # or program results in "error TOC overflow" add -mminimal-toc to
11718       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11719       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11720
11721       archive_cmds=''
11722       hardcode_direct=yes
11723       hardcode_direct_absolute=yes
11724       hardcode_libdir_separator=':'
11725       link_all_deplibs=yes
11726       file_list_spec='${wl}-f,'
11727
11728       if test "$GCC" = yes; then
11729         case $host_os in aix4.[012]|aix4.[012].*)
11730         # We only want to do this on AIX 4.2 and lower, the check
11731         # below for broken collect2 doesn't work under 4.3+
11732           collect2name=`${CC} -print-prog-name=collect2`
11733           if test -f "$collect2name" &&
11734            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11735           then
11736           # We have reworked collect2
11737           :
11738           else
11739           # We have old collect2
11740           hardcode_direct=unsupported
11741           # It fails to find uninstalled libraries when the uninstalled
11742           # path is not listed in the libpath.  Setting hardcode_minus_L
11743           # to unsupported forces relinking
11744           hardcode_minus_L=yes
11745           hardcode_libdir_flag_spec='-L$libdir'
11746           hardcode_libdir_separator=
11747           fi
11748           ;;
11749         esac
11750         shared_flag='-shared'
11751         if test "$aix_use_runtimelinking" = yes; then
11752           shared_flag="$shared_flag "'${wl}-G'
11753         fi
11754         link_all_deplibs=no
11755       else
11756         # not using gcc
11757         if test "$host_cpu" = ia64; then
11758         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11759         # chokes on -Wl,-G. The following line is correct:
11760           shared_flag='-G'
11761         else
11762           if test "$aix_use_runtimelinking" = yes; then
11763             shared_flag='${wl}-G'
11764           else
11765             shared_flag='${wl}-bM:SRE'
11766           fi
11767         fi
11768       fi
11769
11770       export_dynamic_flag_spec='${wl}-bexpall'
11771       # It seems that -bexpall does not export symbols beginning with
11772       # underscore (_), so it is better to generate a list of symbols to export.
11773       always_export_symbols=yes
11774       if test "$aix_use_runtimelinking" = yes; then
11775         # Warning - without using the other runtime loading flags (-brtl),
11776         # -berok will link without error, but may produce a broken library.
11777         allow_undefined_flag='-berok'
11778         # Determine the default libpath from the value encoded in an
11779         # empty executable.
11780         cat >conftest.$ac_ext <<_ACEOF
11781 /* confdefs.h.  */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h.  */
11786
11787 int
11788 main ()
11789 {
11790
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (ac_try="$ac_link"
11797 case "(($ac_try" in
11798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799   *) ac_try_echo=$ac_try;;
11800 esac
11801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11802 $as_echo "$ac_try_echo") >&5
11803   (eval "$ac_link") 2>conftest.er1
11804   ac_status=$?
11805   grep -v '^ *+' conftest.er1 >conftest.err
11806   rm -f conftest.er1
11807   cat conftest.err >&5
11808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } && {
11810          test -z "$ac_c_werror_flag" ||
11811          test ! -s conftest.err
11812        } && test -s conftest$ac_exeext && {
11813          test "$cross_compiling" = yes ||
11814          $as_test_x conftest$ac_exeext
11815        }; then
11816
11817 lt_aix_libpath_sed='
11818     /Import File Strings/,/^$/ {
11819         /^0/ {
11820             s/^0  *\(.*\)$/\1/
11821             p
11822         }
11823     }'
11824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11825 # Check for a 64-bit object if we didn't find anything.
11826 if test -z "$aix_libpath"; then
11827   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11828 fi
11829 else
11830   $as_echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833
11834 fi
11835
11836 rm -rf conftest.dSYM
11837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11838       conftest$ac_exeext conftest.$ac_ext
11839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11840
11841         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11842         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"
11843       else
11844         if test "$host_cpu" = ia64; then
11845           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11846           allow_undefined_flag="-z nodefs"
11847           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"
11848         else
11849          # Determine the default libpath from the value encoded in an
11850          # empty executable.
11851          cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857
11858 int
11859 main ()
11860 {
11861
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (ac_try="$ac_link"
11868 case "(($ac_try" in
11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870   *) ac_try_echo=$ac_try;;
11871 esac
11872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11873 $as_echo "$ac_try_echo") >&5
11874   (eval "$ac_link") 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } && {
11881          test -z "$ac_c_werror_flag" ||
11882          test ! -s conftest.err
11883        } && test -s conftest$ac_exeext && {
11884          test "$cross_compiling" = yes ||
11885          $as_test_x conftest$ac_exeext
11886        }; then
11887
11888 lt_aix_libpath_sed='
11889     /Import File Strings/,/^$/ {
11890         /^0/ {
11891             s/^0  *\(.*\)$/\1/
11892             p
11893         }
11894     }'
11895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11896 # Check for a 64-bit object if we didn't find anything.
11897 if test -z "$aix_libpath"; then
11898   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11899 fi
11900 else
11901   $as_echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904
11905 fi
11906
11907 rm -rf conftest.dSYM
11908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11909       conftest$ac_exeext conftest.$ac_ext
11910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11911
11912          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11913           # Warning - without using the other run time loading flags,
11914           # -berok will link without error, but may produce a broken library.
11915           no_undefined_flag=' ${wl}-bernotok'
11916           allow_undefined_flag=' ${wl}-berok'
11917           # Exported symbols can be pulled into shared objects from archives
11918           whole_archive_flag_spec='$convenience'
11919           archive_cmds_need_lc=yes
11920           # This is similar to how AIX traditionally builds its shared libraries.
11921           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'
11922         fi
11923       fi
11924       ;;
11925
11926     amigaos*)
11927       case $host_cpu in
11928       powerpc)
11929             # see comment about AmigaOS4 .so support
11930             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931             archive_expsym_cmds=''
11932         ;;
11933       m68k)
11934             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)'
11935             hardcode_libdir_flag_spec='-L$libdir'
11936             hardcode_minus_L=yes
11937         ;;
11938       esac
11939       ;;
11940
11941     bsdi[45]*)
11942       export_dynamic_flag_spec=-rdynamic
11943       ;;
11944
11945     cygwin* | mingw* | pw32* | cegcc*)
11946       # When not using gcc, we currently assume that we are using
11947       # Microsoft Visual C++.
11948       # hardcode_libdir_flag_spec is actually meaningless, as there is
11949       # no search path for DLLs.
11950       hardcode_libdir_flag_spec=' '
11951       allow_undefined_flag=unsupported
11952       # Tell ltmain to make .lib files, not .a files.
11953       libext=lib
11954       # Tell ltmain to make .dll files, not .so files.
11955       shrext_cmds=".dll"
11956       # FIXME: Setting linknames here is a bad hack.
11957       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11958       # The linker will automatically build a .lib file if we build a DLL.
11959       old_archive_from_new_cmds='true'
11960       # FIXME: Should let the user specify the lib program.
11961       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11962       fix_srcfile_path='`cygpath -w "$srcfile"`'
11963       enable_shared_with_static_runtimes=yes
11964       ;;
11965
11966     darwin* | rhapsody*)
11967
11968
11969   archive_cmds_need_lc=no
11970   hardcode_direct=no
11971   hardcode_automatic=yes
11972   hardcode_shlibpath_var=unsupported
11973   whole_archive_flag_spec=''
11974   link_all_deplibs=yes
11975   allow_undefined_flag="$_lt_dar_allow_undefined"
11976   case $cc_basename in
11977      ifort*) _lt_dar_can_shared=yes ;;
11978      *) _lt_dar_can_shared=$GCC ;;
11979   esac
11980   if test "$_lt_dar_can_shared" = "yes"; then
11981     output_verbose_link_cmd=echo
11982     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11983     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11984     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}"
11985     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}"
11986
11987   else
11988   ld_shlibs=no
11989   fi
11990
11991       ;;
11992
11993     dgux*)
11994       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11995       hardcode_libdir_flag_spec='-L$libdir'
11996       hardcode_shlibpath_var=no
11997       ;;
11998
11999     freebsd1*)
12000       ld_shlibs=no
12001       ;;
12002
12003     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12004     # support.  Future versions do this automatically, but an explicit c++rt0.o
12005     # does not break anything, and helps significantly (at the cost of a little
12006     # extra space).
12007     freebsd2.2*)
12008       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12009       hardcode_libdir_flag_spec='-R$libdir'
12010       hardcode_direct=yes
12011       hardcode_shlibpath_var=no
12012       ;;
12013
12014     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12015     freebsd2*)
12016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12017       hardcode_direct=yes
12018       hardcode_minus_L=yes
12019       hardcode_shlibpath_var=no
12020       ;;
12021
12022     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12023     freebsd* | dragonfly*)
12024       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12025       hardcode_libdir_flag_spec='-R$libdir'
12026       hardcode_direct=yes
12027       hardcode_shlibpath_var=no
12028       ;;
12029
12030     hpux9*)
12031       if test "$GCC" = yes; then
12032         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'
12033       else
12034         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'
12035       fi
12036       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12037       hardcode_libdir_separator=:
12038       hardcode_direct=yes
12039
12040       # hardcode_minus_L: Not really in the search PATH,
12041       # but as the default location of the library.
12042       hardcode_minus_L=yes
12043       export_dynamic_flag_spec='${wl}-E'
12044       ;;
12045
12046     hpux10*)
12047       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12048         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12049       else
12050         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12051       fi
12052       if test "$with_gnu_ld" = no; then
12053         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12054         hardcode_libdir_flag_spec_ld='+b $libdir'
12055         hardcode_libdir_separator=:
12056         hardcode_direct=yes
12057         hardcode_direct_absolute=yes
12058         export_dynamic_flag_spec='${wl}-E'
12059         # hardcode_minus_L: Not really in the search PATH,
12060         # but as the default location of the library.
12061         hardcode_minus_L=yes
12062       fi
12063       ;;
12064
12065     hpux11*)
12066       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12067         case $host_cpu in
12068         hppa*64*)
12069           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12070           ;;
12071         ia64*)
12072           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12073           ;;
12074         *)
12075           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12076           ;;
12077         esac
12078       else
12079         case $host_cpu in
12080         hppa*64*)
12081           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12082           ;;
12083         ia64*)
12084           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12085           ;;
12086         *)
12087           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12088           ;;
12089         esac
12090       fi
12091       if test "$with_gnu_ld" = no; then
12092         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12093         hardcode_libdir_separator=:
12094
12095         case $host_cpu in
12096         hppa*64*|ia64*)
12097           hardcode_direct=no
12098           hardcode_shlibpath_var=no
12099           ;;
12100         *)
12101           hardcode_direct=yes
12102           hardcode_direct_absolute=yes
12103           export_dynamic_flag_spec='${wl}-E'
12104
12105           # hardcode_minus_L: Not really in the search PATH,
12106           # but as the default location of the library.
12107           hardcode_minus_L=yes
12108           ;;
12109         esac
12110       fi
12111       ;;
12112
12113     irix5* | irix6* | nonstopux*)
12114       if test "$GCC" = yes; then
12115         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'
12116         # Try to use the -exported_symbol ld option, if it does not
12117         # work, assume that -exports_file does not work either and
12118         # implicitly export all symbols.
12119         save_LDFLAGS="$LDFLAGS"
12120         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12121         cat >conftest.$ac_ext <<_ACEOF
12122 int foo(void) {}
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12131 $as_echo "$ac_try_echo") >&5
12132   (eval "$ac_link") 2>conftest.er1
12133   ac_status=$?
12134   grep -v '^ *+' conftest.er1 >conftest.err
12135   rm -f conftest.er1
12136   cat conftest.err >&5
12137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } && {
12139          test -z "$ac_c_werror_flag" ||
12140          test ! -s conftest.err
12141        } && test -s conftest$ac_exeext && {
12142          test "$cross_compiling" = yes ||
12143          $as_test_x conftest$ac_exeext
12144        }; then
12145   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'
12146
12147 else
12148   $as_echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151
12152 fi
12153
12154 rm -rf conftest.dSYM
12155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12156       conftest$ac_exeext conftest.$ac_ext
12157         LDFLAGS="$save_LDFLAGS"
12158       else
12159         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'
12160         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'
12161       fi
12162       archive_cmds_need_lc='no'
12163       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12164       hardcode_libdir_separator=:
12165       inherit_rpath=yes
12166       link_all_deplibs=yes
12167       ;;
12168
12169     netbsd* | netbsdelf*-gnu)
12170       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12171         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12172       else
12173         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12174       fi
12175       hardcode_libdir_flag_spec='-R$libdir'
12176       hardcode_direct=yes
12177       hardcode_shlibpath_var=no
12178       ;;
12179
12180     newsos6)
12181       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12182       hardcode_direct=yes
12183       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12184       hardcode_libdir_separator=:
12185       hardcode_shlibpath_var=no
12186       ;;
12187
12188     *nto* | *qnx*)
12189       ;;
12190
12191     openbsd*)
12192       if test -f /usr/libexec/ld.so; then
12193         hardcode_direct=yes
12194         hardcode_shlibpath_var=no
12195         hardcode_direct_absolute=yes
12196         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12197           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12198           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12199           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12200           export_dynamic_flag_spec='${wl}-E'
12201         else
12202           case $host_os in
12203            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12204              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12205              hardcode_libdir_flag_spec='-R$libdir'
12206              ;;
12207            *)
12208              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12209              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12210              ;;
12211           esac
12212         fi
12213       else
12214         ld_shlibs=no
12215       fi
12216       ;;
12217
12218     os2*)
12219       hardcode_libdir_flag_spec='-L$libdir'
12220       hardcode_minus_L=yes
12221       allow_undefined_flag=unsupported
12222       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'
12223       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12224       ;;
12225
12226     osf3*)
12227       if test "$GCC" = yes; then
12228         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12229         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'
12230       else
12231         allow_undefined_flag=' -expect_unresolved \*'
12232         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'
12233       fi
12234       archive_cmds_need_lc='no'
12235       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12236       hardcode_libdir_separator=:
12237       ;;
12238
12239     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12240       if test "$GCC" = yes; then
12241         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12242         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'
12243         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12244       else
12245         allow_undefined_flag=' -expect_unresolved \*'
12246         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'
12247         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~
12248         $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'
12249
12250         # Both c and cxx compiler support -rpath directly
12251         hardcode_libdir_flag_spec='-rpath $libdir'
12252       fi
12253       archive_cmds_need_lc='no'
12254       hardcode_libdir_separator=:
12255       ;;
12256
12257     solaris*)
12258       no_undefined_flag=' -z defs'
12259       if test "$GCC" = yes; then
12260         wlarc='${wl}'
12261         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12262         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12263           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12264       else
12265         case `$CC -V 2>&1` in
12266         *"Compilers 5.0"*)
12267           wlarc=''
12268           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12269           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12270           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12271           ;;
12272         *)
12273           wlarc='${wl}'
12274           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12275           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12276           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12277           ;;
12278         esac
12279       fi
12280       hardcode_libdir_flag_spec='-R$libdir'
12281       hardcode_shlibpath_var=no
12282       case $host_os in
12283       solaris2.[0-5] | solaris2.[0-5].*) ;;
12284       *)
12285         # The compiler driver will combine and reorder linker options,
12286         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12287         # but is careful enough not to reorder.
12288         # Supported since Solaris 2.6 (maybe 2.5.1?)
12289         if test "$GCC" = yes; then
12290           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12291         else
12292           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12293         fi
12294         ;;
12295       esac
12296       link_all_deplibs=yes
12297       ;;
12298
12299     sunos4*)
12300       if test "x$host_vendor" = xsequent; then
12301         # Use $CC to link under sequent, because it throws in some extra .o
12302         # files that make .init and .fini sections work.
12303         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12304       else
12305         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12306       fi
12307       hardcode_libdir_flag_spec='-L$libdir'
12308       hardcode_direct=yes
12309       hardcode_minus_L=yes
12310       hardcode_shlibpath_var=no
12311       ;;
12312
12313     sysv4)
12314       case $host_vendor in
12315         sni)
12316           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12317           hardcode_direct=yes # is this really true???
12318         ;;
12319         siemens)
12320           ## LD is ld it makes a PLAMLIB
12321           ## CC just makes a GrossModule.
12322           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12323           reload_cmds='$CC -r -o $output$reload_objs'
12324           hardcode_direct=no
12325         ;;
12326         motorola)
12327           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12328           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12329         ;;
12330       esac
12331       runpath_var='LD_RUN_PATH'
12332       hardcode_shlibpath_var=no
12333       ;;
12334
12335     sysv4.3*)
12336       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12337       hardcode_shlibpath_var=no
12338       export_dynamic_flag_spec='-Bexport'
12339       ;;
12340
12341     sysv4*MP*)
12342       if test -d /usr/nec; then
12343         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12344         hardcode_shlibpath_var=no
12345         runpath_var=LD_RUN_PATH
12346         hardcode_runpath_var=yes
12347         ld_shlibs=yes
12348       fi
12349       ;;
12350
12351     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12352       no_undefined_flag='${wl}-z,text'
12353       archive_cmds_need_lc=no
12354       hardcode_shlibpath_var=no
12355       runpath_var='LD_RUN_PATH'
12356
12357       if test "$GCC" = yes; then
12358         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12359         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12360       else
12361         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12363       fi
12364       ;;
12365
12366     sysv5* | sco3.2v5* | sco5v6*)
12367       # Note: We can NOT use -z defs as we might desire, because we do not
12368       # link with -lc, and that would cause any symbols used from libc to
12369       # always be unresolved, which means just about no library would
12370       # ever link correctly.  If we're not using GNU ld we use -z text
12371       # though, which does catch some bad symbols but isn't as heavy-handed
12372       # as -z defs.
12373       no_undefined_flag='${wl}-z,text'
12374       allow_undefined_flag='${wl}-z,nodefs'
12375       archive_cmds_need_lc=no
12376       hardcode_shlibpath_var=no
12377       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12378       hardcode_libdir_separator=':'
12379       link_all_deplibs=yes
12380       export_dynamic_flag_spec='${wl}-Bexport'
12381       runpath_var='LD_RUN_PATH'
12382
12383       if test "$GCC" = yes; then
12384         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12385         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12386       else
12387         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12388         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12389       fi
12390       ;;
12391
12392     uts4*)
12393       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12394       hardcode_libdir_flag_spec='-L$libdir'
12395       hardcode_shlibpath_var=no
12396       ;;
12397
12398     *)
12399       ld_shlibs=no
12400       ;;
12401     esac
12402
12403     if test x$host_vendor = xsni; then
12404       case $host in
12405       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12406         export_dynamic_flag_spec='${wl}-Blargedynsym'
12407         ;;
12408       esac
12409     fi
12410   fi
12411
12412 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12413 $as_echo "$ld_shlibs" >&6; }
12414 test "$ld_shlibs" = no && can_build_shared=no
12415
12416 with_gnu_ld=$with_gnu_ld
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432 #
12433 # Do we need to explicitly link libc?
12434 #
12435 case "x$archive_cmds_need_lc" in
12436 x|xyes)
12437   # Assume -lc should be added
12438   archive_cmds_need_lc=yes
12439
12440   if test "$enable_shared" = yes && test "$GCC" = yes; then
12441     case $archive_cmds in
12442     *'~'*)
12443       # FIXME: we may have to deal with multi-command sequences.
12444       ;;
12445     '$CC '*)
12446       # Test whether the compiler implicitly links with -lc since on some
12447       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12448       # to ld, don't add -lc before -lgcc.
12449       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12450 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12451       $RM conftest*
12452       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12453
12454       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455   (eval $ac_compile) 2>&5
12456   ac_status=$?
12457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); } 2>conftest.err; then
12459         soname=conftest
12460         lib=conftest
12461         libobjs=conftest.$ac_objext
12462         deplibs=
12463         wl=$lt_prog_compiler_wl
12464         pic_flag=$lt_prog_compiler_pic
12465         compiler_flags=-v
12466         linker_flags=-v
12467         verstring=
12468         output_objdir=.
12469         libname=conftest
12470         lt_save_allow_undefined_flag=$allow_undefined_flag
12471         allow_undefined_flag=
12472         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12473   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12474   ac_status=$?
12475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }
12477         then
12478           archive_cmds_need_lc=no
12479         else
12480           archive_cmds_need_lc=yes
12481         fi
12482         allow_undefined_flag=$lt_save_allow_undefined_flag
12483       else
12484         cat conftest.err 1>&5
12485       fi
12486       $RM conftest*
12487       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12488 $as_echo "$archive_cmds_need_lc" >&6; }
12489       ;;
12490     esac
12491   fi
12492   ;;
12493 esac
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12652 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12653
12654 if test "$GCC" = yes; then
12655   case $host_os in
12656     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12657     *) lt_awk_arg="/^libraries:/" ;;
12658   esac
12659   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12660   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12661     # if the path contains ";" then we assume it to be the separator
12662     # otherwise default to the standard path separator (i.e. ":") - it is
12663     # assumed that no part of a normal pathname contains ";" but that should
12664     # okay in the real world where ";" in dirpaths is itself problematic.
12665     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12666   else
12667     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12668   fi
12669   # Ok, now we have the path, separated by spaces, we can step through it
12670   # and add multilib dir if necessary.
12671   lt_tmp_lt_search_path_spec=
12672   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12673   for lt_sys_path in $lt_search_path_spec; do
12674     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12675       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12676     else
12677       test -d "$lt_sys_path" && \
12678         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12679     fi
12680   done
12681   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12682 BEGIN {RS=" "; FS="/|\n";} {
12683   lt_foo="";
12684   lt_count=0;
12685   for (lt_i = NF; lt_i > 0; lt_i--) {
12686     if ($lt_i != "" && $lt_i != ".") {
12687       if ($lt_i == "..") {
12688         lt_count++;
12689       } else {
12690         if (lt_count == 0) {
12691           lt_foo="/" $lt_i lt_foo;
12692         } else {
12693           lt_count--;
12694         }
12695       }
12696     }
12697   }
12698   if (lt_foo != "") { lt_freq[lt_foo]++; }
12699   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12700 }'`
12701   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12702 else
12703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12704 fi
12705 library_names_spec=
12706 libname_spec='lib$name'
12707 soname_spec=
12708 shrext_cmds=".so"
12709 postinstall_cmds=
12710 postuninstall_cmds=
12711 finish_cmds=
12712 finish_eval=
12713 shlibpath_var=
12714 shlibpath_overrides_runpath=unknown
12715 version_type=none
12716 dynamic_linker="$host_os ld.so"
12717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12718 need_lib_prefix=unknown
12719 hardcode_into_libs=no
12720
12721 # when you set need_version to no, make sure it does not cause -set_version
12722 # flags to be left without arguments
12723 need_version=unknown
12724
12725 case $host_os in
12726 aix3*)
12727   version_type=linux
12728   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12729   shlibpath_var=LIBPATH
12730
12731   # AIX 3 has no versioning support, so we append a major version to the name.
12732   soname_spec='${libname}${release}${shared_ext}$major'
12733   ;;
12734
12735 aix[4-9]*)
12736   version_type=linux
12737   need_lib_prefix=no
12738   need_version=no
12739   hardcode_into_libs=yes
12740   if test "$host_cpu" = ia64; then
12741     # AIX 5 supports IA64
12742     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12743     shlibpath_var=LD_LIBRARY_PATH
12744   else
12745     # With GCC up to 2.95.x, collect2 would create an import file
12746     # for dependence libraries.  The import file would start with
12747     # the line `#! .'.  This would cause the generated library to
12748     # depend on `.', always an invalid library.  This was fixed in
12749     # development snapshots of GCC prior to 3.0.
12750     case $host_os in
12751       aix4 | aix4.[01] | aix4.[01].*)
12752       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12753            echo ' yes '
12754            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12755         :
12756       else
12757         can_build_shared=no
12758       fi
12759       ;;
12760     esac
12761     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12762     # soname into executable. Probably we can add versioning support to
12763     # collect2, so additional links can be useful in future.
12764     if test "$aix_use_runtimelinking" = yes; then
12765       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12766       # instead of lib<name>.a to let people know that these are not
12767       # typical AIX shared libraries.
12768       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12769     else
12770       # We preserve .a as extension for shared libraries through AIX4.2
12771       # and later when we are not doing run time linking.
12772       library_names_spec='${libname}${release}.a $libname.a'
12773       soname_spec='${libname}${release}${shared_ext}$major'
12774     fi
12775     shlibpath_var=LIBPATH
12776   fi
12777   ;;
12778
12779 amigaos*)
12780   case $host_cpu in
12781   powerpc)
12782     # Since July 2007 AmigaOS4 officially supports .so libraries.
12783     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785     ;;
12786   m68k)
12787     library_names_spec='$libname.ixlibrary $libname.a'
12788     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12789     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'
12790     ;;
12791   esac
12792   ;;
12793
12794 beos*)
12795   library_names_spec='${libname}${shared_ext}'
12796   dynamic_linker="$host_os ld.so"
12797   shlibpath_var=LIBRARY_PATH
12798   ;;
12799
12800 bsdi[45]*)
12801   version_type=linux
12802   need_version=no
12803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804   soname_spec='${libname}${release}${shared_ext}$major'
12805   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12806   shlibpath_var=LD_LIBRARY_PATH
12807   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12808   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12809   # the default ld.so.conf also contains /usr/contrib/lib and
12810   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12811   # libtool to hard-code these into programs
12812   ;;
12813
12814 cygwin* | mingw* | pw32* | cegcc*)
12815   version_type=windows
12816   shrext_cmds=".dll"
12817   need_version=no
12818   need_lib_prefix=no
12819
12820   case $GCC,$host_os in
12821   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12822     library_names_spec='$libname.dll.a'
12823     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12824     postinstall_cmds='base_file=`basename \${file}`~
12825       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12826       dldir=$destdir/`dirname \$dlpath`~
12827       test -d \$dldir || mkdir -p \$dldir~
12828       $install_prog $dir/$dlname \$dldir/$dlname~
12829       chmod a+x \$dldir/$dlname~
12830       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12831         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12832       fi'
12833     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12834       dlpath=$dir/\$dldll~
12835        $RM \$dlpath'
12836     shlibpath_overrides_runpath=yes
12837
12838     case $host_os in
12839     cygwin*)
12840       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12841       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12842       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12843       ;;
12844     mingw* | cegcc*)
12845       # MinGW DLLs use traditional 'lib' prefix
12846       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12847       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12848       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12849         # It is most probably a Windows format PATH printed by
12850         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12851         # path with ; separators, and with drive letters. We can handle the
12852         # drive letters (cygwin fileutils understands them), so leave them,
12853         # especially as we might pass files found there to a mingw objdump,
12854         # which wouldn't understand a cygwinified path. Ahh.
12855         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12856       else
12857         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12858       fi
12859       ;;
12860     pw32*)
12861       # pw32 DLLs use 'pw' prefix rather than 'lib'
12862       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12863       ;;
12864     esac
12865     ;;
12866
12867   *)
12868     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12869     ;;
12870   esac
12871   dynamic_linker='Win32 ld.exe'
12872   # FIXME: first we should search . and the directory the executable is in
12873   shlibpath_var=PATH
12874   ;;
12875
12876 darwin* | rhapsody*)
12877   dynamic_linker="$host_os dyld"
12878   version_type=darwin
12879   need_lib_prefix=no
12880   need_version=no
12881   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12882   soname_spec='${libname}${release}${major}$shared_ext'
12883   shlibpath_overrides_runpath=yes
12884   shlibpath_var=DYLD_LIBRARY_PATH
12885   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12886
12887   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12888   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12889   ;;
12890
12891 dgux*)
12892   version_type=linux
12893   need_lib_prefix=no
12894   need_version=no
12895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12896   soname_spec='${libname}${release}${shared_ext}$major'
12897   shlibpath_var=LD_LIBRARY_PATH
12898   ;;
12899
12900 freebsd1*)
12901   dynamic_linker=no
12902   ;;
12903
12904 freebsd* | dragonfly*)
12905   # DragonFly does not have aout.  When/if they implement a new
12906   # versioning mechanism, adjust this.
12907   if test -x /usr/bin/objformat; then
12908     objformat=`/usr/bin/objformat`
12909   else
12910     case $host_os in
12911     freebsd[123]*) objformat=aout ;;
12912     *) objformat=elf ;;
12913     esac
12914   fi
12915   version_type=freebsd-$objformat
12916   case $version_type in
12917     freebsd-elf*)
12918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12919       need_version=no
12920       need_lib_prefix=no
12921       ;;
12922     freebsd-*)
12923       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12924       need_version=yes
12925       ;;
12926   esac
12927   shlibpath_var=LD_LIBRARY_PATH
12928   case $host_os in
12929   freebsd2*)
12930     shlibpath_overrides_runpath=yes
12931     ;;
12932   freebsd3.[01]* | freebsdelf3.[01]*)
12933     shlibpath_overrides_runpath=yes
12934     hardcode_into_libs=yes
12935     ;;
12936   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12937   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12938     shlibpath_overrides_runpath=no
12939     hardcode_into_libs=yes
12940     ;;
12941   *) # from 4.6 on, and DragonFly
12942     shlibpath_overrides_runpath=yes
12943     hardcode_into_libs=yes
12944     ;;
12945   esac
12946   ;;
12947
12948 gnu*)
12949   version_type=linux
12950   need_lib_prefix=no
12951   need_version=no
12952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12953   soname_spec='${libname}${release}${shared_ext}$major'
12954   shlibpath_var=LD_LIBRARY_PATH
12955   hardcode_into_libs=yes
12956   ;;
12957
12958 hpux9* | hpux10* | hpux11*)
12959   # Give a soname corresponding to the major version so that dld.sl refuses to
12960   # link against other versions.
12961   version_type=sunos
12962   need_lib_prefix=no
12963   need_version=no
12964   case $host_cpu in
12965   ia64*)
12966     shrext_cmds='.so'
12967     hardcode_into_libs=yes
12968     dynamic_linker="$host_os dld.so"
12969     shlibpath_var=LD_LIBRARY_PATH
12970     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972     soname_spec='${libname}${release}${shared_ext}$major'
12973     if test "X$HPUX_IA64_MODE" = X32; then
12974       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12975     else
12976       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12977     fi
12978     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12979     ;;
12980   hppa*64*)
12981     shrext_cmds='.sl'
12982     hardcode_into_libs=yes
12983     dynamic_linker="$host_os dld.sl"
12984     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12985     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987     soname_spec='${libname}${release}${shared_ext}$major'
12988     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12990     ;;
12991   *)
12992     shrext_cmds='.sl'
12993     dynamic_linker="$host_os dld.sl"
12994     shlibpath_var=SHLIB_PATH
12995     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997     soname_spec='${libname}${release}${shared_ext}$major'
12998     ;;
12999   esac
13000   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13001   postinstall_cmds='chmod 555 $lib'
13002   ;;
13003
13004 interix[3-9]*)
13005   version_type=linux
13006   need_lib_prefix=no
13007   need_version=no
13008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13009   soname_spec='${libname}${release}${shared_ext}$major'
13010   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13011   shlibpath_var=LD_LIBRARY_PATH
13012   shlibpath_overrides_runpath=no
13013   hardcode_into_libs=yes
13014   ;;
13015
13016 irix5* | irix6* | nonstopux*)
13017   case $host_os in
13018     nonstopux*) version_type=nonstopux ;;
13019     *)
13020         if test "$lt_cv_prog_gnu_ld" = yes; then
13021                 version_type=linux
13022         else
13023                 version_type=irix
13024         fi ;;
13025   esac
13026   need_lib_prefix=no
13027   need_version=no
13028   soname_spec='${libname}${release}${shared_ext}$major'
13029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13030   case $host_os in
13031   irix5* | nonstopux*)
13032     libsuff= shlibsuff=
13033     ;;
13034   *)
13035     case $LD in # libtool.m4 will add one of these switches to LD
13036     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13037       libsuff= shlibsuff= libmagic=32-bit;;
13038     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13039       libsuff=32 shlibsuff=N32 libmagic=N32;;
13040     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13041       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13042     *) libsuff= shlibsuff= libmagic=never-match;;
13043     esac
13044     ;;
13045   esac
13046   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13047   shlibpath_overrides_runpath=no
13048   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13049   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13050   hardcode_into_libs=yes
13051   ;;
13052
13053 # No shared lib support for Linux oldld, aout, or coff.
13054 linux*oldld* | linux*aout* | linux*coff*)
13055   dynamic_linker=no
13056   ;;
13057
13058 # This must be Linux ELF.
13059 linux* | k*bsd*-gnu)
13060   version_type=linux
13061   need_lib_prefix=no
13062   need_version=no
13063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064   soname_spec='${libname}${release}${shared_ext}$major'
13065   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13066   shlibpath_var=LD_LIBRARY_PATH
13067   shlibpath_overrides_runpath=no
13068   # Some binutils ld are patched to set DT_RUNPATH
13069   save_LDFLAGS=$LDFLAGS
13070   save_libdir=$libdir
13071   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13072        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13073   cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079
13080 int
13081 main ()
13082 {
13083
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095 $as_echo "$ac_try_echo") >&5
13096   (eval "$ac_link") 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } && {
13103          test -z "$ac_c_werror_flag" ||
13104          test ! -s conftest.err
13105        } && test -s conftest$ac_exeext && {
13106          test "$cross_compiling" = yes ||
13107          $as_test_x conftest$ac_exeext
13108        }; then
13109   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13110   shlibpath_overrides_runpath=yes
13111 fi
13112
13113 else
13114   $as_echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117
13118 fi
13119
13120 rm -rf conftest.dSYM
13121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13122       conftest$ac_exeext conftest.$ac_ext
13123   LDFLAGS=$save_LDFLAGS
13124   libdir=$save_libdir
13125
13126   # This implies no fast_install, which is unacceptable.
13127   # Some rework will be needed to allow for fast_install
13128   # before this can be enabled.
13129   hardcode_into_libs=yes
13130
13131   # Append ld.so.conf contents to the search path
13132   if test -f /etc/ld.so.conf; then
13133     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' ' '`
13134     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13135   fi
13136
13137   # We used to test for /lib/ld.so.1 and disable shared libraries on
13138   # powerpc, because MkLinux only supported shared libraries with the
13139   # GNU dynamic linker.  Since this was broken with cross compilers,
13140   # most powerpc-linux boxes support dynamic linking these days and
13141   # people can always --disable-shared, the test was removed, and we
13142   # assume the GNU/Linux dynamic linker is in use.
13143   dynamic_linker='GNU/Linux ld.so'
13144   ;;
13145
13146 netbsdelf*-gnu)
13147   version_type=linux
13148   need_lib_prefix=no
13149   need_version=no
13150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13151   soname_spec='${libname}${release}${shared_ext}$major'
13152   shlibpath_var=LD_LIBRARY_PATH
13153   shlibpath_overrides_runpath=no
13154   hardcode_into_libs=yes
13155   dynamic_linker='NetBSD ld.elf_so'
13156   ;;
13157
13158 netbsd*)
13159   version_type=sunos
13160   need_lib_prefix=no
13161   need_version=no
13162   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13164     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13165     dynamic_linker='NetBSD (a.out) ld.so'
13166   else
13167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13168     soname_spec='${libname}${release}${shared_ext}$major'
13169     dynamic_linker='NetBSD ld.elf_so'
13170   fi
13171   shlibpath_var=LD_LIBRARY_PATH
13172   shlibpath_overrides_runpath=yes
13173   hardcode_into_libs=yes
13174   ;;
13175
13176 newsos6)
13177   version_type=linux
13178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179   shlibpath_var=LD_LIBRARY_PATH
13180   shlibpath_overrides_runpath=yes
13181   ;;
13182
13183 *nto* | *qnx*)
13184   version_type=qnx
13185   need_lib_prefix=no
13186   need_version=no
13187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188   soname_spec='${libname}${release}${shared_ext}$major'
13189   shlibpath_var=LD_LIBRARY_PATH
13190   shlibpath_overrides_runpath=no
13191   hardcode_into_libs=yes
13192   dynamic_linker='ldqnx.so'
13193   ;;
13194
13195 openbsd*)
13196   version_type=sunos
13197   sys_lib_dlsearch_path_spec="/usr/lib"
13198   need_lib_prefix=no
13199   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13200   case $host_os in
13201     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13202     *)                          need_version=no  ;;
13203   esac
13204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13206   shlibpath_var=LD_LIBRARY_PATH
13207   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13208     case $host_os in
13209       openbsd2.[89] | openbsd2.[89].*)
13210         shlibpath_overrides_runpath=no
13211         ;;
13212       *)
13213         shlibpath_overrides_runpath=yes
13214         ;;
13215       esac
13216   else
13217     shlibpath_overrides_runpath=yes
13218   fi
13219   ;;
13220
13221 os2*)
13222   libname_spec='$name'
13223   shrext_cmds=".dll"
13224   need_lib_prefix=no
13225   library_names_spec='$libname${shared_ext} $libname.a'
13226   dynamic_linker='OS/2 ld.exe'
13227   shlibpath_var=LIBPATH
13228   ;;
13229
13230 osf3* | osf4* | osf5*)
13231   version_type=osf
13232   need_lib_prefix=no
13233   need_version=no
13234   soname_spec='${libname}${release}${shared_ext}$major'
13235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236   shlibpath_var=LD_LIBRARY_PATH
13237   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13238   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13239   ;;
13240
13241 rdos*)
13242   dynamic_linker=no
13243   ;;
13244
13245 solaris*)
13246   version_type=linux
13247   need_lib_prefix=no
13248   need_version=no
13249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13250   soname_spec='${libname}${release}${shared_ext}$major'
13251   shlibpath_var=LD_LIBRARY_PATH
13252   shlibpath_overrides_runpath=yes
13253   hardcode_into_libs=yes
13254   # ldd complains unless libraries are executable
13255   postinstall_cmds='chmod +x $lib'
13256   ;;
13257
13258 sunos4*)
13259   version_type=sunos
13260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13261   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13262   shlibpath_var=LD_LIBRARY_PATH
13263   shlibpath_overrides_runpath=yes
13264   if test "$with_gnu_ld" = yes; then
13265     need_lib_prefix=no
13266   fi
13267   need_version=yes
13268   ;;
13269
13270 sysv4 | sysv4.3*)
13271   version_type=linux
13272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13273   soname_spec='${libname}${release}${shared_ext}$major'
13274   shlibpath_var=LD_LIBRARY_PATH
13275   case $host_vendor in
13276     sni)
13277       shlibpath_overrides_runpath=no
13278       need_lib_prefix=no
13279       runpath_var=LD_RUN_PATH
13280       ;;
13281     siemens)
13282       need_lib_prefix=no
13283       ;;
13284     motorola)
13285       need_lib_prefix=no
13286       need_version=no
13287       shlibpath_overrides_runpath=no
13288       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13289       ;;
13290   esac
13291   ;;
13292
13293 sysv4*MP*)
13294   if test -d /usr/nec ;then
13295     version_type=linux
13296     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13297     soname_spec='$libname${shared_ext}.$major'
13298     shlibpath_var=LD_LIBRARY_PATH
13299   fi
13300   ;;
13301
13302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13303   version_type=freebsd-elf
13304   need_lib_prefix=no
13305   need_version=no
13306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13307   soname_spec='${libname}${release}${shared_ext}$major'
13308   shlibpath_var=LD_LIBRARY_PATH
13309   shlibpath_overrides_runpath=yes
13310   hardcode_into_libs=yes
13311   if test "$with_gnu_ld" = yes; then
13312     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13313   else
13314     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13315     case $host_os in
13316       sco3.2v5*)
13317         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13318         ;;
13319     esac
13320   fi
13321   sys_lib_dlsearch_path_spec='/usr/lib'
13322   ;;
13323
13324 tpf*)
13325   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13326   version_type=linux
13327   need_lib_prefix=no
13328   need_version=no
13329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330   shlibpath_var=LD_LIBRARY_PATH
13331   shlibpath_overrides_runpath=no
13332   hardcode_into_libs=yes
13333   ;;
13334
13335 uts4*)
13336   version_type=linux
13337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338   soname_spec='${libname}${release}${shared_ext}$major'
13339   shlibpath_var=LD_LIBRARY_PATH
13340   ;;
13341
13342 *)
13343   dynamic_linker=no
13344   ;;
13345 esac
13346 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13347 $as_echo "$dynamic_linker" >&6; }
13348 test "$dynamic_linker" = no && can_build_shared=no
13349
13350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13351 if test "$GCC" = yes; then
13352   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13353 fi
13354
13355 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13356   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13357 fi
13358 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13359   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13360 fi
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13449 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13450 hardcode_action=
13451 if test -n "$hardcode_libdir_flag_spec" ||
13452    test -n "$runpath_var" ||
13453    test "X$hardcode_automatic" = "Xyes" ; then
13454
13455   # We can hardcode non-existent directories.
13456   if test "$hardcode_direct" != no &&
13457      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13458      # have to relink, otherwise we might link with an installed library
13459      # when we should be linking with a yet-to-be-installed one
13460      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13461      test "$hardcode_minus_L" != no; then
13462     # Linking always hardcodes the temporary library directory.
13463     hardcode_action=relink
13464   else
13465     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13466     hardcode_action=immediate
13467   fi
13468 else
13469   # We cannot hardcode anything, or else we can only hardcode existing
13470   # directories.
13471   hardcode_action=unsupported
13472 fi
13473 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
13474 $as_echo "$hardcode_action" >&6; }
13475
13476 if test "$hardcode_action" = relink ||
13477    test "$inherit_rpath" = yes; then
13478   # Fast installation is not supported
13479   enable_fast_install=no
13480 elif test "$shlibpath_overrides_runpath" = yes ||
13481      test "$enable_shared" = no; then
13482   # Fast installation is not necessary
13483   enable_fast_install=needless
13484 fi
13485
13486
13487
13488
13489
13490
13491   if test "x$enable_dlopen" != xyes; then
13492   enable_dlopen=unknown
13493   enable_dlopen_self=unknown
13494   enable_dlopen_self_static=unknown
13495 else
13496   lt_cv_dlopen=no
13497   lt_cv_dlopen_libs=
13498
13499   case $host_os in
13500   beos*)
13501     lt_cv_dlopen="load_add_on"
13502     lt_cv_dlopen_libs=
13503     lt_cv_dlopen_self=yes
13504     ;;
13505
13506   mingw* | pw32* | cegcc*)
13507     lt_cv_dlopen="LoadLibrary"
13508     lt_cv_dlopen_libs=
13509     ;;
13510
13511   cygwin*)
13512     lt_cv_dlopen="dlopen"
13513     lt_cv_dlopen_libs=
13514     ;;
13515
13516   darwin*)
13517   # if libdl is installed we need to link against it
13518     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13521   $as_echo_n "(cached) " >&6
13522 else
13523   ac_check_lib_save_LIBS=$LIBS
13524 LIBS="-ldl  $LIBS"
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h.  */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h.  */
13531
13532 /* Override any GCC internal prototype to avoid an error.
13533    Use char because int might match the return type of a GCC
13534    builtin and then its argument prototype would still apply.  */
13535 #ifdef __cplusplus
13536 extern "C"
13537 #endif
13538 char dlopen ();
13539 int
13540 main ()
13541 {
13542 return dlopen ();
13543   ;
13544   return 0;
13545 }
13546 _ACEOF
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (ac_try="$ac_link"
13549 case "(($ac_try" in
13550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551   *) ac_try_echo=$ac_try;;
13552 esac
13553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13554 $as_echo "$ac_try_echo") >&5
13555   (eval "$ac_link") 2>conftest.er1
13556   ac_status=$?
13557   grep -v '^ *+' conftest.er1 >conftest.err
13558   rm -f conftest.er1
13559   cat conftest.err >&5
13560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); } && {
13562          test -z "$ac_c_werror_flag" ||
13563          test ! -s conftest.err
13564        } && test -s conftest$ac_exeext && {
13565          test "$cross_compiling" = yes ||
13566          $as_test_x conftest$ac_exeext
13567        }; then
13568   ac_cv_lib_dl_dlopen=yes
13569 else
13570   $as_echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13572
13573         ac_cv_lib_dl_dlopen=no
13574 fi
13575
13576 rm -rf conftest.dSYM
13577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13578       conftest$ac_exeext conftest.$ac_ext
13579 LIBS=$ac_check_lib_save_LIBS
13580 fi
13581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13583 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13584   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13585 else
13586
13587     lt_cv_dlopen="dyld"
13588     lt_cv_dlopen_libs=
13589     lt_cv_dlopen_self=yes
13590
13591 fi
13592
13593     ;;
13594
13595   *)
13596     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13597 $as_echo_n "checking for shl_load... " >&6; }
13598 if test "${ac_cv_func_shl_load+set}" = set; then
13599   $as_echo_n "(cached) " >&6
13600 else
13601   cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13609 #define shl_load innocuous_shl_load
13610
13611 /* System header to define __stub macros and hopefully few prototypes,
13612     which can conflict with char shl_load (); below.
13613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13614     <limits.h> exists even on freestanding compilers.  */
13615
13616 #ifdef __STDC__
13617 # include <limits.h>
13618 #else
13619 # include <assert.h>
13620 #endif
13621
13622 #undef shl_load
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625    Use char because int might match the return type of a GCC
13626    builtin and then its argument prototype would still apply.  */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char shl_load ();
13631 /* The GNU C library defines this for functions which it implements
13632     to always fail with ENOSYS.  Some functions are actually named
13633     something starting with __ and the normal name is an alias.  */
13634 #if defined __stub_shl_load || defined __stub___shl_load
13635 choke me
13636 #endif
13637
13638 int
13639 main ()
13640 {
13641 return shl_load ();
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653 $as_echo "$ac_try_echo") >&5
13654   (eval "$ac_link") 2>conftest.er1
13655   ac_status=$?
13656   grep -v '^ *+' conftest.er1 >conftest.err
13657   rm -f conftest.er1
13658   cat conftest.err >&5
13659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); } && {
13661          test -z "$ac_c_werror_flag" ||
13662          test ! -s conftest.err
13663        } && test -s conftest$ac_exeext && {
13664          test "$cross_compiling" = yes ||
13665          $as_test_x conftest$ac_exeext
13666        }; then
13667   ac_cv_func_shl_load=yes
13668 else
13669   $as_echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672         ac_cv_func_shl_load=no
13673 fi
13674
13675 rm -rf conftest.dSYM
13676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13677       conftest$ac_exeext conftest.$ac_ext
13678 fi
13679 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13680 $as_echo "$ac_cv_func_shl_load" >&6; }
13681 if test "x$ac_cv_func_shl_load" = x""yes; then
13682   lt_cv_dlopen="shl_load"
13683 else
13684   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13685 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13687   $as_echo_n "(cached) " >&6
13688 else
13689   ac_check_lib_save_LIBS=$LIBS
13690 LIBS="-ldld  $LIBS"
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697
13698 /* Override any GCC internal prototype to avoid an error.
13699    Use char because int might match the return type of a GCC
13700    builtin and then its argument prototype would still apply.  */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char shl_load ();
13705 int
13706 main ()
13707 {
13708 return shl_load ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext conftest$ac_exeext
13714 if { (ac_try="$ac_link"
13715 case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13720 $as_echo "$ac_try_echo") >&5
13721   (eval "$ac_link") 2>conftest.er1
13722   ac_status=$?
13723   grep -v '^ *+' conftest.er1 >conftest.err
13724   rm -f conftest.er1
13725   cat conftest.err >&5
13726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); } && {
13728          test -z "$ac_c_werror_flag" ||
13729          test ! -s conftest.err
13730        } && test -s conftest$ac_exeext && {
13731          test "$cross_compiling" = yes ||
13732          $as_test_x conftest$ac_exeext
13733        }; then
13734   ac_cv_lib_dld_shl_load=yes
13735 else
13736   $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739         ac_cv_lib_dld_shl_load=no
13740 fi
13741
13742 rm -rf conftest.dSYM
13743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13744       conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13746 fi
13747 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13748 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13749 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13750   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13751 else
13752   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13753 $as_echo_n "checking for dlopen... " >&6; }
13754 if test "${ac_cv_func_dlopen+set}" = set; then
13755   $as_echo_n "(cached) " >&6
13756 else
13757   cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13765 #define dlopen innocuous_dlopen
13766
13767 /* System header to define __stub macros and hopefully few prototypes,
13768     which can conflict with char dlopen (); below.
13769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13770     <limits.h> exists even on freestanding compilers.  */
13771
13772 #ifdef __STDC__
13773 # include <limits.h>
13774 #else
13775 # include <assert.h>
13776 #endif
13777
13778 #undef dlopen
13779
13780 /* Override any GCC internal prototype to avoid an error.
13781    Use char because int might match the return type of a GCC
13782    builtin and then its argument prototype would still apply.  */
13783 #ifdef __cplusplus
13784 extern "C"
13785 #endif
13786 char dlopen ();
13787 /* The GNU C library defines this for functions which it implements
13788     to always fail with ENOSYS.  Some functions are actually named
13789     something starting with __ and the normal name is an alias.  */
13790 #if defined __stub_dlopen || defined __stub___dlopen
13791 choke me
13792 #endif
13793
13794 int
13795 main ()
13796 {
13797 return dlopen ();
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (ac_try="$ac_link"
13804 case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13809 $as_echo "$ac_try_echo") >&5
13810   (eval "$ac_link") 2>conftest.er1
13811   ac_status=$?
13812   grep -v '^ *+' conftest.er1 >conftest.err
13813   rm -f conftest.er1
13814   cat conftest.err >&5
13815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } && {
13817          test -z "$ac_c_werror_flag" ||
13818          test ! -s conftest.err
13819        } && test -s conftest$ac_exeext && {
13820          test "$cross_compiling" = yes ||
13821          $as_test_x conftest$ac_exeext
13822        }; then
13823   ac_cv_func_dlopen=yes
13824 else
13825   $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828         ac_cv_func_dlopen=no
13829 fi
13830
13831 rm -rf conftest.dSYM
13832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13833       conftest$ac_exeext conftest.$ac_ext
13834 fi
13835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13836 $as_echo "$ac_cv_func_dlopen" >&6; }
13837 if test "x$ac_cv_func_dlopen" = x""yes; then
13838   lt_cv_dlopen="dlopen"
13839 else
13840   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13843   $as_echo_n "(cached) " >&6
13844 else
13845   ac_check_lib_save_LIBS=$LIBS
13846 LIBS="-ldl  $LIBS"
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853
13854 /* Override any GCC internal prototype to avoid an error.
13855    Use char because int might match the return type of a GCC
13856    builtin and then its argument prototype would still apply.  */
13857 #ifdef __cplusplus
13858 extern "C"
13859 #endif
13860 char dlopen ();
13861 int
13862 main ()
13863 {
13864 return dlopen ();
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873   *) ac_try_echo=$ac_try;;
13874 esac
13875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13876 $as_echo "$ac_try_echo") >&5
13877   (eval "$ac_link") 2>conftest.er1
13878   ac_status=$?
13879   grep -v '^ *+' conftest.er1 >conftest.err
13880   rm -f conftest.er1
13881   cat conftest.err >&5
13882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } && {
13884          test -z "$ac_c_werror_flag" ||
13885          test ! -s conftest.err
13886        } && test -s conftest$ac_exeext && {
13887          test "$cross_compiling" = yes ||
13888          $as_test_x conftest$ac_exeext
13889        }; then
13890   ac_cv_lib_dl_dlopen=yes
13891 else
13892   $as_echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895         ac_cv_lib_dl_dlopen=no
13896 fi
13897
13898 rm -rf conftest.dSYM
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900       conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13902 fi
13903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13905 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13906   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13907 else
13908   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13909 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13910 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13911   $as_echo_n "(cached) " >&6
13912 else
13913   ac_check_lib_save_LIBS=$LIBS
13914 LIBS="-lsvld  $LIBS"
13915 cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h.  */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h.  */
13921
13922 /* Override any GCC internal prototype to avoid an error.
13923    Use char because int might match the return type of a GCC
13924    builtin and then its argument prototype would still apply.  */
13925 #ifdef __cplusplus
13926 extern "C"
13927 #endif
13928 char dlopen ();
13929 int
13930 main ()
13931 {
13932 return dlopen ();
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (ac_try="$ac_link"
13939 case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13944 $as_echo "$ac_try_echo") >&5
13945   (eval "$ac_link") 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } && {
13952          test -z "$ac_c_werror_flag" ||
13953          test ! -s conftest.err
13954        } && test -s conftest$ac_exeext && {
13955          test "$cross_compiling" = yes ||
13956          $as_test_x conftest$ac_exeext
13957        }; then
13958   ac_cv_lib_svld_dlopen=yes
13959 else
13960   $as_echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963         ac_cv_lib_svld_dlopen=no
13964 fi
13965
13966 rm -rf conftest.dSYM
13967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13968       conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13970 fi
13971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13972 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13973 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13975 else
13976   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13977 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13978 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13979   $as_echo_n "(cached) " >&6
13980 else
13981   ac_check_lib_save_LIBS=$LIBS
13982 LIBS="-ldld  $LIBS"
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989
13990 /* Override any GCC internal prototype to avoid an error.
13991    Use char because int might match the return type of a GCC
13992    builtin and then its argument prototype would still apply.  */
13993 #ifdef __cplusplus
13994 extern "C"
13995 #endif
13996 char dld_link ();
13997 int
13998 main ()
13999 {
14000 return dld_link ();
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 rm -f conftest.$ac_objext conftest$ac_exeext
14006 if { (ac_try="$ac_link"
14007 case "(($ac_try" in
14008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009   *) ac_try_echo=$ac_try;;
14010 esac
14011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14012 $as_echo "$ac_try_echo") >&5
14013   (eval "$ac_link") 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } && {
14020          test -z "$ac_c_werror_flag" ||
14021          test ! -s conftest.err
14022        } && test -s conftest$ac_exeext && {
14023          test "$cross_compiling" = yes ||
14024          $as_test_x conftest$ac_exeext
14025        }; then
14026   ac_cv_lib_dld_dld_link=yes
14027 else
14028   $as_echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14030
14031         ac_cv_lib_dld_dld_link=no
14032 fi
14033
14034 rm -rf conftest.dSYM
14035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14036       conftest$ac_exeext conftest.$ac_ext
14037 LIBS=$ac_check_lib_save_LIBS
14038 fi
14039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14040 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14041 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14042   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14043 fi
14044
14045
14046 fi
14047
14048
14049 fi
14050
14051
14052 fi
14053
14054
14055 fi
14056
14057
14058 fi
14059
14060     ;;
14061   esac
14062
14063   if test "x$lt_cv_dlopen" != xno; then
14064     enable_dlopen=yes
14065   else
14066     enable_dlopen=no
14067   fi
14068
14069   case $lt_cv_dlopen in
14070   dlopen)
14071     save_CPPFLAGS="$CPPFLAGS"
14072     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14073
14074     save_LDFLAGS="$LDFLAGS"
14075     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14076
14077     save_LIBS="$LIBS"
14078     LIBS="$lt_cv_dlopen_libs $LIBS"
14079
14080     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14081 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14082 if test "${lt_cv_dlopen_self+set}" = set; then
14083   $as_echo_n "(cached) " >&6
14084 else
14085           if test "$cross_compiling" = yes; then :
14086   lt_cv_dlopen_self=cross
14087 else
14088   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14089   lt_status=$lt_dlunknown
14090   cat > conftest.$ac_ext <<_LT_EOF
14091 #line 14091 "configure"
14092 #include "confdefs.h"
14093
14094 #if HAVE_DLFCN_H
14095 #include <dlfcn.h>
14096 #endif
14097
14098 #include <stdio.h>
14099
14100 #ifdef RTLD_GLOBAL
14101 #  define LT_DLGLOBAL           RTLD_GLOBAL
14102 #else
14103 #  ifdef DL_GLOBAL
14104 #    define LT_DLGLOBAL         DL_GLOBAL
14105 #  else
14106 #    define LT_DLGLOBAL         0
14107 #  endif
14108 #endif
14109
14110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14111    find out it does not work in some platform. */
14112 #ifndef LT_DLLAZY_OR_NOW
14113 #  ifdef RTLD_LAZY
14114 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14115 #  else
14116 #    ifdef DL_LAZY
14117 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14118 #    else
14119 #      ifdef RTLD_NOW
14120 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14121 #      else
14122 #        ifdef DL_NOW
14123 #          define LT_DLLAZY_OR_NOW      DL_NOW
14124 #        else
14125 #          define LT_DLLAZY_OR_NOW      0
14126 #        endif
14127 #      endif
14128 #    endif
14129 #  endif
14130 #endif
14131
14132 void fnord() { int i=42;}
14133 int main ()
14134 {
14135   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14136   int status = $lt_dlunknown;
14137
14138   if (self)
14139     {
14140       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14141       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14142       /* dlclose (self); */
14143     }
14144   else
14145     puts (dlerror ());
14146
14147   return status;
14148 }
14149 _LT_EOF
14150   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151   (eval $ac_link) 2>&5
14152   ac_status=$?
14153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14155     (./conftest; exit; ) >&5 2>/dev/null
14156     lt_status=$?
14157     case x$lt_status in
14158       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14159       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14160       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14161     esac
14162   else :
14163     # compilation failed
14164     lt_cv_dlopen_self=no
14165   fi
14166 fi
14167 rm -fr conftest*
14168
14169
14170 fi
14171 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14172 $as_echo "$lt_cv_dlopen_self" >&6; }
14173
14174     if test "x$lt_cv_dlopen_self" = xyes; then
14175       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14176       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14177 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14178 if test "${lt_cv_dlopen_self_static+set}" = set; then
14179   $as_echo_n "(cached) " >&6
14180 else
14181           if test "$cross_compiling" = yes; then :
14182   lt_cv_dlopen_self_static=cross
14183 else
14184   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14185   lt_status=$lt_dlunknown
14186   cat > conftest.$ac_ext <<_LT_EOF
14187 #line 14187 "configure"
14188 #include "confdefs.h"
14189
14190 #if HAVE_DLFCN_H
14191 #include <dlfcn.h>
14192 #endif
14193
14194 #include <stdio.h>
14195
14196 #ifdef RTLD_GLOBAL
14197 #  define LT_DLGLOBAL           RTLD_GLOBAL
14198 #else
14199 #  ifdef DL_GLOBAL
14200 #    define LT_DLGLOBAL         DL_GLOBAL
14201 #  else
14202 #    define LT_DLGLOBAL         0
14203 #  endif
14204 #endif
14205
14206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14207    find out it does not work in some platform. */
14208 #ifndef LT_DLLAZY_OR_NOW
14209 #  ifdef RTLD_LAZY
14210 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14211 #  else
14212 #    ifdef DL_LAZY
14213 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14214 #    else
14215 #      ifdef RTLD_NOW
14216 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14217 #      else
14218 #        ifdef DL_NOW
14219 #          define LT_DLLAZY_OR_NOW      DL_NOW
14220 #        else
14221 #          define LT_DLLAZY_OR_NOW      0
14222 #        endif
14223 #      endif
14224 #    endif
14225 #  endif
14226 #endif
14227
14228 void fnord() { int i=42;}
14229 int main ()
14230 {
14231   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14232   int status = $lt_dlunknown;
14233
14234   if (self)
14235     {
14236       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14237       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14238       /* dlclose (self); */
14239     }
14240   else
14241     puts (dlerror ());
14242
14243   return status;
14244 }
14245 _LT_EOF
14246   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14247   (eval $ac_link) 2>&5
14248   ac_status=$?
14249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14251     (./conftest; exit; ) >&5 2>/dev/null
14252     lt_status=$?
14253     case x$lt_status in
14254       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14255       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14256       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14257     esac
14258   else :
14259     # compilation failed
14260     lt_cv_dlopen_self_static=no
14261   fi
14262 fi
14263 rm -fr conftest*
14264
14265
14266 fi
14267 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14268 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14269     fi
14270
14271     CPPFLAGS="$save_CPPFLAGS"
14272     LDFLAGS="$save_LDFLAGS"
14273     LIBS="$save_LIBS"
14274     ;;
14275   esac
14276
14277   case $lt_cv_dlopen_self in
14278   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14279   *) enable_dlopen_self=unknown ;;
14280   esac
14281
14282   case $lt_cv_dlopen_self_static in
14283   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14284   *) enable_dlopen_self_static=unknown ;;
14285   esac
14286 fi
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304 striplib=
14305 old_striplib=
14306 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14307 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14308 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14309   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14310   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14311   { $as_echo "$as_me:$LINENO: result: yes" >&5
14312 $as_echo "yes" >&6; }
14313 else
14314 # FIXME - insert some real tests, host_os isn't really good enough
14315   case $host_os in
14316   darwin*)
14317     if test -n "$STRIP" ; then
14318       striplib="$STRIP -x"
14319       old_striplib="$STRIP -S"
14320       { $as_echo "$as_me:$LINENO: result: yes" >&5
14321 $as_echo "yes" >&6; }
14322     else
14323       { $as_echo "$as_me:$LINENO: result: no" >&5
14324 $as_echo "no" >&6; }
14325     fi
14326     ;;
14327   *)
14328     { $as_echo "$as_me:$LINENO: result: no" >&5
14329 $as_echo "no" >&6; }
14330     ;;
14331   esac
14332 fi
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345   # Report which library types will actually be built
14346   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14348   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14349 $as_echo "$can_build_shared" >&6; }
14350
14351   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14352 $as_echo_n "checking whether to build shared libraries... " >&6; }
14353   test "$can_build_shared" = "no" && enable_shared=no
14354
14355   # On AIX, shared libraries and static libraries use the same namespace, and
14356   # are all built from PIC.
14357   case $host_os in
14358   aix3*)
14359     test "$enable_shared" = yes && enable_static=no
14360     if test -n "$RANLIB"; then
14361       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14362       postinstall_cmds='$RANLIB $lib'
14363     fi
14364     ;;
14365
14366   aix[4-9]*)
14367     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14368       test "$enable_shared" = yes && enable_static=no
14369     fi
14370     ;;
14371   esac
14372   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14373 $as_echo "$enable_shared" >&6; }
14374
14375   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14376 $as_echo_n "checking whether to build static libraries... " >&6; }
14377   # Make sure either enable_shared or enable_static is yes.
14378   test "$enable_shared" = yes || enable_static=yes
14379   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14380 $as_echo "$enable_static" >&6; }
14381
14382
14383
14384
14385 fi
14386 ac_ext=c
14387 ac_cpp='$CPP $CPPFLAGS'
14388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14391
14392 CC="$lt_save_CC"
14393
14394
14395 ac_ext=cpp
14396 ac_cpp='$CXXCPP $CPPFLAGS'
14397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14400
14401 archive_cmds_need_lc_CXX=no
14402 allow_undefined_flag_CXX=
14403 always_export_symbols_CXX=no
14404 archive_expsym_cmds_CXX=
14405 compiler_needs_object_CXX=no
14406 export_dynamic_flag_spec_CXX=
14407 hardcode_direct_CXX=no
14408 hardcode_direct_absolute_CXX=no
14409 hardcode_libdir_flag_spec_CXX=
14410 hardcode_libdir_flag_spec_ld_CXX=
14411 hardcode_libdir_separator_CXX=
14412 hardcode_minus_L_CXX=no
14413 hardcode_shlibpath_var_CXX=unsupported
14414 hardcode_automatic_CXX=no
14415 inherit_rpath_CXX=no
14416 module_cmds_CXX=
14417 module_expsym_cmds_CXX=
14418 link_all_deplibs_CXX=unknown
14419 old_archive_cmds_CXX=$old_archive_cmds
14420 no_undefined_flag_CXX=
14421 whole_archive_flag_spec_CXX=
14422 enable_shared_with_static_runtimes_CXX=no
14423
14424 # Source file extension for C++ test sources.
14425 ac_ext=cpp
14426
14427 # Object file extension for compiled C++ test sources.
14428 objext=o
14429 objext_CXX=$objext
14430
14431 # No sense in running all these tests if we already determined that
14432 # the CXX compiler isn't working.  Some variables (like enable_shared)
14433 # are currently assumed to apply to all compilers on this platform,
14434 # and will be corrupted by setting them based on a non-working compiler.
14435 if test "$_lt_caught_CXX_error" != yes; then
14436   # Code to be used in simple compile tests
14437   lt_simple_compile_test_code="int some_variable = 0;"
14438
14439   # Code to be used in simple link tests
14440   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14441
14442   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14443
14444
14445
14446
14447
14448
14449 # If no C compiler was specified, use CC.
14450 LTCC=${LTCC-"$CC"}
14451
14452 # If no C compiler flags were specified, use CFLAGS.
14453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14454
14455 # Allow CC to be a program name with arguments.
14456 compiler=$CC
14457
14458
14459   # save warnings/boilerplate of simple test code
14460   ac_outfile=conftest.$ac_objext
14461 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463 _lt_compiler_boilerplate=`cat conftest.err`
14464 $RM conftest*
14465
14466   ac_outfile=conftest.$ac_objext
14467 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469 _lt_linker_boilerplate=`cat conftest.err`
14470 $RM -r conftest*
14471
14472
14473   # Allow CC to be a program name with arguments.
14474   lt_save_CC=$CC
14475   lt_save_LD=$LD
14476   lt_save_GCC=$GCC
14477   GCC=$GXX
14478   lt_save_with_gnu_ld=$with_gnu_ld
14479   lt_save_path_LD=$lt_cv_path_LD
14480   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14481     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14482   else
14483     $as_unset lt_cv_prog_gnu_ld
14484   fi
14485   if test -n "${lt_cv_path_LDCXX+set}"; then
14486     lt_cv_path_LD=$lt_cv_path_LDCXX
14487   else
14488     $as_unset lt_cv_path_LD
14489   fi
14490   test -z "${LDCXX+set}" || LD=$LDCXX
14491   CC=${CXX-"c++"}
14492   compiler=$CC
14493   compiler_CXX=$CC
14494   for cc_temp in $compiler""; do
14495   case $cc_temp in
14496     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14497     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14498     \-*) ;;
14499     *) break;;
14500   esac
14501 done
14502 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14503
14504
14505   if test -n "$compiler"; then
14506     # We don't want -fno-exception when compiling C++ code, so set the
14507     # no_builtin_flag separately
14508     if test "$GXX" = yes; then
14509       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14510     else
14511       lt_prog_compiler_no_builtin_flag_CXX=
14512     fi
14513
14514     if test "$GXX" = yes; then
14515       # Set up default GNU C++ configuration
14516
14517
14518
14519 # Check whether --with-gnu-ld was given.
14520 if test "${with_gnu_ld+set}" = set; then
14521   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14522 else
14523   with_gnu_ld=no
14524 fi
14525
14526 ac_prog=ld
14527 if test "$GCC" = yes; then
14528   # Check if gcc -print-prog-name=ld gives a path.
14529   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14530 $as_echo_n "checking for ld used by $CC... " >&6; }
14531   case $host in
14532   *-*-mingw*)
14533     # gcc leaves a trailing carriage return which upsets mingw
14534     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14535   *)
14536     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14537   esac
14538   case $ac_prog in
14539     # Accept absolute paths.
14540     [\\/]* | ?:[\\/]*)
14541       re_direlt='/[^/][^/]*/\.\./'
14542       # Canonicalize the pathname of ld
14543       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14544       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14545         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14546       done
14547       test -z "$LD" && LD="$ac_prog"
14548       ;;
14549   "")
14550     # If it fails, then pretend we aren't using GCC.
14551     ac_prog=ld
14552     ;;
14553   *)
14554     # If it is relative, then search for the first ld in PATH.
14555     with_gnu_ld=unknown
14556     ;;
14557   esac
14558 elif test "$with_gnu_ld" = yes; then
14559   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14560 $as_echo_n "checking for GNU ld... " >&6; }
14561 else
14562   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14563 $as_echo_n "checking for non-GNU ld... " >&6; }
14564 fi
14565 if test "${lt_cv_path_LD+set}" = set; then
14566   $as_echo_n "(cached) " >&6
14567 else
14568   if test -z "$LD"; then
14569   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14570   for ac_dir in $PATH; do
14571     IFS="$lt_save_ifs"
14572     test -z "$ac_dir" && ac_dir=.
14573     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14574       lt_cv_path_LD="$ac_dir/$ac_prog"
14575       # Check to see if the program is GNU ld.  I'd rather use --version,
14576       # but apparently some variants of GNU ld only accept -v.
14577       # Break only if it was the GNU/non-GNU ld that we prefer.
14578       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14579       *GNU* | *'with BFD'*)
14580         test "$with_gnu_ld" != no && break
14581         ;;
14582       *)
14583         test "$with_gnu_ld" != yes && break
14584         ;;
14585       esac
14586     fi
14587   done
14588   IFS="$lt_save_ifs"
14589 else
14590   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14591 fi
14592 fi
14593
14594 LD="$lt_cv_path_LD"
14595 if test -n "$LD"; then
14596   { $as_echo "$as_me:$LINENO: result: $LD" >&5
14597 $as_echo "$LD" >&6; }
14598 else
14599   { $as_echo "$as_me:$LINENO: result: no" >&5
14600 $as_echo "no" >&6; }
14601 fi
14602 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14603 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14604    { (exit 1); exit 1; }; }
14605 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14606 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14607 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14608   $as_echo_n "(cached) " >&6
14609 else
14610   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14611 case `$LD -v 2>&1 </dev/null` in
14612 *GNU* | *'with BFD'*)
14613   lt_cv_prog_gnu_ld=yes
14614   ;;
14615 *)
14616   lt_cv_prog_gnu_ld=no
14617   ;;
14618 esac
14619 fi
14620 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14621 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14622 with_gnu_ld=$lt_cv_prog_gnu_ld
14623
14624
14625
14626
14627
14628
14629
14630       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14631       # archiving commands below assume that GNU ld is being used.
14632       if test "$with_gnu_ld" = yes; then
14633         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14634         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'
14635
14636         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14637         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14638
14639         # If archive_cmds runs LD, not CC, wlarc should be empty
14640         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14641         #     investigate it a little bit more. (MM)
14642         wlarc='${wl}'
14643
14644         # ancient GNU ld didn't support --whole-archive et. al.
14645         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14646           $GREP 'no-whole-archive' > /dev/null; then
14647           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14648         else
14649           whole_archive_flag_spec_CXX=
14650         fi
14651       else
14652         with_gnu_ld=no
14653         wlarc=
14654
14655         # A generic and very simple default shared library creation
14656         # command for GNU C++ for the case where it uses the native
14657         # linker, instead of GNU ld.  If possible, this setting should
14658         # overridden to take advantage of the native linker features on
14659         # the platform it is being used on.
14660         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14661       fi
14662
14663       # Commands to make compiler produce verbose output that lists
14664       # what "hidden" libraries, object files and flags are used when
14665       # linking a shared library.
14666       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14667
14668     else
14669       GXX=no
14670       with_gnu_ld=no
14671       wlarc=
14672     fi
14673
14674     # PORTME: fill in a description of your system's C++ link characteristics
14675     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14676 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14677     ld_shlibs_CXX=yes
14678     case $host_os in
14679       aix3*)
14680         # FIXME: insert proper C++ library support
14681         ld_shlibs_CXX=no
14682         ;;
14683       aix[4-9]*)
14684         if test "$host_cpu" = ia64; then
14685           # On IA64, the linker does run time linking by default, so we don't
14686           # have to do anything special.
14687           aix_use_runtimelinking=no
14688           exp_sym_flag='-Bexport'
14689           no_entry_flag=""
14690         else
14691           aix_use_runtimelinking=no
14692
14693           # Test if we are trying to use run time linking or normal
14694           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14695           # need to do runtime linking.
14696           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14697             for ld_flag in $LDFLAGS; do
14698               case $ld_flag in
14699               *-brtl*)
14700                 aix_use_runtimelinking=yes
14701                 break
14702                 ;;
14703               esac
14704             done
14705             ;;
14706           esac
14707
14708           exp_sym_flag='-bexport'
14709           no_entry_flag='-bnoentry'
14710         fi
14711
14712         # When large executables or shared objects are built, AIX ld can
14713         # have problems creating the table of contents.  If linking a library
14714         # or program results in "error TOC overflow" add -mminimal-toc to
14715         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14716         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14717
14718         archive_cmds_CXX=''
14719         hardcode_direct_CXX=yes
14720         hardcode_direct_absolute_CXX=yes
14721         hardcode_libdir_separator_CXX=':'
14722         link_all_deplibs_CXX=yes
14723         file_list_spec_CXX='${wl}-f,'
14724
14725         if test "$GXX" = yes; then
14726           case $host_os in aix4.[012]|aix4.[012].*)
14727           # We only want to do this on AIX 4.2 and lower, the check
14728           # below for broken collect2 doesn't work under 4.3+
14729           collect2name=`${CC} -print-prog-name=collect2`
14730           if test -f "$collect2name" &&
14731              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14732           then
14733             # We have reworked collect2
14734             :
14735           else
14736             # We have old collect2
14737             hardcode_direct_CXX=unsupported
14738             # It fails to find uninstalled libraries when the uninstalled
14739             # path is not listed in the libpath.  Setting hardcode_minus_L
14740             # to unsupported forces relinking
14741             hardcode_minus_L_CXX=yes
14742             hardcode_libdir_flag_spec_CXX='-L$libdir'
14743             hardcode_libdir_separator_CXX=
14744           fi
14745           esac
14746           shared_flag='-shared'
14747           if test "$aix_use_runtimelinking" = yes; then
14748             shared_flag="$shared_flag "'${wl}-G'
14749           fi
14750         else
14751           # not using gcc
14752           if test "$host_cpu" = ia64; then
14753           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14754           # chokes on -Wl,-G. The following line is correct:
14755           shared_flag='-G'
14756           else
14757             if test "$aix_use_runtimelinking" = yes; then
14758               shared_flag='${wl}-G'
14759             else
14760               shared_flag='${wl}-bM:SRE'
14761             fi
14762           fi
14763         fi
14764
14765         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14766         # It seems that -bexpall does not export symbols beginning with
14767         # underscore (_), so it is better to generate a list of symbols to
14768         # export.
14769         always_export_symbols_CXX=yes
14770         if test "$aix_use_runtimelinking" = yes; then
14771           # Warning - without using the other runtime loading flags (-brtl),
14772           # -berok will link without error, but may produce a broken library.
14773           allow_undefined_flag_CXX='-berok'
14774           # Determine the default libpath from the value encoded in an empty
14775           # executable.
14776           cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782
14783 int
14784 main ()
14785 {
14786
14787   ;
14788   return 0;
14789 }
14790 _ACEOF
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (ac_try="$ac_link"
14793 case "(($ac_try" in
14794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795   *) ac_try_echo=$ac_try;;
14796 esac
14797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14798 $as_echo "$ac_try_echo") >&5
14799   (eval "$ac_link") 2>conftest.er1
14800   ac_status=$?
14801   grep -v '^ *+' conftest.er1 >conftest.err
14802   rm -f conftest.er1
14803   cat conftest.err >&5
14804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); } && {
14806          test -z "$ac_cxx_werror_flag" ||
14807          test ! -s conftest.err
14808        } && test -s conftest$ac_exeext && {
14809          test "$cross_compiling" = yes ||
14810          $as_test_x conftest$ac_exeext
14811        }; then
14812
14813 lt_aix_libpath_sed='
14814     /Import File Strings/,/^$/ {
14815         /^0/ {
14816             s/^0  *\(.*\)$/\1/
14817             p
14818         }
14819     }'
14820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14821 # Check for a 64-bit object if we didn't find anything.
14822 if test -z "$aix_libpath"; then
14823   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14824 fi
14825 else
14826   $as_echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829
14830 fi
14831
14832 rm -rf conftest.dSYM
14833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14834       conftest$ac_exeext conftest.$ac_ext
14835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14836
14837           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14838
14839           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"
14840         else
14841           if test "$host_cpu" = ia64; then
14842             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14843             allow_undefined_flag_CXX="-z nodefs"
14844             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"
14845           else
14846             # Determine the default libpath from the value encoded in an
14847             # empty executable.
14848             cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854
14855 int
14856 main ()
14857 {
14858
14859   ;
14860   return 0;
14861 }
14862 _ACEOF
14863 rm -f conftest.$ac_objext conftest$ac_exeext
14864 if { (ac_try="$ac_link"
14865 case "(($ac_try" in
14866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867   *) ac_try_echo=$ac_try;;
14868 esac
14869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14870 $as_echo "$ac_try_echo") >&5
14871   (eval "$ac_link") 2>conftest.er1
14872   ac_status=$?
14873   grep -v '^ *+' conftest.er1 >conftest.err
14874   rm -f conftest.er1
14875   cat conftest.err >&5
14876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } && {
14878          test -z "$ac_cxx_werror_flag" ||
14879          test ! -s conftest.err
14880        } && test -s conftest$ac_exeext && {
14881          test "$cross_compiling" = yes ||
14882          $as_test_x conftest$ac_exeext
14883        }; then
14884
14885 lt_aix_libpath_sed='
14886     /Import File Strings/,/^$/ {
14887         /^0/ {
14888             s/^0  *\(.*\)$/\1/
14889             p
14890         }
14891     }'
14892 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14893 # Check for a 64-bit object if we didn't find anything.
14894 if test -z "$aix_libpath"; then
14895   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14896 fi
14897 else
14898   $as_echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901
14902 fi
14903
14904 rm -rf conftest.dSYM
14905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14906       conftest$ac_exeext conftest.$ac_ext
14907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14908
14909             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14910             # Warning - without using the other run time loading flags,
14911             # -berok will link without error, but may produce a broken library.
14912             no_undefined_flag_CXX=' ${wl}-bernotok'
14913             allow_undefined_flag_CXX=' ${wl}-berok'
14914             # Exported symbols can be pulled into shared objects from archives
14915             whole_archive_flag_spec_CXX='$convenience'
14916             archive_cmds_need_lc_CXX=yes
14917             # This is similar to how AIX traditionally builds its shared
14918             # libraries.
14919             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'
14920           fi
14921         fi
14922         ;;
14923
14924       beos*)
14925         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14926           allow_undefined_flag_CXX=unsupported
14927           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14928           # support --undefined.  This deserves some investigation.  FIXME
14929           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930         else
14931           ld_shlibs_CXX=no
14932         fi
14933         ;;
14934
14935       chorus*)
14936         case $cc_basename in
14937           *)
14938           # FIXME: insert proper C++ library support
14939           ld_shlibs_CXX=no
14940           ;;
14941         esac
14942         ;;
14943
14944       cygwin* | mingw* | pw32* | cegcc*)
14945         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14946         # as there is no search path for DLLs.
14947         hardcode_libdir_flag_spec_CXX='-L$libdir'
14948         allow_undefined_flag_CXX=unsupported
14949         always_export_symbols_CXX=no
14950         enable_shared_with_static_runtimes_CXX=yes
14951
14952         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14953           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'
14954           # If the export-symbols file already is a .def file (1st line
14955           # is EXPORTS), use it as is; otherwise, prepend...
14956           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14957             cp $export_symbols $output_objdir/$soname.def;
14958           else
14959             echo EXPORTS > $output_objdir/$soname.def;
14960             cat $export_symbols >> $output_objdir/$soname.def;
14961           fi~
14962           $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'
14963         else
14964           ld_shlibs_CXX=no
14965         fi
14966         ;;
14967       darwin* | rhapsody*)
14968
14969
14970   archive_cmds_need_lc_CXX=no
14971   hardcode_direct_CXX=no
14972   hardcode_automatic_CXX=yes
14973   hardcode_shlibpath_var_CXX=unsupported
14974   whole_archive_flag_spec_CXX=''
14975   link_all_deplibs_CXX=yes
14976   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14977   case $cc_basename in
14978      ifort*) _lt_dar_can_shared=yes ;;
14979      *) _lt_dar_can_shared=$GCC ;;
14980   esac
14981   if test "$_lt_dar_can_shared" = "yes"; then
14982     output_verbose_link_cmd=echo
14983     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}"
14984     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14985     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}"
14986     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}"
14987        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14988       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}"
14989       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}"
14990     fi
14991
14992   else
14993   ld_shlibs_CXX=no
14994   fi
14995
14996         ;;
14997
14998       dgux*)
14999         case $cc_basename in
15000           ec++*)
15001             # FIXME: insert proper C++ library support
15002             ld_shlibs_CXX=no
15003             ;;
15004           ghcx*)
15005             # Green Hills C++ Compiler
15006             # FIXME: insert proper C++ library support
15007             ld_shlibs_CXX=no
15008             ;;
15009           *)
15010             # FIXME: insert proper C++ library support
15011             ld_shlibs_CXX=no
15012             ;;
15013         esac
15014         ;;
15015
15016       freebsd[12]*)
15017         # C++ shared libraries reported to be fairly broken before
15018         # switch to ELF
15019         ld_shlibs_CXX=no
15020         ;;
15021
15022       freebsd-elf*)
15023         archive_cmds_need_lc_CXX=no
15024         ;;
15025
15026       freebsd* | dragonfly*)
15027         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15028         # conventions
15029         ld_shlibs_CXX=yes
15030         ;;
15031
15032       gnu*)
15033         ;;
15034
15035       hpux9*)
15036         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15037         hardcode_libdir_separator_CXX=:
15038         export_dynamic_flag_spec_CXX='${wl}-E'
15039         hardcode_direct_CXX=yes
15040         hardcode_minus_L_CXX=yes # Not in the search PATH,
15041                                              # but as the default
15042                                              # location of the library.
15043
15044         case $cc_basename in
15045           CC*)
15046             # FIXME: insert proper C++ library support
15047             ld_shlibs_CXX=no
15048             ;;
15049           aCC*)
15050             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'
15051             # Commands to make compiler produce verbose output that lists
15052             # what "hidden" libraries, object files and flags are used when
15053             # linking a shared library.
15054             #
15055             # There doesn't appear to be a way to prevent this compiler from
15056             # explicitly linking system object files so we need to strip them
15057             # from the output so that they don't get included in the library
15058             # dependencies.
15059             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'
15060             ;;
15061           *)
15062             if test "$GXX" = yes; then
15063               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'
15064             else
15065               # FIXME: insert proper C++ library support
15066               ld_shlibs_CXX=no
15067             fi
15068             ;;
15069         esac
15070         ;;
15071
15072       hpux10*|hpux11*)
15073         if test $with_gnu_ld = no; then
15074           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15075           hardcode_libdir_separator_CXX=:
15076
15077           case $host_cpu in
15078             hppa*64*|ia64*)
15079               ;;
15080             *)
15081               export_dynamic_flag_spec_CXX='${wl}-E'
15082               ;;
15083           esac
15084         fi
15085         case $host_cpu in
15086           hppa*64*|ia64*)
15087             hardcode_direct_CXX=no
15088             hardcode_shlibpath_var_CXX=no
15089             ;;
15090           *)
15091             hardcode_direct_CXX=yes
15092             hardcode_direct_absolute_CXX=yes
15093             hardcode_minus_L_CXX=yes # Not in the search PATH,
15094                                                  # but as the default
15095                                                  # location of the library.
15096             ;;
15097         esac
15098
15099         case $cc_basename in
15100           CC*)
15101             # FIXME: insert proper C++ library support
15102             ld_shlibs_CXX=no
15103             ;;
15104           aCC*)
15105             case $host_cpu in
15106               hppa*64*)
15107                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15108                 ;;
15109               ia64*)
15110                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15111                 ;;
15112               *)
15113                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15114                 ;;
15115             esac
15116             # Commands to make compiler produce verbose output that lists
15117             # what "hidden" libraries, object files and flags are used when
15118             # linking a shared library.
15119             #
15120             # There doesn't appear to be a way to prevent this compiler from
15121             # explicitly linking system object files so we need to strip them
15122             # from the output so that they don't get included in the library
15123             # dependencies.
15124             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'
15125             ;;
15126           *)
15127             if test "$GXX" = yes; then
15128               if test $with_gnu_ld = no; then
15129                 case $host_cpu in
15130                   hppa*64*)
15131                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15132                     ;;
15133                   ia64*)
15134                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15135                     ;;
15136                   *)
15137                     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'
15138                     ;;
15139                 esac
15140               fi
15141             else
15142               # FIXME: insert proper C++ library support
15143               ld_shlibs_CXX=no
15144             fi
15145             ;;
15146         esac
15147         ;;
15148
15149       interix[3-9]*)
15150         hardcode_direct_CXX=no
15151         hardcode_shlibpath_var_CXX=no
15152         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15153         export_dynamic_flag_spec_CXX='${wl}-E'
15154         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15155         # Instead, shared libraries are loaded at an image base (0x10000000 by
15156         # default) and relocated if they conflict, which is a slow very memory
15157         # consuming and fragmenting process.  To avoid this, we pick a random,
15158         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15159         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15160         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'
15161         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'
15162         ;;
15163       irix5* | irix6*)
15164         case $cc_basename in
15165           CC*)
15166             # SGI C++
15167             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'
15168
15169             # Archives containing C++ object files must be created using
15170             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15171             # necessary to make sure instantiated templates are included
15172             # in the archive.
15173             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15174             ;;
15175           *)
15176             if test "$GXX" = yes; then
15177               if test "$with_gnu_ld" = no; then
15178                 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'
15179               else
15180                 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'
15181               fi
15182             fi
15183             link_all_deplibs_CXX=yes
15184             ;;
15185         esac
15186         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15187         hardcode_libdir_separator_CXX=:
15188         inherit_rpath_CXX=yes
15189         ;;
15190
15191       linux* | k*bsd*-gnu)
15192         case $cc_basename in
15193           KCC*)
15194             # Kuck and Associates, Inc. (KAI) C++ Compiler
15195
15196             # KCC will only create a shared library if the output file
15197             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15198             # to its proper name (with version) after linking.
15199             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'
15200             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'
15201             # Commands to make compiler produce verbose output that lists
15202             # what "hidden" libraries, object files and flags are used when
15203             # linking a shared library.
15204             #
15205             # There doesn't appear to be a way to prevent this compiler from
15206             # explicitly linking system object files so we need to strip them
15207             # from the output so that they don't get included in the library
15208             # dependencies.
15209             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'
15210
15211             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15212             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15213
15214             # Archives containing C++ object files must be created using
15215             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15216             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15217             ;;
15218           icpc* | ecpc* )
15219             # Intel C++
15220             with_gnu_ld=yes
15221             # version 8.0 and above of icpc choke on multiply defined symbols
15222             # if we add $predep_objects and $postdep_objects, however 7.1 and
15223             # earlier do not add the objects themselves.
15224             case `$CC -V 2>&1` in
15225               *"Version 7."*)
15226                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227                 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'
15228                 ;;
15229               *)  # Version 8.0 or newer
15230                 tmp_idyn=
15231                 case $host_cpu in
15232                   ia64*) tmp_idyn=' -i_dynamic';;
15233                 esac
15234                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15235                 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'
15236                 ;;
15237             esac
15238             archive_cmds_need_lc_CXX=no
15239             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15240             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15241             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15242             ;;
15243           pgCC* | pgcpp*)
15244             # Portland Group C++ compiler
15245             case `$CC -V` in
15246             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15247               prelink_cmds_CXX='tpldir=Template.dir~
15248                 rm -rf $tpldir~
15249                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15250                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15251               old_archive_cmds_CXX='tpldir=Template.dir~
15252                 rm -rf $tpldir~
15253                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15254                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15255                 $RANLIB $oldlib'
15256               archive_cmds_CXX='tpldir=Template.dir~
15257                 rm -rf $tpldir~
15258                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15259                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15260               archive_expsym_cmds_CXX='tpldir=Template.dir~
15261                 rm -rf $tpldir~
15262                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15263                 $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'
15264               ;;
15265             *) # Version 6 will use weak symbols
15266               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15267               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'
15268               ;;
15269             esac
15270
15271             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15272             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15273             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'
15274             ;;
15275           cxx*)
15276             # Compaq C++
15277             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15278             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'
15279
15280             runpath_var=LD_RUN_PATH
15281             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15282             hardcode_libdir_separator_CXX=:
15283
15284             # Commands to make compiler produce verbose output that lists
15285             # what "hidden" libraries, object files and flags are used when
15286             # linking a shared library.
15287             #
15288             # There doesn't appear to be a way to prevent this compiler from
15289             # explicitly linking system object files so we need to strip them
15290             # from the output so that they don't get included in the library
15291             # dependencies.
15292             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'
15293             ;;
15294           xl*)
15295             # IBM XL 8.0 on PPC, with GNU ld
15296             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15297             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15298             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15299             if test "x$supports_anon_versioning" = xyes; then
15300               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15301                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15302                 echo "local: *; };" >> $output_objdir/$libname.ver~
15303                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15304             fi
15305             ;;
15306           *)
15307             case `$CC -V 2>&1 | sed 5q` in
15308             *Sun\ C*)
15309               # Sun C++ 5.9
15310               no_undefined_flag_CXX=' -zdefs'
15311               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15312               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'
15313               hardcode_libdir_flag_spec_CXX='-R$libdir'
15314               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'
15315               compiler_needs_object_CXX=yes
15316
15317               # Not sure whether something based on
15318               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15319               # would be better.
15320               output_verbose_link_cmd='echo'
15321
15322               # Archives containing C++ object files must be created using
15323               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15324               # necessary to make sure instantiated templates are included
15325               # in the archive.
15326               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15327               ;;
15328             esac
15329             ;;
15330         esac
15331         ;;
15332
15333       lynxos*)
15334         # FIXME: insert proper C++ library support
15335         ld_shlibs_CXX=no
15336         ;;
15337
15338       m88k*)
15339         # FIXME: insert proper C++ library support
15340         ld_shlibs_CXX=no
15341         ;;
15342
15343       mvs*)
15344         case $cc_basename in
15345           cxx*)
15346             # FIXME: insert proper C++ library support
15347             ld_shlibs_CXX=no
15348             ;;
15349           *)
15350             # FIXME: insert proper C++ library support
15351             ld_shlibs_CXX=no
15352             ;;
15353         esac
15354         ;;
15355
15356       netbsd*)
15357         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15358           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15359           wlarc=
15360           hardcode_libdir_flag_spec_CXX='-R$libdir'
15361           hardcode_direct_CXX=yes
15362           hardcode_shlibpath_var_CXX=no
15363         fi
15364         # Workaround some broken pre-1.5 toolchains
15365         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15366         ;;
15367
15368       *nto* | *qnx*)
15369         ld_shlibs_CXX=yes
15370         ;;
15371
15372       openbsd2*)
15373         # C++ shared libraries are fairly broken
15374         ld_shlibs_CXX=no
15375         ;;
15376
15377       openbsd*)
15378         if test -f /usr/libexec/ld.so; then
15379           hardcode_direct_CXX=yes
15380           hardcode_shlibpath_var_CXX=no
15381           hardcode_direct_absolute_CXX=yes
15382           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15383           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15384           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15385             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15386             export_dynamic_flag_spec_CXX='${wl}-E'
15387             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15388           fi
15389           output_verbose_link_cmd=echo
15390         else
15391           ld_shlibs_CXX=no
15392         fi
15393         ;;
15394
15395       osf3* | osf4* | osf5*)
15396         case $cc_basename in
15397           KCC*)
15398             # Kuck and Associates, Inc. (KAI) C++ Compiler
15399
15400             # KCC will only create a shared library if the output file
15401             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15402             # to its proper name (with version) after linking.
15403             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'
15404
15405             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15406             hardcode_libdir_separator_CXX=:
15407
15408             # Archives containing C++ object files must be created using
15409             # the KAI C++ compiler.
15410             case $host in
15411               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15412               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15413             esac
15414             ;;
15415           RCC*)
15416             # Rational C++ 2.4.1
15417             # FIXME: insert proper C++ library support
15418             ld_shlibs_CXX=no
15419             ;;
15420           cxx*)
15421             case $host in
15422               osf3*)
15423                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15424                 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'
15425                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15426                 ;;
15427               *)
15428                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15429                 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'
15430                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15431                   echo "-hidden">> $lib.exp~
15432                   $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~
15433                   $RM $lib.exp'
15434                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15435                 ;;
15436             esac
15437
15438             hardcode_libdir_separator_CXX=:
15439
15440             # Commands to make compiler produce verbose output that lists
15441             # what "hidden" libraries, object files and flags are used when
15442             # linking a shared library.
15443             #
15444             # There doesn't appear to be a way to prevent this compiler from
15445             # explicitly linking system object files so we need to strip them
15446             # from the output so that they don't get included in the library
15447             # dependencies.
15448             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'
15449             ;;
15450           *)
15451             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15452               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15453               case $host in
15454                 osf3*)
15455                   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'
15456                   ;;
15457                 *)
15458                   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'
15459                   ;;
15460               esac
15461
15462               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15463               hardcode_libdir_separator_CXX=:
15464
15465               # Commands to make compiler produce verbose output that lists
15466               # what "hidden" libraries, object files and flags are used when
15467               # linking a shared library.
15468               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15469
15470             else
15471               # FIXME: insert proper C++ library support
15472               ld_shlibs_CXX=no
15473             fi
15474             ;;
15475         esac
15476         ;;
15477
15478       psos*)
15479         # FIXME: insert proper C++ library support
15480         ld_shlibs_CXX=no
15481         ;;
15482
15483       sunos4*)
15484         case $cc_basename in
15485           CC*)
15486             # Sun C++ 4.x
15487             # FIXME: insert proper C++ library support
15488             ld_shlibs_CXX=no
15489             ;;
15490           lcc*)
15491             # Lucid
15492             # FIXME: insert proper C++ library support
15493             ld_shlibs_CXX=no
15494             ;;
15495           *)
15496             # FIXME: insert proper C++ library support
15497             ld_shlibs_CXX=no
15498             ;;
15499         esac
15500         ;;
15501
15502       solaris*)
15503         case $cc_basename in
15504           CC*)
15505             # Sun C++ 4.2, 5.x and Centerline C++
15506             archive_cmds_need_lc_CXX=yes
15507             no_undefined_flag_CXX=' -zdefs'
15508             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15509             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15510               $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'
15511
15512             hardcode_libdir_flag_spec_CXX='-R$libdir'
15513             hardcode_shlibpath_var_CXX=no
15514             case $host_os in
15515               solaris2.[0-5] | solaris2.[0-5].*) ;;
15516               *)
15517                 # The compiler driver will combine and reorder linker options,
15518                 # but understands `-z linker_flag'.
15519                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15520                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15521                 ;;
15522             esac
15523             link_all_deplibs_CXX=yes
15524
15525             output_verbose_link_cmd='echo'
15526
15527             # Archives containing C++ object files must be created using
15528             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15529             # necessary to make sure instantiated templates are included
15530             # in the archive.
15531             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15532             ;;
15533           gcx*)
15534             # Green Hills C++ Compiler
15535             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15536
15537             # The C++ compiler must be used to create the archive.
15538             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15539             ;;
15540           *)
15541             # GNU C++ compiler with Solaris linker
15542             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15543               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15544               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15545                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15546                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15547                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15548
15549                 # Commands to make compiler produce verbose output that lists
15550                 # what "hidden" libraries, object files and flags are used when
15551                 # linking a shared library.
15552                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15553               else
15554                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15555                 # platform.
15556                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15557                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15558                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15559
15560                 # Commands to make compiler produce verbose output that lists
15561                 # what "hidden" libraries, object files and flags are used when
15562                 # linking a shared library.
15563                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15564               fi
15565
15566               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15567               case $host_os in
15568                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15569                 *)
15570                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15571                   ;;
15572               esac
15573             fi
15574             ;;
15575         esac
15576         ;;
15577
15578     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15579       no_undefined_flag_CXX='${wl}-z,text'
15580       archive_cmds_need_lc_CXX=no
15581       hardcode_shlibpath_var_CXX=no
15582       runpath_var='LD_RUN_PATH'
15583
15584       case $cc_basename in
15585         CC*)
15586           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15587           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15588           ;;
15589         *)
15590           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15591           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15592           ;;
15593       esac
15594       ;;
15595
15596       sysv5* | sco3.2v5* | sco5v6*)
15597         # Note: We can NOT use -z defs as we might desire, because we do not
15598         # link with -lc, and that would cause any symbols used from libc to
15599         # always be unresolved, which means just about no library would
15600         # ever link correctly.  If we're not using GNU ld we use -z text
15601         # though, which does catch some bad symbols but isn't as heavy-handed
15602         # as -z defs.
15603         no_undefined_flag_CXX='${wl}-z,text'
15604         allow_undefined_flag_CXX='${wl}-z,nodefs'
15605         archive_cmds_need_lc_CXX=no
15606         hardcode_shlibpath_var_CXX=no
15607         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15608         hardcode_libdir_separator_CXX=':'
15609         link_all_deplibs_CXX=yes
15610         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15611         runpath_var='LD_RUN_PATH'
15612
15613         case $cc_basename in
15614           CC*)
15615             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15616             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15617             ;;
15618           *)
15619             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15620             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15621             ;;
15622         esac
15623       ;;
15624
15625       tandem*)
15626         case $cc_basename in
15627           NCC*)
15628             # NonStop-UX NCC 3.20
15629             # FIXME: insert proper C++ library support
15630             ld_shlibs_CXX=no
15631             ;;
15632           *)
15633             # FIXME: insert proper C++ library support
15634             ld_shlibs_CXX=no
15635             ;;
15636         esac
15637         ;;
15638
15639       vxworks*)
15640         # FIXME: insert proper C++ library support
15641         ld_shlibs_CXX=no
15642         ;;
15643
15644       *)
15645         # FIXME: insert proper C++ library support
15646         ld_shlibs_CXX=no
15647         ;;
15648     esac
15649
15650     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15651 $as_echo "$ld_shlibs_CXX" >&6; }
15652     test "$ld_shlibs_CXX" = no && can_build_shared=no
15653
15654     GCC_CXX="$GXX"
15655     LD_CXX="$LD"
15656
15657     ## CAVEAT EMPTOR:
15658     ## There is no encapsulation within the following macros, do not change
15659     ## the running order or otherwise move them around unless you know exactly
15660     ## what you are doing...
15661     # Dependencies to place before and after the object being linked:
15662 predep_objects_CXX=
15663 postdep_objects_CXX=
15664 predeps_CXX=
15665 postdeps_CXX=
15666 compiler_lib_search_path_CXX=
15667
15668 cat > conftest.$ac_ext <<_LT_EOF
15669 class Foo
15670 {
15671 public:
15672   Foo (void) { a = 0; }
15673 private:
15674   int a;
15675 };
15676 _LT_EOF
15677
15678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15679   (eval $ac_compile) 2>&5
15680   ac_status=$?
15681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; then
15683   # Parse the compiler output and extract the necessary
15684   # objects, libraries and library flags.
15685
15686   # Sentinel used to keep track of whether or not we are before
15687   # the conftest object file.
15688   pre_test_object_deps_done=no
15689
15690   for p in `eval "$output_verbose_link_cmd"`; do
15691     case $p in
15692
15693     -L* | -R* | -l*)
15694        # Some compilers place space between "-{L,R}" and the path.
15695        # Remove the space.
15696        if test $p = "-L" ||
15697           test $p = "-R"; then
15698          prev=$p
15699          continue
15700        else
15701          prev=
15702        fi
15703
15704        if test "$pre_test_object_deps_done" = no; then
15705          case $p in
15706          -L* | -R*)
15707            # Internal compiler library paths should come after those
15708            # provided the user.  The postdeps already come after the
15709            # user supplied libs so there is no need to process them.
15710            if test -z "$compiler_lib_search_path_CXX"; then
15711              compiler_lib_search_path_CXX="${prev}${p}"
15712            else
15713              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15714            fi
15715            ;;
15716          # The "-l" case would never come before the object being
15717          # linked, so don't bother handling this case.
15718          esac
15719        else
15720          if test -z "$postdeps_CXX"; then
15721            postdeps_CXX="${prev}${p}"
15722          else
15723            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15724          fi
15725        fi
15726        ;;
15727
15728     *.$objext)
15729        # This assumes that the test object file only shows up
15730        # once in the compiler output.
15731        if test "$p" = "conftest.$objext"; then
15732          pre_test_object_deps_done=yes
15733          continue
15734        fi
15735
15736        if test "$pre_test_object_deps_done" = no; then
15737          if test -z "$predep_objects_CXX"; then
15738            predep_objects_CXX="$p"
15739          else
15740            predep_objects_CXX="$predep_objects_CXX $p"
15741          fi
15742        else
15743          if test -z "$postdep_objects_CXX"; then
15744            postdep_objects_CXX="$p"
15745          else
15746            postdep_objects_CXX="$postdep_objects_CXX $p"
15747          fi
15748        fi
15749        ;;
15750
15751     *) ;; # Ignore the rest.
15752
15753     esac
15754   done
15755
15756   # Clean up.
15757   rm -f a.out a.exe
15758 else
15759   echo "libtool.m4: error: problem compiling CXX test program"
15760 fi
15761
15762 $RM -f confest.$objext
15763
15764 # PORTME: override above test on systems where it is broken
15765 case $host_os in
15766 interix[3-9]*)
15767   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15768   # hack all around it, let's just trust "g++" to DTRT.
15769   predep_objects_CXX=
15770   postdep_objects_CXX=
15771   postdeps_CXX=
15772   ;;
15773
15774 linux*)
15775   case `$CC -V 2>&1 | sed 5q` in
15776   *Sun\ C*)
15777     # Sun C++ 5.9
15778
15779     # The more standards-conforming stlport4 library is
15780     # incompatible with the Cstd library. Avoid specifying
15781     # it if it's in CXXFLAGS. Ignore libCrun as
15782     # -library=stlport4 depends on it.
15783     case " $CXX $CXXFLAGS " in
15784     *" -library=stlport4 "*)
15785       solaris_use_stlport4=yes
15786       ;;
15787     esac
15788
15789     if test "$solaris_use_stlport4" != yes; then
15790       postdeps_CXX='-library=Cstd -library=Crun'
15791     fi
15792     ;;
15793   esac
15794   ;;
15795
15796 solaris*)
15797   case $cc_basename in
15798   CC*)
15799     # The more standards-conforming stlport4 library is
15800     # incompatible with the Cstd library. Avoid specifying
15801     # it if it's in CXXFLAGS. Ignore libCrun as
15802     # -library=stlport4 depends on it.
15803     case " $CXX $CXXFLAGS " in
15804     *" -library=stlport4 "*)
15805       solaris_use_stlport4=yes
15806       ;;
15807     esac
15808
15809     # Adding this requires a known-good setup of shared libraries for
15810     # Sun compiler versions before 5.6, else PIC objects from an old
15811     # archive will be linked into the output, leading to subtle bugs.
15812     if test "$solaris_use_stlport4" != yes; then
15813       postdeps_CXX='-library=Cstd -library=Crun'
15814     fi
15815     ;;
15816   esac
15817   ;;
15818 esac
15819
15820
15821 case " $postdeps_CXX " in
15822 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15823 esac
15824  compiler_lib_search_dirs_CXX=
15825 if test -n "${compiler_lib_search_path_CXX}"; then
15826  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15827 fi
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859     lt_prog_compiler_wl_CXX=
15860 lt_prog_compiler_pic_CXX=
15861 lt_prog_compiler_static_CXX=
15862
15863 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15864 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15865
15866   # C++ specific cases for pic, static, wl, etc.
15867   if test "$GXX" = yes; then
15868     lt_prog_compiler_wl_CXX='-Wl,'
15869     lt_prog_compiler_static_CXX='-static'
15870
15871     case $host_os in
15872     aix*)
15873       # All AIX code is PIC.
15874       if test "$host_cpu" = ia64; then
15875         # AIX 5 now supports IA64 processor
15876         lt_prog_compiler_static_CXX='-Bstatic'
15877       fi
15878       ;;
15879
15880     amigaos*)
15881       case $host_cpu in
15882       powerpc)
15883             # see comment about AmigaOS4 .so support
15884             lt_prog_compiler_pic_CXX='-fPIC'
15885         ;;
15886       m68k)
15887             # FIXME: we need at least 68020 code to build shared libraries, but
15888             # adding the `-m68020' flag to GCC prevents building anything better,
15889             # like `-m68040'.
15890             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15891         ;;
15892       esac
15893       ;;
15894
15895     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15896       # PIC is the default for these OSes.
15897       ;;
15898     mingw* | cygwin* | os2* | pw32* | cegcc*)
15899       # This hack is so that the source file can tell whether it is being
15900       # built for inclusion in a dll (and should export symbols for example).
15901       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15902       # (--disable-auto-import) libraries
15903       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15904       ;;
15905     darwin* | rhapsody*)
15906       # PIC is the default on this platform
15907       # Common symbols not allowed in MH_DYLIB files
15908       lt_prog_compiler_pic_CXX='-fno-common'
15909       ;;
15910     *djgpp*)
15911       # DJGPP does not support shared libraries at all
15912       lt_prog_compiler_pic_CXX=
15913       ;;
15914     interix[3-9]*)
15915       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15916       # Instead, we relocate shared libraries at runtime.
15917       ;;
15918     sysv4*MP*)
15919       if test -d /usr/nec; then
15920         lt_prog_compiler_pic_CXX=-Kconform_pic
15921       fi
15922       ;;
15923     hpux*)
15924       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15925       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15926       # sets the default TLS model and affects inlining.
15927       case $host_cpu in
15928       hppa*64*)
15929         ;;
15930       *)
15931         lt_prog_compiler_pic_CXX='-fPIC'
15932         ;;
15933       esac
15934       ;;
15935     *qnx* | *nto*)
15936       # QNX uses GNU C++, but need to define -shared option too, otherwise
15937       # it will coredump.
15938       lt_prog_compiler_pic_CXX='-fPIC -shared'
15939       ;;
15940     *)
15941       lt_prog_compiler_pic_CXX='-fPIC'
15942       ;;
15943     esac
15944   else
15945     case $host_os in
15946       aix[4-9]*)
15947         # All AIX code is PIC.
15948         if test "$host_cpu" = ia64; then
15949           # AIX 5 now supports IA64 processor
15950           lt_prog_compiler_static_CXX='-Bstatic'
15951         else
15952           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15953         fi
15954         ;;
15955       chorus*)
15956         case $cc_basename in
15957         cxch68*)
15958           # Green Hills C++ Compiler
15959           # _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"
15960           ;;
15961         esac
15962         ;;
15963       dgux*)
15964         case $cc_basename in
15965           ec++*)
15966             lt_prog_compiler_pic_CXX='-KPIC'
15967             ;;
15968           ghcx*)
15969             # Green Hills C++ Compiler
15970             lt_prog_compiler_pic_CXX='-pic'
15971             ;;
15972           *)
15973             ;;
15974         esac
15975         ;;
15976       freebsd* | dragonfly*)
15977         # FreeBSD uses GNU C++
15978         ;;
15979       hpux9* | hpux10* | hpux11*)
15980         case $cc_basename in
15981           CC*)
15982             lt_prog_compiler_wl_CXX='-Wl,'
15983             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15984             if test "$host_cpu" != ia64; then
15985               lt_prog_compiler_pic_CXX='+Z'
15986             fi
15987             ;;
15988           aCC*)
15989             lt_prog_compiler_wl_CXX='-Wl,'
15990             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15991             case $host_cpu in
15992             hppa*64*|ia64*)
15993               # +Z the default
15994               ;;
15995             *)
15996               lt_prog_compiler_pic_CXX='+Z'
15997               ;;
15998             esac
15999             ;;
16000           *)
16001             ;;
16002         esac
16003         ;;
16004       interix*)
16005         # This is c89, which is MS Visual C++ (no shared libs)
16006         # Anyone wants to do a port?
16007         ;;
16008       irix5* | irix6* | nonstopux*)
16009         case $cc_basename in
16010           CC*)
16011             lt_prog_compiler_wl_CXX='-Wl,'
16012             lt_prog_compiler_static_CXX='-non_shared'
16013             # CC pic flag -KPIC is the default.
16014             ;;
16015           *)
16016             ;;
16017         esac
16018         ;;
16019       linux* | k*bsd*-gnu)
16020         case $cc_basename in
16021           KCC*)
16022             # KAI C++ Compiler
16023             lt_prog_compiler_wl_CXX='--backend -Wl,'
16024             lt_prog_compiler_pic_CXX='-fPIC'
16025             ;;
16026           ecpc* )
16027             # old Intel C++ for x86_64 which still supported -KPIC.
16028             lt_prog_compiler_wl_CXX='-Wl,'
16029             lt_prog_compiler_pic_CXX='-KPIC'
16030             lt_prog_compiler_static_CXX='-static'
16031             ;;
16032           icpc* )
16033             # Intel C++, used to be incompatible with GCC.
16034             # ICC 10 doesn't accept -KPIC any more.
16035             lt_prog_compiler_wl_CXX='-Wl,'
16036             lt_prog_compiler_pic_CXX='-fPIC'
16037             lt_prog_compiler_static_CXX='-static'
16038             ;;
16039           pgCC* | pgcpp*)
16040             # Portland Group C++ compiler
16041             lt_prog_compiler_wl_CXX='-Wl,'
16042             lt_prog_compiler_pic_CXX='-fpic'
16043             lt_prog_compiler_static_CXX='-Bstatic'
16044             ;;
16045           cxx*)
16046             # Compaq C++
16047             # Make sure the PIC flag is empty.  It appears that all Alpha
16048             # Linux and Compaq Tru64 Unix objects are PIC.
16049             lt_prog_compiler_pic_CXX=
16050             lt_prog_compiler_static_CXX='-non_shared'
16051             ;;
16052           xlc* | xlC*)
16053             # IBM XL 8.0 on PPC
16054             lt_prog_compiler_wl_CXX='-Wl,'
16055             lt_prog_compiler_pic_CXX='-qpic'
16056             lt_prog_compiler_static_CXX='-qstaticlink'
16057             ;;
16058           *)
16059             case `$CC -V 2>&1 | sed 5q` in
16060             *Sun\ C*)
16061               # Sun C++ 5.9
16062               lt_prog_compiler_pic_CXX='-KPIC'
16063               lt_prog_compiler_static_CXX='-Bstatic'
16064               lt_prog_compiler_wl_CXX='-Qoption ld '
16065               ;;
16066             esac
16067             ;;
16068         esac
16069         ;;
16070       lynxos*)
16071         ;;
16072       m88k*)
16073         ;;
16074       mvs*)
16075         case $cc_basename in
16076           cxx*)
16077             lt_prog_compiler_pic_CXX='-W c,exportall'
16078             ;;
16079           *)
16080             ;;
16081         esac
16082         ;;
16083       netbsd* | netbsdelf*-gnu)
16084         ;;
16085       *qnx* | *nto*)
16086         # QNX uses GNU C++, but need to define -shared option too, otherwise
16087         # it will coredump.
16088         lt_prog_compiler_pic_CXX='-fPIC -shared'
16089         ;;
16090       osf3* | osf4* | osf5*)
16091         case $cc_basename in
16092           KCC*)
16093             lt_prog_compiler_wl_CXX='--backend -Wl,'
16094             ;;
16095           RCC*)
16096             # Rational C++ 2.4.1
16097             lt_prog_compiler_pic_CXX='-pic'
16098             ;;
16099           cxx*)
16100             # Digital/Compaq C++
16101             lt_prog_compiler_wl_CXX='-Wl,'
16102             # Make sure the PIC flag is empty.  It appears that all Alpha
16103             # Linux and Compaq Tru64 Unix objects are PIC.
16104             lt_prog_compiler_pic_CXX=
16105             lt_prog_compiler_static_CXX='-non_shared'
16106             ;;
16107           *)
16108             ;;
16109         esac
16110         ;;
16111       psos*)
16112         ;;
16113       solaris*)
16114         case $cc_basename in
16115           CC*)
16116             # Sun C++ 4.2, 5.x and Centerline C++
16117             lt_prog_compiler_pic_CXX='-KPIC'
16118             lt_prog_compiler_static_CXX='-Bstatic'
16119             lt_prog_compiler_wl_CXX='-Qoption ld '
16120             ;;
16121           gcx*)
16122             # Green Hills C++ Compiler
16123             lt_prog_compiler_pic_CXX='-PIC'
16124             ;;
16125           *)
16126             ;;
16127         esac
16128         ;;
16129       sunos4*)
16130         case $cc_basename in
16131           CC*)
16132             # Sun C++ 4.x
16133             lt_prog_compiler_pic_CXX='-pic'
16134             lt_prog_compiler_static_CXX='-Bstatic'
16135             ;;
16136           lcc*)
16137             # Lucid
16138             lt_prog_compiler_pic_CXX='-pic'
16139             ;;
16140           *)
16141             ;;
16142         esac
16143         ;;
16144       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16145         case $cc_basename in
16146           CC*)
16147             lt_prog_compiler_wl_CXX='-Wl,'
16148             lt_prog_compiler_pic_CXX='-KPIC'
16149             lt_prog_compiler_static_CXX='-Bstatic'
16150             ;;
16151         esac
16152         ;;
16153       tandem*)
16154         case $cc_basename in
16155           NCC*)
16156             # NonStop-UX NCC 3.20
16157             lt_prog_compiler_pic_CXX='-KPIC'
16158             ;;
16159           *)
16160             ;;
16161         esac
16162         ;;
16163       vxworks*)
16164         ;;
16165       *)
16166         lt_prog_compiler_can_build_shared_CXX=no
16167         ;;
16168     esac
16169   fi
16170
16171 case $host_os in
16172   # For platforms which do not support PIC, -DPIC is meaningless:
16173   *djgpp*)
16174     lt_prog_compiler_pic_CXX=
16175     ;;
16176   *)
16177     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16178     ;;
16179 esac
16180 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16181 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16182
16183
16184
16185 #
16186 # Check to make sure the PIC flag actually works.
16187 #
16188 if test -n "$lt_prog_compiler_pic_CXX"; then
16189   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16190 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16191 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16192   $as_echo_n "(cached) " >&6
16193 else
16194   lt_cv_prog_compiler_pic_works_CXX=no
16195    ac_outfile=conftest.$ac_objext
16196    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16197    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16198    # Insert the option either (1) after the last *FLAGS variable, or
16199    # (2) before a word containing "conftest.", or (3) at the end.
16200    # Note that $ac_compile itself does not contain backslashes and begins
16201    # with a dollar sign (not a hyphen), so the echo should work correctly.
16202    # The option is referenced via a variable to avoid confusing sed.
16203    lt_compile=`echo "$ac_compile" | $SED \
16204    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16205    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16206    -e 's:$: $lt_compiler_flag:'`
16207    (eval echo "\"\$as_me:16207: $lt_compile\"" >&5)
16208    (eval "$lt_compile" 2>conftest.err)
16209    ac_status=$?
16210    cat conftest.err >&5
16211    echo "$as_me:16211: \$? = $ac_status" >&5
16212    if (exit $ac_status) && test -s "$ac_outfile"; then
16213      # The compiler can only warn and ignore the option if not recognized
16214      # So say no if there are warnings other than the usual output.
16215      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16216      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16217      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16218        lt_cv_prog_compiler_pic_works_CXX=yes
16219      fi
16220    fi
16221    $RM conftest*
16222
16223 fi
16224 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16225 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16226
16227 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16228     case $lt_prog_compiler_pic_CXX in
16229      "" | " "*) ;;
16230      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16231      esac
16232 else
16233     lt_prog_compiler_pic_CXX=
16234      lt_prog_compiler_can_build_shared_CXX=no
16235 fi
16236
16237 fi
16238
16239
16240
16241 #
16242 # Check to make sure the static flag actually works.
16243 #
16244 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16245 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16246 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16247 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16248   $as_echo_n "(cached) " >&6
16249 else
16250   lt_cv_prog_compiler_static_works_CXX=no
16251    save_LDFLAGS="$LDFLAGS"
16252    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16253    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16254    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16255      # The linker can only warn and ignore the option if not recognized
16256      # So say no if there are warnings
16257      if test -s conftest.err; then
16258        # Append any errors to the config.log.
16259        cat conftest.err 1>&5
16260        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16261        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16262        if diff conftest.exp conftest.er2 >/dev/null; then
16263          lt_cv_prog_compiler_static_works_CXX=yes
16264        fi
16265      else
16266        lt_cv_prog_compiler_static_works_CXX=yes
16267      fi
16268    fi
16269    $RM -r conftest*
16270    LDFLAGS="$save_LDFLAGS"
16271
16272 fi
16273 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16274 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16275
16276 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16277     :
16278 else
16279     lt_prog_compiler_static_CXX=
16280 fi
16281
16282
16283
16284
16285     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16287 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16288   $as_echo_n "(cached) " >&6
16289 else
16290   lt_cv_prog_compiler_c_o_CXX=no
16291    $RM -r conftest 2>/dev/null
16292    mkdir conftest
16293    cd conftest
16294    mkdir out
16295    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16296
16297    lt_compiler_flag="-o out/conftest2.$ac_objext"
16298    # Insert the option either (1) after the last *FLAGS variable, or
16299    # (2) before a word containing "conftest.", or (3) at the end.
16300    # Note that $ac_compile itself does not contain backslashes and begins
16301    # with a dollar sign (not a hyphen), so the echo should work correctly.
16302    lt_compile=`echo "$ac_compile" | $SED \
16303    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16305    -e 's:$: $lt_compiler_flag:'`
16306    (eval echo "\"\$as_me:16306: $lt_compile\"" >&5)
16307    (eval "$lt_compile" 2>out/conftest.err)
16308    ac_status=$?
16309    cat out/conftest.err >&5
16310    echo "$as_me:16310: \$? = $ac_status" >&5
16311    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16312    then
16313      # The compiler can only warn and ignore the option if not recognized
16314      # So say no if there are warnings
16315      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16316      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16317      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16318        lt_cv_prog_compiler_c_o_CXX=yes
16319      fi
16320    fi
16321    chmod u+w . 2>&5
16322    $RM conftest*
16323    # SGI C++ compiler will create directory out/ii_files/ for
16324    # template instantiation
16325    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16326    $RM out/* && rmdir out
16327    cd ..
16328    $RM -r conftest
16329    $RM conftest*
16330
16331 fi
16332 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16333 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16334
16335
16336
16337     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16339 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16340   $as_echo_n "(cached) " >&6
16341 else
16342   lt_cv_prog_compiler_c_o_CXX=no
16343    $RM -r conftest 2>/dev/null
16344    mkdir conftest
16345    cd conftest
16346    mkdir out
16347    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16348
16349    lt_compiler_flag="-o out/conftest2.$ac_objext"
16350    # Insert the option either (1) after the last *FLAGS variable, or
16351    # (2) before a word containing "conftest.", or (3) at the end.
16352    # Note that $ac_compile itself does not contain backslashes and begins
16353    # with a dollar sign (not a hyphen), so the echo should work correctly.
16354    lt_compile=`echo "$ac_compile" | $SED \
16355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16357    -e 's:$: $lt_compiler_flag:'`
16358    (eval echo "\"\$as_me:16358: $lt_compile\"" >&5)
16359    (eval "$lt_compile" 2>out/conftest.err)
16360    ac_status=$?
16361    cat out/conftest.err >&5
16362    echo "$as_me:16362: \$? = $ac_status" >&5
16363    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16364    then
16365      # The compiler can only warn and ignore the option if not recognized
16366      # So say no if there are warnings
16367      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16368      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16369      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16370        lt_cv_prog_compiler_c_o_CXX=yes
16371      fi
16372    fi
16373    chmod u+w . 2>&5
16374    $RM conftest*
16375    # SGI C++ compiler will create directory out/ii_files/ for
16376    # template instantiation
16377    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16378    $RM out/* && rmdir out
16379    cd ..
16380    $RM -r conftest
16381    $RM conftest*
16382
16383 fi
16384 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16386
16387
16388
16389
16390 hard_links="nottested"
16391 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16392   # do not overwrite the value of need_locks provided by the user
16393   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16394 $as_echo_n "checking if we can lock with hard links... " >&6; }
16395   hard_links=yes
16396   $RM conftest*
16397   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16398   touch conftest.a
16399   ln conftest.a conftest.b 2>&5 || hard_links=no
16400   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16401   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16402 $as_echo "$hard_links" >&6; }
16403   if test "$hard_links" = no; then
16404     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16405 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16406     need_locks=warn
16407   fi
16408 else
16409   need_locks=no
16410 fi
16411
16412
16413
16414     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16416
16417   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16418   case $host_os in
16419   aix[4-9]*)
16420     # If we're using GNU nm, then we don't want the "-C" option.
16421     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16422     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16423       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'
16424     else
16425       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'
16426     fi
16427     ;;
16428   pw32*)
16429     export_symbols_cmds_CXX="$ltdll_cmds"
16430   ;;
16431   cygwin* | mingw* | cegcc*)
16432     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'
16433   ;;
16434   linux* | k*bsd*-gnu)
16435     link_all_deplibs_CXX=no
16436   ;;
16437   *)
16438     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16439   ;;
16440   esac
16441   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16442
16443 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16444 $as_echo "$ld_shlibs_CXX" >&6; }
16445 test "$ld_shlibs_CXX" = no && can_build_shared=no
16446
16447 with_gnu_ld_CXX=$with_gnu_ld
16448
16449
16450
16451
16452
16453
16454 #
16455 # Do we need to explicitly link libc?
16456 #
16457 case "x$archive_cmds_need_lc_CXX" in
16458 x|xyes)
16459   # Assume -lc should be added
16460   archive_cmds_need_lc_CXX=yes
16461
16462   if test "$enable_shared" = yes && test "$GCC" = yes; then
16463     case $archive_cmds_CXX in
16464     *'~'*)
16465       # FIXME: we may have to deal with multi-command sequences.
16466       ;;
16467     '$CC '*)
16468       # Test whether the compiler implicitly links with -lc since on some
16469       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16470       # to ld, don't add -lc before -lgcc.
16471       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16472 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16473       $RM conftest*
16474       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16475
16476       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477   (eval $ac_compile) 2>&5
16478   ac_status=$?
16479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } 2>conftest.err; then
16481         soname=conftest
16482         lib=conftest
16483         libobjs=conftest.$ac_objext
16484         deplibs=
16485         wl=$lt_prog_compiler_wl_CXX
16486         pic_flag=$lt_prog_compiler_pic_CXX
16487         compiler_flags=-v
16488         linker_flags=-v
16489         verstring=
16490         output_objdir=.
16491         libname=conftest
16492         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16493         allow_undefined_flag_CXX=
16494         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16495   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16496   ac_status=$?
16497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); }
16499         then
16500           archive_cmds_need_lc_CXX=no
16501         else
16502           archive_cmds_need_lc_CXX=yes
16503         fi
16504         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16505       else
16506         cat conftest.err 1>&5
16507       fi
16508       $RM conftest*
16509       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16510 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16511       ;;
16512     esac
16513   fi
16514   ;;
16515 esac
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16581 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16582
16583 library_names_spec=
16584 libname_spec='lib$name'
16585 soname_spec=
16586 shrext_cmds=".so"
16587 postinstall_cmds=
16588 postuninstall_cmds=
16589 finish_cmds=
16590 finish_eval=
16591 shlibpath_var=
16592 shlibpath_overrides_runpath=unknown
16593 version_type=none
16594 dynamic_linker="$host_os ld.so"
16595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16596 need_lib_prefix=unknown
16597 hardcode_into_libs=no
16598
16599 # when you set need_version to no, make sure it does not cause -set_version
16600 # flags to be left without arguments
16601 need_version=unknown
16602
16603 case $host_os in
16604 aix3*)
16605   version_type=linux
16606   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16607   shlibpath_var=LIBPATH
16608
16609   # AIX 3 has no versioning support, so we append a major version to the name.
16610   soname_spec='${libname}${release}${shared_ext}$major'
16611   ;;
16612
16613 aix[4-9]*)
16614   version_type=linux
16615   need_lib_prefix=no
16616   need_version=no
16617   hardcode_into_libs=yes
16618   if test "$host_cpu" = ia64; then
16619     # AIX 5 supports IA64
16620     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16621     shlibpath_var=LD_LIBRARY_PATH
16622   else
16623     # With GCC up to 2.95.x, collect2 would create an import file
16624     # for dependence libraries.  The import file would start with
16625     # the line `#! .'.  This would cause the generated library to
16626     # depend on `.', always an invalid library.  This was fixed in
16627     # development snapshots of GCC prior to 3.0.
16628     case $host_os in
16629       aix4 | aix4.[01] | aix4.[01].*)
16630       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16631            echo ' yes '
16632            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16633         :
16634       else
16635         can_build_shared=no
16636       fi
16637       ;;
16638     esac
16639     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16640     # soname into executable. Probably we can add versioning support to
16641     # collect2, so additional links can be useful in future.
16642     if test "$aix_use_runtimelinking" = yes; then
16643       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16644       # instead of lib<name>.a to let people know that these are not
16645       # typical AIX shared libraries.
16646       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647     else
16648       # We preserve .a as extension for shared libraries through AIX4.2
16649       # and later when we are not doing run time linking.
16650       library_names_spec='${libname}${release}.a $libname.a'
16651       soname_spec='${libname}${release}${shared_ext}$major'
16652     fi
16653     shlibpath_var=LIBPATH
16654   fi
16655   ;;
16656
16657 amigaos*)
16658   case $host_cpu in
16659   powerpc)
16660     # Since July 2007 AmigaOS4 officially supports .so libraries.
16661     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663     ;;
16664   m68k)
16665     library_names_spec='$libname.ixlibrary $libname.a'
16666     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16667     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'
16668     ;;
16669   esac
16670   ;;
16671
16672 beos*)
16673   library_names_spec='${libname}${shared_ext}'
16674   dynamic_linker="$host_os ld.so"
16675   shlibpath_var=LIBRARY_PATH
16676   ;;
16677
16678 bsdi[45]*)
16679   version_type=linux
16680   need_version=no
16681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682   soname_spec='${libname}${release}${shared_ext}$major'
16683   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16684   shlibpath_var=LD_LIBRARY_PATH
16685   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16686   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16687   # the default ld.so.conf also contains /usr/contrib/lib and
16688   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16689   # libtool to hard-code these into programs
16690   ;;
16691
16692 cygwin* | mingw* | pw32* | cegcc*)
16693   version_type=windows
16694   shrext_cmds=".dll"
16695   need_version=no
16696   need_lib_prefix=no
16697
16698   case $GCC,$host_os in
16699   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16700     library_names_spec='$libname.dll.a'
16701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16702     postinstall_cmds='base_file=`basename \${file}`~
16703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16704       dldir=$destdir/`dirname \$dlpath`~
16705       test -d \$dldir || mkdir -p \$dldir~
16706       $install_prog $dir/$dlname \$dldir/$dlname~
16707       chmod a+x \$dldir/$dlname~
16708       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16709         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16710       fi'
16711     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16712       dlpath=$dir/\$dldll~
16713        $RM \$dlpath'
16714     shlibpath_overrides_runpath=yes
16715
16716     case $host_os in
16717     cygwin*)
16718       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16719       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16720       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16721       ;;
16722     mingw* | cegcc*)
16723       # MinGW DLLs use traditional 'lib' prefix
16724       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16725       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16726       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16727         # It is most probably a Windows format PATH printed by
16728         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16729         # path with ; separators, and with drive letters. We can handle the
16730         # drive letters (cygwin fileutils understands them), so leave them,
16731         # especially as we might pass files found there to a mingw objdump,
16732         # which wouldn't understand a cygwinified path. Ahh.
16733         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16734       else
16735         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16736       fi
16737       ;;
16738     pw32*)
16739       # pw32 DLLs use 'pw' prefix rather than 'lib'
16740       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16741       ;;
16742     esac
16743     ;;
16744
16745   *)
16746     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16747     ;;
16748   esac
16749   dynamic_linker='Win32 ld.exe'
16750   # FIXME: first we should search . and the directory the executable is in
16751   shlibpath_var=PATH
16752   ;;
16753
16754 darwin* | rhapsody*)
16755   dynamic_linker="$host_os dyld"
16756   version_type=darwin
16757   need_lib_prefix=no
16758   need_version=no
16759   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16760   soname_spec='${libname}${release}${major}$shared_ext'
16761   shlibpath_overrides_runpath=yes
16762   shlibpath_var=DYLD_LIBRARY_PATH
16763   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16764
16765   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16766   ;;
16767
16768 dgux*)
16769   version_type=linux
16770   need_lib_prefix=no
16771   need_version=no
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16773   soname_spec='${libname}${release}${shared_ext}$major'
16774   shlibpath_var=LD_LIBRARY_PATH
16775   ;;
16776
16777 freebsd1*)
16778   dynamic_linker=no
16779   ;;
16780
16781 freebsd* | dragonfly*)
16782   # DragonFly does not have aout.  When/if they implement a new
16783   # versioning mechanism, adjust this.
16784   if test -x /usr/bin/objformat; then
16785     objformat=`/usr/bin/objformat`
16786   else
16787     case $host_os in
16788     freebsd[123]*) objformat=aout ;;
16789     *) objformat=elf ;;
16790     esac
16791   fi
16792   version_type=freebsd-$objformat
16793   case $version_type in
16794     freebsd-elf*)
16795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16796       need_version=no
16797       need_lib_prefix=no
16798       ;;
16799     freebsd-*)
16800       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16801       need_version=yes
16802       ;;
16803   esac
16804   shlibpath_var=LD_LIBRARY_PATH
16805   case $host_os in
16806   freebsd2*)
16807     shlibpath_overrides_runpath=yes
16808     ;;
16809   freebsd3.[01]* | freebsdelf3.[01]*)
16810     shlibpath_overrides_runpath=yes
16811     hardcode_into_libs=yes
16812     ;;
16813   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16814   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16815     shlibpath_overrides_runpath=no
16816     hardcode_into_libs=yes
16817     ;;
16818   *) # from 4.6 on, and DragonFly
16819     shlibpath_overrides_runpath=yes
16820     hardcode_into_libs=yes
16821     ;;
16822   esac
16823   ;;
16824
16825 gnu*)
16826   version_type=linux
16827   need_lib_prefix=no
16828   need_version=no
16829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16830   soname_spec='${libname}${release}${shared_ext}$major'
16831   shlibpath_var=LD_LIBRARY_PATH
16832   hardcode_into_libs=yes
16833   ;;
16834
16835 hpux9* | hpux10* | hpux11*)
16836   # Give a soname corresponding to the major version so that dld.sl refuses to
16837   # link against other versions.
16838   version_type=sunos
16839   need_lib_prefix=no
16840   need_version=no
16841   case $host_cpu in
16842   ia64*)
16843     shrext_cmds='.so'
16844     hardcode_into_libs=yes
16845     dynamic_linker="$host_os dld.so"
16846     shlibpath_var=LD_LIBRARY_PATH
16847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16849     soname_spec='${libname}${release}${shared_ext}$major'
16850     if test "X$HPUX_IA64_MODE" = X32; then
16851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16852     else
16853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16854     fi
16855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16856     ;;
16857   hppa*64*)
16858     shrext_cmds='.sl'
16859     hardcode_into_libs=yes
16860     dynamic_linker="$host_os dld.sl"
16861     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16862     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864     soname_spec='${libname}${release}${shared_ext}$major'
16865     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16866     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16867     ;;
16868   *)
16869     shrext_cmds='.sl'
16870     dynamic_linker="$host_os dld.sl"
16871     shlibpath_var=SHLIB_PATH
16872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874     soname_spec='${libname}${release}${shared_ext}$major'
16875     ;;
16876   esac
16877   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16878   postinstall_cmds='chmod 555 $lib'
16879   ;;
16880
16881 interix[3-9]*)
16882   version_type=linux
16883   need_lib_prefix=no
16884   need_version=no
16885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16886   soname_spec='${libname}${release}${shared_ext}$major'
16887   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16888   shlibpath_var=LD_LIBRARY_PATH
16889   shlibpath_overrides_runpath=no
16890   hardcode_into_libs=yes
16891   ;;
16892
16893 irix5* | irix6* | nonstopux*)
16894   case $host_os in
16895     nonstopux*) version_type=nonstopux ;;
16896     *)
16897         if test "$lt_cv_prog_gnu_ld" = yes; then
16898                 version_type=linux
16899         else
16900                 version_type=irix
16901         fi ;;
16902   esac
16903   need_lib_prefix=no
16904   need_version=no
16905   soname_spec='${libname}${release}${shared_ext}$major'
16906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16907   case $host_os in
16908   irix5* | nonstopux*)
16909     libsuff= shlibsuff=
16910     ;;
16911   *)
16912     case $LD in # libtool.m4 will add one of these switches to LD
16913     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16914       libsuff= shlibsuff= libmagic=32-bit;;
16915     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16916       libsuff=32 shlibsuff=N32 libmagic=N32;;
16917     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16918       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16919     *) libsuff= shlibsuff= libmagic=never-match;;
16920     esac
16921     ;;
16922   esac
16923   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16924   shlibpath_overrides_runpath=no
16925   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16926   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16927   hardcode_into_libs=yes
16928   ;;
16929
16930 # No shared lib support for Linux oldld, aout, or coff.
16931 linux*oldld* | linux*aout* | linux*coff*)
16932   dynamic_linker=no
16933   ;;
16934
16935 # This must be Linux ELF.
16936 linux* | k*bsd*-gnu)
16937   version_type=linux
16938   need_lib_prefix=no
16939   need_version=no
16940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941   soname_spec='${libname}${release}${shared_ext}$major'
16942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16943   shlibpath_var=LD_LIBRARY_PATH
16944   shlibpath_overrides_runpath=no
16945   # Some binutils ld are patched to set DT_RUNPATH
16946   save_LDFLAGS=$LDFLAGS
16947   save_libdir=$libdir
16948   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16949        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16950   cat >conftest.$ac_ext <<_ACEOF
16951 /* confdefs.h.  */
16952 _ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h.  */
16956
16957 int
16958 main ()
16959 {
16960
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16972 $as_echo "$ac_try_echo") >&5
16973   (eval "$ac_link") 2>conftest.er1
16974   ac_status=$?
16975   grep -v '^ *+' conftest.er1 >conftest.err
16976   rm -f conftest.er1
16977   cat conftest.err >&5
16978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); } && {
16980          test -z "$ac_cxx_werror_flag" ||
16981          test ! -s conftest.err
16982        } && test -s conftest$ac_exeext && {
16983          test "$cross_compiling" = yes ||
16984          $as_test_x conftest$ac_exeext
16985        }; then
16986   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16987   shlibpath_overrides_runpath=yes
16988 fi
16989
16990 else
16991   $as_echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994
16995 fi
16996
16997 rm -rf conftest.dSYM
16998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16999       conftest$ac_exeext conftest.$ac_ext
17000   LDFLAGS=$save_LDFLAGS
17001   libdir=$save_libdir
17002
17003   # This implies no fast_install, which is unacceptable.
17004   # Some rework will be needed to allow for fast_install
17005   # before this can be enabled.
17006   hardcode_into_libs=yes
17007
17008   # Append ld.so.conf contents to the search path
17009   if test -f /etc/ld.so.conf; then
17010     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' ' '`
17011     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17012   fi
17013
17014   # We used to test for /lib/ld.so.1 and disable shared libraries on
17015   # powerpc, because MkLinux only supported shared libraries with the
17016   # GNU dynamic linker.  Since this was broken with cross compilers,
17017   # most powerpc-linux boxes support dynamic linking these days and
17018   # people can always --disable-shared, the test was removed, and we
17019   # assume the GNU/Linux dynamic linker is in use.
17020   dynamic_linker='GNU/Linux ld.so'
17021   ;;
17022
17023 netbsdelf*-gnu)
17024   version_type=linux
17025   need_lib_prefix=no
17026   need_version=no
17027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17028   soname_spec='${libname}${release}${shared_ext}$major'
17029   shlibpath_var=LD_LIBRARY_PATH
17030   shlibpath_overrides_runpath=no
17031   hardcode_into_libs=yes
17032   dynamic_linker='NetBSD ld.elf_so'
17033   ;;
17034
17035 netbsd*)
17036   version_type=sunos
17037   need_lib_prefix=no
17038   need_version=no
17039   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17041     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17042     dynamic_linker='NetBSD (a.out) ld.so'
17043   else
17044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17045     soname_spec='${libname}${release}${shared_ext}$major'
17046     dynamic_linker='NetBSD ld.elf_so'
17047   fi
17048   shlibpath_var=LD_LIBRARY_PATH
17049   shlibpath_overrides_runpath=yes
17050   hardcode_into_libs=yes
17051   ;;
17052
17053 newsos6)
17054   version_type=linux
17055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056   shlibpath_var=LD_LIBRARY_PATH
17057   shlibpath_overrides_runpath=yes
17058   ;;
17059
17060 *nto* | *qnx*)
17061   version_type=qnx
17062   need_lib_prefix=no
17063   need_version=no
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065   soname_spec='${libname}${release}${shared_ext}$major'
17066   shlibpath_var=LD_LIBRARY_PATH
17067   shlibpath_overrides_runpath=no
17068   hardcode_into_libs=yes
17069   dynamic_linker='ldqnx.so'
17070   ;;
17071
17072 openbsd*)
17073   version_type=sunos
17074   sys_lib_dlsearch_path_spec="/usr/lib"
17075   need_lib_prefix=no
17076   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17077   case $host_os in
17078     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17079     *)                          need_version=no  ;;
17080   esac
17081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17083   shlibpath_var=LD_LIBRARY_PATH
17084   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17085     case $host_os in
17086       openbsd2.[89] | openbsd2.[89].*)
17087         shlibpath_overrides_runpath=no
17088         ;;
17089       *)
17090         shlibpath_overrides_runpath=yes
17091         ;;
17092       esac
17093   else
17094     shlibpath_overrides_runpath=yes
17095   fi
17096   ;;
17097
17098 os2*)
17099   libname_spec='$name'
17100   shrext_cmds=".dll"
17101   need_lib_prefix=no
17102   library_names_spec='$libname${shared_ext} $libname.a'
17103   dynamic_linker='OS/2 ld.exe'
17104   shlibpath_var=LIBPATH
17105   ;;
17106
17107 osf3* | osf4* | osf5*)
17108   version_type=osf
17109   need_lib_prefix=no
17110   need_version=no
17111   soname_spec='${libname}${release}${shared_ext}$major'
17112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113   shlibpath_var=LD_LIBRARY_PATH
17114   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17115   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17116   ;;
17117
17118 rdos*)
17119   dynamic_linker=no
17120   ;;
17121
17122 solaris*)
17123   version_type=linux
17124   need_lib_prefix=no
17125   need_version=no
17126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127   soname_spec='${libname}${release}${shared_ext}$major'
17128   shlibpath_var=LD_LIBRARY_PATH
17129   shlibpath_overrides_runpath=yes
17130   hardcode_into_libs=yes
17131   # ldd complains unless libraries are executable
17132   postinstall_cmds='chmod +x $lib'
17133   ;;
17134
17135 sunos4*)
17136   version_type=sunos
17137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17138   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17139   shlibpath_var=LD_LIBRARY_PATH
17140   shlibpath_overrides_runpath=yes
17141   if test "$with_gnu_ld" = yes; then
17142     need_lib_prefix=no
17143   fi
17144   need_version=yes
17145   ;;
17146
17147 sysv4 | sysv4.3*)
17148   version_type=linux
17149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150   soname_spec='${libname}${release}${shared_ext}$major'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   case $host_vendor in
17153     sni)
17154       shlibpath_overrides_runpath=no
17155       need_lib_prefix=no
17156       runpath_var=LD_RUN_PATH
17157       ;;
17158     siemens)
17159       need_lib_prefix=no
17160       ;;
17161     motorola)
17162       need_lib_prefix=no
17163       need_version=no
17164       shlibpath_overrides_runpath=no
17165       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17166       ;;
17167   esac
17168   ;;
17169
17170 sysv4*MP*)
17171   if test -d /usr/nec ;then
17172     version_type=linux
17173     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17174     soname_spec='$libname${shared_ext}.$major'
17175     shlibpath_var=LD_LIBRARY_PATH
17176   fi
17177   ;;
17178
17179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17180   version_type=freebsd-elf
17181   need_lib_prefix=no
17182   need_version=no
17183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   shlibpath_overrides_runpath=yes
17187   hardcode_into_libs=yes
17188   if test "$with_gnu_ld" = yes; then
17189     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17190   else
17191     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17192     case $host_os in
17193       sco3.2v5*)
17194         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17195         ;;
17196     esac
17197   fi
17198   sys_lib_dlsearch_path_spec='/usr/lib'
17199   ;;
17200
17201 tpf*)
17202   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17203   version_type=linux
17204   need_lib_prefix=no
17205   need_version=no
17206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207   shlibpath_var=LD_LIBRARY_PATH
17208   shlibpath_overrides_runpath=no
17209   hardcode_into_libs=yes
17210   ;;
17211
17212 uts4*)
17213   version_type=linux
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215   soname_spec='${libname}${release}${shared_ext}$major'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   ;;
17218
17219 *)
17220   dynamic_linker=no
17221   ;;
17222 esac
17223 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17224 $as_echo "$dynamic_linker" >&6; }
17225 test "$dynamic_linker" = no && can_build_shared=no
17226
17227 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17228 if test "$GCC" = yes; then
17229   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17230 fi
17231
17232 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17233   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17234 fi
17235 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17236   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17237 fi
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17275 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17276 hardcode_action_CXX=
17277 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17278    test -n "$runpath_var_CXX" ||
17279    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17280
17281   # We can hardcode non-existent directories.
17282   if test "$hardcode_direct_CXX" != no &&
17283      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17284      # have to relink, otherwise we might link with an installed library
17285      # when we should be linking with a yet-to-be-installed one
17286      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17287      test "$hardcode_minus_L_CXX" != no; then
17288     # Linking always hardcodes the temporary library directory.
17289     hardcode_action_CXX=relink
17290   else
17291     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17292     hardcode_action_CXX=immediate
17293   fi
17294 else
17295   # We cannot hardcode anything, or else we can only hardcode existing
17296   # directories.
17297   hardcode_action_CXX=unsupported
17298 fi
17299 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17300 $as_echo "$hardcode_action_CXX" >&6; }
17301
17302 if test "$hardcode_action_CXX" = relink ||
17303    test "$inherit_rpath_CXX" = yes; then
17304   # Fast installation is not supported
17305   enable_fast_install=no
17306 elif test "$shlibpath_overrides_runpath" = yes ||
17307      test "$enable_shared" = no; then
17308   # Fast installation is not necessary
17309   enable_fast_install=needless
17310 fi
17311
17312
17313
17314
17315
17316
17317
17318   fi # test -n "$compiler"
17319
17320   CC=$lt_save_CC
17321   LDCXX=$LD
17322   LD=$lt_save_LD
17323   GCC=$lt_save_GCC
17324   with_gnu_ld=$lt_save_with_gnu_ld
17325   lt_cv_path_LDCXX=$lt_cv_path_LD
17326   lt_cv_path_LD=$lt_save_path_LD
17327   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17328   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17329 fi # test "$_lt_caught_CXX_error" != yes
17330
17331 ac_ext=c
17332 ac_cpp='$CPP $CPPFLAGS'
17333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349         ac_config_commands="$ac_config_commands libtool"
17350
17351
17352
17353
17354 # Only expand once:
17355
17356
17357
17358
17359 ac_ext=f
17360 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17361 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17362 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17363 if test -n "$ac_tool_prefix"; then
17364   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
17365   do
17366     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17369 $as_echo_n "checking for $ac_word... " >&6; }
17370 if test "${ac_cv_prog_F77+set}" = set; then
17371   $as_echo_n "(cached) " >&6
17372 else
17373   if test -n "$F77"; then
17374   ac_cv_prog_F77="$F77" # Let the user override the test.
17375 else
17376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17377 for as_dir in $PATH
17378 do
17379   IFS=$as_save_IFS
17380   test -z "$as_dir" && as_dir=.
17381   for ac_exec_ext in '' $ac_executable_extensions; do
17382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17383     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
17384     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17385     break 2
17386   fi
17387 done
17388 done
17389 IFS=$as_save_IFS
17390
17391 fi
17392 fi
17393 F77=$ac_cv_prog_F77
17394 if test -n "$F77"; then
17395   { $as_echo "$as_me:$LINENO: result: $F77" >&5
17396 $as_echo "$F77" >&6; }
17397 else
17398   { $as_echo "$as_me:$LINENO: result: no" >&5
17399 $as_echo "no" >&6; }
17400 fi
17401
17402
17403     test -n "$F77" && break
17404   done
17405 fi
17406 if test -z "$F77"; then
17407   ac_ct_F77=$F77
17408   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
17409 do
17410   # Extract the first word of "$ac_prog", so it can be a program name with args.
17411 set dummy $ac_prog; ac_word=$2
17412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17413 $as_echo_n "checking for $ac_word... " >&6; }
17414 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
17415   $as_echo_n "(cached) " >&6
17416 else
17417   if test -n "$ac_ct_F77"; then
17418   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
17419 else
17420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17421 for as_dir in $PATH
17422 do
17423   IFS=$as_save_IFS
17424   test -z "$as_dir" && as_dir=.
17425   for ac_exec_ext in '' $ac_executable_extensions; do
17426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17427     ac_cv_prog_ac_ct_F77="$ac_prog"
17428     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17429     break 2
17430   fi
17431 done
17432 done
17433 IFS=$as_save_IFS
17434
17435 fi
17436 fi
17437 ac_ct_F77=$ac_cv_prog_ac_ct_F77
17438 if test -n "$ac_ct_F77"; then
17439   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
17440 $as_echo "$ac_ct_F77" >&6; }
17441 else
17442   { $as_echo "$as_me:$LINENO: result: no" >&5
17443 $as_echo "no" >&6; }
17444 fi
17445
17446
17447   test -n "$ac_ct_F77" && break
17448 done
17449
17450   if test "x$ac_ct_F77" = x; then
17451     F77=""
17452   else
17453     case $cross_compiling:$ac_tool_warned in
17454 yes:)
17455 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17457 ac_tool_warned=yes ;;
17458 esac
17459     F77=$ac_ct_F77
17460   fi
17461 fi
17462
17463
17464 # Provide some information about the compiler.
17465 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
17466 set X $ac_compile
17467 ac_compiler=$2
17468 { (ac_try="$ac_compiler --version >&5"
17469 case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17474 $as_echo "$ac_try_echo") >&5
17475   (eval "$ac_compiler --version >&5") 2>&5
17476   ac_status=$?
17477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }
17479 { (ac_try="$ac_compiler -v >&5"
17480 case "(($ac_try" in
17481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482   *) ac_try_echo=$ac_try;;
17483 esac
17484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17485 $as_echo "$ac_try_echo") >&5
17486   (eval "$ac_compiler -v >&5") 2>&5
17487   ac_status=$?
17488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }
17490 { (ac_try="$ac_compiler -V >&5"
17491 case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17496 $as_echo "$ac_try_echo") >&5
17497   (eval "$ac_compiler -V >&5") 2>&5
17498   ac_status=$?
17499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }
17501 rm -f a.out
17502
17503 # If we don't use `.F' as extension, the preprocessor is not run on the
17504 # input file.  (Note that this only needs to work for GNU compilers.)
17505 ac_save_ext=$ac_ext
17506 ac_ext=F
17507 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
17508 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
17509 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
17510   $as_echo_n "(cached) " >&6
17511 else
17512   cat >conftest.$ac_ext <<_ACEOF
17513       program main
17514 #ifndef __GNUC__
17515        choke me
17516 #endif
17517
17518       end
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (ac_try="$ac_compile"
17522 case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17527 $as_echo "$ac_try_echo") >&5
17528   (eval "$ac_compile") 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } && {
17535          test -z "$ac_f77_werror_flag" ||
17536          test ! -s conftest.err
17537        } && test -s conftest.$ac_objext; then
17538   ac_compiler_gnu=yes
17539 else
17540   $as_echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543         ac_compiler_gnu=no
17544 fi
17545
17546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
17548
17549 fi
17550 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
17551 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
17552 ac_ext=$ac_save_ext
17553 ac_test_FFLAGS=${FFLAGS+set}
17554 ac_save_FFLAGS=$FFLAGS
17555 FFLAGS=
17556 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
17557 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
17558 if test "${ac_cv_prog_f77_g+set}" = set; then
17559   $as_echo_n "(cached) " >&6
17560 else
17561   FFLAGS=-g
17562 cat >conftest.$ac_ext <<_ACEOF
17563       program main
17564
17565       end
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17574 $as_echo "$ac_try_echo") >&5
17575   (eval "$ac_compile") 2>conftest.er1
17576   ac_status=$?
17577   grep -v '^ *+' conftest.er1 >conftest.err
17578   rm -f conftest.er1
17579   cat conftest.err >&5
17580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } && {
17582          test -z "$ac_f77_werror_flag" ||
17583          test ! -s conftest.err
17584        } && test -s conftest.$ac_objext; then
17585   ac_cv_prog_f77_g=yes
17586 else
17587   $as_echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590         ac_cv_prog_f77_g=no
17591 fi
17592
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594
17595 fi
17596 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
17597 $as_echo "$ac_cv_prog_f77_g" >&6; }
17598 if test "$ac_test_FFLAGS" = set; then
17599   FFLAGS=$ac_save_FFLAGS
17600 elif test $ac_cv_prog_f77_g = yes; then
17601   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17602     FFLAGS="-g -O2"
17603   else
17604     FFLAGS="-g"
17605   fi
17606 else
17607   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17608     FFLAGS="-O2"
17609   else
17610     FFLAGS=
17611   fi
17612 fi
17613
17614 if test $ac_compiler_gnu = yes; then
17615   G77=yes
17616 else
17617   G77=
17618 fi
17619 ac_ext=c
17620 ac_cpp='$CPP $CPPFLAGS'
17621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17624
17625 if test -z "$F77" || test "X$F77" = "Xno"; then
17626   _lt_disable_F77=yes
17627 fi
17628
17629
17630
17631
17632             # Check whether --enable-fortran was given.
17633 if test "${enable_fortran+set}" = set; then
17634   enableval=$enable_fortran;
17635 else
17636   enable_fortran=no
17637 fi
17638
17639      if test "x$enable_fortran" = xyes; then
17640   ENABLE_FORTRAN_TRUE=
17641   ENABLE_FORTRAN_FALSE='#'
17642 else
17643   ENABLE_FORTRAN_TRUE='#'
17644   ENABLE_FORTRAN_FALSE=
17645 fi
17646
17647
17648     if test "x$enable_fortran" = xyes
17649     then
17650         ac_ext=f
17651 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17652 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17653 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17654 if test -n "$ac_tool_prefix"; then
17655   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
17656   do
17657     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17660 $as_echo_n "checking for $ac_word... " >&6; }
17661 if test "${ac_cv_prog_F77+set}" = set; then
17662   $as_echo_n "(cached) " >&6
17663 else
17664   if test -n "$F77"; then
17665   ac_cv_prog_F77="$F77" # Let the user override the test.
17666 else
17667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17668 for as_dir in $PATH
17669 do
17670   IFS=$as_save_IFS
17671   test -z "$as_dir" && as_dir=.
17672   for ac_exec_ext in '' $ac_executable_extensions; do
17673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17674     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
17675     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17676     break 2
17677   fi
17678 done
17679 done
17680 IFS=$as_save_IFS
17681
17682 fi
17683 fi
17684 F77=$ac_cv_prog_F77
17685 if test -n "$F77"; then
17686   { $as_echo "$as_me:$LINENO: result: $F77" >&5
17687 $as_echo "$F77" >&6; }
17688 else
17689   { $as_echo "$as_me:$LINENO: result: no" >&5
17690 $as_echo "no" >&6; }
17691 fi
17692
17693
17694     test -n "$F77" && break
17695   done
17696 fi
17697 if test -z "$F77"; then
17698   ac_ct_F77=$F77
17699   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
17700 do
17701   # Extract the first word of "$ac_prog", so it can be a program name with args.
17702 set dummy $ac_prog; ac_word=$2
17703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17704 $as_echo_n "checking for $ac_word... " >&6; }
17705 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
17706   $as_echo_n "(cached) " >&6
17707 else
17708   if test -n "$ac_ct_F77"; then
17709   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
17710 else
17711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17712 for as_dir in $PATH
17713 do
17714   IFS=$as_save_IFS
17715   test -z "$as_dir" && as_dir=.
17716   for ac_exec_ext in '' $ac_executable_extensions; do
17717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17718     ac_cv_prog_ac_ct_F77="$ac_prog"
17719     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17720     break 2
17721   fi
17722 done
17723 done
17724 IFS=$as_save_IFS
17725
17726 fi
17727 fi
17728 ac_ct_F77=$ac_cv_prog_ac_ct_F77
17729 if test -n "$ac_ct_F77"; then
17730   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
17731 $as_echo "$ac_ct_F77" >&6; }
17732 else
17733   { $as_echo "$as_me:$LINENO: result: no" >&5
17734 $as_echo "no" >&6; }
17735 fi
17736
17737
17738   test -n "$ac_ct_F77" && break
17739 done
17740
17741   if test "x$ac_ct_F77" = x; then
17742     F77=""
17743   else
17744     case $cross_compiling:$ac_tool_warned in
17745 yes:)
17746 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17748 ac_tool_warned=yes ;;
17749 esac
17750     F77=$ac_ct_F77
17751   fi
17752 fi
17753
17754
17755 # Provide some information about the compiler.
17756 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
17757 set X $ac_compile
17758 ac_compiler=$2
17759 { (ac_try="$ac_compiler --version >&5"
17760 case "(($ac_try" in
17761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762   *) ac_try_echo=$ac_try;;
17763 esac
17764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17765 $as_echo "$ac_try_echo") >&5
17766   (eval "$ac_compiler --version >&5") 2>&5
17767   ac_status=$?
17768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }
17770 { (ac_try="$ac_compiler -v >&5"
17771 case "(($ac_try" in
17772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773   *) ac_try_echo=$ac_try;;
17774 esac
17775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17776 $as_echo "$ac_try_echo") >&5
17777   (eval "$ac_compiler -v >&5") 2>&5
17778   ac_status=$?
17779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }
17781 { (ac_try="$ac_compiler -V >&5"
17782 case "(($ac_try" in
17783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784   *) ac_try_echo=$ac_try;;
17785 esac
17786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17787 $as_echo "$ac_try_echo") >&5
17788   (eval "$ac_compiler -V >&5") 2>&5
17789   ac_status=$?
17790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }
17792 rm -f a.out
17793
17794 # If we don't use `.F' as extension, the preprocessor is not run on the
17795 # input file.  (Note that this only needs to work for GNU compilers.)
17796 ac_save_ext=$ac_ext
17797 ac_ext=F
17798 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
17799 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
17800 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
17801   $as_echo_n "(cached) " >&6
17802 else
17803   cat >conftest.$ac_ext <<_ACEOF
17804       program main
17805 #ifndef __GNUC__
17806        choke me
17807 #endif
17808
17809       end
17810 _ACEOF
17811 rm -f conftest.$ac_objext
17812 if { (ac_try="$ac_compile"
17813 case "(($ac_try" in
17814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815   *) ac_try_echo=$ac_try;;
17816 esac
17817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17818 $as_echo "$ac_try_echo") >&5
17819   (eval "$ac_compile") 2>conftest.er1
17820   ac_status=$?
17821   grep -v '^ *+' conftest.er1 >conftest.err
17822   rm -f conftest.er1
17823   cat conftest.err >&5
17824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); } && {
17826          test -z "$ac_f77_werror_flag" ||
17827          test ! -s conftest.err
17828        } && test -s conftest.$ac_objext; then
17829   ac_compiler_gnu=yes
17830 else
17831   $as_echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834         ac_compiler_gnu=no
17835 fi
17836
17837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17838 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
17839
17840 fi
17841 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
17842 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
17843 ac_ext=$ac_save_ext
17844 ac_test_FFLAGS=${FFLAGS+set}
17845 ac_save_FFLAGS=$FFLAGS
17846 FFLAGS=
17847 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
17848 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
17849 if test "${ac_cv_prog_f77_g+set}" = set; then
17850   $as_echo_n "(cached) " >&6
17851 else
17852   FFLAGS=-g
17853 cat >conftest.$ac_ext <<_ACEOF
17854       program main
17855
17856       end
17857 _ACEOF
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862   *) ac_try_echo=$ac_try;;
17863 esac
17864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17865 $as_echo "$ac_try_echo") >&5
17866   (eval "$ac_compile") 2>conftest.er1
17867   ac_status=$?
17868   grep -v '^ *+' conftest.er1 >conftest.err
17869   rm -f conftest.er1
17870   cat conftest.err >&5
17871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); } && {
17873          test -z "$ac_f77_werror_flag" ||
17874          test ! -s conftest.err
17875        } && test -s conftest.$ac_objext; then
17876   ac_cv_prog_f77_g=yes
17877 else
17878   $as_echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881         ac_cv_prog_f77_g=no
17882 fi
17883
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885
17886 fi
17887 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
17888 $as_echo "$ac_cv_prog_f77_g" >&6; }
17889 if test "$ac_test_FFLAGS" = set; then
17890   FFLAGS=$ac_save_FFLAGS
17891 elif test $ac_cv_prog_f77_g = yes; then
17892   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17893     FFLAGS="-g -O2"
17894   else
17895     FFLAGS="-g"
17896   fi
17897 else
17898   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17899     FFLAGS="-O2"
17900   else
17901     FFLAGS=
17902   fi
17903 fi
17904
17905 if test $ac_compiler_gnu = yes; then
17906   G77=yes
17907 else
17908   G77=
17909 fi
17910 ac_ext=c
17911 ac_cpp='$CPP $CPPFLAGS'
17912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17915       ac_ext=f
17916 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17917 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17919
17920
17921 archive_cmds_need_lc_F77=no
17922 allow_undefined_flag_F77=
17923 always_export_symbols_F77=no
17924 archive_expsym_cmds_F77=
17925 export_dynamic_flag_spec_F77=
17926 hardcode_direct_F77=no
17927 hardcode_direct_absolute_F77=no
17928 hardcode_libdir_flag_spec_F77=
17929 hardcode_libdir_flag_spec_ld_F77=
17930 hardcode_libdir_separator_F77=
17931 hardcode_minus_L_F77=no
17932 hardcode_automatic_F77=no
17933 inherit_rpath_F77=no
17934 module_cmds_F77=
17935 module_expsym_cmds_F77=
17936 link_all_deplibs_F77=unknown
17937 old_archive_cmds_F77=$old_archive_cmds
17938 no_undefined_flag_F77=
17939 whole_archive_flag_spec_F77=
17940 enable_shared_with_static_runtimes_F77=no
17941
17942 # Source file extension for f77 test sources.
17943 ac_ext=f
17944
17945 # Object file extension for compiled f77 test sources.
17946 objext=o
17947 objext_F77=$objext
17948
17949 # No sense in running all these tests if we already determined that
17950 # the F77 compiler isn't working.  Some variables (like enable_shared)
17951 # are currently assumed to apply to all compilers on this platform,
17952 # and will be corrupted by setting them based on a non-working compiler.
17953 if test "$_lt_disable_F77" != yes; then
17954   # Code to be used in simple compile tests
17955   lt_simple_compile_test_code="\
17956       subroutine t
17957       return
17958       end
17959 "
17960
17961   # Code to be used in simple link tests
17962   lt_simple_link_test_code="\
17963       program t
17964       end
17965 "
17966
17967   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17968
17969
17970
17971
17972
17973
17974 # If no C compiler was specified, use CC.
17975 LTCC=${LTCC-"$CC"}
17976
17977 # If no C compiler flags were specified, use CFLAGS.
17978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17979
17980 # Allow CC to be a program name with arguments.
17981 compiler=$CC
17982
17983
17984   # save warnings/boilerplate of simple test code
17985   ac_outfile=conftest.$ac_objext
17986 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17987 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17988 _lt_compiler_boilerplate=`cat conftest.err`
17989 $RM conftest*
17990
17991   ac_outfile=conftest.$ac_objext
17992 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17993 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17994 _lt_linker_boilerplate=`cat conftest.err`
17995 $RM -r conftest*
17996
17997
17998   # Allow CC to be a program name with arguments.
17999   lt_save_CC="$CC"
18000   lt_save_GCC=$GCC
18001   CC=${F77-"f77"}
18002   compiler=$CC
18003   compiler_F77=$CC
18004   for cc_temp in $compiler""; do
18005   case $cc_temp in
18006     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18007     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18008     \-*) ;;
18009     *) break;;
18010   esac
18011 done
18012 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18013
18014   GCC=$G77
18015   if test -n "$compiler"; then
18016     { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18017 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18018     { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
18019 $as_echo "$can_build_shared" >&6; }
18020
18021     { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18022 $as_echo_n "checking whether to build shared libraries... " >&6; }
18023     test "$can_build_shared" = "no" && enable_shared=no
18024
18025     # On AIX, shared libraries and static libraries use the same namespace, and
18026     # are all built from PIC.
18027     case $host_os in
18028       aix3*)
18029         test "$enable_shared" = yes && enable_static=no
18030         if test -n "$RANLIB"; then
18031           archive_cmds="$archive_cmds~\$RANLIB \$lib"
18032           postinstall_cmds='$RANLIB $lib'
18033         fi
18034         ;;
18035       aix[4-9]*)
18036         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18037           test "$enable_shared" = yes && enable_static=no
18038         fi
18039         ;;
18040     esac
18041     { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
18042 $as_echo "$enable_shared" >&6; }
18043
18044     { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18045 $as_echo_n "checking whether to build static libraries... " >&6; }
18046     # Make sure either enable_shared or enable_static is yes.
18047     test "$enable_shared" = yes || enable_static=yes
18048     { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
18049 $as_echo "$enable_static" >&6; }
18050
18051     GCC_F77="$G77"
18052     LD_F77="$LD"
18053
18054     ## CAVEAT EMPTOR:
18055     ## There is no encapsulation within the following macros, do not change
18056     ## the running order or otherwise move them around unless you know exactly
18057     ## what you are doing...
18058     lt_prog_compiler_wl_F77=
18059 lt_prog_compiler_pic_F77=
18060 lt_prog_compiler_static_F77=
18061
18062 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18063 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18064
18065   if test "$GCC" = yes; then
18066     lt_prog_compiler_wl_F77='-Wl,'
18067     lt_prog_compiler_static_F77='-static'
18068
18069     case $host_os in
18070       aix*)
18071       # All AIX code is PIC.
18072       if test "$host_cpu" = ia64; then
18073         # AIX 5 now supports IA64 processor
18074         lt_prog_compiler_static_F77='-Bstatic'
18075       fi
18076       ;;
18077
18078     amigaos*)
18079       case $host_cpu in
18080       powerpc)
18081             # see comment about AmigaOS4 .so support
18082             lt_prog_compiler_pic_F77='-fPIC'
18083         ;;
18084       m68k)
18085             # FIXME: we need at least 68020 code to build shared libraries, but
18086             # adding the `-m68020' flag to GCC prevents building anything better,
18087             # like `-m68040'.
18088             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18089         ;;
18090       esac
18091       ;;
18092
18093     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18094       # PIC is the default for these OSes.
18095       ;;
18096
18097     mingw* | cygwin* | pw32* | os2* | cegcc*)
18098       # This hack is so that the source file can tell whether it is being
18099       # built for inclusion in a dll (and should export symbols for example).
18100       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18101       # (--disable-auto-import) libraries
18102       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18103       ;;
18104
18105     darwin* | rhapsody*)
18106       # PIC is the default on this platform
18107       # Common symbols not allowed in MH_DYLIB files
18108       lt_prog_compiler_pic_F77='-fno-common'
18109       ;;
18110
18111     hpux*)
18112       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18113       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18114       # sets the default TLS model and affects inlining.
18115       case $host_cpu in
18116       hppa*64*)
18117         # +Z the default
18118         ;;
18119       *)
18120         lt_prog_compiler_pic_F77='-fPIC'
18121         ;;
18122       esac
18123       ;;
18124
18125     interix[3-9]*)
18126       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18127       # Instead, we relocate shared libraries at runtime.
18128       ;;
18129
18130     msdosdjgpp*)
18131       # Just because we use GCC doesn't mean we suddenly get shared libraries
18132       # on systems that don't support them.
18133       lt_prog_compiler_can_build_shared_F77=no
18134       enable_shared=no
18135       ;;
18136
18137     *nto* | *qnx*)
18138       # QNX uses GNU C++, but need to define -shared option too, otherwise
18139       # it will coredump.
18140       lt_prog_compiler_pic_F77='-fPIC -shared'
18141       ;;
18142
18143     sysv4*MP*)
18144       if test -d /usr/nec; then
18145         lt_prog_compiler_pic_F77=-Kconform_pic
18146       fi
18147       ;;
18148
18149     *)
18150       lt_prog_compiler_pic_F77='-fPIC'
18151       ;;
18152     esac
18153   else
18154     # PORTME Check for flag to pass linker flags through the system compiler.
18155     case $host_os in
18156     aix*)
18157       lt_prog_compiler_wl_F77='-Wl,'
18158       if test "$host_cpu" = ia64; then
18159         # AIX 5 now supports IA64 processor
18160         lt_prog_compiler_static_F77='-Bstatic'
18161       else
18162         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18163       fi
18164       ;;
18165
18166     mingw* | cygwin* | pw32* | os2* | cegcc*)
18167       # This hack is so that the source file can tell whether it is being
18168       # built for inclusion in a dll (and should export symbols for example).
18169       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18170       ;;
18171
18172     hpux9* | hpux10* | hpux11*)
18173       lt_prog_compiler_wl_F77='-Wl,'
18174       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18175       # not for PA HP-UX.
18176       case $host_cpu in
18177       hppa*64*|ia64*)
18178         # +Z the default
18179         ;;
18180       *)
18181         lt_prog_compiler_pic_F77='+Z'
18182         ;;
18183       esac
18184       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18185       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18186       ;;
18187
18188     irix5* | irix6* | nonstopux*)
18189       lt_prog_compiler_wl_F77='-Wl,'
18190       # PIC (with -KPIC) is the default.
18191       lt_prog_compiler_static_F77='-non_shared'
18192       ;;
18193
18194     linux* | k*bsd*-gnu)
18195       case $cc_basename in
18196       # old Intel for x86_64 which still supported -KPIC.
18197       ecc*)
18198         lt_prog_compiler_wl_F77='-Wl,'
18199         lt_prog_compiler_pic_F77='-KPIC'
18200         lt_prog_compiler_static_F77='-static'
18201         ;;
18202       # icc used to be incompatible with GCC.
18203       # ICC 10 doesn't accept -KPIC any more.
18204       icc* | ifort*)
18205         lt_prog_compiler_wl_F77='-Wl,'
18206         lt_prog_compiler_pic_F77='-fPIC'
18207         lt_prog_compiler_static_F77='-static'
18208         ;;
18209       # Lahey Fortran 8.1.
18210       lf95*)
18211         lt_prog_compiler_wl_F77='-Wl,'
18212         lt_prog_compiler_pic_F77='--shared'
18213         lt_prog_compiler_static_F77='--static'
18214         ;;
18215       pgcc* | pgf77* | pgf90* | pgf95*)
18216         # Portland Group compilers (*not* the Pentium gcc compiler,
18217         # which looks to be a dead project)
18218         lt_prog_compiler_wl_F77='-Wl,'
18219         lt_prog_compiler_pic_F77='-fpic'
18220         lt_prog_compiler_static_F77='-Bstatic'
18221         ;;
18222       ccc*)
18223         lt_prog_compiler_wl_F77='-Wl,'
18224         # All Alpha code is PIC.
18225         lt_prog_compiler_static_F77='-non_shared'
18226         ;;
18227       xl*)
18228         # IBM XL C 8.0/Fortran 10.1 on PPC
18229         lt_prog_compiler_wl_F77='-Wl,'
18230         lt_prog_compiler_pic_F77='-qpic'
18231         lt_prog_compiler_static_F77='-qstaticlink'
18232         ;;
18233       *)
18234         case `$CC -V 2>&1 | sed 5q` in
18235         *Sun\ C*)
18236           # Sun C 5.9
18237           lt_prog_compiler_pic_F77='-KPIC'
18238           lt_prog_compiler_static_F77='-Bstatic'
18239           lt_prog_compiler_wl_F77='-Wl,'
18240           ;;
18241         *Sun\ F*)
18242           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18243           lt_prog_compiler_pic_F77='-KPIC'
18244           lt_prog_compiler_static_F77='-Bstatic'
18245           lt_prog_compiler_wl_F77=''
18246           ;;
18247         esac
18248         ;;
18249       esac
18250       ;;
18251
18252     newsos6)
18253       lt_prog_compiler_pic_F77='-KPIC'
18254       lt_prog_compiler_static_F77='-Bstatic'
18255       ;;
18256
18257     *nto* | *qnx*)
18258       # QNX uses GNU C++, but need to define -shared option too, otherwise
18259       # it will coredump.
18260       lt_prog_compiler_pic_F77='-fPIC -shared'
18261       ;;
18262
18263     osf3* | osf4* | osf5*)
18264       lt_prog_compiler_wl_F77='-Wl,'
18265       # All OSF/1 code is PIC.
18266       lt_prog_compiler_static_F77='-non_shared'
18267       ;;
18268
18269     rdos*)
18270       lt_prog_compiler_static_F77='-non_shared'
18271       ;;
18272
18273     solaris*)
18274       lt_prog_compiler_pic_F77='-KPIC'
18275       lt_prog_compiler_static_F77='-Bstatic'
18276       case $cc_basename in
18277       f77* | f90* | f95*)
18278         lt_prog_compiler_wl_F77='-Qoption ld ';;
18279       *)
18280         lt_prog_compiler_wl_F77='-Wl,';;
18281       esac
18282       ;;
18283
18284     sunos4*)
18285       lt_prog_compiler_wl_F77='-Qoption ld '
18286       lt_prog_compiler_pic_F77='-PIC'
18287       lt_prog_compiler_static_F77='-Bstatic'
18288       ;;
18289
18290     sysv4 | sysv4.2uw2* | sysv4.3*)
18291       lt_prog_compiler_wl_F77='-Wl,'
18292       lt_prog_compiler_pic_F77='-KPIC'
18293       lt_prog_compiler_static_F77='-Bstatic'
18294       ;;
18295
18296     sysv4*MP*)
18297       if test -d /usr/nec ;then
18298         lt_prog_compiler_pic_F77='-Kconform_pic'
18299         lt_prog_compiler_static_F77='-Bstatic'
18300       fi
18301       ;;
18302
18303     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18304       lt_prog_compiler_wl_F77='-Wl,'
18305       lt_prog_compiler_pic_F77='-KPIC'
18306       lt_prog_compiler_static_F77='-Bstatic'
18307       ;;
18308
18309     unicos*)
18310       lt_prog_compiler_wl_F77='-Wl,'
18311       lt_prog_compiler_can_build_shared_F77=no
18312       ;;
18313
18314     uts4*)
18315       lt_prog_compiler_pic_F77='-pic'
18316       lt_prog_compiler_static_F77='-Bstatic'
18317       ;;
18318
18319     *)
18320       lt_prog_compiler_can_build_shared_F77=no
18321       ;;
18322     esac
18323   fi
18324
18325 case $host_os in
18326   # For platforms which do not support PIC, -DPIC is meaningless:
18327   *djgpp*)
18328     lt_prog_compiler_pic_F77=
18329     ;;
18330   *)
18331     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18332     ;;
18333 esac
18334 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18335 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
18336
18337
18338
18339 #
18340 # Check to make sure the PIC flag actually works.
18341 #
18342 if test -n "$lt_prog_compiler_pic_F77"; then
18343   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18344 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18345 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
18346   $as_echo_n "(cached) " >&6
18347 else
18348   lt_cv_prog_compiler_pic_works_F77=no
18349    ac_outfile=conftest.$ac_objext
18350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18351    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18352    # Insert the option either (1) after the last *FLAGS variable, or
18353    # (2) before a word containing "conftest.", or (3) at the end.
18354    # Note that $ac_compile itself does not contain backslashes and begins
18355    # with a dollar sign (not a hyphen), so the echo should work correctly.
18356    # The option is referenced via a variable to avoid confusing sed.
18357    lt_compile=`echo "$ac_compile" | $SED \
18358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18360    -e 's:$: $lt_compiler_flag:'`
18361    (eval echo "\"\$as_me:18361: $lt_compile\"" >&5)
18362    (eval "$lt_compile" 2>conftest.err)
18363    ac_status=$?
18364    cat conftest.err >&5
18365    echo "$as_me:18365: \$? = $ac_status" >&5
18366    if (exit $ac_status) && test -s "$ac_outfile"; then
18367      # The compiler can only warn and ignore the option if not recognized
18368      # So say no if there are warnings other than the usual output.
18369      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18370      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18371      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18372        lt_cv_prog_compiler_pic_works_F77=yes
18373      fi
18374    fi
18375    $RM conftest*
18376
18377 fi
18378 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18379 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
18380
18381 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
18382     case $lt_prog_compiler_pic_F77 in
18383      "" | " "*) ;;
18384      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18385      esac
18386 else
18387     lt_prog_compiler_pic_F77=
18388      lt_prog_compiler_can_build_shared_F77=no
18389 fi
18390
18391 fi
18392
18393
18394
18395 #
18396 # Check to make sure the static flag actually works.
18397 #
18398 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18399 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18400 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18401 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
18402   $as_echo_n "(cached) " >&6
18403 else
18404   lt_cv_prog_compiler_static_works_F77=no
18405    save_LDFLAGS="$LDFLAGS"
18406    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18407    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18408    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18409      # The linker can only warn and ignore the option if not recognized
18410      # So say no if there are warnings
18411      if test -s conftest.err; then
18412        # Append any errors to the config.log.
18413        cat conftest.err 1>&5
18414        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18415        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18416        if diff conftest.exp conftest.er2 >/dev/null; then
18417          lt_cv_prog_compiler_static_works_F77=yes
18418        fi
18419      else
18420        lt_cv_prog_compiler_static_works_F77=yes
18421      fi
18422    fi
18423    $RM -r conftest*
18424    LDFLAGS="$save_LDFLAGS"
18425
18426 fi
18427 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
18428 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
18429
18430 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
18431     :
18432 else
18433     lt_prog_compiler_static_F77=
18434 fi
18435
18436
18437
18438
18439     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18440 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18441 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18442   $as_echo_n "(cached) " >&6
18443 else
18444   lt_cv_prog_compiler_c_o_F77=no
18445    $RM -r conftest 2>/dev/null
18446    mkdir conftest
18447    cd conftest
18448    mkdir out
18449    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18450
18451    lt_compiler_flag="-o out/conftest2.$ac_objext"
18452    # Insert the option either (1) after the last *FLAGS variable, or
18453    # (2) before a word containing "conftest.", or (3) at the end.
18454    # Note that $ac_compile itself does not contain backslashes and begins
18455    # with a dollar sign (not a hyphen), so the echo should work correctly.
18456    lt_compile=`echo "$ac_compile" | $SED \
18457    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18458    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18459    -e 's:$: $lt_compiler_flag:'`
18460    (eval echo "\"\$as_me:18460: $lt_compile\"" >&5)
18461    (eval "$lt_compile" 2>out/conftest.err)
18462    ac_status=$?
18463    cat out/conftest.err >&5
18464    echo "$as_me:18464: \$? = $ac_status" >&5
18465    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18466    then
18467      # The compiler can only warn and ignore the option if not recognized
18468      # So say no if there are warnings
18469      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18470      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18471      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18472        lt_cv_prog_compiler_c_o_F77=yes
18473      fi
18474    fi
18475    chmod u+w . 2>&5
18476    $RM conftest*
18477    # SGI C++ compiler will create directory out/ii_files/ for
18478    # template instantiation
18479    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18480    $RM out/* && rmdir out
18481    cd ..
18482    $RM -r conftest
18483    $RM conftest*
18484
18485 fi
18486 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18487 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18488
18489
18490
18491     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18492 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18493 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18494   $as_echo_n "(cached) " >&6
18495 else
18496   lt_cv_prog_compiler_c_o_F77=no
18497    $RM -r conftest 2>/dev/null
18498    mkdir conftest
18499    cd conftest
18500    mkdir out
18501    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18502
18503    lt_compiler_flag="-o out/conftest2.$ac_objext"
18504    # Insert the option either (1) after the last *FLAGS variable, or
18505    # (2) before a word containing "conftest.", or (3) at the end.
18506    # Note that $ac_compile itself does not contain backslashes and begins
18507    # with a dollar sign (not a hyphen), so the echo should work correctly.
18508    lt_compile=`echo "$ac_compile" | $SED \
18509    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18511    -e 's:$: $lt_compiler_flag:'`
18512    (eval echo "\"\$as_me:18512: $lt_compile\"" >&5)
18513    (eval "$lt_compile" 2>out/conftest.err)
18514    ac_status=$?
18515    cat out/conftest.err >&5
18516    echo "$as_me:18516: \$? = $ac_status" >&5
18517    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18518    then
18519      # The compiler can only warn and ignore the option if not recognized
18520      # So say no if there are warnings
18521      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18522      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18523      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18524        lt_cv_prog_compiler_c_o_F77=yes
18525      fi
18526    fi
18527    chmod u+w . 2>&5
18528    $RM conftest*
18529    # SGI C++ compiler will create directory out/ii_files/ for
18530    # template instantiation
18531    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18532    $RM out/* && rmdir out
18533    cd ..
18534    $RM -r conftest
18535    $RM conftest*
18536
18537 fi
18538 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18539 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18540
18541
18542
18543
18544 hard_links="nottested"
18545 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18546   # do not overwrite the value of need_locks provided by the user
18547   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18548 $as_echo_n "checking if we can lock with hard links... " >&6; }
18549   hard_links=yes
18550   $RM conftest*
18551   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18552   touch conftest.a
18553   ln conftest.a conftest.b 2>&5 || hard_links=no
18554   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18555   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18556 $as_echo "$hard_links" >&6; }
18557   if test "$hard_links" = no; then
18558     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18559 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18560     need_locks=warn
18561   fi
18562 else
18563   need_locks=no
18564 fi
18565
18566
18567
18568     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18569 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18570
18571   runpath_var=
18572   allow_undefined_flag_F77=
18573   always_export_symbols_F77=no
18574   archive_cmds_F77=
18575   archive_expsym_cmds_F77=
18576   compiler_needs_object_F77=no
18577   enable_shared_with_static_runtimes_F77=no
18578   export_dynamic_flag_spec_F77=
18579   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18580   hardcode_automatic_F77=no
18581   hardcode_direct_F77=no
18582   hardcode_direct_absolute_F77=no
18583   hardcode_libdir_flag_spec_F77=
18584   hardcode_libdir_flag_spec_ld_F77=
18585   hardcode_libdir_separator_F77=
18586   hardcode_minus_L_F77=no
18587   hardcode_shlibpath_var_F77=unsupported
18588   inherit_rpath_F77=no
18589   link_all_deplibs_F77=unknown
18590   module_cmds_F77=
18591   module_expsym_cmds_F77=
18592   old_archive_from_new_cmds_F77=
18593   old_archive_from_expsyms_cmds_F77=
18594   thread_safe_flag_spec_F77=
18595   whole_archive_flag_spec_F77=
18596   # include_expsyms should be a list of space-separated symbols to be *always*
18597   # included in the symbol list
18598   include_expsyms_F77=
18599   # exclude_expsyms can be an extended regexp of symbols to exclude
18600   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18601   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18602   # as well as any symbol that contains `d'.
18603   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18604   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18605   # platforms (ab)use it in PIC code, but their linkers get confused if
18606   # the symbol is explicitly referenced.  Since portable code cannot
18607   # rely on this symbol name, it's probably fine to never include it in
18608   # preloaded symbol tables.
18609   # Exclude shared library initialization/finalization symbols.
18610   extract_expsyms_cmds=
18611
18612   case $host_os in
18613   cygwin* | mingw* | pw32* | cegcc*)
18614     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18615     # When not using gcc, we currently assume that we are using
18616     # Microsoft Visual C++.
18617     if test "$GCC" != yes; then
18618       with_gnu_ld=no
18619     fi
18620     ;;
18621   interix*)
18622     # we just hope/assume this is gcc and not c89 (= MSVC++)
18623     with_gnu_ld=yes
18624     ;;
18625   openbsd*)
18626     with_gnu_ld=no
18627     ;;
18628   esac
18629
18630   ld_shlibs_F77=yes
18631   if test "$with_gnu_ld" = yes; then
18632     # If archive_cmds runs LD, not CC, wlarc should be empty
18633     wlarc='${wl}'
18634
18635     # Set some defaults for GNU ld with shared library support. These
18636     # are reset later if shared libraries are not supported. Putting them
18637     # here allows them to be overridden if necessary.
18638     runpath_var=LD_RUN_PATH
18639     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18640     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18641     # ancient GNU ld didn't support --whole-archive et. al.
18642     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18643       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18644     else
18645       whole_archive_flag_spec_F77=
18646     fi
18647     supports_anon_versioning=no
18648     case `$LD -v 2>&1` in
18649       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18650       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18651       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18652       *\ 2.11.*) ;; # other 2.11 versions
18653       *) supports_anon_versioning=yes ;;
18654     esac
18655
18656     # See if GNU ld supports shared libraries.
18657     case $host_os in
18658     aix[3-9]*)
18659       # On AIX/PPC, the GNU linker is very broken
18660       if test "$host_cpu" != ia64; then
18661         ld_shlibs_F77=no
18662         cat <<_LT_EOF 1>&2
18663
18664 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18665 *** to be unable to reliably create shared libraries on AIX.
18666 *** Therefore, libtool is disabling shared libraries support.  If you
18667 *** really care for shared libraries, you may want to modify your PATH
18668 *** so that a non-GNU linker is found, and then restart.
18669
18670 _LT_EOF
18671       fi
18672       ;;
18673
18674     amigaos*)
18675       case $host_cpu in
18676       powerpc)
18677             # see comment about AmigaOS4 .so support
18678             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18679             archive_expsym_cmds_F77=''
18680         ;;
18681       m68k)
18682             archive_cmds_F77='$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)'
18683             hardcode_libdir_flag_spec_F77='-L$libdir'
18684             hardcode_minus_L_F77=yes
18685         ;;
18686       esac
18687       ;;
18688
18689     beos*)
18690       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18691         allow_undefined_flag_F77=unsupported
18692         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18693         # support --undefined.  This deserves some investigation.  FIXME
18694         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18695       else
18696         ld_shlibs_F77=no
18697       fi
18698       ;;
18699
18700     cygwin* | mingw* | pw32* | cegcc*)
18701       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18702       # as there is no search path for DLLs.
18703       hardcode_libdir_flag_spec_F77='-L$libdir'
18704       allow_undefined_flag_F77=unsupported
18705       always_export_symbols_F77=no
18706       enable_shared_with_static_runtimes_F77=yes
18707       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18708
18709       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18710         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18711         # If the export-symbols file already is a .def file (1st line
18712         # is EXPORTS), use it as is; otherwise, prepend...
18713         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18714           cp $export_symbols $output_objdir/$soname.def;
18715         else
18716           echo EXPORTS > $output_objdir/$soname.def;
18717           cat $export_symbols >> $output_objdir/$soname.def;
18718         fi~
18719         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18720       else
18721         ld_shlibs_F77=no
18722       fi
18723       ;;
18724
18725     interix[3-9]*)
18726       hardcode_direct_F77=no
18727       hardcode_shlibpath_var_F77=no
18728       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18729       export_dynamic_flag_spec_F77='${wl}-E'
18730       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18731       # Instead, shared libraries are loaded at an image base (0x10000000 by
18732       # default) and relocated if they conflict, which is a slow very memory
18733       # consuming and fragmenting process.  To avoid this, we pick a random,
18734       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18735       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18736       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18737       archive_expsym_cmds_F77='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'
18738       ;;
18739
18740     gnu* | linux* | tpf* | k*bsd*-gnu)
18741       tmp_diet=no
18742       if test "$host_os" = linux-dietlibc; then
18743         case $cc_basename in
18744           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18745         esac
18746       fi
18747       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18748          && test "$tmp_diet" = no
18749       then
18750         tmp_addflag=
18751         tmp_sharedflag='-shared'
18752         case $cc_basename,$host_cpu in
18753         pgcc*)                          # Portland Group C compiler
18754           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18755           tmp_addflag=' $pic_flag'
18756           ;;
18757         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18758           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18759           tmp_addflag=' $pic_flag -Mnomain' ;;
18760         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18761           tmp_addflag=' -i_dynamic' ;;
18762         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18763           tmp_addflag=' -i_dynamic -nofor_main' ;;
18764         ifc* | ifort*)                  # Intel Fortran compiler
18765           tmp_addflag=' -nofor_main' ;;
18766         lf95*)                          # Lahey Fortran 8.1
18767           whole_archive_flag_spec_F77=
18768           tmp_sharedflag='--shared' ;;
18769         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
18770           tmp_sharedflag='-qmkshrobj'
18771           tmp_addflag= ;;
18772         esac
18773         case `$CC -V 2>&1 | sed 5q` in
18774         *Sun\ C*)                       # Sun C 5.9
18775           whole_archive_flag_spec_F77='${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'
18776           compiler_needs_object_F77=yes
18777           tmp_sharedflag='-G' ;;
18778         *Sun\ F*)                       # Sun Fortran 8.3
18779           tmp_sharedflag='-G' ;;
18780         esac
18781         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18782
18783         if test "x$supports_anon_versioning" = xyes; then
18784           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18785             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18786             echo "local: *; };" >> $output_objdir/$libname.ver~
18787             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18788         fi
18789
18790         case $cc_basename in
18791         xlf*)
18792           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18793           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
18794           hardcode_libdir_flag_spec_F77=
18795           hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18796           archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18797           if test "x$supports_anon_versioning" = xyes; then
18798             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18799               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18800               echo "local: *; };" >> $output_objdir/$libname.ver~
18801               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18802           fi
18803           ;;
18804         esac
18805       else
18806         ld_shlibs_F77=no
18807       fi
18808       ;;
18809
18810     netbsd* | netbsdelf*-gnu)
18811       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18812         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18813         wlarc=
18814       else
18815         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18816         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18817       fi
18818       ;;
18819
18820     solaris*)
18821       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18822         ld_shlibs_F77=no
18823         cat <<_LT_EOF 1>&2
18824
18825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18826 *** create shared libraries on Solaris systems.  Therefore, libtool
18827 *** is disabling shared libraries support.  We urge you to upgrade GNU
18828 *** binutils to release 2.9.1 or newer.  Another option is to modify
18829 *** your PATH or compiler configuration so that the native linker is
18830 *** used, and then restart.
18831
18832 _LT_EOF
18833       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18834         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18835         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18836       else
18837         ld_shlibs_F77=no
18838       fi
18839       ;;
18840
18841     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18842       case `$LD -v 2>&1` in
18843         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18844         ld_shlibs_F77=no
18845         cat <<_LT_EOF 1>&2
18846
18847 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18848 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18849 *** is disabling shared libraries support.  We urge you to upgrade GNU
18850 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18851 *** your PATH or compiler configuration so that the native linker is
18852 *** used, and then restart.
18853
18854 _LT_EOF
18855         ;;
18856         *)
18857           # For security reasons, it is highly recommended that you always
18858           # use absolute paths for naming shared libraries, and exclude the
18859           # DT_RUNPATH tag from executables and libraries.  But doing so
18860           # requires that you compile everything twice, which is a pain.
18861           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18862             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18863             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18864             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18865           else
18866             ld_shlibs_F77=no
18867           fi
18868         ;;
18869       esac
18870       ;;
18871
18872     sunos4*)
18873       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18874       wlarc=
18875       hardcode_direct_F77=yes
18876       hardcode_shlibpath_var_F77=no
18877       ;;
18878
18879     *)
18880       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18881         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18882         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18883       else
18884         ld_shlibs_F77=no
18885       fi
18886       ;;
18887     esac
18888
18889     if test "$ld_shlibs_F77" = no; then
18890       runpath_var=
18891       hardcode_libdir_flag_spec_F77=
18892       export_dynamic_flag_spec_F77=
18893       whole_archive_flag_spec_F77=
18894     fi
18895   else
18896     # PORTME fill in a description of your system's linker (not GNU ld)
18897     case $host_os in
18898     aix3*)
18899       allow_undefined_flag_F77=unsupported
18900       always_export_symbols_F77=yes
18901       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18902       # Note: this linker hardcodes the directories in LIBPATH if there
18903       # are no directories specified by -L.
18904       hardcode_minus_L_F77=yes
18905       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18906         # Neither direct hardcoding nor static linking is supported with a
18907         # broken collect2.
18908         hardcode_direct_F77=unsupported
18909       fi
18910       ;;
18911
18912     aix[4-9]*)
18913       if test "$host_cpu" = ia64; then
18914         # On IA64, the linker does run time linking by default, so we don't
18915         # have to do anything special.
18916         aix_use_runtimelinking=no
18917         exp_sym_flag='-Bexport'
18918         no_entry_flag=""
18919       else
18920         # If we're using GNU nm, then we don't want the "-C" option.
18921         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18922         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18923           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18924         else
18925           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18926         fi
18927         aix_use_runtimelinking=no
18928
18929         # Test if we are trying to use run time linking or normal
18930         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18931         # need to do runtime linking.
18932         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18933           for ld_flag in $LDFLAGS; do
18934           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18935             aix_use_runtimelinking=yes
18936             break
18937           fi
18938           done
18939           ;;
18940         esac
18941
18942         exp_sym_flag='-bexport'
18943         no_entry_flag='-bnoentry'
18944       fi
18945
18946       # When large executables or shared objects are built, AIX ld can
18947       # have problems creating the table of contents.  If linking a library
18948       # or program results in "error TOC overflow" add -mminimal-toc to
18949       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18950       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18951
18952       archive_cmds_F77=''
18953       hardcode_direct_F77=yes
18954       hardcode_direct_absolute_F77=yes
18955       hardcode_libdir_separator_F77=':'
18956       link_all_deplibs_F77=yes
18957       file_list_spec_F77='${wl}-f,'
18958
18959       if test "$GCC" = yes; then
18960         case $host_os in aix4.[012]|aix4.[012].*)
18961         # We only want to do this on AIX 4.2 and lower, the check
18962         # below for broken collect2 doesn't work under 4.3+
18963           collect2name=`${CC} -print-prog-name=collect2`
18964           if test -f "$collect2name" &&
18965            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18966           then
18967           # We have reworked collect2
18968           :
18969           else
18970           # We have old collect2
18971           hardcode_direct_F77=unsupported
18972           # It fails to find uninstalled libraries when the uninstalled
18973           # path is not listed in the libpath.  Setting hardcode_minus_L
18974           # to unsupported forces relinking
18975           hardcode_minus_L_F77=yes
18976           hardcode_libdir_flag_spec_F77='-L$libdir'
18977           hardcode_libdir_separator_F77=
18978           fi
18979           ;;
18980         esac
18981         shared_flag='-shared'
18982         if test "$aix_use_runtimelinking" = yes; then
18983           shared_flag="$shared_flag "'${wl}-G'
18984         fi
18985         link_all_deplibs_F77=no
18986       else
18987         # not using gcc
18988         if test "$host_cpu" = ia64; then
18989         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18990         # chokes on -Wl,-G. The following line is correct:
18991           shared_flag='-G'
18992         else
18993           if test "$aix_use_runtimelinking" = yes; then
18994             shared_flag='${wl}-G'
18995           else
18996             shared_flag='${wl}-bM:SRE'
18997           fi
18998         fi
18999       fi
19000
19001       export_dynamic_flag_spec_F77='${wl}-bexpall'
19002       # It seems that -bexpall does not export symbols beginning with
19003       # underscore (_), so it is better to generate a list of symbols to export.
19004       always_export_symbols_F77=yes
19005       if test "$aix_use_runtimelinking" = yes; then
19006         # Warning - without using the other runtime loading flags (-brtl),
19007         # -berok will link without error, but may produce a broken library.
19008         allow_undefined_flag_F77='-berok'
19009         # Determine the default libpath from the value encoded in an
19010         # empty executable.
19011         cat >conftest.$ac_ext <<_ACEOF
19012       program main
19013
19014       end
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19023 $as_echo "$ac_try_echo") >&5
19024   (eval "$ac_link") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_f77_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest$ac_exeext && {
19034          test "$cross_compiling" = yes ||
19035          $as_test_x conftest$ac_exeext
19036        }; then
19037
19038 lt_aix_libpath_sed='
19039     /Import File Strings/,/^$/ {
19040         /^0/ {
19041             s/^0  *\(.*\)$/\1/
19042             p
19043         }
19044     }'
19045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19046 # Check for a 64-bit object if we didn't find anything.
19047 if test -z "$aix_libpath"; then
19048   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19049 fi
19050 else
19051   $as_echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054
19055 fi
19056
19057 rm -rf conftest.dSYM
19058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19059       conftest$ac_exeext conftest.$ac_ext
19060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19061
19062         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19063         archive_expsym_cmds_F77='$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"
19064       else
19065         if test "$host_cpu" = ia64; then
19066           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19067           allow_undefined_flag_F77="-z nodefs"
19068           archive_expsym_cmds_F77="\$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"
19069         else
19070          # Determine the default libpath from the value encoded in an
19071          # empty executable.
19072          cat >conftest.$ac_ext <<_ACEOF
19073       program main
19074
19075       end
19076 _ACEOF
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19084 $as_echo "$ac_try_echo") >&5
19085   (eval "$ac_link") 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } && {
19092          test -z "$ac_f77_werror_flag" ||
19093          test ! -s conftest.err
19094        } && test -s conftest$ac_exeext && {
19095          test "$cross_compiling" = yes ||
19096          $as_test_x conftest$ac_exeext
19097        }; then
19098
19099 lt_aix_libpath_sed='
19100     /Import File Strings/,/^$/ {
19101         /^0/ {
19102             s/^0  *\(.*\)$/\1/
19103             p
19104         }
19105     }'
19106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19107 # Check for a 64-bit object if we didn't find anything.
19108 if test -z "$aix_libpath"; then
19109   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19110 fi
19111 else
19112   $as_echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19114
19115
19116 fi
19117
19118 rm -rf conftest.dSYM
19119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19120       conftest$ac_exeext conftest.$ac_ext
19121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19122
19123          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19124           # Warning - without using the other run time loading flags,
19125           # -berok will link without error, but may produce a broken library.
19126           no_undefined_flag_F77=' ${wl}-bernotok'
19127           allow_undefined_flag_F77=' ${wl}-berok'
19128           # Exported symbols can be pulled into shared objects from archives
19129           whole_archive_flag_spec_F77='$convenience'
19130           archive_cmds_need_lc_F77=yes
19131           # This is similar to how AIX traditionally builds its shared libraries.
19132           archive_expsym_cmds_F77="\$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'
19133         fi
19134       fi
19135       ;;
19136
19137     amigaos*)
19138       case $host_cpu in
19139       powerpc)
19140             # see comment about AmigaOS4 .so support
19141             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19142             archive_expsym_cmds_F77=''
19143         ;;
19144       m68k)
19145             archive_cmds_F77='$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)'
19146             hardcode_libdir_flag_spec_F77='-L$libdir'
19147             hardcode_minus_L_F77=yes
19148         ;;
19149       esac
19150       ;;
19151
19152     bsdi[45]*)
19153       export_dynamic_flag_spec_F77=-rdynamic
19154       ;;
19155
19156     cygwin* | mingw* | pw32* | cegcc*)
19157       # When not using gcc, we currently assume that we are using
19158       # Microsoft Visual C++.
19159       # hardcode_libdir_flag_spec is actually meaningless, as there is
19160       # no search path for DLLs.
19161       hardcode_libdir_flag_spec_F77=' '
19162       allow_undefined_flag_F77=unsupported
19163       # Tell ltmain to make .lib files, not .a files.
19164       libext=lib
19165       # Tell ltmain to make .dll files, not .so files.
19166       shrext_cmds=".dll"
19167       # FIXME: Setting linknames here is a bad hack.
19168       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
19169       # The linker will automatically build a .lib file if we build a DLL.
19170       old_archive_from_new_cmds_F77='true'
19171       # FIXME: Should let the user specify the lib program.
19172       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19173       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
19174       enable_shared_with_static_runtimes_F77=yes
19175       ;;
19176
19177     darwin* | rhapsody*)
19178
19179
19180   archive_cmds_need_lc_F77=no
19181   hardcode_direct_F77=no
19182   hardcode_automatic_F77=yes
19183   hardcode_shlibpath_var_F77=unsupported
19184   whole_archive_flag_spec_F77=''
19185   link_all_deplibs_F77=yes
19186   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
19187   case $cc_basename in
19188      ifort*) _lt_dar_can_shared=yes ;;
19189      *) _lt_dar_can_shared=$GCC ;;
19190   esac
19191   if test "$_lt_dar_can_shared" = "yes"; then
19192     output_verbose_link_cmd=echo
19193     archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19194     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19195     archive_expsym_cmds_F77="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}"
19196     module_expsym_cmds_F77="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}"
19197
19198   else
19199   ld_shlibs_F77=no
19200   fi
19201
19202       ;;
19203
19204     dgux*)
19205       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19206       hardcode_libdir_flag_spec_F77='-L$libdir'
19207       hardcode_shlibpath_var_F77=no
19208       ;;
19209
19210     freebsd1*)
19211       ld_shlibs_F77=no
19212       ;;
19213
19214     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19215     # support.  Future versions do this automatically, but an explicit c++rt0.o
19216     # does not break anything, and helps significantly (at the cost of a little
19217     # extra space).
19218     freebsd2.2*)
19219       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19220       hardcode_libdir_flag_spec_F77='-R$libdir'
19221       hardcode_direct_F77=yes
19222       hardcode_shlibpath_var_F77=no
19223       ;;
19224
19225     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19226     freebsd2*)
19227       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19228       hardcode_direct_F77=yes
19229       hardcode_minus_L_F77=yes
19230       hardcode_shlibpath_var_F77=no
19231       ;;
19232
19233     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19234     freebsd* | dragonfly*)
19235       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19236       hardcode_libdir_flag_spec_F77='-R$libdir'
19237       hardcode_direct_F77=yes
19238       hardcode_shlibpath_var_F77=no
19239       ;;
19240
19241     hpux9*)
19242       if test "$GCC" = yes; then
19243         archive_cmds_F77='$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'
19244       else
19245         archive_cmds_F77='$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'
19246       fi
19247       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19248       hardcode_libdir_separator_F77=:
19249       hardcode_direct_F77=yes
19250
19251       # hardcode_minus_L: Not really in the search PATH,
19252       # but as the default location of the library.
19253       hardcode_minus_L_F77=yes
19254       export_dynamic_flag_spec_F77='${wl}-E'
19255       ;;
19256
19257     hpux10*)
19258       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19259         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19260       else
19261         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19262       fi
19263       if test "$with_gnu_ld" = no; then
19264         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19265         hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19266         hardcode_libdir_separator_F77=:
19267         hardcode_direct_F77=yes
19268         hardcode_direct_absolute_F77=yes
19269         export_dynamic_flag_spec_F77='${wl}-E'
19270         # hardcode_minus_L: Not really in the search PATH,
19271         # but as the default location of the library.
19272         hardcode_minus_L_F77=yes
19273       fi
19274       ;;
19275
19276     hpux11*)
19277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19278         case $host_cpu in
19279         hppa*64*)
19280           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19281           ;;
19282         ia64*)
19283           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19284           ;;
19285         *)
19286           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19287           ;;
19288         esac
19289       else
19290         case $host_cpu in
19291         hppa*64*)
19292           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19293           ;;
19294         ia64*)
19295           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19296           ;;
19297         *)
19298           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19299           ;;
19300         esac
19301       fi
19302       if test "$with_gnu_ld" = no; then
19303         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19304         hardcode_libdir_separator_F77=:
19305
19306         case $host_cpu in
19307         hppa*64*|ia64*)
19308           hardcode_direct_F77=no
19309           hardcode_shlibpath_var_F77=no
19310           ;;
19311         *)
19312           hardcode_direct_F77=yes
19313           hardcode_direct_absolute_F77=yes
19314           export_dynamic_flag_spec_F77='${wl}-E'
19315
19316           # hardcode_minus_L: Not really in the search PATH,
19317           # but as the default location of the library.
19318           hardcode_minus_L_F77=yes
19319           ;;
19320         esac
19321       fi
19322       ;;
19323
19324     irix5* | irix6* | nonstopux*)
19325       if test "$GCC" = yes; then
19326         archive_cmds_F77='$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'
19327         # Try to use the -exported_symbol ld option, if it does not
19328         # work, assume that -exports_file does not work either and
19329         # implicitly export all symbols.
19330         save_LDFLAGS="$LDFLAGS"
19331         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19332         cat >conftest.$ac_ext <<_ACEOF
19333 int foo(void) {}
19334 _ACEOF
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (ac_try="$ac_link"
19337 case "(($ac_try" in
19338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339   *) ac_try_echo=$ac_try;;
19340 esac
19341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19342 $as_echo "$ac_try_echo") >&5
19343   (eval "$ac_link") 2>conftest.er1
19344   ac_status=$?
19345   grep -v '^ *+' conftest.er1 >conftest.err
19346   rm -f conftest.er1
19347   cat conftest.err >&5
19348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } && {
19350          test -z "$ac_f77_werror_flag" ||
19351          test ! -s conftest.err
19352        } && test -s conftest$ac_exeext && {
19353          test "$cross_compiling" = yes ||
19354          $as_test_x conftest$ac_exeext
19355        }; then
19356   archive_expsym_cmds_F77='$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'
19357
19358 else
19359   $as_echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362
19363 fi
19364
19365 rm -rf conftest.dSYM
19366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19367       conftest$ac_exeext conftest.$ac_ext
19368         LDFLAGS="$save_LDFLAGS"
19369       else
19370         archive_cmds_F77='$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'
19371         archive_expsym_cmds_F77='$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'
19372       fi
19373       archive_cmds_need_lc_F77='no'
19374       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19375       hardcode_libdir_separator_F77=:
19376       inherit_rpath_F77=yes
19377       link_all_deplibs_F77=yes
19378       ;;
19379
19380     netbsd* | netbsdelf*-gnu)
19381       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19382         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19383       else
19384         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19385       fi
19386       hardcode_libdir_flag_spec_F77='-R$libdir'
19387       hardcode_direct_F77=yes
19388       hardcode_shlibpath_var_F77=no
19389       ;;
19390
19391     newsos6)
19392       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19393       hardcode_direct_F77=yes
19394       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19395       hardcode_libdir_separator_F77=:
19396       hardcode_shlibpath_var_F77=no
19397       ;;
19398
19399     *nto* | *qnx*)
19400       ;;
19401
19402     openbsd*)
19403       if test -f /usr/libexec/ld.so; then
19404         hardcode_direct_F77=yes
19405         hardcode_shlibpath_var_F77=no
19406         hardcode_direct_absolute_F77=yes
19407         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19408           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19409           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19410           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19411           export_dynamic_flag_spec_F77='${wl}-E'
19412         else
19413           case $host_os in
19414            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19415              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19416              hardcode_libdir_flag_spec_F77='-R$libdir'
19417              ;;
19418            *)
19419              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19420              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19421              ;;
19422           esac
19423         fi
19424       else
19425         ld_shlibs_F77=no
19426       fi
19427       ;;
19428
19429     os2*)
19430       hardcode_libdir_flag_spec_F77='-L$libdir'
19431       hardcode_minus_L_F77=yes
19432       allow_undefined_flag_F77=unsupported
19433       archive_cmds_F77='$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'
19434       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19435       ;;
19436
19437     osf3*)
19438       if test "$GCC" = yes; then
19439         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19440         archive_cmds_F77='$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'
19441       else
19442         allow_undefined_flag_F77=' -expect_unresolved \*'
19443         archive_cmds_F77='$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'
19444       fi
19445       archive_cmds_need_lc_F77='no'
19446       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19447       hardcode_libdir_separator_F77=:
19448       ;;
19449
19450     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19451       if test "$GCC" = yes; then
19452         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19453         archive_cmds_F77='$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'
19454         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19455       else
19456         allow_undefined_flag_F77=' -expect_unresolved \*'
19457         archive_cmds_F77='$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'
19458         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
19459         $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'
19460
19461         # Both c and cxx compiler support -rpath directly
19462         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19463       fi
19464       archive_cmds_need_lc_F77='no'
19465       hardcode_libdir_separator_F77=:
19466       ;;
19467
19468     solaris*)
19469       no_undefined_flag_F77=' -z defs'
19470       if test "$GCC" = yes; then
19471         wlarc='${wl}'
19472         archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19473         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19474           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19475       else
19476         case `$CC -V 2>&1` in
19477         *"Compilers 5.0"*)
19478           wlarc=''
19479           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19480           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19481           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19482           ;;
19483         *)
19484           wlarc='${wl}'
19485           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19486           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19487           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19488           ;;
19489         esac
19490       fi
19491       hardcode_libdir_flag_spec_F77='-R$libdir'
19492       hardcode_shlibpath_var_F77=no
19493       case $host_os in
19494       solaris2.[0-5] | solaris2.[0-5].*) ;;
19495       *)
19496         # The compiler driver will combine and reorder linker options,
19497         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19498         # but is careful enough not to reorder.
19499         # Supported since Solaris 2.6 (maybe 2.5.1?)
19500         if test "$GCC" = yes; then
19501           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19502         else
19503           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19504         fi
19505         ;;
19506       esac
19507       link_all_deplibs_F77=yes
19508       ;;
19509
19510     sunos4*)
19511       if test "x$host_vendor" = xsequent; then
19512         # Use $CC to link under sequent, because it throws in some extra .o
19513         # files that make .init and .fini sections work.
19514         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19515       else
19516         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19517       fi
19518       hardcode_libdir_flag_spec_F77='-L$libdir'
19519       hardcode_direct_F77=yes
19520       hardcode_minus_L_F77=yes
19521       hardcode_shlibpath_var_F77=no
19522       ;;
19523
19524     sysv4)
19525       case $host_vendor in
19526         sni)
19527           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19528           hardcode_direct_F77=yes # is this really true???
19529         ;;
19530         siemens)
19531           ## LD is ld it makes a PLAMLIB
19532           ## CC just makes a GrossModule.
19533           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19534           reload_cmds_F77='$CC -r -o $output$reload_objs'
19535           hardcode_direct_F77=no
19536         ;;
19537         motorola)
19538           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19539           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19540         ;;
19541       esac
19542       runpath_var='LD_RUN_PATH'
19543       hardcode_shlibpath_var_F77=no
19544       ;;
19545
19546     sysv4.3*)
19547       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19548       hardcode_shlibpath_var_F77=no
19549       export_dynamic_flag_spec_F77='-Bexport'
19550       ;;
19551
19552     sysv4*MP*)
19553       if test -d /usr/nec; then
19554         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19555         hardcode_shlibpath_var_F77=no
19556         runpath_var=LD_RUN_PATH
19557         hardcode_runpath_var=yes
19558         ld_shlibs_F77=yes
19559       fi
19560       ;;
19561
19562     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19563       no_undefined_flag_F77='${wl}-z,text'
19564       archive_cmds_need_lc_F77=no
19565       hardcode_shlibpath_var_F77=no
19566       runpath_var='LD_RUN_PATH'
19567
19568       if test "$GCC" = yes; then
19569         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19570         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571       else
19572         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19573         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19574       fi
19575       ;;
19576
19577     sysv5* | sco3.2v5* | sco5v6*)
19578       # Note: We can NOT use -z defs as we might desire, because we do not
19579       # link with -lc, and that would cause any symbols used from libc to
19580       # always be unresolved, which means just about no library would
19581       # ever link correctly.  If we're not using GNU ld we use -z text
19582       # though, which does catch some bad symbols but isn't as heavy-handed
19583       # as -z defs.
19584       no_undefined_flag_F77='${wl}-z,text'
19585       allow_undefined_flag_F77='${wl}-z,nodefs'
19586       archive_cmds_need_lc_F77=no
19587       hardcode_shlibpath_var_F77=no
19588       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
19589       hardcode_libdir_separator_F77=':'
19590       link_all_deplibs_F77=yes
19591       export_dynamic_flag_spec_F77='${wl}-Bexport'
19592       runpath_var='LD_RUN_PATH'
19593
19594       if test "$GCC" = yes; then
19595         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19596         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19597       else
19598         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19599         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19600       fi
19601       ;;
19602
19603     uts4*)
19604       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19605       hardcode_libdir_flag_spec_F77='-L$libdir'
19606       hardcode_shlibpath_var_F77=no
19607       ;;
19608
19609     *)
19610       ld_shlibs_F77=no
19611       ;;
19612     esac
19613
19614     if test x$host_vendor = xsni; then
19615       case $host in
19616       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19617         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
19618         ;;
19619       esac
19620     fi
19621   fi
19622
19623 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19624 $as_echo "$ld_shlibs_F77" >&6; }
19625 test "$ld_shlibs_F77" = no && can_build_shared=no
19626
19627 with_gnu_ld_F77=$with_gnu_ld
19628
19629
19630
19631
19632
19633
19634 #
19635 # Do we need to explicitly link libc?
19636 #
19637 case "x$archive_cmds_need_lc_F77" in
19638 x|xyes)
19639   # Assume -lc should be added
19640   archive_cmds_need_lc_F77=yes
19641
19642   if test "$enable_shared" = yes && test "$GCC" = yes; then
19643     case $archive_cmds_F77 in
19644     *'~'*)
19645       # FIXME: we may have to deal with multi-command sequences.
19646       ;;
19647     '$CC '*)
19648       # Test whether the compiler implicitly links with -lc since on some
19649       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19650       # to ld, don't add -lc before -lgcc.
19651       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19652 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19653       $RM conftest*
19654       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19655
19656       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657   (eval $ac_compile) 2>&5
19658   ac_status=$?
19659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } 2>conftest.err; then
19661         soname=conftest
19662         lib=conftest
19663         libobjs=conftest.$ac_objext
19664         deplibs=
19665         wl=$lt_prog_compiler_wl_F77
19666         pic_flag=$lt_prog_compiler_pic_F77
19667         compiler_flags=-v
19668         linker_flags=-v
19669         verstring=
19670         output_objdir=.
19671         libname=conftest
19672         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19673         allow_undefined_flag_F77=
19674         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
19675   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19676   ac_status=$?
19677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); }
19679         then
19680           archive_cmds_need_lc_F77=no
19681         else
19682           archive_cmds_need_lc_F77=yes
19683         fi
19684         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19685       else
19686         cat conftest.err 1>&5
19687       fi
19688       $RM conftest*
19689       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19690 $as_echo "$archive_cmds_need_lc_F77" >&6; }
19691       ;;
19692     esac
19693   fi
19694   ;;
19695 esac
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19761 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19762
19763 library_names_spec=
19764 libname_spec='lib$name'
19765 soname_spec=
19766 shrext_cmds=".so"
19767 postinstall_cmds=
19768 postuninstall_cmds=
19769 finish_cmds=
19770 finish_eval=
19771 shlibpath_var=
19772 shlibpath_overrides_runpath=unknown
19773 version_type=none
19774 dynamic_linker="$host_os ld.so"
19775 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19776 need_lib_prefix=unknown
19777 hardcode_into_libs=no
19778
19779 # when you set need_version to no, make sure it does not cause -set_version
19780 # flags to be left without arguments
19781 need_version=unknown
19782
19783 case $host_os in
19784 aix3*)
19785   version_type=linux
19786   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19787   shlibpath_var=LIBPATH
19788
19789   # AIX 3 has no versioning support, so we append a major version to the name.
19790   soname_spec='${libname}${release}${shared_ext}$major'
19791   ;;
19792
19793 aix[4-9]*)
19794   version_type=linux
19795   need_lib_prefix=no
19796   need_version=no
19797   hardcode_into_libs=yes
19798   if test "$host_cpu" = ia64; then
19799     # AIX 5 supports IA64
19800     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19801     shlibpath_var=LD_LIBRARY_PATH
19802   else
19803     # With GCC up to 2.95.x, collect2 would create an import file
19804     # for dependence libraries.  The import file would start with
19805     # the line `#! .'.  This would cause the generated library to
19806     # depend on `.', always an invalid library.  This was fixed in
19807     # development snapshots of GCC prior to 3.0.
19808     case $host_os in
19809       aix4 | aix4.[01] | aix4.[01].*)
19810       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19811            echo ' yes '
19812            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19813         :
19814       else
19815         can_build_shared=no
19816       fi
19817       ;;
19818     esac
19819     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19820     # soname into executable. Probably we can add versioning support to
19821     # collect2, so additional links can be useful in future.
19822     if test "$aix_use_runtimelinking" = yes; then
19823       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19824       # instead of lib<name>.a to let people know that these are not
19825       # typical AIX shared libraries.
19826       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19827     else
19828       # We preserve .a as extension for shared libraries through AIX4.2
19829       # and later when we are not doing run time linking.
19830       library_names_spec='${libname}${release}.a $libname.a'
19831       soname_spec='${libname}${release}${shared_ext}$major'
19832     fi
19833     shlibpath_var=LIBPATH
19834   fi
19835   ;;
19836
19837 amigaos*)
19838   case $host_cpu in
19839   powerpc)
19840     # Since July 2007 AmigaOS4 officially supports .so libraries.
19841     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19843     ;;
19844   m68k)
19845     library_names_spec='$libname.ixlibrary $libname.a'
19846     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19847     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'
19848     ;;
19849   esac
19850   ;;
19851
19852 beos*)
19853   library_names_spec='${libname}${shared_ext}'
19854   dynamic_linker="$host_os ld.so"
19855   shlibpath_var=LIBRARY_PATH
19856   ;;
19857
19858 bsdi[45]*)
19859   version_type=linux
19860   need_version=no
19861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19862   soname_spec='${libname}${release}${shared_ext}$major'
19863   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19864   shlibpath_var=LD_LIBRARY_PATH
19865   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19866   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19867   # the default ld.so.conf also contains /usr/contrib/lib and
19868   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19869   # libtool to hard-code these into programs
19870   ;;
19871
19872 cygwin* | mingw* | pw32* | cegcc*)
19873   version_type=windows
19874   shrext_cmds=".dll"
19875   need_version=no
19876   need_lib_prefix=no
19877
19878   case $GCC,$host_os in
19879   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19880     library_names_spec='$libname.dll.a'
19881     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19882     postinstall_cmds='base_file=`basename \${file}`~
19883       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19884       dldir=$destdir/`dirname \$dlpath`~
19885       test -d \$dldir || mkdir -p \$dldir~
19886       $install_prog $dir/$dlname \$dldir/$dlname~
19887       chmod a+x \$dldir/$dlname~
19888       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19889         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19890       fi'
19891     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19892       dlpath=$dir/\$dldll~
19893        $RM \$dlpath'
19894     shlibpath_overrides_runpath=yes
19895
19896     case $host_os in
19897     cygwin*)
19898       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19899       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19900       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19901       ;;
19902     mingw* | cegcc*)
19903       # MinGW DLLs use traditional 'lib' prefix
19904       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19905       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19906       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19907         # It is most probably a Windows format PATH printed by
19908         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19909         # path with ; separators, and with drive letters. We can handle the
19910         # drive letters (cygwin fileutils understands them), so leave them,
19911         # especially as we might pass files found there to a mingw objdump,
19912         # which wouldn't understand a cygwinified path. Ahh.
19913         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19914       else
19915         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19916       fi
19917       ;;
19918     pw32*)
19919       # pw32 DLLs use 'pw' prefix rather than 'lib'
19920       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19921       ;;
19922     esac
19923     ;;
19924
19925   *)
19926     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19927     ;;
19928   esac
19929   dynamic_linker='Win32 ld.exe'
19930   # FIXME: first we should search . and the directory the executable is in
19931   shlibpath_var=PATH
19932   ;;
19933
19934 darwin* | rhapsody*)
19935   dynamic_linker="$host_os dyld"
19936   version_type=darwin
19937   need_lib_prefix=no
19938   need_version=no
19939   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19940   soname_spec='${libname}${release}${major}$shared_ext'
19941   shlibpath_overrides_runpath=yes
19942   shlibpath_var=DYLD_LIBRARY_PATH
19943   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19944
19945   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19946   ;;
19947
19948 dgux*)
19949   version_type=linux
19950   need_lib_prefix=no
19951   need_version=no
19952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19953   soname_spec='${libname}${release}${shared_ext}$major'
19954   shlibpath_var=LD_LIBRARY_PATH
19955   ;;
19956
19957 freebsd1*)
19958   dynamic_linker=no
19959   ;;
19960
19961 freebsd* | dragonfly*)
19962   # DragonFly does not have aout.  When/if they implement a new
19963   # versioning mechanism, adjust this.
19964   if test -x /usr/bin/objformat; then
19965     objformat=`/usr/bin/objformat`
19966   else
19967     case $host_os in
19968     freebsd[123]*) objformat=aout ;;
19969     *) objformat=elf ;;
19970     esac
19971   fi
19972   version_type=freebsd-$objformat
19973   case $version_type in
19974     freebsd-elf*)
19975       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19976       need_version=no
19977       need_lib_prefix=no
19978       ;;
19979     freebsd-*)
19980       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19981       need_version=yes
19982       ;;
19983   esac
19984   shlibpath_var=LD_LIBRARY_PATH
19985   case $host_os in
19986   freebsd2*)
19987     shlibpath_overrides_runpath=yes
19988     ;;
19989   freebsd3.[01]* | freebsdelf3.[01]*)
19990     shlibpath_overrides_runpath=yes
19991     hardcode_into_libs=yes
19992     ;;
19993   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19994   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19995     shlibpath_overrides_runpath=no
19996     hardcode_into_libs=yes
19997     ;;
19998   *) # from 4.6 on, and DragonFly
19999     shlibpath_overrides_runpath=yes
20000     hardcode_into_libs=yes
20001     ;;
20002   esac
20003   ;;
20004
20005 gnu*)
20006   version_type=linux
20007   need_lib_prefix=no
20008   need_version=no
20009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20010   soname_spec='${libname}${release}${shared_ext}$major'
20011   shlibpath_var=LD_LIBRARY_PATH
20012   hardcode_into_libs=yes
20013   ;;
20014
20015 hpux9* | hpux10* | hpux11*)
20016   # Give a soname corresponding to the major version so that dld.sl refuses to
20017   # link against other versions.
20018   version_type=sunos
20019   need_lib_prefix=no
20020   need_version=no
20021   case $host_cpu in
20022   ia64*)
20023     shrext_cmds='.so'
20024     hardcode_into_libs=yes
20025     dynamic_linker="$host_os dld.so"
20026     shlibpath_var=LD_LIBRARY_PATH
20027     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20029     soname_spec='${libname}${release}${shared_ext}$major'
20030     if test "X$HPUX_IA64_MODE" = X32; then
20031       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20032     else
20033       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20034     fi
20035     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20036     ;;
20037   hppa*64*)
20038     shrext_cmds='.sl'
20039     hardcode_into_libs=yes
20040     dynamic_linker="$host_os dld.sl"
20041     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20042     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044     soname_spec='${libname}${release}${shared_ext}$major'
20045     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20046     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20047     ;;
20048   *)
20049     shrext_cmds='.sl'
20050     dynamic_linker="$host_os dld.sl"
20051     shlibpath_var=SHLIB_PATH
20052     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20054     soname_spec='${libname}${release}${shared_ext}$major'
20055     ;;
20056   esac
20057   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20058   postinstall_cmds='chmod 555 $lib'
20059   ;;
20060
20061 interix[3-9]*)
20062   version_type=linux
20063   need_lib_prefix=no
20064   need_version=no
20065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20066   soname_spec='${libname}${release}${shared_ext}$major'
20067   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20068   shlibpath_var=LD_LIBRARY_PATH
20069   shlibpath_overrides_runpath=no
20070   hardcode_into_libs=yes
20071   ;;
20072
20073 irix5* | irix6* | nonstopux*)
20074   case $host_os in
20075     nonstopux*) version_type=nonstopux ;;
20076     *)
20077         if test "$lt_cv_prog_gnu_ld" = yes; then
20078                 version_type=linux
20079         else
20080                 version_type=irix
20081         fi ;;
20082   esac
20083   need_lib_prefix=no
20084   need_version=no
20085   soname_spec='${libname}${release}${shared_ext}$major'
20086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20087   case $host_os in
20088   irix5* | nonstopux*)
20089     libsuff= shlibsuff=
20090     ;;
20091   *)
20092     case $LD in # libtool.m4 will add one of these switches to LD
20093     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20094       libsuff= shlibsuff= libmagic=32-bit;;
20095     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20096       libsuff=32 shlibsuff=N32 libmagic=N32;;
20097     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20098       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20099     *) libsuff= shlibsuff= libmagic=never-match;;
20100     esac
20101     ;;
20102   esac
20103   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20104   shlibpath_overrides_runpath=no
20105   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20106   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20107   hardcode_into_libs=yes
20108   ;;
20109
20110 # No shared lib support for Linux oldld, aout, or coff.
20111 linux*oldld* | linux*aout* | linux*coff*)
20112   dynamic_linker=no
20113   ;;
20114
20115 # This must be Linux ELF.
20116 linux* | k*bsd*-gnu)
20117   version_type=linux
20118   need_lib_prefix=no
20119   need_version=no
20120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20121   soname_spec='${libname}${release}${shared_ext}$major'
20122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20123   shlibpath_var=LD_LIBRARY_PATH
20124   shlibpath_overrides_runpath=no
20125   # Some binutils ld are patched to set DT_RUNPATH
20126   save_LDFLAGS=$LDFLAGS
20127   save_libdir=$libdir
20128   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
20129        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
20130   cat >conftest.$ac_ext <<_ACEOF
20131       program main
20132
20133       end
20134 _ACEOF
20135 rm -f conftest.$ac_objext conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139   *) ac_try_echo=$ac_try;;
20140 esac
20141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20142 $as_echo "$ac_try_echo") >&5
20143   (eval "$ac_link") 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } && {
20150          test -z "$ac_f77_werror_flag" ||
20151          test ! -s conftest.err
20152        } && test -s conftest$ac_exeext && {
20153          test "$cross_compiling" = yes ||
20154          $as_test_x conftest$ac_exeext
20155        }; then
20156   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
20157   shlibpath_overrides_runpath=yes
20158 fi
20159
20160 else
20161   $as_echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164
20165 fi
20166
20167 rm -rf conftest.dSYM
20168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20169       conftest$ac_exeext conftest.$ac_ext
20170   LDFLAGS=$save_LDFLAGS
20171   libdir=$save_libdir
20172
20173   # This implies no fast_install, which is unacceptable.
20174   # Some rework will be needed to allow for fast_install
20175   # before this can be enabled.
20176   hardcode_into_libs=yes
20177
20178   # Append ld.so.conf contents to the search path
20179   if test -f /etc/ld.so.conf; then
20180     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' ' '`
20181     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20182   fi
20183
20184   # We used to test for /lib/ld.so.1 and disable shared libraries on
20185   # powerpc, because MkLinux only supported shared libraries with the
20186   # GNU dynamic linker.  Since this was broken with cross compilers,
20187   # most powerpc-linux boxes support dynamic linking these days and
20188   # people can always --disable-shared, the test was removed, and we
20189   # assume the GNU/Linux dynamic linker is in use.
20190   dynamic_linker='GNU/Linux ld.so'
20191   ;;
20192
20193 netbsdelf*-gnu)
20194   version_type=linux
20195   need_lib_prefix=no
20196   need_version=no
20197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20198   soname_spec='${libname}${release}${shared_ext}$major'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   shlibpath_overrides_runpath=no
20201   hardcode_into_libs=yes
20202   dynamic_linker='NetBSD ld.elf_so'
20203   ;;
20204
20205 netbsd*)
20206   version_type=sunos
20207   need_lib_prefix=no
20208   need_version=no
20209   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20211     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20212     dynamic_linker='NetBSD (a.out) ld.so'
20213   else
20214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20215     soname_spec='${libname}${release}${shared_ext}$major'
20216     dynamic_linker='NetBSD ld.elf_so'
20217   fi
20218   shlibpath_var=LD_LIBRARY_PATH
20219   shlibpath_overrides_runpath=yes
20220   hardcode_into_libs=yes
20221   ;;
20222
20223 newsos6)
20224   version_type=linux
20225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226   shlibpath_var=LD_LIBRARY_PATH
20227   shlibpath_overrides_runpath=yes
20228   ;;
20229
20230 *nto* | *qnx*)
20231   version_type=qnx
20232   need_lib_prefix=no
20233   need_version=no
20234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235   soname_spec='${libname}${release}${shared_ext}$major'
20236   shlibpath_var=LD_LIBRARY_PATH
20237   shlibpath_overrides_runpath=no
20238   hardcode_into_libs=yes
20239   dynamic_linker='ldqnx.so'
20240   ;;
20241
20242 openbsd*)
20243   version_type=sunos
20244   sys_lib_dlsearch_path_spec="/usr/lib"
20245   need_lib_prefix=no
20246   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20247   case $host_os in
20248     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20249     *)                          need_version=no  ;;
20250   esac
20251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20253   shlibpath_var=LD_LIBRARY_PATH
20254   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20255     case $host_os in
20256       openbsd2.[89] | openbsd2.[89].*)
20257         shlibpath_overrides_runpath=no
20258         ;;
20259       *)
20260         shlibpath_overrides_runpath=yes
20261         ;;
20262       esac
20263   else
20264     shlibpath_overrides_runpath=yes
20265   fi
20266   ;;
20267
20268 os2*)
20269   libname_spec='$name'
20270   shrext_cmds=".dll"
20271   need_lib_prefix=no
20272   library_names_spec='$libname${shared_ext} $libname.a'
20273   dynamic_linker='OS/2 ld.exe'
20274   shlibpath_var=LIBPATH
20275   ;;
20276
20277 osf3* | osf4* | osf5*)
20278   version_type=osf
20279   need_lib_prefix=no
20280   need_version=no
20281   soname_spec='${libname}${release}${shared_ext}$major'
20282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283   shlibpath_var=LD_LIBRARY_PATH
20284   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20285   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20286   ;;
20287
20288 rdos*)
20289   dynamic_linker=no
20290   ;;
20291
20292 solaris*)
20293   version_type=linux
20294   need_lib_prefix=no
20295   need_version=no
20296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20297   soname_spec='${libname}${release}${shared_ext}$major'
20298   shlibpath_var=LD_LIBRARY_PATH
20299   shlibpath_overrides_runpath=yes
20300   hardcode_into_libs=yes
20301   # ldd complains unless libraries are executable
20302   postinstall_cmds='chmod +x $lib'
20303   ;;
20304
20305 sunos4*)
20306   version_type=sunos
20307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20308   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20309   shlibpath_var=LD_LIBRARY_PATH
20310   shlibpath_overrides_runpath=yes
20311   if test "$with_gnu_ld" = yes; then
20312     need_lib_prefix=no
20313   fi
20314   need_version=yes
20315   ;;
20316
20317 sysv4 | sysv4.3*)
20318   version_type=linux
20319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320   soname_spec='${libname}${release}${shared_ext}$major'
20321   shlibpath_var=LD_LIBRARY_PATH
20322   case $host_vendor in
20323     sni)
20324       shlibpath_overrides_runpath=no
20325       need_lib_prefix=no
20326       runpath_var=LD_RUN_PATH
20327       ;;
20328     siemens)
20329       need_lib_prefix=no
20330       ;;
20331     motorola)
20332       need_lib_prefix=no
20333       need_version=no
20334       shlibpath_overrides_runpath=no
20335       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20336       ;;
20337   esac
20338   ;;
20339
20340 sysv4*MP*)
20341   if test -d /usr/nec ;then
20342     version_type=linux
20343     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20344     soname_spec='$libname${shared_ext}.$major'
20345     shlibpath_var=LD_LIBRARY_PATH
20346   fi
20347   ;;
20348
20349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20350   version_type=freebsd-elf
20351   need_lib_prefix=no
20352   need_version=no
20353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20354   soname_spec='${libname}${release}${shared_ext}$major'
20355   shlibpath_var=LD_LIBRARY_PATH
20356   shlibpath_overrides_runpath=yes
20357   hardcode_into_libs=yes
20358   if test "$with_gnu_ld" = yes; then
20359     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20360   else
20361     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20362     case $host_os in
20363       sco3.2v5*)
20364         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20365         ;;
20366     esac
20367   fi
20368   sys_lib_dlsearch_path_spec='/usr/lib'
20369   ;;
20370
20371 tpf*)
20372   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20373   version_type=linux
20374   need_lib_prefix=no
20375   need_version=no
20376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377   shlibpath_var=LD_LIBRARY_PATH
20378   shlibpath_overrides_runpath=no
20379   hardcode_into_libs=yes
20380   ;;
20381
20382 uts4*)
20383   version_type=linux
20384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20385   soname_spec='${libname}${release}${shared_ext}$major'
20386   shlibpath_var=LD_LIBRARY_PATH
20387   ;;
20388
20389 *)
20390   dynamic_linker=no
20391   ;;
20392 esac
20393 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20394 $as_echo "$dynamic_linker" >&6; }
20395 test "$dynamic_linker" = no && can_build_shared=no
20396
20397 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20398 if test "$GCC" = yes; then
20399   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20400 fi
20401
20402 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20403   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20404 fi
20405 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20406   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20407 fi
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20445 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20446 hardcode_action_F77=
20447 if test -n "$hardcode_libdir_flag_spec_F77" ||
20448    test -n "$runpath_var_F77" ||
20449    test "X$hardcode_automatic_F77" = "Xyes" ; then
20450
20451   # We can hardcode non-existent directories.
20452   if test "$hardcode_direct_F77" != no &&
20453      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20454      # have to relink, otherwise we might link with an installed library
20455      # when we should be linking with a yet-to-be-installed one
20456      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20457      test "$hardcode_minus_L_F77" != no; then
20458     # Linking always hardcodes the temporary library directory.
20459     hardcode_action_F77=relink
20460   else
20461     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20462     hardcode_action_F77=immediate
20463   fi
20464 else
20465   # We cannot hardcode anything, or else we can only hardcode existing
20466   # directories.
20467   hardcode_action_F77=unsupported
20468 fi
20469 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20470 $as_echo "$hardcode_action_F77" >&6; }
20471
20472 if test "$hardcode_action_F77" = relink ||
20473    test "$inherit_rpath_F77" = yes; then
20474   # Fast installation is not supported
20475   enable_fast_install=no
20476 elif test "$shlibpath_overrides_runpath" = yes ||
20477      test "$enable_shared" = no; then
20478   # Fast installation is not necessary
20479   enable_fast_install=needless
20480 fi
20481
20482
20483
20484
20485
20486
20487
20488   fi # test -n "$compiler"
20489
20490   GCC=$lt_save_GCC
20491   CC="$lt_save_CC"
20492 fi # test "$_lt_disable_F77" != yes
20493
20494 ac_ext=c
20495 ac_cpp='$CPP $CPPFLAGS'
20496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499
20500
20501         ac_ext=f
20502 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20503 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20504 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20505 { $as_echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
20506 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
20507 if test "${ac_cv_prog_f77_v+set}" = set; then
20508   $as_echo_n "(cached) " >&6
20509 else
20510   cat >conftest.$ac_ext <<_ACEOF
20511       program main
20512
20513       end
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (ac_try="$ac_compile"
20517 case "(($ac_try" in
20518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519   *) ac_try_echo=$ac_try;;
20520 esac
20521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20522 $as_echo "$ac_try_echo") >&5
20523   (eval "$ac_compile") 2>conftest.er1
20524   ac_status=$?
20525   grep -v '^ *+' conftest.er1 >conftest.err
20526   rm -f conftest.er1
20527   cat conftest.err >&5
20528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); } && {
20530          test -z "$ac_f77_werror_flag" ||
20531          test ! -s conftest.err
20532        } && test -s conftest.$ac_objext; then
20533   ac_cv_prog_f77_v=
20534 # Try some options frequently used verbose output
20535 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20536   cat >conftest.$ac_ext <<_ACEOF
20537       program main
20538
20539       end
20540 _ACEOF
20541
20542 # Compile and link our simple test program by passing a flag (argument
20543 # 1 to this macro) to the Fortran compiler in order to get
20544 # "verbose" output that we can then parse for the Fortran linker
20545 # flags.
20546 ac_save_FFLAGS=$FFLAGS
20547 FFLAGS="$FFLAGS $ac_verb"
20548 eval "set x $ac_link"
20549 shift
20550 $as_echo "$as_me:$LINENO: $*" >&5
20551 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
20552 # LIBRARY_PATH; skip all such settings.
20553 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
20554   grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
20555 $as_echo "$ac_f77_v_output" >&5
20556 FFLAGS=$ac_save_FFLAGS
20557
20558 rm -rf conftest*
20559
20560 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20561 # /foo, /bar, and /baz are search directories for the Fortran linker.
20562 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20563 ac_f77_v_output="`echo $ac_f77_v_output |
20564         grep 'LPATH is:' |
20565         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
20566
20567 # FIXME: we keep getting bitten by quoted arguments; a more general fix
20568 #        that detects unbalanced quotes in FLIBS should be implemented
20569 #        and (ugh) tested at some point.
20570 case $ac_f77_v_output in
20571   # If we are using xlf then replace all the commas with spaces.
20572   *xlfentry*)
20573     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20574
20575   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20576   # $LIBS confuse us, and the libraries appear later in the output anyway).
20577   *mGLOB_options_string*)
20578     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20579
20580   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20581   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20582   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20583   *-cmdline\ * | *-ignore\ * | *-def\ *)
20584     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20585         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
20586         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
20587         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
20588
20589   # If we are using Cray Fortran then delete quotes.
20590   *cft90*)
20591     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20592 esac
20593
20594
20595   # look for -l* and *.a constructs in the output
20596   for ac_arg in $ac_f77_v_output; do
20597      case $ac_arg in
20598         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20599           ac_cv_prog_f77_v=$ac_verb
20600           break 2 ;;
20601      esac
20602   done
20603 done
20604 if test -z "$ac_cv_prog_f77_v"; then
20605    { $as_echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
20606 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20607 fi
20608 else
20609   $as_echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612         { $as_echo "$as_me:$LINENO: WARNING: compilation failed" >&5
20613 $as_echo "$as_me: WARNING: compilation failed" >&2;}
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617
20618 fi
20619 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
20620 $as_echo "$ac_cv_prog_f77_v" >&6; }
20621 { $as_echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
20622 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
20623 if test "${ac_cv_f77_libs+set}" = set; then
20624   $as_echo_n "(cached) " >&6
20625 else
20626   if test "x$FLIBS" != "x"; then
20627   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
20628 else
20629
20630 cat >conftest.$ac_ext <<_ACEOF
20631       program main
20632
20633       end
20634 _ACEOF
20635
20636 # Compile and link our simple test program by passing a flag (argument
20637 # 1 to this macro) to the Fortran compiler in order to get
20638 # "verbose" output that we can then parse for the Fortran linker
20639 # flags.
20640 ac_save_FFLAGS=$FFLAGS
20641 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
20642 eval "set x $ac_link"
20643 shift
20644 $as_echo "$as_me:$LINENO: $*" >&5
20645 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
20646 # LIBRARY_PATH; skip all such settings.
20647 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
20648   grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
20649 $as_echo "$ac_f77_v_output" >&5
20650 FFLAGS=$ac_save_FFLAGS
20651
20652 rm -rf conftest*
20653
20654 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20655 # /foo, /bar, and /baz are search directories for the Fortran linker.
20656 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20657 ac_f77_v_output="`echo $ac_f77_v_output |
20658         grep 'LPATH is:' |
20659         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
20660
20661 # FIXME: we keep getting bitten by quoted arguments; a more general fix
20662 #        that detects unbalanced quotes in FLIBS should be implemented
20663 #        and (ugh) tested at some point.
20664 case $ac_f77_v_output in
20665   # If we are using xlf then replace all the commas with spaces.
20666   *xlfentry*)
20667     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20668
20669   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20670   # $LIBS confuse us, and the libraries appear later in the output anyway).
20671   *mGLOB_options_string*)
20672     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20673
20674   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20675   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20676   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20677   *-cmdline\ * | *-ignore\ * | *-def\ *)
20678     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20679         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
20680         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
20681         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
20682
20683   # If we are using Cray Fortran then delete quotes.
20684   *cft90*)
20685     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20686 esac
20687
20688
20689
20690 ac_cv_f77_libs=
20691
20692 # Save positional arguments (if any)
20693 ac_save_positional="$@"
20694
20695 set X $ac_f77_v_output
20696 while test $# != 1; do
20697   shift
20698   ac_arg=$1
20699   case $ac_arg in
20700         [\\/]*.a | ?:[\\/]*.a)
20701             ac_exists=false
20702   for ac_i in $ac_cv_f77_libs; do
20703     if test x"$ac_arg" = x"$ac_i"; then
20704       ac_exists=true
20705       break
20706     fi
20707   done
20708
20709   if test x"$ac_exists" = xtrue; then
20710   :
20711 else
20712   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20713 fi
20714
20715           ;;
20716         -bI:*)
20717             ac_exists=false
20718   for ac_i in $ac_cv_f77_libs; do
20719     if test x"$ac_arg" = x"$ac_i"; then
20720       ac_exists=true
20721       break
20722     fi
20723   done
20724
20725   if test x"$ac_exists" = xtrue; then
20726   :
20727 else
20728   if test "$ac_compiler_gnu" = yes; then
20729   for ac_link_opt in $ac_arg; do
20730     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20731   done
20732 else
20733   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20734 fi
20735 fi
20736
20737           ;;
20738           # Ignore these flags.
20739         -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
20740           ;;
20741         -lkernel32)
20742           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20743           ;;
20744         -[LRuYz])
20745           # These flags, when seen by themselves, take an argument.
20746           # We remove the space between option and argument and re-iterate
20747           # unless we find an empty arg or a new option (starting with -)
20748           case $2 in
20749              "" | -*);;
20750              *)
20751                 ac_arg="$ac_arg$2"
20752                 shift; shift
20753                 set X $ac_arg "$@"
20754                 ;;
20755           esac
20756           ;;
20757         -YP,*)
20758           for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
20759               ac_exists=false
20760   for ac_i in $ac_cv_f77_libs; do
20761     if test x"$ac_j" = x"$ac_i"; then
20762       ac_exists=true
20763       break
20764     fi
20765   done
20766
20767   if test x"$ac_exists" = xtrue; then
20768   :
20769 else
20770   ac_arg="$ac_arg $ac_j"
20771                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
20772 fi
20773
20774           done
20775           ;;
20776         -[lLR]*)
20777             ac_exists=false
20778   for ac_i in $ac_cv_f77_libs; do
20779     if test x"$ac_arg" = x"$ac_i"; then
20780       ac_exists=true
20781       break
20782     fi
20783   done
20784
20785   if test x"$ac_exists" = xtrue; then
20786   :
20787 else
20788   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20789 fi
20790
20791           ;;
20792         -zallextract*| -zdefaultextract)
20793           ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20794           ;;
20795           # Ignore everything else.
20796   esac
20797 done
20798 # restore positional arguments
20799 set X $ac_save_positional; shift
20800
20801 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
20802 # then we insist that the "run path" must be an absolute path (i.e. it
20803 # must begin with a "/").
20804 case `(uname -sr) 2>/dev/null` in
20805    "SunOS 5"*)
20806       ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
20807                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
20808       test "x$ac_ld_run_path" != x &&
20809         if test "$ac_compiler_gnu" = yes; then
20810   for ac_link_opt in $ac_ld_run_path; do
20811     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20812   done
20813 else
20814   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
20815 fi
20816       ;;
20817 esac
20818 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
20819
20820 fi
20821 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
20822 $as_echo "$ac_cv_f77_libs" >&6; }
20823 FLIBS="$ac_cv_f77_libs"
20824
20825
20826 ac_ext=c
20827 ac_cpp='$CPP $CPPFLAGS'
20828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20831
20832     fi
20833
20834
20835
20836
20837         no_undefined=""
20838         case "${host_os}" in
20839                 *mingw* | *cygwin*)
20840
20841                 # on MinGW/Cygwin extra LDFLAGS are required
20842                 no_undefined="-no-undefined"
20843                 ;;
20844         esac
20845         NO_UNDEFINED=$no_undefined
20846
20847
20848
20849
20850
20851
20852         # Find any Python interpreter.
20853     if test -z "$PYTHON"; then
20854       for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
20855 do
20856   # Extract the first word of "$ac_prog", so it can be a program name with args.
20857 set dummy $ac_prog; ac_word=$2
20858 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20859 $as_echo_n "checking for $ac_word... " >&6; }
20860 if test "${ac_cv_path_PYTHON+set}" = set; then
20861   $as_echo_n "(cached) " >&6
20862 else
20863   case $PYTHON in
20864   [\\/]* | ?:[\\/]*)
20865   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20866   ;;
20867   *)
20868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20869 for as_dir in $PATH
20870 do
20871   IFS=$as_save_IFS
20872   test -z "$as_dir" && as_dir=.
20873   for ac_exec_ext in '' $ac_executable_extensions; do
20874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20875     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20877     break 2
20878   fi
20879 done
20880 done
20881 IFS=$as_save_IFS
20882
20883   ;;
20884 esac
20885 fi
20886 PYTHON=$ac_cv_path_PYTHON
20887 if test -n "$PYTHON"; then
20888   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
20889 $as_echo "$PYTHON" >&6; }
20890 else
20891   { $as_echo "$as_me:$LINENO: result: no" >&5
20892 $as_echo "no" >&6; }
20893 fi
20894
20895
20896   test -n "$PYTHON" && break
20897 done
20898 test -n "$PYTHON" || PYTHON=":"
20899
20900     fi
20901     am_display_PYTHON=python
20902
20903
20904   if test "$PYTHON" = :; then
20905       { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
20906 $as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
20907    { (exit 1); exit 1; }; }
20908   else
20909
20910
20911   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
20912 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20913 if test "${am_cv_python_version+set}" = set; then
20914   $as_echo_n "(cached) " >&6
20915 else
20916   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
20917 fi
20918 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
20919 $as_echo "$am_cv_python_version" >&6; }
20920   PYTHON_VERSION=$am_cv_python_version
20921
20922
20923
20924   PYTHON_PREFIX='${prefix}'
20925
20926   PYTHON_EXEC_PREFIX='${exec_prefix}'
20927
20928
20929
20930   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
20931 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20932 if test "${am_cv_python_platform+set}" = set; then
20933   $as_echo_n "(cached) " >&6
20934 else
20935   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
20936 fi
20937 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
20938 $as_echo "$am_cv_python_platform" >&6; }
20939   PYTHON_PLATFORM=$am_cv_python_platform
20940
20941
20942
20943
20944                 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
20945 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20946 if test "${am_cv_python_pythondir+set}" = set; then
20947   $as_echo_n "(cached) " >&6
20948 else
20949   if test "x$prefix" = xNONE
20950      then
20951        py_prefix_arg=
20952      else
20953        py_prefix_arg=",prefix='$prefix'"
20954      fi
20955      am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0$py_prefix_arg)" -n -q install $py_prefix_arg 2>/dev/null ||
20956      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
20957 fi
20958 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
20959 $as_echo "$am_cv_python_pythondir" >&6; }
20960   pythondir=$am_cv_python_pythondir
20961
20962
20963
20964   pkgpythondir=\${pythondir}/$PACKAGE
20965
20966
20967             { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
20968 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20969 if test "${am_cv_python_pyexecdir+set}" = set; then
20970   $as_echo_n "(cached) " >&6
20971 else
20972   if test "x$exec_prefix" = xNONE
20973      then
20974        py_exec_prefix_arg=$py_prefix_arg
20975      else
20976        py_exec_prefix_arg=",prefix='$exec_prefix'"
20977      fi
20978      am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install $py_exec_prefix_arg 2>/dev/null ||
20979      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
20980 fi
20981 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
20982 $as_echo "$am_cv_python_pyexecdir" >&6; }
20983   pyexecdir=$am_cv_python_pyexecdir
20984
20985
20986
20987   pkgpyexecdir=\${pyexecdir}/$PACKAGE
20988
20989
20990
20991   fi
20992
20993
20994
20995
20996
20997
20998
20999 # Check whether --with-pythondir was given.
21000 if test "${with_pythondir+set}" = set; then
21001   withval=$with_pythondir; with_pythondir=${withval}
21002 else
21003   with_pythondir=${prefix}/lib/python2.5/site-packages
21004 fi
21005
21006
21007         # if we're cross-compiling, asking the host python about any of
21008         # this is completely useless...
21009
21010         if test x$cross_compiling != xno
21011         then
21012                 pythondir=$with_pythondir
21013                 pyexecdir=$with_pythondir
21014
21015
21016         else
21017
21018             # For Fedora Core 5 and 6, see ticket:39 in Trac
21019             if test -f '/etc/redhat-release'; then
21020                     if  (echo $pyexecdir | grep -q lib64); then
21021                             pythondir="$pyexecdir"
21022                     fi
21023             fi
21024
21025             # Check for Python include path
21026             { $as_echo "$as_me:$LINENO: checking for Python include path" >&5
21027 $as_echo_n "checking for Python include path... " >&6; }
21028             if test -z "$PYTHON" ; then
21029                     { { $as_echo "$as_me:$LINENO: error: cannot find Python path" >&5
21030 $as_echo "$as_me: error: cannot find Python path" >&2;}
21031    { (exit 1); exit 1; }; }
21032             fi
21033
21034             # ask distutils which include path we should use
21035             python_cmd='
21036 import distutils.sysconfig
21037 import os
21038 path = distutils.sysconfig.get_python_inc(plat_specific=False)
21039 if os.sep == "\\":
21040   path = path.replace("\\", "/")
21041 print path
21042 '
21043             python_path=`$PYTHON -c "$python_cmd"`
21044             { $as_echo "$as_me:$LINENO: result: $python_path" >&5
21045 $as_echo "$python_path" >&6; }
21046             if test -z "$python_path" ; then
21047                     { { $as_echo "$as_me:$LINENO: error: cannot find Python include path" >&5
21048 $as_echo "$as_me: error: cannot find Python include path" >&2;}
21049    { (exit 1); exit 1; }; }
21050             fi
21051
21052             PYTHON_CPPFLAGS=-I$python_path
21053
21054
21055             # Check for Python headers usability
21056             python_save_CPPFLAGS=$CPPFLAGS
21057             CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
21058
21059 for ac_header in Python.h
21060 do
21061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21063   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21064 $as_echo_n "checking for $ac_header... " >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066   $as_echo_n "(cached) " >&6
21067 fi
21068 ac_res=`eval 'as_val=${'$as_ac_Header'}
21069                  $as_echo "$as_val"'`
21070                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21071 $as_echo "$ac_res" >&6; }
21072 else
21073   # Is the header compilable?
21074 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21075 $as_echo_n "checking $ac_header usability... " >&6; }
21076 cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h.  */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h.  */
21082 $ac_includes_default
21083 #include <$ac_header>
21084 _ACEOF
21085 rm -f conftest.$ac_objext
21086 if { (ac_try="$ac_compile"
21087 case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21092 $as_echo "$ac_try_echo") >&5
21093   (eval "$ac_compile") 2>conftest.er1
21094   ac_status=$?
21095   grep -v '^ *+' conftest.er1 >conftest.err
21096   rm -f conftest.er1
21097   cat conftest.err >&5
21098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } && {
21100          test -z "$ac_c_werror_flag" ||
21101          test ! -s conftest.err
21102        } && test -s conftest.$ac_objext; then
21103   ac_header_compiler=yes
21104 else
21105   $as_echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21107
21108         ac_header_compiler=no
21109 fi
21110
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21113 $as_echo "$ac_header_compiler" >&6; }
21114
21115 # Is the header present?
21116 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21117 $as_echo_n "checking $ac_header presence... " >&6; }
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h.  */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h.  */
21124 #include <$ac_header>
21125 _ACEOF
21126 if { (ac_try="$ac_cpp conftest.$ac_ext"
21127 case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } >/dev/null && {
21140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21141          test ! -s conftest.err
21142        }; then
21143   ac_header_preproc=yes
21144 else
21145   $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148   ac_header_preproc=no
21149 fi
21150
21151 rm -f conftest.err conftest.$ac_ext
21152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21153 $as_echo "$ac_header_preproc" >&6; }
21154
21155 # So?  What about this header?
21156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21157   yes:no: )
21158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21159 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21162     ac_header_preproc=yes
21163     ;;
21164   no:yes:* )
21165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21166 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21168 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21170 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21172 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21174 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21176 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21177
21178     ;;
21179 esac
21180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21181 $as_echo_n "checking for $ac_header... " >&6; }
21182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21183   $as_echo_n "(cached) " >&6
21184 else
21185   eval "$as_ac_Header=\$ac_header_preproc"
21186 fi
21187 ac_res=`eval 'as_val=${'$as_ac_Header'}
21188                  $as_echo "$as_val"'`
21189                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21190 $as_echo "$ac_res" >&6; }
21191
21192 fi
21193 as_val=`eval 'as_val=${'$as_ac_Header'}
21194                  $as_echo "$as_val"'`
21195    if test "x$as_val" = x""yes; then
21196   cat >>confdefs.h <<_ACEOF
21197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21198 _ACEOF
21199
21200 else
21201   { { $as_echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
21202 $as_echo "$as_me: error: cannot find usable Python headers" >&2;}
21203    { (exit 1); exit 1; }; }
21204 fi
21205
21206 done
21207
21208             CPPFLAGS="$python_save_CPPFLAGS"
21209
21210             # Only set this on mingw and cygwin hosts, (only implemented
21211             # for mingw host, for crosscompiling you need to trick this)
21212
21213             PYTHON_LDFLAGS=""
21214             case $host_os in
21215                  *mingw* | *cygwin* )
21216               { $as_echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
21217 $as_echo_n "checking for Python LDFLAGS... " >&6; }
21218
21219             python_cmd='
21220 import distutils.sysconfig
21221 import os
21222 path = distutils.sysconfig.get_config_var("LIBPL")
21223 if path == None:
21224   path = distutils.sysconfig.PREFIX + "/libs"
21225 if os.sep == "\\":
21226   path = path.replace("\\", "/")
21227 print path
21228 '
21229               python_stdlib_path=`$PYTHON -c "$python_cmd"`
21230
21231               python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
21232               libpython_name="python$PYTHON_VERSION"
21233
21234               # Standard install of python for win32 has libpython24.a
21235               # instead of libpython2.4.a so we check for the library
21236               # without the dot in the version number.
21237
21238               python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
21239               if test -n "$python_stdlib_filename" ; then
21240                     libpython_name="python$python_version_nodot"
21241               fi
21242
21243               PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
21244               { $as_echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
21245 $as_echo "$PYTHON_LDFLAGS" >&6; }
21246               # Replace all backslashes in PYTHON Paths with forward slashes
21247               pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
21248               pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
21249               pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
21250               pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
21251               ;;
21252             esac
21253
21254
21255         fi
21256
21257
21258
21259
21260
21261
21262
21263
21264         # Extract the first word of "swig", so it can be a program name with args.
21265 set dummy swig; ac_word=$2
21266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21267 $as_echo_n "checking for $ac_word... " >&6; }
21268 if test "${ac_cv_prog_SWIG+set}" = set; then
21269   $as_echo_n "(cached) " >&6
21270 else
21271   if test -n "$SWIG"; then
21272   ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
21273 else
21274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21275 for as_dir in $PATH
21276 do
21277   IFS=$as_save_IFS
21278   test -z "$as_dir" && as_dir=.
21279   for ac_exec_ext in '' $ac_executable_extensions; do
21280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21281     ac_cv_prog_SWIG="`which swig`"
21282     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21283     break 2
21284   fi
21285 done
21286 done
21287 IFS=$as_save_IFS
21288
21289 fi
21290 fi
21291 SWIG=$ac_cv_prog_SWIG
21292 if test -n "$SWIG"; then
21293   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
21294 $as_echo "$SWIG" >&6; }
21295 else
21296   { $as_echo "$as_me:$LINENO: result: no" >&5
21297 $as_echo "no" >&6; }
21298 fi
21299
21300
21301         if test -z "$SWIG" ; then
21302                 { { $as_echo "$as_me:$LINENO: error: Cannot find 'swig' program.  SWIG version >= 1.3.31 required" >&5
21303 $as_echo "$as_me: error: Cannot find 'swig' program.  SWIG version >= 1.3.31 required" >&2;}
21304    { (exit 1); exit 1; }; }
21305                 SWIG=false
21306         elif test -n "1.3.31" ; then
21307                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
21308 $as_echo_n "checking for SWIG version... " >&6; }
21309                 swig_version=`$SWIG -version 2>&1 | \
21310                         awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
21311                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
21312 $as_echo "$swig_version" >&6; }
21313                 if test -n "$swig_version" ; then
21314                         swig_version=`echo $swig_version | \
21315                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
21316                         swig_required_version=`echo 1.3.31 | \
21317                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
21318                         if test $swig_required_version -gt $swig_version ; then
21319                                 { { $as_echo "$as_me:$LINENO: error: SWIG version >= 1.3.31 required" >&5
21320 $as_echo "$as_me: error: SWIG version >= 1.3.31 required" >&2;}
21321    { (exit 1); exit 1; }; }
21322                         fi
21323                 else
21324                         { { $as_echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
21325 $as_echo "$as_me: error: cannot determine SWIG version" >&2;}
21326    { (exit 1); exit 1; }; }
21327                 fi
21328         fi
21329
21330
21331
21332
21333         if test "$SWIG" != "false" ; then
21334                 SWIG="$SWIG -c++"
21335         fi
21336
21337
21338
21339
21340         if test "$SWIG" != "false" ; then
21341                 SWIG_PYTHON_LIB=-lswigpy
21342
21343                 SWIG_PYTHON_OPT=-python
21344
21345         fi
21346         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
21347
21348
21349
21350
21351 # Extract the first word of "xmlto", so it can be a program name with args.
21352 set dummy xmlto; ac_word=$2
21353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21354 $as_echo_n "checking for $ac_word... " >&6; }
21355 if test "${ac_cv_prog_XMLTO+set}" = set; then
21356   $as_echo_n "(cached) " >&6
21357 else
21358   if test -n "$XMLTO"; then
21359   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
21360 else
21361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21362 for as_dir in $PATH
21363 do
21364   IFS=$as_save_IFS
21365   test -z "$as_dir" && as_dir=.
21366   for ac_exec_ext in '' $ac_executable_extensions; do
21367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21368     ac_cv_prog_XMLTO="yes"
21369     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21370     break 2
21371   fi
21372 done
21373 done
21374 IFS=$as_save_IFS
21375
21376 fi
21377 fi
21378 XMLTO=$ac_cv_prog_XMLTO
21379 if test -n "$XMLTO"; then
21380   { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
21381 $as_echo "$XMLTO" >&6; }
21382 else
21383   { $as_echo "$as_me:$LINENO: result: no" >&5
21384 $as_echo "no" >&6; }
21385 fi
21386
21387
21388  if test x$XMLTO = xyes; then
21389   HAS_XMLTO_TRUE=
21390   HAS_XMLTO_FALSE='#'
21391 else
21392   HAS_XMLTO_TRUE='#'
21393   HAS_XMLTO_FALSE=
21394 fi
21395
21396
21397
21398 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
21399 $as_echo_n "checking for socket in -lsocket... " >&6; }
21400 if test "${ac_cv_lib_socket_socket+set}" = set; then
21401   $as_echo_n "(cached) " >&6
21402 else
21403   ac_check_lib_save_LIBS=$LIBS
21404 LIBS="-lsocket  $LIBS"
21405 cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h.  */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h.  */
21411
21412 /* Override any GCC internal prototype to avoid an error.
21413    Use char because int might match the return type of a GCC
21414    builtin and then its argument prototype would still apply.  */
21415 #ifdef __cplusplus
21416 extern "C"
21417 #endif
21418 char socket ();
21419 int
21420 main ()
21421 {
21422 return socket ();
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 rm -f conftest.$ac_objext conftest$ac_exeext
21428 if { (ac_try="$ac_link"
21429 case "(($ac_try" in
21430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431   *) ac_try_echo=$ac_try;;
21432 esac
21433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21434 $as_echo "$ac_try_echo") >&5
21435   (eval "$ac_link") 2>conftest.er1
21436   ac_status=$?
21437   grep -v '^ *+' conftest.er1 >conftest.err
21438   rm -f conftest.er1
21439   cat conftest.err >&5
21440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } && {
21442          test -z "$ac_c_werror_flag" ||
21443          test ! -s conftest.err
21444        } && test -s conftest$ac_exeext && {
21445          test "$cross_compiling" = yes ||
21446          $as_test_x conftest$ac_exeext
21447        }; then
21448   ac_cv_lib_socket_socket=yes
21449 else
21450   $as_echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453         ac_cv_lib_socket_socket=no
21454 fi
21455
21456 rm -rf conftest.dSYM
21457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21458       conftest$ac_exeext conftest.$ac_ext
21459 LIBS=$ac_check_lib_save_LIBS
21460 fi
21461 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
21462 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21463 if test "x$ac_cv_lib_socket_socket" = x""yes; then
21464   cat >>confdefs.h <<_ACEOF
21465 #define HAVE_LIBSOCKET 1
21466 _ACEOF
21467
21468   LIBS="-lsocket $LIBS"
21469
21470 fi
21471
21472
21473
21474   # Check first for POSIX
21475
21476
21477
21478 ac_ext=c
21479 ac_cpp='$CPP $CPPFLAGS'
21480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21483
21484 acx_pthread_ok=no
21485
21486 # We used to check for pthread.h first, but this fails if pthread.h
21487 # requires special compiler flags (e.g. on True64 or Sequent).
21488 # It gets checked for in the link test anyway.
21489
21490 # First of all, check if the user has set any of the PTHREAD_LIBS,
21491 # etcetera environment variables, and if threads linking works using
21492 # them:
21493 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21494         save_CFLAGS="$CFLAGS"
21495         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21496         save_LIBS="$LIBS"
21497         LIBS="$PTHREAD_LIBS $LIBS"
21498         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21499 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21500         cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h.  */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h.  */
21506
21507 /* Override any GCC internal prototype to avoid an error.
21508    Use char because int might match the return type of a GCC
21509    builtin and then its argument prototype would still apply.  */
21510 #ifdef __cplusplus
21511 extern "C"
21512 #endif
21513 char pthread_join ();
21514 int
21515 main ()
21516 {
21517 return pthread_join ();
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (ac_try="$ac_link"
21524 case "(($ac_try" in
21525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526   *) ac_try_echo=$ac_try;;
21527 esac
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529 $as_echo "$ac_try_echo") >&5
21530   (eval "$ac_link") 2>conftest.er1
21531   ac_status=$?
21532   grep -v '^ *+' conftest.er1 >conftest.err
21533   rm -f conftest.er1
21534   cat conftest.err >&5
21535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); } && {
21537          test -z "$ac_c_werror_flag" ||
21538          test ! -s conftest.err
21539        } && test -s conftest$ac_exeext && {
21540          test "$cross_compiling" = yes ||
21541          $as_test_x conftest$ac_exeext
21542        }; then
21543   acx_pthread_ok=yes
21544 else
21545   $as_echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21547
21548
21549 fi
21550
21551 rm -rf conftest.dSYM
21552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21553       conftest$ac_exeext conftest.$ac_ext
21554         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21555 $as_echo "$acx_pthread_ok" >&6; }
21556         if test x"$acx_pthread_ok" = xno; then
21557                 PTHREAD_LIBS=""
21558                 PTHREAD_CFLAGS=""
21559         fi
21560         LIBS="$save_LIBS"
21561         CFLAGS="$save_CFLAGS"
21562 fi
21563
21564 # We must check for the threads library under a number of different
21565 # names; the ordering is very important because some systems
21566 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21567 # libraries is broken (non-POSIX).
21568
21569 # Create a list of thread flags to try.  Items starting with a "-" are
21570 # C compiler flags, and other items are library names, except for "none"
21571 # which indicates that we try without any flags at all, and "pthread-config"
21572 # which is a program returning the flags for the Pth emulation library.
21573
21574 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21575
21576 # The ordering *is* (sometimes) important.  Some notes on the
21577 # individual items follow:
21578
21579 # pthreads: AIX (must check this before -lpthread)
21580 # none: in case threads are in libc; should be tried before -Kthread and
21581 #       other compiler flags to prevent continual compiler warnings
21582 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21583 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21584 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21585 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21586 # -pthreads: Solaris/gcc
21587 # -mthreads: Mingw32/gcc, Lynx/gcc
21588 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21589 #      doesn't hurt to check since this sometimes defines pthreads too;
21590 #      also defines -D_REENTRANT)
21591 #      ... -mt is also the pthreads flag for HP/aCC
21592 # pthread: Linux, etcetera
21593 # --thread-safe: KAI C++
21594 # pthread-config: use pthread-config program (for GNU Pth library)
21595
21596 case "${host_cpu}-${host_os}" in
21597         *solaris*)
21598
21599         # On Solaris (at least, for some versions), libc contains stubbed
21600         # (non-functional) versions of the pthreads routines, so link-based
21601         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
21602         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21603         # a function called by this macro, so we could check for that, but
21604         # who knows whether they'll stub that too in a future libc.)  So,
21605         # we'll just look for -pthreads and -lpthread first:
21606
21607         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
21608         ;;
21609 esac
21610
21611 if test x"$acx_pthread_ok" = xno; then
21612 for flag in $acx_pthread_flags; do
21613
21614         case $flag in
21615                 none)
21616                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21617 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
21618                 ;;
21619
21620                 -*)
21621                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21622 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
21623                 PTHREAD_CFLAGS="$flag"
21624                 ;;
21625
21626                 pthread-config)
21627                 # Extract the first word of "pthread-config", so it can be a program name with args.
21628 set dummy pthread-config; ac_word=$2
21629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21630 $as_echo_n "checking for $ac_word... " >&6; }
21631 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21632   $as_echo_n "(cached) " >&6
21633 else
21634   if test -n "$acx_pthread_config"; then
21635   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21636 else
21637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21638 for as_dir in $PATH
21639 do
21640   IFS=$as_save_IFS
21641   test -z "$as_dir" && as_dir=.
21642   for ac_exec_ext in '' $ac_executable_extensions; do
21643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21644     ac_cv_prog_acx_pthread_config="yes"
21645     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21646     break 2
21647   fi
21648 done
21649 done
21650 IFS=$as_save_IFS
21651
21652   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21653 fi
21654 fi
21655 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21656 if test -n "$acx_pthread_config"; then
21657   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21658 $as_echo "$acx_pthread_config" >&6; }
21659 else
21660   { $as_echo "$as_me:$LINENO: result: no" >&5
21661 $as_echo "no" >&6; }
21662 fi
21663
21664
21665                 if test x"$acx_pthread_config" = xno; then continue; fi
21666                 PTHREAD_CFLAGS="`pthread-config --cflags`"
21667                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21668                 ;;
21669
21670                 *)
21671                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21672 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21673                 PTHREAD_LIBS="-l$flag"
21674                 ;;
21675         esac
21676
21677         save_LIBS="$LIBS"
21678         save_CFLAGS="$CFLAGS"
21679         LIBS="$PTHREAD_LIBS $LIBS"
21680         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21681
21682         # Check for various functions.  We must include pthread.h,
21683         # since some functions may be macros.  (On the Sequent, we
21684         # need a special flag -Kthread to make this header compile.)
21685         # We check for pthread_join because it is in -lpthread on IRIX
21686         # while pthread_create is in libc.  We check for pthread_attr_init
21687         # due to DEC craziness with -lpthreads.  We check for
21688         # pthread_cleanup_push because it is one of the few pthread
21689         # functions on Solaris that doesn't have a non-functional libc stub.
21690         # We try pthread_create on general principles.
21691         cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697 #include <pthread.h>
21698 int
21699 main ()
21700 {
21701 pthread_t th; pthread_join(th, 0);
21702                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
21703                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21704   ;
21705   return 0;
21706 }
21707 _ACEOF
21708 rm -f conftest.$ac_objext conftest$ac_exeext
21709 if { (ac_try="$ac_link"
21710 case "(($ac_try" in
21711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712   *) ac_try_echo=$ac_try;;
21713 esac
21714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21715 $as_echo "$ac_try_echo") >&5
21716   (eval "$ac_link") 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } && {
21723          test -z "$ac_c_werror_flag" ||
21724          test ! -s conftest.err
21725        } && test -s conftest$ac_exeext && {
21726          test "$cross_compiling" = yes ||
21727          $as_test_x conftest$ac_exeext
21728        }; then
21729   acx_pthread_ok=yes
21730 else
21731   $as_echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734
21735 fi
21736
21737 rm -rf conftest.dSYM
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739       conftest$ac_exeext conftest.$ac_ext
21740
21741         LIBS="$save_LIBS"
21742         CFLAGS="$save_CFLAGS"
21743
21744         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21745 $as_echo "$acx_pthread_ok" >&6; }
21746         if test "x$acx_pthread_ok" = xyes; then
21747                 break;
21748         fi
21749
21750         PTHREAD_LIBS=""
21751         PTHREAD_CFLAGS=""
21752 done
21753 fi
21754
21755 # Various other checks:
21756 if test "x$acx_pthread_ok" = xyes; then
21757         save_LIBS="$LIBS"
21758         LIBS="$PTHREAD_LIBS $LIBS"
21759         save_CFLAGS="$CFLAGS"
21760         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21761
21762         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21763         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21764 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21765         attr_name=unknown
21766         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21767             cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773 #include <pthread.h>
21774 int
21775 main ()
21776 {
21777 int attr=$attr; return attr;
21778   ;
21779   return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest.$ac_objext conftest$ac_exeext
21783 if { (ac_try="$ac_link"
21784 case "(($ac_try" in
21785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786   *) ac_try_echo=$ac_try;;
21787 esac
21788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21789 $as_echo "$ac_try_echo") >&5
21790   (eval "$ac_link") 2>conftest.er1
21791   ac_status=$?
21792   grep -v '^ *+' conftest.er1 >conftest.err
21793   rm -f conftest.er1
21794   cat conftest.err >&5
21795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796   (exit $ac_status); } && {
21797          test -z "$ac_c_werror_flag" ||
21798          test ! -s conftest.err
21799        } && test -s conftest$ac_exeext && {
21800          test "$cross_compiling" = yes ||
21801          $as_test_x conftest$ac_exeext
21802        }; then
21803   attr_name=$attr; break
21804 else
21805   $as_echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808
21809 fi
21810
21811 rm -rf conftest.dSYM
21812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21813       conftest$ac_exeext conftest.$ac_ext
21814         done
21815         { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
21816 $as_echo "$attr_name" >&6; }
21817         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
21818
21819 cat >>confdefs.h <<_ACEOF
21820 #define PTHREAD_CREATE_JOINABLE $attr_name
21821 _ACEOF
21822
21823         fi
21824
21825         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21826 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21827         flag=no
21828         case "${host_cpu}-${host_os}" in
21829             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21830             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21831         esac
21832         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21833 $as_echo "${flag}" >&6; }
21834         if test "x$flag" != xno; then
21835             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21836         fi
21837
21838         LIBS="$save_LIBS"
21839         CFLAGS="$save_CFLAGS"
21840
21841         # More AIX lossage: must compile with xlc_r or cc_r
21842         if test x"$GCC" != xyes; then
21843           for ac_prog in xlc_r cc_r
21844 do
21845   # Extract the first word of "$ac_prog", so it can be a program name with args.
21846 set dummy $ac_prog; ac_word=$2
21847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21848 $as_echo_n "checking for $ac_word... " >&6; }
21849 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21850   $as_echo_n "(cached) " >&6
21851 else
21852   if test -n "$PTHREAD_CC"; then
21853   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21854 else
21855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21856 for as_dir in $PATH
21857 do
21858   IFS=$as_save_IFS
21859   test -z "$as_dir" && as_dir=.
21860   for ac_exec_ext in '' $ac_executable_extensions; do
21861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21862     ac_cv_prog_PTHREAD_CC="$ac_prog"
21863     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21864     break 2
21865   fi
21866 done
21867 done
21868 IFS=$as_save_IFS
21869
21870 fi
21871 fi
21872 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21873 if test -n "$PTHREAD_CC"; then
21874   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21875 $as_echo "$PTHREAD_CC" >&6; }
21876 else
21877   { $as_echo "$as_me:$LINENO: result: no" >&5
21878 $as_echo "no" >&6; }
21879 fi
21880
21881
21882   test -n "$PTHREAD_CC" && break
21883 done
21884 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
21885
21886         else
21887           PTHREAD_CC=$CC
21888         fi
21889 else
21890         PTHREAD_CC="$CC"
21891 fi
21892
21893
21894
21895
21896
21897 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21898 if test x"$acx_pthread_ok" = xyes; then
21899
21900 cat >>confdefs.h <<\_ACEOF
21901 #define HAVE_PTHREAD 1
21902 _ACEOF
21903
21904     ot_posix="yes"
21905     DEFINES="$DEFINES -DOMNITHREAD_POSIX=1"
21906
21907         :
21908 else
21909         acx_pthread_ok=no
21910
21911     # If no POSIX support found, then check for NT threads
21912     { $as_echo "$as_me:$LINENO: checking for NT threads" >&5
21913 $as_echo_n "checking for NT threads... " >&6; }
21914
21915     cat >conftest.$ac_ext <<_ACEOF
21916
21917         #include <windows.h>
21918         #include <winbase.h>
21919         int main() { InitializeCriticalSection(NULL); return 0; }
21920
21921 _ACEOF
21922 rm -f conftest.$ac_objext conftest$ac_exeext
21923 if { (ac_try="$ac_link"
21924 case "(($ac_try" in
21925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926   *) ac_try_echo=$ac_try;;
21927 esac
21928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21929 $as_echo "$ac_try_echo") >&5
21930   (eval "$ac_link") 2>conftest.er1
21931   ac_status=$?
21932   grep -v '^ *+' conftest.er1 >conftest.err
21933   rm -f conftest.er1
21934   cat conftest.err >&5
21935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); } && {
21937          test -z "$ac_c_werror_flag" ||
21938          test ! -s conftest.err
21939        } && test -s conftest$ac_exeext && {
21940          test "$cross_compiling" = yes ||
21941          $as_test_x conftest$ac_exeext
21942        }; then
21943
21944         ot_nt="yes"
21945         DEFINES="$DEFINES -DOMNITHREAD_NT=1"
21946
21947 else
21948   $as_echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21953 { { $as_echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads.  pthreads not found.
21954 See \`config.log' for more details." >&5
21955 $as_echo "$as_me: error: GNU Radio requires POSIX threads.  pthreads not found.
21956 See \`config.log' for more details." >&2;}
21957    { (exit 1); exit 1; }; }; }
21958
21959 fi
21960
21961 rm -rf conftest.dSYM
21962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21963       conftest$ac_exeext conftest.$ac_ext
21964     { $as_echo "$as_me:$LINENO: result: yes" >&5
21965 $as_echo "yes" >&6; }
21966
21967 fi
21968 ac_ext=c
21969 ac_cpp='$CPP $CPPFLAGS'
21970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21973
21974
21975    if test "x$ot_posix" = xyes; then
21976   OMNITHREAD_POSIX_TRUE=
21977   OMNITHREAD_POSIX_FALSE='#'
21978 else
21979   OMNITHREAD_POSIX_TRUE='#'
21980   OMNITHREAD_POSIX_FALSE=
21981 fi
21982
21983    if test "x$ot_nt" = xyes; then
21984   OMNITHREAD_NT_TRUE=
21985   OMNITHREAD_NT_FALSE='#'
21986 else
21987   OMNITHREAD_NT_TRUE='#'
21988   OMNITHREAD_NT_FALSE=
21989 fi
21990
21991
21992   save_LIBS="$LIBS"
21993   { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
21994 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21995 if test "${ac_cv_search_clock_gettime+set}" = set; then
21996   $as_echo_n "(cached) " >&6
21997 else
21998   ac_func_search_save_LIBS=$LIBS
21999 cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005
22006 /* Override any GCC internal prototype to avoid an error.
22007    Use char because int might match the return type of a GCC
22008    builtin and then its argument prototype would still apply.  */
22009 #ifdef __cplusplus
22010 extern "C"
22011 #endif
22012 char clock_gettime ();
22013 int
22014 main ()
22015 {
22016 return clock_gettime ();
22017   ;
22018   return 0;
22019 }
22020 _ACEOF
22021 for ac_lib in '' rt; do
22022   if test -z "$ac_lib"; then
22023     ac_res="none required"
22024   else
22025     ac_res=-l$ac_lib
22026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22027   fi
22028   rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032   *) ac_try_echo=$ac_try;;
22033 esac
22034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22035 $as_echo "$ac_try_echo") >&5
22036   (eval "$ac_link") 2>conftest.er1
22037   ac_status=$?
22038   grep -v '^ *+' conftest.er1 >conftest.err
22039   rm -f conftest.er1
22040   cat conftest.err >&5
22041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } && {
22043          test -z "$ac_c_werror_flag" ||
22044          test ! -s conftest.err
22045        } && test -s conftest$ac_exeext && {
22046          test "$cross_compiling" = yes ||
22047          $as_test_x conftest$ac_exeext
22048        }; then
22049   ac_cv_search_clock_gettime=$ac_res
22050 else
22051   $as_echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054
22055 fi
22056
22057 rm -rf conftest.dSYM
22058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059       conftest$ac_exeext
22060   if test "${ac_cv_search_clock_gettime+set}" = set; then
22061   break
22062 fi
22063 done
22064 if test "${ac_cv_search_clock_gettime+set}" = set; then
22065   :
22066 else
22067   ac_cv_search_clock_gettime=no
22068 fi
22069 rm conftest.$ac_ext
22070 LIBS=$ac_func_search_save_LIBS
22071 fi
22072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
22073 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22074 ac_res=$ac_cv_search_clock_gettime
22075 if test "$ac_res" != no; then
22076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22077   PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
22078 fi
22079
22080
22081
22082
22083 for ac_func in clock_gettime gettimeofday nanosleep
22084 do
22085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22087 $as_echo_n "checking for $ac_func... " >&6; }
22088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22089   $as_echo_n "(cached) " >&6
22090 else
22091   cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h.  */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h.  */
22097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22099 #define $ac_func innocuous_$ac_func
22100
22101 /* System header to define __stub macros and hopefully few prototypes,
22102     which can conflict with char $ac_func (); below.
22103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22104     <limits.h> exists even on freestanding compilers.  */
22105
22106 #ifdef __STDC__
22107 # include <limits.h>
22108 #else
22109 # include <assert.h>
22110 #endif
22111
22112 #undef $ac_func
22113
22114 /* Override any GCC internal prototype to avoid an error.
22115    Use char because int might match the return type of a GCC
22116    builtin and then its argument prototype would still apply.  */
22117 #ifdef __cplusplus
22118 extern "C"
22119 #endif
22120 char $ac_func ();
22121 /* The GNU C library defines this for functions which it implements
22122     to always fail with ENOSYS.  Some functions are actually named
22123     something starting with __ and the normal name is an alias.  */
22124 #if defined __stub_$ac_func || defined __stub___$ac_func
22125 choke me
22126 #endif
22127
22128 int
22129 main ()
22130 {
22131 return $ac_func ();
22132   ;
22133   return 0;
22134 }
22135 _ACEOF
22136 rm -f conftest.$ac_objext conftest$ac_exeext
22137 if { (ac_try="$ac_link"
22138 case "(($ac_try" in
22139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22140   *) ac_try_echo=$ac_try;;
22141 esac
22142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22143 $as_echo "$ac_try_echo") >&5
22144   (eval "$ac_link") 2>conftest.er1
22145   ac_status=$?
22146   grep -v '^ *+' conftest.er1 >conftest.err
22147   rm -f conftest.er1
22148   cat conftest.err >&5
22149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); } && {
22151          test -z "$ac_c_werror_flag" ||
22152          test ! -s conftest.err
22153        } && test -s conftest$ac_exeext && {
22154          test "$cross_compiling" = yes ||
22155          $as_test_x conftest$ac_exeext
22156        }; then
22157   eval "$as_ac_var=yes"
22158 else
22159   $as_echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162         eval "$as_ac_var=no"
22163 fi
22164
22165 rm -rf conftest.dSYM
22166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22167       conftest$ac_exeext conftest.$ac_ext
22168 fi
22169 ac_res=`eval 'as_val=${'$as_ac_var'}
22170                  $as_echo "$as_val"'`
22171                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22172 $as_echo "$ac_res" >&6; }
22173 as_val=`eval 'as_val=${'$as_ac_var'}
22174                  $as_echo "$as_val"'`
22175    if test "x$as_val" = x""yes; then
22176   cat >>confdefs.h <<_ACEOF
22177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22178 _ACEOF
22179
22180 fi
22181 done
22182
22183   LIBS="$save_LIBS"
22184
22185
22186 if test x$CXX_FOR_BUILD = x
22187 then
22188   if test x$cross_compiling = xno; then
22189     CXX_FOR_BUILD=${CXX}
22190   else
22191     CXX_FOR_BUILD=g++
22192   fi
22193 fi
22194
22195
22196
22197
22198         ac_ext=c
22199 ac_cpp='$CPP $CPPFLAGS'
22200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22203
22204
22205
22206
22207 for ac_header in sys/ipc.h sys/shm.h
22208 do
22209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22211   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22212 $as_echo_n "checking for $ac_header... " >&6; }
22213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22214   $as_echo_n "(cached) " >&6
22215 fi
22216 ac_res=`eval 'as_val=${'$as_ac_Header'}
22217                  $as_echo "$as_val"'`
22218                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22219 $as_echo "$ac_res" >&6; }
22220 else
22221   # Is the header compilable?
22222 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22223 $as_echo_n "checking $ac_header usability... " >&6; }
22224 cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230 $ac_includes_default
22231 #include <$ac_header>
22232 _ACEOF
22233 rm -f conftest.$ac_objext
22234 if { (ac_try="$ac_compile"
22235 case "(($ac_try" in
22236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237   *) ac_try_echo=$ac_try;;
22238 esac
22239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22240 $as_echo "$ac_try_echo") >&5
22241   (eval "$ac_compile") 2>conftest.er1
22242   ac_status=$?
22243   grep -v '^ *+' conftest.er1 >conftest.err
22244   rm -f conftest.er1
22245   cat conftest.err >&5
22246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); } && {
22248          test -z "$ac_c_werror_flag" ||
22249          test ! -s conftest.err
22250        } && test -s conftest.$ac_objext; then
22251   ac_header_compiler=yes
22252 else
22253   $as_echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22255
22256         ac_header_compiler=no
22257 fi
22258
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22261 $as_echo "$ac_header_compiler" >&6; }
22262
22263 # Is the header present?
22264 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22265 $as_echo_n "checking $ac_header presence... " >&6; }
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272 #include <$ac_header>
22273 _ACEOF
22274 if { (ac_try="$ac_cpp conftest.$ac_ext"
22275 case "(($ac_try" in
22276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277   *) ac_try_echo=$ac_try;;
22278 esac
22279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22280 $as_echo "$ac_try_echo") >&5
22281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22282   ac_status=$?
22283   grep -v '^ *+' conftest.er1 >conftest.err
22284   rm -f conftest.er1
22285   cat conftest.err >&5
22286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); } >/dev/null && {
22288          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22289          test ! -s conftest.err
22290        }; then
22291   ac_header_preproc=yes
22292 else
22293   $as_echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296   ac_header_preproc=no
22297 fi
22298
22299 rm -f conftest.err conftest.$ac_ext
22300 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22301 $as_echo "$ac_header_preproc" >&6; }
22302
22303 # So?  What about this header?
22304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22305   yes:no: )
22306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22307 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22310     ac_header_preproc=yes
22311     ;;
22312   no:yes:* )
22313     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22314 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22315     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22316 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22318 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22320 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22324 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22325
22326     ;;
22327 esac
22328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22329 $as_echo_n "checking for $ac_header... " >&6; }
22330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22331   $as_echo_n "(cached) " >&6
22332 else
22333   eval "$as_ac_Header=\$ac_header_preproc"
22334 fi
22335 ac_res=`eval 'as_val=${'$as_ac_Header'}
22336                  $as_echo "$as_val"'`
22337                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22338 $as_echo "$ac_res" >&6; }
22339
22340 fi
22341 as_val=`eval 'as_val=${'$as_ac_Header'}
22342                  $as_echo "$as_val"'`
22343    if test "x$as_val" = x""yes; then
22344   cat >>confdefs.h <<_ACEOF
22345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22346 _ACEOF
22347
22348 fi
22349
22350 done
22351
22352
22353         save_LIBS="$LIBS"
22354         { $as_echo "$as_me:$LINENO: checking for library containing shmat" >&5
22355 $as_echo_n "checking for library containing shmat... " >&6; }
22356 if test "${ac_cv_search_shmat+set}" = set; then
22357   $as_echo_n "(cached) " >&6
22358 else
22359   ac_func_search_save_LIBS=$LIBS
22360 cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h.  */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h.  */
22366
22367 /* Override any GCC internal prototype to avoid an error.
22368    Use char because int might match the return type of a GCC
22369    builtin and then its argument prototype would still apply.  */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char shmat ();
22374 int
22375 main ()
22376 {
22377 return shmat ();
22378   ;
22379   return 0;
22380 }
22381 _ACEOF
22382 for ac_lib in '' cygipc ipc; do
22383   if test -z "$ac_lib"; then
22384     ac_res="none required"
22385   else
22386     ac_res=-l$ac_lib
22387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22388   fi
22389   rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393   *) ac_try_echo=$ac_try;;
22394 esac
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397   (eval "$ac_link") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && {
22404          test -z "$ac_c_werror_flag" ||
22405          test ! -s conftest.err
22406        } && test -s conftest$ac_exeext && {
22407          test "$cross_compiling" = yes ||
22408          $as_test_x conftest$ac_exeext
22409        }; then
22410   ac_cv_search_shmat=$ac_res
22411 else
22412   $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415
22416 fi
22417
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420       conftest$ac_exeext
22421   if test "${ac_cv_search_shmat+set}" = set; then
22422   break
22423 fi
22424 done
22425 if test "${ac_cv_search_shmat+set}" = set; then
22426   :
22427 else
22428   ac_cv_search_shmat=no
22429 fi
22430 rm conftest.$ac_ext
22431 LIBS=$ac_func_search_save_LIBS
22432 fi
22433 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
22434 $as_echo "$ac_cv_search_shmat" >&6; }
22435 ac_res=$ac_cv_search_shmat
22436 if test "$ac_res" != no; then
22437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22438    IPC_LIBS="$LIBS"
22439 else
22440    { $as_echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
22441 $as_echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
22442
22443 fi
22444
22445         LIBS="$save_LIBS"
22446
22447         ac_ext=c
22448 ac_cpp='$CPP $CPPFLAGS'
22449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22452
22453
22454
22455
22456 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22457 $as_echo_n "checking for ANSI C header files... " >&6; }
22458 if test "${ac_cv_header_stdc+set}" = set; then
22459   $as_echo_n "(cached) " >&6
22460 else
22461   cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include <stdlib.h>
22468 #include <stdarg.h>
22469 #include <string.h>
22470 #include <float.h>
22471
22472 int
22473 main ()
22474 {
22475
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext
22481 if { (ac_try="$ac_compile"
22482 case "(($ac_try" in
22483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484   *) ac_try_echo=$ac_try;;
22485 esac
22486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22487 $as_echo "$ac_try_echo") >&5
22488   (eval "$ac_compile") 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } && {
22495          test -z "$ac_c_werror_flag" ||
22496          test ! -s conftest.err
22497        } && test -s conftest.$ac_objext; then
22498   ac_cv_header_stdc=yes
22499 else
22500   $as_echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503         ac_cv_header_stdc=no
22504 fi
22505
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507
22508 if test $ac_cv_header_stdc = yes; then
22509   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22510   cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h.  */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h.  */
22516 #include <string.h>
22517
22518 _ACEOF
22519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22520   $EGREP "memchr" >/dev/null 2>&1; then
22521   :
22522 else
22523   ac_cv_header_stdc=no
22524 fi
22525 rm -f conftest*
22526
22527 fi
22528
22529 if test $ac_cv_header_stdc = yes; then
22530   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22531   cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h.  */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h.  */
22537 #include <stdlib.h>
22538
22539 _ACEOF
22540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22541   $EGREP "free" >/dev/null 2>&1; then
22542   :
22543 else
22544   ac_cv_header_stdc=no
22545 fi
22546 rm -f conftest*
22547
22548 fi
22549
22550 if test $ac_cv_header_stdc = yes; then
22551   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22552   if test "$cross_compiling" = yes; then
22553   :
22554 else
22555   cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h.  */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h.  */
22561 #include <ctype.h>
22562 #include <stdlib.h>
22563 #if ((' ' & 0x0FF) == 0x020)
22564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22566 #else
22567 # define ISLOWER(c) \
22568                    (('a' <= (c) && (c) <= 'i') \
22569                      || ('j' <= (c) && (c) <= 'r') \
22570                      || ('s' <= (c) && (c) <= 'z'))
22571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22572 #endif
22573
22574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22575 int
22576 main ()
22577 {
22578   int i;
22579   for (i = 0; i < 256; i++)
22580     if (XOR (islower (i), ISLOWER (i))
22581         || toupper (i) != TOUPPER (i))
22582       return 2;
22583   return 0;
22584 }
22585 _ACEOF
22586 rm -f conftest$ac_exeext
22587 if { (ac_try="$ac_link"
22588 case "(($ac_try" in
22589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590   *) ac_try_echo=$ac_try;;
22591 esac
22592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22593 $as_echo "$ac_try_echo") >&5
22594   (eval "$ac_link") 2>&5
22595   ac_status=$?
22596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22598   { (case "(($ac_try" in
22599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600   *) ac_try_echo=$ac_try;;
22601 esac
22602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22603 $as_echo "$ac_try_echo") >&5
22604   (eval "$ac_try") 2>&5
22605   ac_status=$?
22606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); }; }; then
22608   :
22609 else
22610   $as_echo "$as_me: program exited with status $ac_status" >&5
22611 $as_echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ( exit $ac_status )
22615 ac_cv_header_stdc=no
22616 fi
22617 rm -rf conftest.dSYM
22618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22619 fi
22620
22621
22622 fi
22623 fi
22624 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22625 $as_echo "$ac_cv_header_stdc" >&6; }
22626 if test $ac_cv_header_stdc = yes; then
22627
22628 cat >>confdefs.h <<\_ACEOF
22629 #define STDC_HEADERS 1
22630 _ACEOF
22631
22632 fi
22633
22634 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22635 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
22636 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22637   $as_echo_n "(cached) " >&6
22638 else
22639   cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645 #include <sys/types.h>
22646 #include <sys/wait.h>
22647 #ifndef WEXITSTATUS
22648 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22649 #endif
22650 #ifndef WIFEXITED
22651 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22652 #endif
22653
22654 int
22655 main ()
22656 {
22657   int s;
22658   wait (&s);
22659   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22660   ;
22661   return 0;
22662 }
22663 _ACEOF
22664 rm -f conftest.$ac_objext
22665 if { (ac_try="$ac_compile"
22666 case "(($ac_try" in
22667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668   *) ac_try_echo=$ac_try;;
22669 esac
22670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22671 $as_echo "$ac_try_echo") >&5
22672   (eval "$ac_compile") 2>conftest.er1
22673   ac_status=$?
22674   grep -v '^ *+' conftest.er1 >conftest.err
22675   rm -f conftest.er1
22676   cat conftest.err >&5
22677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); } && {
22679          test -z "$ac_c_werror_flag" ||
22680          test ! -s conftest.err
22681        } && test -s conftest.$ac_objext; then
22682   ac_cv_header_sys_wait_h=yes
22683 else
22684   $as_echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22686
22687         ac_cv_header_sys_wait_h=no
22688 fi
22689
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 fi
22692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22693 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
22694 if test $ac_cv_header_sys_wait_h = yes; then
22695
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_SYS_WAIT_H 1
22698 _ACEOF
22699
22700 fi
22701
22702
22703
22704
22705
22706
22707
22708
22709 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
22710 do
22711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22714 $as_echo_n "checking for $ac_header... " >&6; }
22715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22716   $as_echo_n "(cached) " >&6
22717 fi
22718 ac_res=`eval 'as_val=${'$as_ac_Header'}
22719                  $as_echo "$as_val"'`
22720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22721 $as_echo "$ac_res" >&6; }
22722 else
22723   # Is the header compilable?
22724 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22725 $as_echo_n "checking $ac_header usability... " >&6; }
22726 cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h.  */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h.  */
22732 $ac_includes_default
22733 #include <$ac_header>
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739   *) ac_try_echo=$ac_try;;
22740 esac
22741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22742 $as_echo "$ac_try_echo") >&5
22743   (eval "$ac_compile") 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } && {
22750          test -z "$ac_c_werror_flag" ||
22751          test ! -s conftest.err
22752        } && test -s conftest.$ac_objext; then
22753   ac_header_compiler=yes
22754 else
22755   $as_echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22757
22758         ac_header_compiler=no
22759 fi
22760
22761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22763 $as_echo "$ac_header_compiler" >&6; }
22764
22765 # Is the header present?
22766 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22767 $as_echo_n "checking $ac_header presence... " >&6; }
22768 cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 #include <$ac_header>
22775 _ACEOF
22776 if { (ac_try="$ac_cpp conftest.$ac_ext"
22777 case "(($ac_try" in
22778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779   *) ac_try_echo=$ac_try;;
22780 esac
22781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22782 $as_echo "$ac_try_echo") >&5
22783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22784   ac_status=$?
22785   grep -v '^ *+' conftest.er1 >conftest.err
22786   rm -f conftest.er1
22787   cat conftest.err >&5
22788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } >/dev/null && {
22790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22791          test ! -s conftest.err
22792        }; then
22793   ac_header_preproc=yes
22794 else
22795   $as_echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798   ac_header_preproc=no
22799 fi
22800
22801 rm -f conftest.err conftest.$ac_ext
22802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22803 $as_echo "$ac_header_preproc" >&6; }
22804
22805 # So?  What about this header?
22806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22807   yes:no: )
22808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22809 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22812     ac_header_preproc=yes
22813     ;;
22814   no:yes:* )
22815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22816 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22818 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22820 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22822 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22826 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22827
22828     ;;
22829 esac
22830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22831 $as_echo_n "checking for $ac_header... " >&6; }
22832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22833   $as_echo_n "(cached) " >&6
22834 else
22835   eval "$as_ac_Header=\$ac_header_preproc"
22836 fi
22837 ac_res=`eval 'as_val=${'$as_ac_Header'}
22838                  $as_echo "$as_val"'`
22839                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22840 $as_echo "$ac_res" >&6; }
22841
22842 fi
22843 as_val=`eval 'as_val=${'$as_ac_Header'}
22844                  $as_echo "$as_val"'`
22845    if test "x$as_val" = x""yes; then
22846   cat >>confdefs.h <<_ACEOF
22847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22848 _ACEOF
22849
22850 fi
22851
22852 done
22853
22854
22855
22856
22857
22858
22859 for ac_header in linux/ppdev.h dev/ppbus/ppi.h sys/mman.h sys/select.h sys/types.h
22860 do
22861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22863   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22864 $as_echo_n "checking for $ac_header... " >&6; }
22865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22866   $as_echo_n "(cached) " >&6
22867 fi
22868 ac_res=`eval 'as_val=${'$as_ac_Header'}
22869                  $as_echo "$as_val"'`
22870                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22871 $as_echo "$ac_res" >&6; }
22872 else
22873   # Is the header compilable?
22874 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22875 $as_echo_n "checking $ac_header usability... " >&6; }
22876 cat >conftest.$ac_ext <<_ACEOF
22877 /* confdefs.h.  */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h.  */
22882 $ac_includes_default
22883 #include <$ac_header>
22884 _ACEOF
22885 rm -f conftest.$ac_objext
22886 if { (ac_try="$ac_compile"
22887 case "(($ac_try" in
22888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889   *) ac_try_echo=$ac_try;;
22890 esac
22891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22892 $as_echo "$ac_try_echo") >&5
22893   (eval "$ac_compile") 2>conftest.er1
22894   ac_status=$?
22895   grep -v '^ *+' conftest.er1 >conftest.err
22896   rm -f conftest.er1
22897   cat conftest.err >&5
22898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); } && {
22900          test -z "$ac_c_werror_flag" ||
22901          test ! -s conftest.err
22902        } && test -s conftest.$ac_objext; then
22903   ac_header_compiler=yes
22904 else
22905   $as_echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22907
22908         ac_header_compiler=no
22909 fi
22910
22911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22912 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22913 $as_echo "$ac_header_compiler" >&6; }
22914
22915 # Is the header present?
22916 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22917 $as_echo_n "checking $ac_header presence... " >&6; }
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h.  */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h.  */
22924 #include <$ac_header>
22925 _ACEOF
22926 if { (ac_try="$ac_cpp conftest.$ac_ext"
22927 case "(($ac_try" in
22928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929   *) ac_try_echo=$ac_try;;
22930 esac
22931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22932 $as_echo "$ac_try_echo") >&5
22933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22934   ac_status=$?
22935   grep -v '^ *+' conftest.er1 >conftest.err
22936   rm -f conftest.er1
22937   cat conftest.err >&5
22938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); } >/dev/null && {
22940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22941          test ! -s conftest.err
22942        }; then
22943   ac_header_preproc=yes
22944 else
22945   $as_echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948   ac_header_preproc=no
22949 fi
22950
22951 rm -f conftest.err conftest.$ac_ext
22952 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22953 $as_echo "$ac_header_preproc" >&6; }
22954
22955 # So?  What about this header?
22956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22957   yes:no: )
22958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22959 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22961 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22962     ac_header_preproc=yes
22963     ;;
22964   no:yes:* )
22965     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22966 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22967     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22968 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22970 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22971     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22972 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22973     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22974 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22975     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22976 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22977
22978     ;;
22979 esac
22980 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22981 $as_echo_n "checking for $ac_header... " >&6; }
22982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22983   $as_echo_n "(cached) " >&6
22984 else
22985   eval "$as_ac_Header=\$ac_header_preproc"
22986 fi
22987 ac_res=`eval 'as_val=${'$as_ac_Header'}
22988                  $as_echo "$as_val"'`
22989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22990 $as_echo "$ac_res" >&6; }
22991
22992 fi
22993 as_val=`eval 'as_val=${'$as_ac_Header'}
22994                  $as_echo "$as_val"'`
22995    if test "x$as_val" = x""yes; then
22996   cat >>confdefs.h <<_ACEOF
22997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22998 _ACEOF
22999
23000 fi
23001
23002 done
23003
23004
23005
23006
23007
23008
23009
23010 for ac_header in sys/resource.h stdint.h sched.h signal.h sys/syscall.h malloc.h
23011 do
23012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23014   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23015 $as_echo_n "checking for $ac_header... " >&6; }
23016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23017   $as_echo_n "(cached) " >&6
23018 fi
23019 ac_res=`eval 'as_val=${'$as_ac_Header'}
23020                  $as_echo "$as_val"'`
23021                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23022 $as_echo "$ac_res" >&6; }
23023 else
23024   # Is the header compilable?
23025 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23026 $as_echo_n "checking $ac_header usability... " >&6; }
23027 cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h.  */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h.  */
23033 $ac_includes_default
23034 #include <$ac_header>
23035 _ACEOF
23036 rm -f conftest.$ac_objext
23037 if { (ac_try="$ac_compile"
23038 case "(($ac_try" in
23039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040   *) ac_try_echo=$ac_try;;
23041 esac
23042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23043 $as_echo "$ac_try_echo") >&5
23044   (eval "$ac_compile") 2>conftest.er1
23045   ac_status=$?
23046   grep -v '^ *+' conftest.er1 >conftest.err
23047   rm -f conftest.er1
23048   cat conftest.err >&5
23049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); } && {
23051          test -z "$ac_c_werror_flag" ||
23052          test ! -s conftest.err
23053        } && test -s conftest.$ac_objext; then
23054   ac_header_compiler=yes
23055 else
23056   $as_echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23058
23059         ac_header_compiler=no
23060 fi
23061
23062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23064 $as_echo "$ac_header_compiler" >&6; }
23065
23066 # Is the header present?
23067 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23068 $as_echo_n "checking $ac_header presence... " >&6; }
23069 cat >conftest.$ac_ext <<_ACEOF
23070 /* confdefs.h.  */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h.  */
23075 #include <$ac_header>
23076 _ACEOF
23077 if { (ac_try="$ac_cpp conftest.$ac_ext"
23078 case "(($ac_try" in
23079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080   *) ac_try_echo=$ac_try;;
23081 esac
23082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23083 $as_echo "$ac_try_echo") >&5
23084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23085   ac_status=$?
23086   grep -v '^ *+' conftest.er1 >conftest.err
23087   rm -f conftest.er1
23088   cat conftest.err >&5
23089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); } >/dev/null && {
23091          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23092          test ! -s conftest.err
23093        }; then
23094   ac_header_preproc=yes
23095 else
23096   $as_echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23098
23099   ac_header_preproc=no
23100 fi
23101
23102 rm -f conftest.err conftest.$ac_ext
23103 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23104 $as_echo "$ac_header_preproc" >&6; }
23105
23106 # So?  What about this header?
23107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23108   yes:no: )
23109     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23110 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23111     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23113     ac_header_preproc=yes
23114     ;;
23115   no:yes:* )
23116     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23117 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23119 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23123 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23127 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23128
23129     ;;
23130 esac
23131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23132 $as_echo_n "checking for $ac_header... " >&6; }
23133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23134   $as_echo_n "(cached) " >&6
23135 else
23136   eval "$as_ac_Header=\$ac_header_preproc"
23137 fi
23138 ac_res=`eval 'as_val=${'$as_ac_Header'}
23139                  $as_echo "$as_val"'`
23140                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23141 $as_echo "$ac_res" >&6; }
23142
23143 fi
23144 as_val=`eval 'as_val=${'$as_ac_Header'}
23145                  $as_echo "$as_val"'`
23146    if test "x$as_val" = x""yes; then
23147   cat >>confdefs.h <<_ACEOF
23148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23149 _ACEOF
23150
23151 fi
23152
23153 done
23154
23155
23156 for ac_header in netinet/in.h
23157 do
23158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23160   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23161 $as_echo_n "checking for $ac_header... " >&6; }
23162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23163   $as_echo_n "(cached) " >&6
23164 fi
23165 ac_res=`eval 'as_val=${'$as_ac_Header'}
23166                  $as_echo "$as_val"'`
23167                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23168 $as_echo "$ac_res" >&6; }
23169 else
23170   # Is the header compilable?
23171 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23172 $as_echo_n "checking $ac_header usability... " >&6; }
23173 cat >conftest.$ac_ext <<_ACEOF
23174 /* confdefs.h.  */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h.  */
23179 $ac_includes_default
23180 #include <$ac_header>
23181 _ACEOF
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186   *) ac_try_echo=$ac_try;;
23187 esac
23188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23189 $as_echo "$ac_try_echo") >&5
23190   (eval "$ac_compile") 2>conftest.er1
23191   ac_status=$?
23192   grep -v '^ *+' conftest.er1 >conftest.err
23193   rm -f conftest.er1
23194   cat conftest.err >&5
23195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); } && {
23197          test -z "$ac_c_werror_flag" ||
23198          test ! -s conftest.err
23199        } && test -s conftest.$ac_objext; then
23200   ac_header_compiler=yes
23201 else
23202   $as_echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205         ac_header_compiler=no
23206 fi
23207
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23210 $as_echo "$ac_header_compiler" >&6; }
23211
23212 # Is the header present?
23213 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23214 $as_echo_n "checking $ac_header presence... " >&6; }
23215 cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h.  */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h.  */
23221 #include <$ac_header>
23222 _ACEOF
23223 if { (ac_try="$ac_cpp conftest.$ac_ext"
23224 case "(($ac_try" in
23225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226   *) ac_try_echo=$ac_try;;
23227 esac
23228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23229 $as_echo "$ac_try_echo") >&5
23230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } >/dev/null && {
23237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23238          test ! -s conftest.err
23239        }; then
23240   ac_header_preproc=yes
23241 else
23242   $as_echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23244
23245   ac_header_preproc=no
23246 fi
23247
23248 rm -f conftest.err conftest.$ac_ext
23249 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23250 $as_echo "$ac_header_preproc" >&6; }
23251
23252 # So?  What about this header?
23253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23254   yes:no: )
23255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23256 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23257     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23259     ac_header_preproc=yes
23260     ;;
23261   no:yes:* )
23262     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23263 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23264     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23265 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23266     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23267 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23268     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23269 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23273 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23274
23275     ;;
23276 esac
23277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23278 $as_echo_n "checking for $ac_header... " >&6; }
23279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23280   $as_echo_n "(cached) " >&6
23281 else
23282   eval "$as_ac_Header=\$ac_header_preproc"
23283 fi
23284 ac_res=`eval 'as_val=${'$as_ac_Header'}
23285                  $as_echo "$as_val"'`
23286                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23287 $as_echo "$ac_res" >&6; }
23288
23289 fi
23290 as_val=`eval 'as_val=${'$as_ac_Header'}
23291                  $as_echo "$as_val"'`
23292    if test "x$as_val" = x""yes; then
23293   cat >>confdefs.h <<_ACEOF
23294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23295 _ACEOF
23296
23297 fi
23298
23299 done
23300
23301
23302 for ac_header in windows.h
23303 do
23304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23306   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23307 $as_echo_n "checking for $ac_header... " >&6; }
23308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23309   $as_echo_n "(cached) " >&6
23310 fi
23311 ac_res=`eval 'as_val=${'$as_ac_Header'}
23312                  $as_echo "$as_val"'`
23313                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23314 $as_echo "$ac_res" >&6; }
23315 else
23316   # Is the header compilable?
23317 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23318 $as_echo_n "checking $ac_header usability... " >&6; }
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h.  */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h.  */
23325 $ac_includes_default
23326 #include <$ac_header>
23327 _ACEOF
23328 rm -f conftest.$ac_objext
23329 if { (ac_try="$ac_compile"
23330 case "(($ac_try" in
23331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332   *) ac_try_echo=$ac_try;;
23333 esac
23334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23335 $as_echo "$ac_try_echo") >&5
23336   (eval "$ac_compile") 2>conftest.er1
23337   ac_status=$?
23338   grep -v '^ *+' conftest.er1 >conftest.err
23339   rm -f conftest.er1
23340   cat conftest.err >&5
23341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); } && {
23343          test -z "$ac_c_werror_flag" ||
23344          test ! -s conftest.err
23345        } && test -s conftest.$ac_objext; then
23346   ac_header_compiler=yes
23347 else
23348   $as_echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351         ac_header_compiler=no
23352 fi
23353
23354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23355 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23356 $as_echo "$ac_header_compiler" >&6; }
23357
23358 # Is the header present?
23359 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23360 $as_echo_n "checking $ac_header presence... " >&6; }
23361 cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367 #include <$ac_header>
23368 _ACEOF
23369 if { (ac_try="$ac_cpp conftest.$ac_ext"
23370 case "(($ac_try" in
23371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372   *) ac_try_echo=$ac_try;;
23373 esac
23374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23375 $as_echo "$ac_try_echo") >&5
23376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23377   ac_status=$?
23378   grep -v '^ *+' conftest.er1 >conftest.err
23379   rm -f conftest.er1
23380   cat conftest.err >&5
23381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); } >/dev/null && {
23383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23384          test ! -s conftest.err
23385        }; then
23386   ac_header_preproc=yes
23387 else
23388   $as_echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23390
23391   ac_header_preproc=no
23392 fi
23393
23394 rm -f conftest.err conftest.$ac_ext
23395 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23396 $as_echo "$ac_header_preproc" >&6; }
23397
23398 # So?  What about this header?
23399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23400   yes:no: )
23401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23402 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23405     ac_header_preproc=yes
23406     ;;
23407   no:yes:* )
23408     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23409 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23410     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23411 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23412     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23413 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23414     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23415 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23419 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23420
23421     ;;
23422 esac
23423 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23424 $as_echo_n "checking for $ac_header... " >&6; }
23425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23426   $as_echo_n "(cached) " >&6
23427 else
23428   eval "$as_ac_Header=\$ac_header_preproc"
23429 fi
23430 ac_res=`eval 'as_val=${'$as_ac_Header'}
23431                  $as_echo "$as_val"'`
23432                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23433 $as_echo "$ac_res" >&6; }
23434
23435 fi
23436 as_val=`eval 'as_val=${'$as_ac_Header'}
23437                  $as_echo "$as_val"'`
23438    if test "x$as_val" = x""yes; then
23439   cat >>confdefs.h <<_ACEOF
23440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23441 _ACEOF
23442
23443 fi
23444
23445 done
23446
23447
23448 for ac_header in vec_types.h
23449 do
23450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23452   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23453 $as_echo_n "checking for $ac_header... " >&6; }
23454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23455   $as_echo_n "(cached) " >&6
23456 fi
23457 ac_res=`eval 'as_val=${'$as_ac_Header'}
23458                  $as_echo "$as_val"'`
23459                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23460 $as_echo "$ac_res" >&6; }
23461 else
23462   # Is the header compilable?
23463 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23464 $as_echo_n "checking $ac_header usability... " >&6; }
23465 cat >conftest.$ac_ext <<_ACEOF
23466 /* confdefs.h.  */
23467 _ACEOF
23468 cat confdefs.h >>conftest.$ac_ext
23469 cat >>conftest.$ac_ext <<_ACEOF
23470 /* end confdefs.h.  */
23471 $ac_includes_default
23472 #include <$ac_header>
23473 _ACEOF
23474 rm -f conftest.$ac_objext
23475 if { (ac_try="$ac_compile"
23476 case "(($ac_try" in
23477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478   *) ac_try_echo=$ac_try;;
23479 esac
23480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23481 $as_echo "$ac_try_echo") >&5
23482   (eval "$ac_compile") 2>conftest.er1
23483   ac_status=$?
23484   grep -v '^ *+' conftest.er1 >conftest.err
23485   rm -f conftest.er1
23486   cat conftest.err >&5
23487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); } && {
23489          test -z "$ac_c_werror_flag" ||
23490          test ! -s conftest.err
23491        } && test -s conftest.$ac_objext; then
23492   ac_header_compiler=yes
23493 else
23494   $as_echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23496
23497         ac_header_compiler=no
23498 fi
23499
23500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23502 $as_echo "$ac_header_compiler" >&6; }
23503
23504 # Is the header present?
23505 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23506 $as_echo_n "checking $ac_header presence... " >&6; }
23507 cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513 #include <$ac_header>
23514 _ACEOF
23515 if { (ac_try="$ac_cpp conftest.$ac_ext"
23516 case "(($ac_try" in
23517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518   *) ac_try_echo=$ac_try;;
23519 esac
23520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23521 $as_echo "$ac_try_echo") >&5
23522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23523   ac_status=$?
23524   grep -v '^ *+' conftest.er1 >conftest.err
23525   rm -f conftest.er1
23526   cat conftest.err >&5
23527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); } >/dev/null && {
23529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23530          test ! -s conftest.err
23531        }; then
23532   ac_header_preproc=yes
23533 else
23534   $as_echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537   ac_header_preproc=no
23538 fi
23539
23540 rm -f conftest.err conftest.$ac_ext
23541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23542 $as_echo "$ac_header_preproc" >&6; }
23543
23544 # So?  What about this header?
23545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23546   yes:no: )
23547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23548 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23551     ac_header_preproc=yes
23552     ;;
23553   no:yes:* )
23554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23555 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23557 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23559 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23561 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23565 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23566
23567     ;;
23568 esac
23569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23570 $as_echo_n "checking for $ac_header... " >&6; }
23571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23572   $as_echo_n "(cached) " >&6
23573 else
23574   eval "$as_ac_Header=\$ac_header_preproc"
23575 fi
23576 ac_res=`eval 'as_val=${'$as_ac_Header'}
23577                  $as_echo "$as_val"'`
23578                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23579 $as_echo "$ac_res" >&6; }
23580
23581 fi
23582 as_val=`eval 'as_val=${'$as_ac_Header'}
23583                  $as_echo "$as_val"'`
23584    if test "x$as_val" = x""yes; then
23585   cat >>confdefs.h <<_ACEOF
23586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23587 _ACEOF
23588
23589 fi
23590
23591 done
23592
23593
23594 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23595 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23596 if test "${ac_cv_c_const+set}" = set; then
23597   $as_echo_n "(cached) " >&6
23598 else
23599   cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605
23606 int
23607 main ()
23608 {
23609 /* FIXME: Include the comments suggested by Paul. */
23610 #ifndef __cplusplus
23611   /* Ultrix mips cc rejects this.  */
23612   typedef int charset[2];
23613   const charset cs;
23614   /* SunOS 4.1.1 cc rejects this.  */
23615   char const *const *pcpcc;
23616   char **ppc;
23617   /* NEC SVR4.0.2 mips cc rejects this.  */
23618   struct point {int x, y;};
23619   static struct point const zero = {0,0};
23620   /* AIX XL C 1.02.0.0 rejects this.
23621      It does not let you subtract one const X* pointer from another in
23622      an arm of an if-expression whose if-part is not a constant
23623      expression */
23624   const char *g = "string";
23625   pcpcc = &g + (g ? g-g : 0);
23626   /* HPUX 7.0 cc rejects these. */
23627   ++pcpcc;
23628   ppc = (char**) pcpcc;
23629   pcpcc = (char const *const *) ppc;
23630   { /* SCO 3.2v4 cc rejects this.  */
23631     char *t;
23632     char const *s = 0 ? (char *) 0 : (char const *) 0;
23633
23634     *t++ = 0;
23635     if (s) return 0;
23636   }
23637   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23638     int x[] = {25, 17};
23639     const int *foo = &x[0];
23640     ++foo;
23641   }
23642   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23643     typedef const int *iptr;
23644     iptr p = 0;
23645     ++p;
23646   }
23647   { /* AIX XL C 1.02.0.0 rejects this saying
23648        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23649     struct s { int j; const int *ap[3]; };
23650     struct s *b; b->j = 5;
23651   }
23652   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23653     const int foo = 10;
23654     if (!foo) return 0;
23655   }
23656   return !cs[0] && !zero.x;
23657 #endif
23658
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667   *) ac_try_echo=$ac_try;;
23668 esac
23669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23670 $as_echo "$ac_try_echo") >&5
23671   (eval "$ac_compile") 2>conftest.er1
23672   ac_status=$?
23673   grep -v '^ *+' conftest.er1 >conftest.err
23674   rm -f conftest.er1
23675   cat conftest.err >&5
23676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677   (exit $ac_status); } && {
23678          test -z "$ac_c_werror_flag" ||
23679          test ! -s conftest.err
23680        } && test -s conftest.$ac_objext; then
23681   ac_cv_c_const=yes
23682 else
23683   $as_echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23685
23686         ac_cv_c_const=no
23687 fi
23688
23689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690 fi
23691 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23692 $as_echo "$ac_cv_c_const" >&6; }
23693 if test $ac_cv_c_const = no; then
23694
23695 cat >>confdefs.h <<\_ACEOF
23696 #define const /**/
23697 _ACEOF
23698
23699 fi
23700
23701 { $as_echo "$as_me:$LINENO: checking for inline" >&5
23702 $as_echo_n "checking for inline... " >&6; }
23703 if test "${ac_cv_c_inline+set}" = set; then
23704   $as_echo_n "(cached) " >&6
23705 else
23706   ac_cv_c_inline=no
23707 for ac_kw in inline __inline__ __inline; do
23708   cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714 #ifndef __cplusplus
23715 typedef int foo_t;
23716 static $ac_kw foo_t static_foo () {return 0; }
23717 $ac_kw foo_t foo () {return 0; }
23718 #endif
23719
23720 _ACEOF
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
23723 case "(($ac_try" in
23724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725   *) ac_try_echo=$ac_try;;
23726 esac
23727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23728 $as_echo "$ac_try_echo") >&5
23729   (eval "$ac_compile") 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } && {
23736          test -z "$ac_c_werror_flag" ||
23737          test ! -s conftest.err
23738        } && test -s conftest.$ac_objext; then
23739   ac_cv_c_inline=$ac_kw
23740 else
23741   $as_echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744
23745 fi
23746
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748   test "$ac_cv_c_inline" != no && break
23749 done
23750
23751 fi
23752 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23753 $as_echo "$ac_cv_c_inline" >&6; }
23754
23755
23756 case $ac_cv_c_inline in
23757   inline | yes) ;;
23758   *)
23759     case $ac_cv_c_inline in
23760       no) ac_val=;;
23761       *) ac_val=$ac_cv_c_inline;;
23762     esac
23763     cat >>confdefs.h <<_ACEOF
23764 #ifndef __cplusplus
23765 #define inline $ac_val
23766 #endif
23767 _ACEOF
23768     ;;
23769 esac
23770
23771 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
23772 $as_echo_n "checking for size_t... " >&6; }
23773 if test "${ac_cv_type_size_t+set}" = set; then
23774   $as_echo_n "(cached) " >&6
23775 else
23776   ac_cv_type_size_t=no
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783 $ac_includes_default
23784 int
23785 main ()
23786 {
23787 if (sizeof (size_t))
23788        return 0;
23789   ;
23790   return 0;
23791 }
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797   *) ac_try_echo=$ac_try;;
23798 esac
23799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23800 $as_echo "$ac_try_echo") >&5
23801   (eval "$ac_compile") 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } && {
23808          test -z "$ac_c_werror_flag" ||
23809          test ! -s conftest.err
23810        } && test -s conftest.$ac_objext; then
23811   cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h.  */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h.  */
23817 $ac_includes_default
23818 int
23819 main ()
23820 {
23821 if (sizeof ((size_t)))
23822           return 0;
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831   *) ac_try_echo=$ac_try;;
23832 esac
23833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23834 $as_echo "$ac_try_echo") >&5
23835   (eval "$ac_compile") 2>conftest.er1
23836   ac_status=$?
23837   grep -v '^ *+' conftest.er1 >conftest.err
23838   rm -f conftest.er1
23839   cat conftest.err >&5
23840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); } && {
23842          test -z "$ac_c_werror_flag" ||
23843          test ! -s conftest.err
23844        } && test -s conftest.$ac_objext; then
23845   :
23846 else
23847   $as_echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850         ac_cv_type_size_t=yes
23851 fi
23852
23853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23854 else
23855   $as_echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23857
23858
23859 fi
23860
23861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 fi
23863 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23864 $as_echo "$ac_cv_type_size_t" >&6; }
23865 if test "x$ac_cv_type_size_t" = x""yes; then
23866   :
23867 else
23868
23869 cat >>confdefs.h <<_ACEOF
23870 #define size_t unsigned int
23871 _ACEOF
23872
23873 fi
23874
23875 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23876 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23877 if test "${ac_cv_header_time+set}" = set; then
23878   $as_echo_n "(cached) " >&6
23879 else
23880   cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h.  */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h.  */
23886 #include <sys/types.h>
23887 #include <sys/time.h>
23888 #include <time.h>
23889
23890 int
23891 main ()
23892 {
23893 if ((struct tm *) 0)
23894 return 0;
23895   ;
23896   return 0;
23897 }
23898 _ACEOF
23899 rm -f conftest.$ac_objext
23900 if { (ac_try="$ac_compile"
23901 case "(($ac_try" in
23902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903   *) ac_try_echo=$ac_try;;
23904 esac
23905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23906 $as_echo "$ac_try_echo") >&5
23907   (eval "$ac_compile") 2>conftest.er1
23908   ac_status=$?
23909   grep -v '^ *+' conftest.er1 >conftest.err
23910   rm -f conftest.er1
23911   cat conftest.err >&5
23912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); } && {
23914          test -z "$ac_c_werror_flag" ||
23915          test ! -s conftest.err
23916        } && test -s conftest.$ac_objext; then
23917   ac_cv_header_time=yes
23918 else
23919   $as_echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23921
23922         ac_cv_header_time=no
23923 fi
23924
23925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23926 fi
23927 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23928 $as_echo "$ac_cv_header_time" >&6; }
23929 if test $ac_cv_header_time = yes; then
23930
23931 cat >>confdefs.h <<\_ACEOF
23932 #define TIME_WITH_SYS_TIME 1
23933 _ACEOF
23934
23935 fi
23936
23937
23938  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23939 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23940 if test "${ac_cv_c_bigendian+set}" = set; then
23941   $as_echo_n "(cached) " >&6
23942 else
23943   ac_cv_c_bigendian=unknown
23944     # See if we're dealing with a universal compiler.
23945     cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h.  */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h.  */
23951 #ifndef __APPLE_CC__
23952                not a universal capable compiler
23953              #endif
23954              typedef int dummy;
23955
23956 _ACEOF
23957 rm -f conftest.$ac_objext
23958 if { (ac_try="$ac_compile"
23959 case "(($ac_try" in
23960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961   *) ac_try_echo=$ac_try;;
23962 esac
23963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23964 $as_echo "$ac_try_echo") >&5
23965   (eval "$ac_compile") 2>conftest.er1
23966   ac_status=$?
23967   grep -v '^ *+' conftest.er1 >conftest.err
23968   rm -f conftest.er1
23969   cat conftest.err >&5
23970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); } && {
23972          test -z "$ac_c_werror_flag" ||
23973          test ! -s conftest.err
23974        } && test -s conftest.$ac_objext; then
23975
23976         # Check for potential -arch flags.  It is not universal unless
23977         # there are some -arch flags.  Note that *ppc* also matches
23978         # ppc64.  This check is also rather less than ideal.
23979         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
23980           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23981         esac
23982 else
23983   $as_echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986
23987 fi
23988
23989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990     if test $ac_cv_c_bigendian = unknown; then
23991       # See if sys/param.h defines the BYTE_ORDER macro.
23992       cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h.  */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h.  */
23998 #include <sys/types.h>
23999              #include <sys/param.h>
24000
24001 int
24002 main ()
24003 {
24004 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24005                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24006                      && LITTLE_ENDIAN)
24007               bogus endian macros
24008              #endif
24009
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext
24015 if { (ac_try="$ac_compile"
24016 case "(($ac_try" in
24017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018   *) ac_try_echo=$ac_try;;
24019 esac
24020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24021 $as_echo "$ac_try_echo") >&5
24022   (eval "$ac_compile") 2>conftest.er1
24023   ac_status=$?
24024   grep -v '^ *+' conftest.er1 >conftest.err
24025   rm -f conftest.er1
24026   cat conftest.err >&5
24027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } && {
24029          test -z "$ac_c_werror_flag" ||
24030          test ! -s conftest.err
24031        } && test -s conftest.$ac_objext; then
24032   # It does; now see whether it defined to BIG_ENDIAN or not.
24033          cat >conftest.$ac_ext <<_ACEOF
24034 /* confdefs.h.  */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h.  */
24039 #include <sys/types.h>
24040                 #include <sys/param.h>
24041
24042 int
24043 main ()
24044 {
24045 #if BYTE_ORDER != BIG_ENDIAN
24046                  not big endian
24047                 #endif
24048
24049   ;
24050   return 0;
24051 }
24052 _ACEOF
24053 rm -f conftest.$ac_objext
24054 if { (ac_try="$ac_compile"
24055 case "(($ac_try" in
24056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057   *) ac_try_echo=$ac_try;;
24058 esac
24059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24060 $as_echo "$ac_try_echo") >&5
24061   (eval "$ac_compile") 2>conftest.er1
24062   ac_status=$?
24063   grep -v '^ *+' conftest.er1 >conftest.err
24064   rm -f conftest.er1
24065   cat conftest.err >&5
24066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); } && {
24068          test -z "$ac_c_werror_flag" ||
24069          test ! -s conftest.err
24070        } && test -s conftest.$ac_objext; then
24071   ac_cv_c_bigendian=yes
24072 else
24073   $as_echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24075
24076         ac_cv_c_bigendian=no
24077 fi
24078
24079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24080 else
24081   $as_echo "$as_me: failed program was:" >&5
24082 sed 's/^/| /' conftest.$ac_ext >&5
24083
24084
24085 fi
24086
24087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088     fi
24089     if test $ac_cv_c_bigendian = unknown; then
24090       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24091       cat >conftest.$ac_ext <<_ACEOF
24092 /* confdefs.h.  */
24093 _ACEOF
24094 cat confdefs.h >>conftest.$ac_ext
24095 cat >>conftest.$ac_ext <<_ACEOF
24096 /* end confdefs.h.  */
24097 #include <limits.h>
24098
24099 int
24100 main ()
24101 {
24102 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24103               bogus endian macros
24104              #endif
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114   *) ac_try_echo=$ac_try;;
24115 esac
24116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24117 $as_echo "$ac_try_echo") >&5
24118   (eval "$ac_compile") 2>conftest.er1
24119   ac_status=$?
24120   grep -v '^ *+' conftest.er1 >conftest.err
24121   rm -f conftest.er1
24122   cat conftest.err >&5
24123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); } && {
24125          test -z "$ac_c_werror_flag" ||
24126          test ! -s conftest.err
24127        } && test -s conftest.$ac_objext; then
24128   # It does; now see whether it defined to _BIG_ENDIAN or not.
24129          cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135 #include <limits.h>
24136
24137 int
24138 main ()
24139 {
24140 #ifndef _BIG_ENDIAN
24141                  not big endian
24142                 #endif
24143
24144   ;
24145   return 0;
24146 }
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152   *) ac_try_echo=$ac_try;;
24153 esac
24154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24155 $as_echo "$ac_try_echo") >&5
24156   (eval "$ac_compile") 2>conftest.er1
24157   ac_status=$?
24158   grep -v '^ *+' conftest.er1 >conftest.err
24159   rm -f conftest.er1
24160   cat conftest.err >&5
24161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); } && {
24163          test -z "$ac_c_werror_flag" ||
24164          test ! -s conftest.err
24165        } && test -s conftest.$ac_objext; then
24166   ac_cv_c_bigendian=yes
24167 else
24168   $as_echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171         ac_cv_c_bigendian=no
24172 fi
24173
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 else
24176   $as_echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24178
24179
24180 fi
24181
24182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24183     fi
24184     if test $ac_cv_c_bigendian = unknown; then
24185       # Compile a test program.
24186       if test "$cross_compiling" = yes; then
24187   # Try to guess by grepping values from an object file.
24188          cat >conftest.$ac_ext <<_ACEOF
24189 /* confdefs.h.  */
24190 _ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h.  */
24194 short int ascii_mm[] =
24195                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24196                 short int ascii_ii[] =
24197                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24198                 int use_ascii (int i) {
24199                   return ascii_mm[i] + ascii_ii[i];
24200                 }
24201                 short int ebcdic_ii[] =
24202                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24203                 short int ebcdic_mm[] =
24204                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24205                 int use_ebcdic (int i) {
24206                   return ebcdic_mm[i] + ebcdic_ii[i];
24207                 }
24208                 extern int foo;
24209
24210 int
24211 main ()
24212 {
24213 return use_ascii (foo) == use_ebcdic (foo);
24214   ;
24215   return 0;
24216 }
24217 _ACEOF
24218 rm -f conftest.$ac_objext
24219 if { (ac_try="$ac_compile"
24220 case "(($ac_try" in
24221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222   *) ac_try_echo=$ac_try;;
24223 esac
24224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24225 $as_echo "$ac_try_echo") >&5
24226   (eval "$ac_compile") 2>conftest.er1
24227   ac_status=$?
24228   grep -v '^ *+' conftest.er1 >conftest.err
24229   rm -f conftest.er1
24230   cat conftest.err >&5
24231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); } && {
24233          test -z "$ac_c_werror_flag" ||
24234          test ! -s conftest.err
24235        } && test -s conftest.$ac_objext; then
24236   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24237               ac_cv_c_bigendian=yes
24238             fi
24239             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24240               if test "$ac_cv_c_bigendian" = unknown; then
24241                 ac_cv_c_bigendian=no
24242               else
24243                 # finding both strings is unlikely to happen, but who knows?
24244                 ac_cv_c_bigendian=unknown
24245               fi
24246             fi
24247 else
24248   $as_echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251
24252 fi
24253
24254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24255 else
24256   cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h.  */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h.  */
24262 $ac_includes_default
24263 int
24264 main ()
24265 {
24266
24267              /* Are we little or big endian?  From Harbison&Steele.  */
24268              union
24269              {
24270                long int l;
24271                char c[sizeof (long int)];
24272              } u;
24273              u.l = 1;
24274              return u.c[sizeof (long int) - 1] == 1;
24275
24276   ;
24277   return 0;
24278 }
24279 _ACEOF
24280 rm -f conftest$ac_exeext
24281 if { (ac_try="$ac_link"
24282 case "(($ac_try" in
24283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284   *) ac_try_echo=$ac_try;;
24285 esac
24286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24287 $as_echo "$ac_try_echo") >&5
24288   (eval "$ac_link") 2>&5
24289   ac_status=$?
24290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24292   { (case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24297 $as_echo "$ac_try_echo") >&5
24298   (eval "$ac_try") 2>&5
24299   ac_status=$?
24300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); }; }; then
24302   ac_cv_c_bigendian=no
24303 else
24304   $as_echo "$as_me: program exited with status $ac_status" >&5
24305 $as_echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24307
24308 ( exit $ac_status )
24309 ac_cv_c_bigendian=yes
24310 fi
24311 rm -rf conftest.dSYM
24312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24313 fi
24314
24315
24316     fi
24317 fi
24318 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24319 $as_echo "$ac_cv_c_bigendian" >&6; }
24320  case $ac_cv_c_bigendian in #(
24321    yes)
24322      GR_ARCH_BIGENDIAN=1;; #(
24323    no)
24324      GR_ARCH_BIGENDIAN=0 ;; #(
24325    universal)
24326
24327 cat >>confdefs.h <<\_ACEOF
24328 #define AC_APPLE_UNIVERSAL_BUILD 1
24329 _ACEOF
24330
24331      ;; #(
24332    *)
24333      { { $as_echo "$as_me:$LINENO: error: unknown endianness
24334  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24335 $as_echo "$as_me: error: unknown endianness
24336  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24337    { (exit 1); exit 1; }; } ;;
24338  esac
24339
24340
24341 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24342 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
24343 if test "${ac_cv_struct_tm+set}" = set; then
24344   $as_echo_n "(cached) " >&6
24345 else
24346   cat >conftest.$ac_ext <<_ACEOF
24347 /* confdefs.h.  */
24348 _ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h.  */
24352 #include <sys/types.h>
24353 #include <time.h>
24354
24355 int
24356 main ()
24357 {
24358 struct tm tm;
24359                                      int *p = &tm.tm_sec;
24360                                      return !p;
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369   *) ac_try_echo=$ac_try;;
24370 esac
24371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24372 $as_echo "$ac_try_echo") >&5
24373   (eval "$ac_compile") 2>conftest.er1
24374   ac_status=$?
24375   grep -v '^ *+' conftest.er1 >conftest.err
24376   rm -f conftest.er1
24377   cat conftest.err >&5
24378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379   (exit $ac_status); } && {
24380          test -z "$ac_c_werror_flag" ||
24381          test ! -s conftest.err
24382        } && test -s conftest.$ac_objext; then
24383   ac_cv_struct_tm=time.h
24384 else
24385   $as_echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24387
24388         ac_cv_struct_tm=sys/time.h
24389 fi
24390
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392 fi
24393 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24394 $as_echo "$ac_cv_struct_tm" >&6; }
24395 if test $ac_cv_struct_tm = sys/time.h; then
24396
24397 cat >>confdefs.h <<\_ACEOF
24398 #define TM_IN_SYS_TIME 1
24399 _ACEOF
24400
24401 fi
24402
24403
24404 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24405 # for constant arguments.  Useless!
24406 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
24407 $as_echo_n "checking for working alloca.h... " >&6; }
24408 if test "${ac_cv_working_alloca_h+set}" = set; then
24409   $as_echo_n "(cached) " >&6
24410 else
24411   cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h.  */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h.  */
24417 #include <alloca.h>
24418 int
24419 main ()
24420 {
24421 char *p = (char *) alloca (2 * sizeof (int));
24422                           if (p) return 0;
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext conftest$ac_exeext
24428 if { (ac_try="$ac_link"
24429 case "(($ac_try" in
24430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431   *) ac_try_echo=$ac_try;;
24432 esac
24433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24434 $as_echo "$ac_try_echo") >&5
24435   (eval "$ac_link") 2>conftest.er1
24436   ac_status=$?
24437   grep -v '^ *+' conftest.er1 >conftest.err
24438   rm -f conftest.er1
24439   cat conftest.err >&5
24440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); } && {
24442          test -z "$ac_c_werror_flag" ||
24443          test ! -s conftest.err
24444        } && test -s conftest$ac_exeext && {
24445          test "$cross_compiling" = yes ||
24446          $as_test_x conftest$ac_exeext
24447        }; then
24448   ac_cv_working_alloca_h=yes
24449 else
24450   $as_echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453         ac_cv_working_alloca_h=no
24454 fi
24455
24456 rm -rf conftest.dSYM
24457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24458       conftest$ac_exeext conftest.$ac_ext
24459 fi
24460 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24461 $as_echo "$ac_cv_working_alloca_h" >&6; }
24462 if test $ac_cv_working_alloca_h = yes; then
24463
24464 cat >>confdefs.h <<\_ACEOF
24465 #define HAVE_ALLOCA_H 1
24466 _ACEOF
24467
24468 fi
24469
24470 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
24471 $as_echo_n "checking for alloca... " >&6; }
24472 if test "${ac_cv_func_alloca_works+set}" = set; then
24473   $as_echo_n "(cached) " >&6
24474 else
24475   cat >conftest.$ac_ext <<_ACEOF
24476 /* confdefs.h.  */
24477 _ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h.  */
24481 #ifdef __GNUC__
24482 # define alloca __builtin_alloca
24483 #else
24484 # ifdef _MSC_VER
24485 #  include <malloc.h>
24486 #  define alloca _alloca
24487 # else
24488 #  ifdef HAVE_ALLOCA_H
24489 #   include <alloca.h>
24490 #  else
24491 #   ifdef _AIX
24492  #pragma alloca
24493 #   else
24494 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24495 char *alloca ();
24496 #    endif
24497 #   endif
24498 #  endif
24499 # endif
24500 #endif
24501
24502 int
24503 main ()
24504 {
24505 char *p = (char *) alloca (1);
24506                                     if (p) return 0;
24507   ;
24508   return 0;
24509 }
24510 _ACEOF
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515   *) ac_try_echo=$ac_try;;
24516 esac
24517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24518 $as_echo "$ac_try_echo") >&5
24519   (eval "$ac_link") 2>conftest.er1
24520   ac_status=$?
24521   grep -v '^ *+' conftest.er1 >conftest.err
24522   rm -f conftest.er1
24523   cat conftest.err >&5
24524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); } && {
24526          test -z "$ac_c_werror_flag" ||
24527          test ! -s conftest.err
24528        } && test -s conftest$ac_exeext && {
24529          test "$cross_compiling" = yes ||
24530          $as_test_x conftest$ac_exeext
24531        }; then
24532   ac_cv_func_alloca_works=yes
24533 else
24534   $as_echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537         ac_cv_func_alloca_works=no
24538 fi
24539
24540 rm -rf conftest.dSYM
24541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24542       conftest$ac_exeext conftest.$ac_ext
24543 fi
24544 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24545 $as_echo "$ac_cv_func_alloca_works" >&6; }
24546
24547 if test $ac_cv_func_alloca_works = yes; then
24548
24549 cat >>confdefs.h <<\_ACEOF
24550 #define HAVE_ALLOCA 1
24551 _ACEOF
24552
24553 else
24554   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24555 # that cause trouble.  Some versions do not even contain alloca or
24556 # contain a buggy version.  If you still want to use their alloca,
24557 # use ar to extract alloca.o from them instead of compiling alloca.c.
24558
24559 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24560
24561 cat >>confdefs.h <<\_ACEOF
24562 #define C_ALLOCA 1
24563 _ACEOF
24564
24565
24566 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24567 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
24568 if test "${ac_cv_os_cray+set}" = set; then
24569   $as_echo_n "(cached) " >&6
24570 else
24571   cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h.  */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h.  */
24577 #if defined CRAY && ! defined CRAY2
24578 webecray
24579 #else
24580 wenotbecray
24581 #endif
24582
24583 _ACEOF
24584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24585   $EGREP "webecray" >/dev/null 2>&1; then
24586   ac_cv_os_cray=yes
24587 else
24588   ac_cv_os_cray=no
24589 fi
24590 rm -f conftest*
24591
24592 fi
24593 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24594 $as_echo "$ac_cv_os_cray" >&6; }
24595 if test $ac_cv_os_cray = yes; then
24596   for ac_func in _getb67 GETB67 getb67; do
24597     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24598 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24599 $as_echo_n "checking for $ac_func... " >&6; }
24600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24601   $as_echo_n "(cached) " >&6
24602 else
24603   cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24611 #define $ac_func innocuous_$ac_func
24612
24613 /* System header to define __stub macros and hopefully few prototypes,
24614     which can conflict with char $ac_func (); below.
24615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24616     <limits.h> exists even on freestanding compilers.  */
24617
24618 #ifdef __STDC__
24619 # include <limits.h>
24620 #else
24621 # include <assert.h>
24622 #endif
24623
24624 #undef $ac_func
24625
24626 /* Override any GCC internal prototype to avoid an error.
24627    Use char because int might match the return type of a GCC
24628    builtin and then its argument prototype would still apply.  */
24629 #ifdef __cplusplus
24630 extern "C"
24631 #endif
24632 char $ac_func ();
24633 /* The GNU C library defines this for functions which it implements
24634     to always fail with ENOSYS.  Some functions are actually named
24635     something starting with __ and the normal name is an alias.  */
24636 #if defined __stub_$ac_func || defined __stub___$ac_func
24637 choke me
24638 #endif
24639
24640 int
24641 main ()
24642 {
24643 return $ac_func ();
24644   ;
24645   return 0;
24646 }
24647 _ACEOF
24648 rm -f conftest.$ac_objext conftest$ac_exeext
24649 if { (ac_try="$ac_link"
24650 case "(($ac_try" in
24651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652   *) ac_try_echo=$ac_try;;
24653 esac
24654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24655 $as_echo "$ac_try_echo") >&5
24656   (eval "$ac_link") 2>conftest.er1
24657   ac_status=$?
24658   grep -v '^ *+' conftest.er1 >conftest.err
24659   rm -f conftest.er1
24660   cat conftest.err >&5
24661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); } && {
24663          test -z "$ac_c_werror_flag" ||
24664          test ! -s conftest.err
24665        } && test -s conftest$ac_exeext && {
24666          test "$cross_compiling" = yes ||
24667          $as_test_x conftest$ac_exeext
24668        }; then
24669   eval "$as_ac_var=yes"
24670 else
24671   $as_echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674         eval "$as_ac_var=no"
24675 fi
24676
24677 rm -rf conftest.dSYM
24678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24679       conftest$ac_exeext conftest.$ac_ext
24680 fi
24681 ac_res=`eval 'as_val=${'$as_ac_var'}
24682                  $as_echo "$as_val"'`
24683                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24684 $as_echo "$ac_res" >&6; }
24685 as_val=`eval 'as_val=${'$as_ac_var'}
24686                  $as_echo "$as_val"'`
24687    if test "x$as_val" = x""yes; then
24688
24689 cat >>confdefs.h <<_ACEOF
24690 #define CRAY_STACKSEG_END $ac_func
24691 _ACEOF
24692
24693     break
24694 fi
24695
24696   done
24697 fi
24698
24699 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24700 $as_echo_n "checking stack direction for C alloca... " >&6; }
24701 if test "${ac_cv_c_stack_direction+set}" = set; then
24702   $as_echo_n "(cached) " >&6
24703 else
24704   if test "$cross_compiling" = yes; then
24705   ac_cv_c_stack_direction=0
24706 else
24707   cat >conftest.$ac_ext <<_ACEOF
24708 /* confdefs.h.  */
24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h.  */
24713 $ac_includes_default
24714 int
24715 find_stack_direction ()
24716 {
24717   static char *addr = 0;
24718   auto char dummy;
24719   if (addr == 0)
24720     {
24721       addr = &dummy;
24722       return find_stack_direction ();
24723     }
24724   else
24725     return (&dummy > addr) ? 1 : -1;
24726 }
24727
24728 int
24729 main ()
24730 {
24731   return find_stack_direction () < 0;
24732 }
24733 _ACEOF
24734 rm -f conftest$ac_exeext
24735 if { (ac_try="$ac_link"
24736 case "(($ac_try" in
24737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738   *) ac_try_echo=$ac_try;;
24739 esac
24740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24741 $as_echo "$ac_try_echo") >&5
24742   (eval "$ac_link") 2>&5
24743   ac_status=$?
24744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24746   { (case "(($ac_try" in
24747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748   *) ac_try_echo=$ac_try;;
24749 esac
24750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24751 $as_echo "$ac_try_echo") >&5
24752   (eval "$ac_try") 2>&5
24753   ac_status=$?
24754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); }; }; then
24756   ac_cv_c_stack_direction=1
24757 else
24758   $as_echo "$as_me: program exited with status $ac_status" >&5
24759 $as_echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24761
24762 ( exit $ac_status )
24763 ac_cv_c_stack_direction=-1
24764 fi
24765 rm -rf conftest.dSYM
24766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24767 fi
24768
24769
24770 fi
24771 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24772 $as_echo "$ac_cv_c_stack_direction" >&6; }
24773
24774 cat >>confdefs.h <<_ACEOF
24775 #define STACK_DIRECTION $ac_cv_c_stack_direction
24776 _ACEOF
24777
24778
24779 fi
24780
24781
24782
24783
24784   # Check for allocing memory alignment functions
24785   # If 'posix_memalign' is available, use it solely.
24786
24787 for ac_func in posix_memalign
24788 do
24789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24791 $as_echo_n "checking for $ac_func... " >&6; }
24792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24793   $as_echo_n "(cached) " >&6
24794 else
24795   cat >conftest.$ac_ext <<_ACEOF
24796 /* confdefs.h.  */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h.  */
24801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24803 #define $ac_func innocuous_$ac_func
24804
24805 /* System header to define __stub macros and hopefully few prototypes,
24806     which can conflict with char $ac_func (); below.
24807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24808     <limits.h> exists even on freestanding compilers.  */
24809
24810 #ifdef __STDC__
24811 # include <limits.h>
24812 #else
24813 # include <assert.h>
24814 #endif
24815
24816 #undef $ac_func
24817
24818 /* Override any GCC internal prototype to avoid an error.
24819    Use char because int might match the return type of a GCC
24820    builtin and then its argument prototype would still apply.  */
24821 #ifdef __cplusplus
24822 extern "C"
24823 #endif
24824 char $ac_func ();
24825 /* The GNU C library defines this for functions which it implements
24826     to always fail with ENOSYS.  Some functions are actually named
24827     something starting with __ and the normal name is an alias.  */
24828 #if defined __stub_$ac_func || defined __stub___$ac_func
24829 choke me
24830 #endif
24831
24832 int
24833 main ()
24834 {
24835 return $ac_func ();
24836   ;
24837   return 0;
24838 }
24839 _ACEOF
24840 rm -f conftest.$ac_objext conftest$ac_exeext
24841 if { (ac_try="$ac_link"
24842 case "(($ac_try" in
24843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844   *) ac_try_echo=$ac_try;;
24845 esac
24846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24847 $as_echo "$ac_try_echo") >&5
24848   (eval "$ac_link") 2>conftest.er1
24849   ac_status=$?
24850   grep -v '^ *+' conftest.er1 >conftest.err
24851   rm -f conftest.er1
24852   cat conftest.err >&5
24853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } && {
24855          test -z "$ac_c_werror_flag" ||
24856          test ! -s conftest.err
24857        } && test -s conftest$ac_exeext && {
24858          test "$cross_compiling" = yes ||
24859          $as_test_x conftest$ac_exeext
24860        }; then
24861   eval "$as_ac_var=yes"
24862 else
24863   $as_echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866         eval "$as_ac_var=no"
24867 fi
24868
24869 rm -rf conftest.dSYM
24870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24871       conftest$ac_exeext conftest.$ac_ext
24872 fi
24873 ac_res=`eval 'as_val=${'$as_ac_var'}
24874                  $as_echo "$as_val"'`
24875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24876 $as_echo "$ac_res" >&6; }
24877 as_val=`eval 'as_val=${'$as_ac_var'}
24878                  $as_echo "$as_val"'`
24879    if test "x$as_val" = x""yes; then
24880   cat >>confdefs.h <<_ACEOF
24881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24882 _ACEOF
24883
24884 else
24885
24886     # Otherwise, check for valloc and the
24887     # (a-priori known) alignment of 'malloc'
24888
24889 for ac_func in valloc
24890 do
24891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24893 $as_echo_n "checking for $ac_func... " >&6; }
24894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24895   $as_echo_n "(cached) " >&6
24896 else
24897   cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h.  */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h.  */
24903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24905 #define $ac_func innocuous_$ac_func
24906
24907 /* System header to define __stub macros and hopefully few prototypes,
24908     which can conflict with char $ac_func (); below.
24909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24910     <limits.h> exists even on freestanding compilers.  */
24911
24912 #ifdef __STDC__
24913 # include <limits.h>
24914 #else
24915 # include <assert.h>
24916 #endif
24917
24918 #undef $ac_func
24919
24920 /* Override any GCC internal prototype to avoid an error.
24921    Use char because int might match the return type of a GCC
24922    builtin and then its argument prototype would still apply.  */
24923 #ifdef __cplusplus
24924 extern "C"
24925 #endif
24926 char $ac_func ();
24927 /* The GNU C library defines this for functions which it implements
24928     to always fail with ENOSYS.  Some functions are actually named
24929     something starting with __ and the normal name is an alias.  */
24930 #if defined __stub_$ac_func || defined __stub___$ac_func
24931 choke me
24932 #endif
24933
24934 int
24935 main ()
24936 {
24937 return $ac_func ();
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (ac_try="$ac_link"
24944 case "(($ac_try" in
24945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946   *) ac_try_echo=$ac_try;;
24947 esac
24948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24949 $as_echo "$ac_try_echo") >&5
24950   (eval "$ac_link") 2>conftest.er1
24951   ac_status=$?
24952   grep -v '^ *+' conftest.er1 >conftest.err
24953   rm -f conftest.er1
24954   cat conftest.err >&5
24955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); } && {
24957          test -z "$ac_c_werror_flag" ||
24958          test ! -s conftest.err
24959        } && test -s conftest$ac_exeext && {
24960          test "$cross_compiling" = yes ||
24961          $as_test_x conftest$ac_exeext
24962        }; then
24963   eval "$as_ac_var=yes"
24964 else
24965   $as_echo "$as_me: failed program was:" >&5
24966 sed 's/^/| /' conftest.$ac_ext >&5
24967
24968         eval "$as_ac_var=no"
24969 fi
24970
24971 rm -rf conftest.dSYM
24972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24973       conftest$ac_exeext conftest.$ac_ext
24974 fi
24975 ac_res=`eval 'as_val=${'$as_ac_var'}
24976                  $as_echo "$as_val"'`
24977                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24978 $as_echo "$ac_res" >&6; }
24979 as_val=`eval 'as_val=${'$as_ac_var'}
24980                  $as_echo "$as_val"'`
24981    if test "x$as_val" = x""yes; then
24982   cat >>confdefs.h <<_ACEOF
24983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24984 _ACEOF
24985
24986 fi
24987 done
24988
24989     aligned_malloc=0
24990     # 'malloc' is 16-byte aligned on (at least) Darwin 8 and 9
24991     case "$host_os" in
24992       darwin8*) aligned_malloc=16 ;;
24993       darwin9*) aligned_malloc=16 ;;
24994       *) ;;
24995     esac
24996     if test $aligned_malloc = 0; then
24997       { $as_echo "$as_me:$LINENO: result: malloc has unknown alignment." >&5
24998 $as_echo "malloc has unknown alignment." >&6; }
24999     else
25000       { $as_echo "$as_me:$LINENO: result: malloc is $aligned_malloc-byte aligned." >&5
25001 $as_echo "malloc is $aligned_malloc-byte aligned." >&6; }
25002     fi
25003
25004 cat >>confdefs.h <<_ACEOF
25005 #define ALIGNED_MALLOC $aligned_malloc
25006 _ACEOF
25007
25008
25009 fi
25010 done
25011
25012
25013 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
25014   $as_echo_n "(cached) " >&6
25015 else
25016   ac_cv_func_setvbuf_reversed=no
25017 fi
25018
25019
25020
25021 for ac_func in vprintf
25022 do
25023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25025 $as_echo_n "checking for $ac_func... " >&6; }
25026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25027   $as_echo_n "(cached) " >&6
25028 else
25029   cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h.  */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h.  */
25035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25037 #define $ac_func innocuous_$ac_func
25038
25039 /* System header to define __stub macros and hopefully few prototypes,
25040     which can conflict with char $ac_func (); below.
25041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25042     <limits.h> exists even on freestanding compilers.  */
25043
25044 #ifdef __STDC__
25045 # include <limits.h>
25046 #else
25047 # include <assert.h>
25048 #endif
25049
25050 #undef $ac_func
25051
25052 /* Override any GCC internal prototype to avoid an error.
25053    Use char because int might match the return type of a GCC
25054    builtin and then its argument prototype would still apply.  */
25055 #ifdef __cplusplus
25056 extern "C"
25057 #endif
25058 char $ac_func ();
25059 /* The GNU C library defines this for functions which it implements
25060     to always fail with ENOSYS.  Some functions are actually named
25061     something starting with __ and the normal name is an alias.  */
25062 #if defined __stub_$ac_func || defined __stub___$ac_func
25063 choke me
25064 #endif
25065
25066 int
25067 main ()
25068 {
25069 return $ac_func ();
25070   ;
25071   return 0;
25072 }
25073 _ACEOF
25074 rm -f conftest.$ac_objext conftest$ac_exeext
25075 if { (ac_try="$ac_link"
25076 case "(($ac_try" in
25077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078   *) ac_try_echo=$ac_try;;
25079 esac
25080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25081 $as_echo "$ac_try_echo") >&5
25082   (eval "$ac_link") 2>conftest.er1
25083   ac_status=$?
25084   grep -v '^ *+' conftest.er1 >conftest.err
25085   rm -f conftest.er1
25086   cat conftest.err >&5
25087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); } && {
25089          test -z "$ac_c_werror_flag" ||
25090          test ! -s conftest.err
25091        } && test -s conftest$ac_exeext && {
25092          test "$cross_compiling" = yes ||
25093          $as_test_x conftest$ac_exeext
25094        }; then
25095   eval "$as_ac_var=yes"
25096 else
25097   $as_echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100         eval "$as_ac_var=no"
25101 fi
25102
25103 rm -rf conftest.dSYM
25104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25105       conftest$ac_exeext conftest.$ac_ext
25106 fi
25107 ac_res=`eval 'as_val=${'$as_ac_var'}
25108                  $as_echo "$as_val"'`
25109                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25110 $as_echo "$ac_res" >&6; }
25111 as_val=`eval 'as_val=${'$as_ac_var'}
25112                  $as_echo "$as_val"'`
25113    if test "x$as_val" = x""yes; then
25114   cat >>confdefs.h <<_ACEOF
25115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25116 _ACEOF
25117
25118 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
25119 $as_echo_n "checking for _doprnt... " >&6; }
25120 if test "${ac_cv_func__doprnt+set}" = set; then
25121   $as_echo_n "(cached) " >&6
25122 else
25123   cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h.  */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h.  */
25129 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25131 #define _doprnt innocuous__doprnt
25132
25133 /* System header to define __stub macros and hopefully few prototypes,
25134     which can conflict with char _doprnt (); below.
25135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25136     <limits.h> exists even on freestanding compilers.  */
25137
25138 #ifdef __STDC__
25139 # include <limits.h>
25140 #else
25141 # include <assert.h>
25142 #endif
25143
25144 #undef _doprnt
25145
25146 /* Override any GCC internal prototype to avoid an error.
25147    Use char because int might match the return type of a GCC
25148    builtin and then its argument prototype would still apply.  */
25149 #ifdef __cplusplus
25150 extern "C"
25151 #endif
25152 char _doprnt ();
25153 /* The GNU C library defines this for functions which it implements
25154     to always fail with ENOSYS.  Some functions are actually named
25155     something starting with __ and the normal name is an alias.  */
25156 #if defined __stub__doprnt || defined __stub____doprnt
25157 choke me
25158 #endif
25159
25160 int
25161 main ()
25162 {
25163 return _doprnt ();
25164   ;
25165   return 0;
25166 }
25167 _ACEOF
25168 rm -f conftest.$ac_objext conftest$ac_exeext
25169 if { (ac_try="$ac_link"
25170 case "(($ac_try" in
25171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172   *) ac_try_echo=$ac_try;;
25173 esac
25174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25175 $as_echo "$ac_try_echo") >&5
25176   (eval "$ac_link") 2>conftest.er1
25177   ac_status=$?
25178   grep -v '^ *+' conftest.er1 >conftest.err
25179   rm -f conftest.er1
25180   cat conftest.err >&5
25181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); } && {
25183          test -z "$ac_c_werror_flag" ||
25184          test ! -s conftest.err
25185        } && test -s conftest$ac_exeext && {
25186          test "$cross_compiling" = yes ||
25187          $as_test_x conftest$ac_exeext
25188        }; then
25189   ac_cv_func__doprnt=yes
25190 else
25191   $as_echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25193
25194         ac_cv_func__doprnt=no
25195 fi
25196
25197 rm -rf conftest.dSYM
25198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25199       conftest$ac_exeext conftest.$ac_ext
25200 fi
25201 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25202 $as_echo "$ac_cv_func__doprnt" >&6; }
25203 if test "x$ac_cv_func__doprnt" = x""yes; then
25204
25205 cat >>confdefs.h <<\_ACEOF
25206 #define HAVE_DOPRNT 1
25207 _ACEOF
25208
25209 fi
25210
25211 fi
25212 done
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
25224 do
25225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25226 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25227 $as_echo_n "checking for $ac_func... " >&6; }
25228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25229   $as_echo_n "(cached) " >&6
25230 else
25231   cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h.  */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h.  */
25237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25239 #define $ac_func innocuous_$ac_func
25240
25241 /* System header to define __stub macros and hopefully few prototypes,
25242     which can conflict with char $ac_func (); below.
25243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25244     <limits.h> exists even on freestanding compilers.  */
25245
25246 #ifdef __STDC__
25247 # include <limits.h>
25248 #else
25249 # include <assert.h>
25250 #endif
25251
25252 #undef $ac_func
25253
25254 /* Override any GCC internal prototype to avoid an error.
25255    Use char because int might match the return type of a GCC
25256    builtin and then its argument prototype would still apply.  */
25257 #ifdef __cplusplus
25258 extern "C"
25259 #endif
25260 char $ac_func ();
25261 /* The GNU C library defines this for functions which it implements
25262     to always fail with ENOSYS.  Some functions are actually named
25263     something starting with __ and the normal name is an alias.  */
25264 #if defined __stub_$ac_func || defined __stub___$ac_func
25265 choke me
25266 #endif
25267
25268 int
25269 main ()
25270 {
25271 return $ac_func ();
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext conftest$ac_exeext
25277 if { (ac_try="$ac_link"
25278 case "(($ac_try" in
25279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280   *) ac_try_echo=$ac_try;;
25281 esac
25282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25283 $as_echo "$ac_try_echo") >&5
25284   (eval "$ac_link") 2>conftest.er1
25285   ac_status=$?
25286   grep -v '^ *+' conftest.er1 >conftest.err
25287   rm -f conftest.er1
25288   cat conftest.err >&5
25289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); } && {
25291          test -z "$ac_c_werror_flag" ||
25292          test ! -s conftest.err
25293        } && test -s conftest$ac_exeext && {
25294          test "$cross_compiling" = yes ||
25295          $as_test_x conftest$ac_exeext
25296        }; then
25297   eval "$as_ac_var=yes"
25298 else
25299   $as_echo "$as_me: failed program was:" >&5
25300 sed 's/^/| /' conftest.$ac_ext >&5
25301
25302         eval "$as_ac_var=no"
25303 fi
25304
25305 rm -rf conftest.dSYM
25306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25307       conftest$ac_exeext conftest.$ac_ext
25308 fi
25309 ac_res=`eval 'as_val=${'$as_ac_var'}
25310                  $as_echo "$as_val"'`
25311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25312 $as_echo "$ac_res" >&6; }
25313 as_val=`eval 'as_val=${'$as_ac_var'}
25314                  $as_echo "$as_val"'`
25315    if test "x$as_val" = x""yes; then
25316   cat >>confdefs.h <<_ACEOF
25317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25318 _ACEOF
25319
25320 fi
25321 done
25322
25323
25324
25325
25326
25327 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
25328 do
25329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25330 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25331 $as_echo_n "checking for $ac_func... " >&6; }
25332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25333   $as_echo_n "(cached) " >&6
25334 else
25335   cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25343 #define $ac_func innocuous_$ac_func
25344
25345 /* System header to define __stub macros and hopefully few prototypes,
25346     which can conflict with char $ac_func (); below.
25347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25348     <limits.h> exists even on freestanding compilers.  */
25349
25350 #ifdef __STDC__
25351 # include <limits.h>
25352 #else
25353 # include <assert.h>
25354 #endif
25355
25356 #undef $ac_func
25357
25358 /* Override any GCC internal prototype to avoid an error.
25359    Use char because int might match the return type of a GCC
25360    builtin and then its argument prototype would still apply.  */
25361 #ifdef __cplusplus
25362 extern "C"
25363 #endif
25364 char $ac_func ();
25365 /* The GNU C library defines this for functions which it implements
25366     to always fail with ENOSYS.  Some functions are actually named
25367     something starting with __ and the normal name is an alias.  */
25368 #if defined __stub_$ac_func || defined __stub___$ac_func
25369 choke me
25370 #endif
25371
25372 int
25373 main ()
25374 {
25375 return $ac_func ();
25376   ;
25377   return 0;
25378 }
25379 _ACEOF
25380 rm -f conftest.$ac_objext conftest$ac_exeext
25381 if { (ac_try="$ac_link"
25382 case "(($ac_try" in
25383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25384   *) ac_try_echo=$ac_try;;
25385 esac
25386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25387 $as_echo "$ac_try_echo") >&5
25388   (eval "$ac_link") 2>conftest.er1
25389   ac_status=$?
25390   grep -v '^ *+' conftest.er1 >conftest.err
25391   rm -f conftest.er1
25392   cat conftest.err >&5
25393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394   (exit $ac_status); } && {
25395          test -z "$ac_c_werror_flag" ||
25396          test ! -s conftest.err
25397        } && test -s conftest$ac_exeext && {
25398          test "$cross_compiling" = yes ||
25399          $as_test_x conftest$ac_exeext
25400        }; then
25401   eval "$as_ac_var=yes"
25402 else
25403   $as_echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25405
25406         eval "$as_ac_var=no"
25407 fi
25408
25409 rm -rf conftest.dSYM
25410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25411       conftest$ac_exeext conftest.$ac_ext
25412 fi
25413 ac_res=`eval 'as_val=${'$as_ac_var'}
25414                  $as_echo "$as_val"'`
25415                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25416 $as_echo "$ac_res" >&6; }
25417 as_val=`eval 'as_val=${'$as_ac_var'}
25418                  $as_echo "$as_val"'`
25419    if test "x$as_val" = x""yes; then
25420   cat >>confdefs.h <<_ACEOF
25421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25422 _ACEOF
25423
25424 fi
25425 done
25426
25427
25428
25429
25430
25431
25432 for ac_func in modf sqrt sigaction sigprocmask pthread_sigmask
25433 do
25434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25435 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25436 $as_echo_n "checking for $ac_func... " >&6; }
25437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25438   $as_echo_n "(cached) " >&6
25439 else
25440   cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25448 #define $ac_func innocuous_$ac_func
25449
25450 /* System header to define __stub macros and hopefully few prototypes,
25451     which can conflict with char $ac_func (); below.
25452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25453     <limits.h> exists even on freestanding compilers.  */
25454
25455 #ifdef __STDC__
25456 # include <limits.h>
25457 #else
25458 # include <assert.h>
25459 #endif
25460
25461 #undef $ac_func
25462
25463 /* Override any GCC internal prototype to avoid an error.
25464    Use char because int might match the return type of a GCC
25465    builtin and then its argument prototype would still apply.  */
25466 #ifdef __cplusplus
25467 extern "C"
25468 #endif
25469 char $ac_func ();
25470 /* The GNU C library defines this for functions which it implements
25471     to always fail with ENOSYS.  Some functions are actually named
25472     something starting with __ and the normal name is an alias.  */
25473 #if defined __stub_$ac_func || defined __stub___$ac_func
25474 choke me
25475 #endif
25476
25477 int
25478 main ()
25479 {
25480 return $ac_func ();
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest.$ac_objext conftest$ac_exeext
25486 if { (ac_try="$ac_link"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25492 $as_echo "$ac_try_echo") >&5
25493   (eval "$ac_link") 2>conftest.er1
25494   ac_status=$?
25495   grep -v '^ *+' conftest.er1 >conftest.err
25496   rm -f conftest.er1
25497   cat conftest.err >&5
25498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); } && {
25500          test -z "$ac_c_werror_flag" ||
25501          test ! -s conftest.err
25502        } && test -s conftest$ac_exeext && {
25503          test "$cross_compiling" = yes ||
25504          $as_test_x conftest$ac_exeext
25505        }; then
25506   eval "$as_ac_var=yes"
25507 else
25508   $as_echo "$as_me: failed program was:" >&5
25509 sed 's/^/| /' conftest.$ac_ext >&5
25510
25511         eval "$as_ac_var=no"
25512 fi
25513
25514 rm -rf conftest.dSYM
25515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25516       conftest$ac_exeext conftest.$ac_ext
25517 fi
25518 ac_res=`eval 'as_val=${'$as_ac_var'}
25519                  $as_echo "$as_val"'`
25520                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25521 $as_echo "$ac_res" >&6; }
25522 as_val=`eval 'as_val=${'$as_ac_var'}
25523                  $as_echo "$as_val"'`
25524    if test "x$as_val" = x""yes; then
25525   cat >>confdefs.h <<_ACEOF
25526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25527 _ACEOF
25528
25529 fi
25530 done
25531
25532
25533 for ac_func in sched_setaffinity
25534 do
25535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25536 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25537 $as_echo_n "checking for $ac_func... " >&6; }
25538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25539   $as_echo_n "(cached) " >&6
25540 else
25541   cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h.  */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h.  */
25547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25549 #define $ac_func innocuous_$ac_func
25550
25551 /* System header to define __stub macros and hopefully few prototypes,
25552     which can conflict with char $ac_func (); below.
25553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25554     <limits.h> exists even on freestanding compilers.  */
25555
25556 #ifdef __STDC__
25557 # include <limits.h>
25558 #else
25559 # include <assert.h>
25560 #endif
25561
25562 #undef $ac_func
25563
25564 /* Override any GCC internal prototype to avoid an error.
25565    Use char because int might match the return type of a GCC
25566    builtin and then its argument prototype would still apply.  */
25567 #ifdef __cplusplus
25568 extern "C"
25569 #endif
25570 char $ac_func ();
25571 /* The GNU C library defines this for functions which it implements
25572     to always fail with ENOSYS.  Some functions are actually named
25573     something starting with __ and the normal name is an alias.  */
25574 #if defined __stub_$ac_func || defined __stub___$ac_func
25575 choke me
25576 #endif
25577
25578 int
25579 main ()
25580 {
25581 return $ac_func ();
25582   ;
25583   return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext conftest$ac_exeext
25587 if { (ac_try="$ac_link"
25588 case "(($ac_try" in
25589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590   *) ac_try_echo=$ac_try;;
25591 esac
25592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25593 $as_echo "$ac_try_echo") >&5
25594   (eval "$ac_link") 2>conftest.er1
25595   ac_status=$?
25596   grep -v '^ *+' conftest.er1 >conftest.err
25597   rm -f conftest.er1
25598   cat conftest.err >&5
25599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); } && {
25601          test -z "$ac_c_werror_flag" ||
25602          test ! -s conftest.err
25603        } && test -s conftest$ac_exeext && {
25604          test "$cross_compiling" = yes ||
25605          $as_test_x conftest$ac_exeext
25606        }; then
25607   eval "$as_ac_var=yes"
25608 else
25609   $as_echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25611
25612         eval "$as_ac_var=no"
25613 fi
25614
25615 rm -rf conftest.dSYM
25616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25617       conftest$ac_exeext conftest.$ac_ext
25618 fi
25619 ac_res=`eval 'as_val=${'$as_ac_var'}
25620                  $as_echo "$as_val"'`
25621                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25622 $as_echo "$ac_res" >&6; }
25623 as_val=`eval 'as_val=${'$as_ac_var'}
25624                  $as_echo "$as_val"'`
25625    if test "x$as_val" = x""yes; then
25626   cat >>confdefs.h <<_ACEOF
25627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25628 _ACEOF
25629
25630 fi
25631 done
25632
25633
25634 { $as_echo "$as_me:$LINENO: checking for sincos in -lm" >&5
25635 $as_echo_n "checking for sincos in -lm... " >&6; }
25636 if test "${ac_cv_lib_m_sincos+set}" = set; then
25637   $as_echo_n "(cached) " >&6
25638 else
25639   ac_check_lib_save_LIBS=$LIBS
25640 LIBS="-lm  $LIBS"
25641 cat >conftest.$ac_ext <<_ACEOF
25642 /* confdefs.h.  */
25643 _ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h.  */
25647
25648 /* Override any GCC internal prototype to avoid an error.
25649    Use char because int might match the return type of a GCC
25650    builtin and then its argument prototype would still apply.  */
25651 #ifdef __cplusplus
25652 extern "C"
25653 #endif
25654 char sincos ();
25655 int
25656 main ()
25657 {
25658 return sincos ();
25659   ;
25660   return 0;
25661 }
25662 _ACEOF
25663 rm -f conftest.$ac_objext conftest$ac_exeext
25664 if { (ac_try="$ac_link"
25665 case "(($ac_try" in
25666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667   *) ac_try_echo=$ac_try;;
25668 esac
25669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25670 $as_echo "$ac_try_echo") >&5
25671   (eval "$ac_link") 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } && {
25678          test -z "$ac_c_werror_flag" ||
25679          test ! -s conftest.err
25680        } && test -s conftest$ac_exeext && {
25681          test "$cross_compiling" = yes ||
25682          $as_test_x conftest$ac_exeext
25683        }; then
25684   ac_cv_lib_m_sincos=yes
25685 else
25686   $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689         ac_cv_lib_m_sincos=no
25690 fi
25691
25692 rm -rf conftest.dSYM
25693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25694       conftest$ac_exeext conftest.$ac_ext
25695 LIBS=$ac_check_lib_save_LIBS
25696 fi
25697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
25698 $as_echo "$ac_cv_lib_m_sincos" >&6; }
25699 if test "x$ac_cv_lib_m_sincos" = x""yes; then
25700
25701 cat >>confdefs.h <<\_ACEOF
25702 #define HAVE_SINCOS 1
25703 _ACEOF
25704
25705 fi
25706
25707 { $as_echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
25708 $as_echo_n "checking for sincosf in -lm... " >&6; }
25709 if test "${ac_cv_lib_m_sincosf+set}" = set; then
25710   $as_echo_n "(cached) " >&6
25711 else
25712   ac_check_lib_save_LIBS=$LIBS
25713 LIBS="-lm  $LIBS"
25714 cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h.  */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h.  */
25720
25721 /* Override any GCC internal prototype to avoid an error.
25722    Use char because int might match the return type of a GCC
25723    builtin and then its argument prototype would still apply.  */
25724 #ifdef __cplusplus
25725 extern "C"
25726 #endif
25727 char sincosf ();
25728 int
25729 main ()
25730 {
25731 return sincosf ();
25732   ;
25733   return 0;
25734 }
25735 _ACEOF
25736 rm -f conftest.$ac_objext conftest$ac_exeext
25737 if { (ac_try="$ac_link"
25738 case "(($ac_try" in
25739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25740   *) ac_try_echo=$ac_try;;
25741 esac
25742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25743 $as_echo "$ac_try_echo") >&5
25744   (eval "$ac_link") 2>conftest.er1
25745   ac_status=$?
25746   grep -v '^ *+' conftest.er1 >conftest.err
25747   rm -f conftest.er1
25748   cat conftest.err >&5
25749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); } && {
25751          test -z "$ac_c_werror_flag" ||
25752          test ! -s conftest.err
25753        } && test -s conftest$ac_exeext && {
25754          test "$cross_compiling" = yes ||
25755          $as_test_x conftest$ac_exeext
25756        }; then
25757   ac_cv_lib_m_sincosf=yes
25758 else
25759   $as_echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25761
25762         ac_cv_lib_m_sincosf=no
25763 fi
25764
25765 rm -rf conftest.dSYM
25766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25767       conftest$ac_exeext conftest.$ac_ext
25768 LIBS=$ac_check_lib_save_LIBS
25769 fi
25770 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
25771 $as_echo "$ac_cv_lib_m_sincosf" >&6; }
25772 if test "x$ac_cv_lib_m_sincosf" = x""yes; then
25773
25774 cat >>confdefs.h <<\_ACEOF
25775 #define HAVE_SINCOSF 1
25776 _ACEOF
25777
25778 fi
25779
25780 { $as_echo "$as_me:$LINENO: checking for sinf in -lm" >&5
25781 $as_echo_n "checking for sinf in -lm... " >&6; }
25782 if test "${ac_cv_lib_m_sinf+set}" = set; then
25783   $as_echo_n "(cached) " >&6
25784 else
25785   ac_check_lib_save_LIBS=$LIBS
25786 LIBS="-lm  $LIBS"
25787 cat >conftest.$ac_ext <<_ACEOF
25788 /* confdefs.h.  */
25789 _ACEOF
25790 cat confdefs.h >>conftest.$ac_ext
25791 cat >>conftest.$ac_ext <<_ACEOF
25792 /* end confdefs.h.  */
25793
25794 /* Override any GCC internal prototype to avoid an error.
25795    Use char because int might match the return type of a GCC
25796    builtin and then its argument prototype would still apply.  */
25797 #ifdef __cplusplus
25798 extern "C"
25799 #endif
25800 char sinf ();
25801 int
25802 main ()
25803 {
25804 return sinf ();
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest.$ac_objext conftest$ac_exeext
25810 if { (ac_try="$ac_link"
25811 case "(($ac_try" in
25812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813   *) ac_try_echo=$ac_try;;
25814 esac
25815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25816 $as_echo "$ac_try_echo") >&5
25817   (eval "$ac_link") 2>conftest.er1
25818   ac_status=$?
25819   grep -v '^ *+' conftest.er1 >conftest.err
25820   rm -f conftest.er1
25821   cat conftest.err >&5
25822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); } && {
25824          test -z "$ac_c_werror_flag" ||
25825          test ! -s conftest.err
25826        } && test -s conftest$ac_exeext && {
25827          test "$cross_compiling" = yes ||
25828          $as_test_x conftest$ac_exeext
25829        }; then
25830   ac_cv_lib_m_sinf=yes
25831 else
25832   $as_echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25834
25835         ac_cv_lib_m_sinf=no
25836 fi
25837
25838 rm -rf conftest.dSYM
25839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25840       conftest$ac_exeext conftest.$ac_ext
25841 LIBS=$ac_check_lib_save_LIBS
25842 fi
25843 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
25844 $as_echo "$ac_cv_lib_m_sinf" >&6; }
25845 if test "x$ac_cv_lib_m_sinf" = x""yes; then
25846
25847 cat >>confdefs.h <<\_ACEOF
25848 #define HAVE_SINF 1
25849 _ACEOF
25850
25851 fi
25852
25853 { $as_echo "$as_me:$LINENO: checking for cosf in -lm" >&5
25854 $as_echo_n "checking for cosf in -lm... " >&6; }
25855 if test "${ac_cv_lib_m_cosf+set}" = set; then
25856   $as_echo_n "(cached) " >&6
25857 else
25858   ac_check_lib_save_LIBS=$LIBS
25859 LIBS="-lm  $LIBS"
25860 cat >conftest.$ac_ext <<_ACEOF
25861 /* confdefs.h.  */
25862 _ACEOF
25863 cat confdefs.h >>conftest.$ac_ext
25864 cat >>conftest.$ac_ext <<_ACEOF
25865 /* end confdefs.h.  */
25866
25867 /* Override any GCC internal prototype to avoid an error.
25868    Use char because int might match the return type of a GCC
25869    builtin and then its argument prototype would still apply.  */
25870 #ifdef __cplusplus
25871 extern "C"
25872 #endif
25873 char cosf ();
25874 int
25875 main ()
25876 {
25877 return cosf ();
25878   ;
25879   return 0;
25880 }
25881 _ACEOF
25882 rm -f conftest.$ac_objext conftest$ac_exeext
25883 if { (ac_try="$ac_link"
25884 case "(($ac_try" in
25885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886   *) ac_try_echo=$ac_try;;
25887 esac
25888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25889 $as_echo "$ac_try_echo") >&5
25890   (eval "$ac_link") 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } && {
25897          test -z "$ac_c_werror_flag" ||
25898          test ! -s conftest.err
25899        } && test -s conftest$ac_exeext && {
25900          test "$cross_compiling" = yes ||
25901          $as_test_x conftest$ac_exeext
25902        }; then
25903   ac_cv_lib_m_cosf=yes
25904 else
25905   $as_echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908         ac_cv_lib_m_cosf=no
25909 fi
25910
25911 rm -rf conftest.dSYM
25912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25913       conftest$ac_exeext conftest.$ac_ext
25914 LIBS=$ac_check_lib_save_LIBS
25915 fi
25916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
25917 $as_echo "$ac_cv_lib_m_cosf" >&6; }
25918 if test "x$ac_cv_lib_m_cosf" = x""yes; then
25919
25920 cat >>confdefs.h <<\_ACEOF
25921 #define HAVE_COSF 1
25922 _ACEOF
25923
25924 fi
25925
25926 { $as_echo "$as_me:$LINENO: checking for trunc in -lm" >&5
25927 $as_echo_n "checking for trunc in -lm... " >&6; }
25928 if test "${ac_cv_lib_m_trunc+set}" = set; then
25929   $as_echo_n "(cached) " >&6
25930 else
25931   ac_check_lib_save_LIBS=$LIBS
25932 LIBS="-lm  $LIBS"
25933 cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h.  */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h.  */
25939
25940 /* Override any GCC internal prototype to avoid an error.
25941    Use char because int might match the return type of a GCC
25942    builtin and then its argument prototype would still apply.  */
25943 #ifdef __cplusplus
25944 extern "C"
25945 #endif
25946 char trunc ();
25947 int
25948 main ()
25949 {
25950 return trunc ();
25951   ;
25952   return 0;
25953 }
25954 _ACEOF
25955 rm -f conftest.$ac_objext conftest$ac_exeext
25956 if { (ac_try="$ac_link"
25957 case "(($ac_try" in
25958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959   *) ac_try_echo=$ac_try;;
25960 esac
25961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25962 $as_echo "$ac_try_echo") >&5
25963   (eval "$ac_link") 2>conftest.er1
25964   ac_status=$?
25965   grep -v '^ *+' conftest.er1 >conftest.err
25966   rm -f conftest.er1
25967   cat conftest.err >&5
25968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } && {
25970          test -z "$ac_c_werror_flag" ||
25971          test ! -s conftest.err
25972        } && test -s conftest$ac_exeext && {
25973          test "$cross_compiling" = yes ||
25974          $as_test_x conftest$ac_exeext
25975        }; then
25976   ac_cv_lib_m_trunc=yes
25977 else
25978   $as_echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981         ac_cv_lib_m_trunc=no
25982 fi
25983
25984 rm -rf conftest.dSYM
25985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25986       conftest$ac_exeext conftest.$ac_ext
25987 LIBS=$ac_check_lib_save_LIBS
25988 fi
25989 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
25990 $as_echo "$ac_cv_lib_m_trunc" >&6; }
25991 if test "x$ac_cv_lib_m_trunc" = x""yes; then
25992
25993 cat >>confdefs.h <<\_ACEOF
25994 #define HAVE_TRUNC 1
25995 _ACEOF
25996
25997 fi
25998
25999 { $as_echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
26000 $as_echo_n "checking for exp10 in -lm... " >&6; }
26001 if test "${ac_cv_lib_m_exp10+set}" = set; then
26002   $as_echo_n "(cached) " >&6
26003 else
26004   ac_check_lib_save_LIBS=$LIBS
26005 LIBS="-lm  $LIBS"
26006 cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012
26013 /* Override any GCC internal prototype to avoid an error.
26014    Use char because int might match the return type of a GCC
26015    builtin and then its argument prototype would still apply.  */
26016 #ifdef __cplusplus
26017 extern "C"
26018 #endif
26019 char exp10 ();
26020 int
26021 main ()
26022 {
26023 return exp10 ();
26024   ;
26025   return 0;
26026 }
26027 _ACEOF
26028 rm -f conftest.$ac_objext conftest$ac_exeext
26029 if { (ac_try="$ac_link"
26030 case "(($ac_try" in
26031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26032   *) ac_try_echo=$ac_try;;
26033 esac
26034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26035 $as_echo "$ac_try_echo") >&5
26036   (eval "$ac_link") 2>conftest.er1
26037   ac_status=$?
26038   grep -v '^ *+' conftest.er1 >conftest.err
26039   rm -f conftest.er1
26040   cat conftest.err >&5
26041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } && {
26043          test -z "$ac_c_werror_flag" ||
26044          test ! -s conftest.err
26045        } && test -s conftest$ac_exeext && {
26046          test "$cross_compiling" = yes ||
26047          $as_test_x conftest$ac_exeext
26048        }; then
26049   ac_cv_lib_m_exp10=yes
26050 else
26051   $as_echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054         ac_cv_lib_m_exp10=no
26055 fi
26056
26057 rm -rf conftest.dSYM
26058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26059       conftest$ac_exeext conftest.$ac_ext
26060 LIBS=$ac_check_lib_save_LIBS
26061 fi
26062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
26063 $as_echo "$ac_cv_lib_m_exp10" >&6; }
26064 if test "x$ac_cv_lib_m_exp10" = x""yes; then
26065
26066 cat >>confdefs.h <<\_ACEOF
26067 #define HAVE_EXP10 1
26068 _ACEOF
26069
26070 fi
26071
26072 { $as_echo "$as_me:$LINENO: checking for log2 in -lm" >&5
26073 $as_echo_n "checking for log2 in -lm... " >&6; }
26074 if test "${ac_cv_lib_m_log2+set}" = set; then
26075   $as_echo_n "(cached) " >&6
26076 else
26077   ac_check_lib_save_LIBS=$LIBS
26078 LIBS="-lm  $LIBS"
26079 cat >conftest.$ac_ext <<_ACEOF
26080 /* confdefs.h.  */
26081 _ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h.  */
26085
26086 /* Override any GCC internal prototype to avoid an error.
26087    Use char because int might match the return type of a GCC
26088    builtin and then its argument prototype would still apply.  */
26089 #ifdef __cplusplus
26090 extern "C"
26091 #endif
26092 char log2 ();
26093 int
26094 main ()
26095 {
26096 return log2 ();
26097   ;
26098   return 0;
26099 }
26100 _ACEOF
26101 rm -f conftest.$ac_objext conftest$ac_exeext
26102 if { (ac_try="$ac_link"
26103 case "(($ac_try" in
26104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26105   *) ac_try_echo=$ac_try;;
26106 esac
26107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26108 $as_echo "$ac_try_echo") >&5
26109   (eval "$ac_link") 2>conftest.er1
26110   ac_status=$?
26111   grep -v '^ *+' conftest.er1 >conftest.err
26112   rm -f conftest.er1
26113   cat conftest.err >&5
26114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } && {
26116          test -z "$ac_c_werror_flag" ||
26117          test ! -s conftest.err
26118        } && test -s conftest$ac_exeext && {
26119          test "$cross_compiling" = yes ||
26120          $as_test_x conftest$ac_exeext
26121        }; then
26122   ac_cv_lib_m_log2=yes
26123 else
26124   $as_echo "$as_me: failed program was:" >&5
26125 sed 's/^/| /' conftest.$ac_ext >&5
26126
26127         ac_cv_lib_m_log2=no
26128 fi
26129
26130 rm -rf conftest.dSYM
26131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26132       conftest$ac_exeext conftest.$ac_ext
26133 LIBS=$ac_check_lib_save_LIBS
26134 fi
26135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_log2" >&5
26136 $as_echo "$ac_cv_lib_m_log2" >&6; }
26137 if test "x$ac_cv_lib_m_log2" = x""yes; then
26138
26139 cat >>confdefs.h <<\_ACEOF
26140 #define HAVE_LOG2 1
26141 _ACEOF
26142
26143 fi
26144
26145 #AC_FUNC_MKTIME
26146
26147
26148
26149
26150
26151   SHM_OPEN_LIBS=""
26152   save_LIBS="$LIBS"
26153   { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26154 $as_echo_n "checking for library containing shm_open... " >&6; }
26155 if test "${ac_cv_search_shm_open+set}" = set; then
26156   $as_echo_n "(cached) " >&6
26157 else
26158   ac_func_search_save_LIBS=$LIBS
26159 cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165
26166 /* Override any GCC internal prototype to avoid an error.
26167    Use char because int might match the return type of a GCC
26168    builtin and then its argument prototype would still apply.  */
26169 #ifdef __cplusplus
26170 extern "C"
26171 #endif
26172 char shm_open ();
26173 int
26174 main ()
26175 {
26176 return shm_open ();
26177   ;
26178   return 0;
26179 }
26180 _ACEOF
26181 for ac_lib in '' rt; do
26182   if test -z "$ac_lib"; then
26183     ac_res="none required"
26184   else
26185     ac_res=-l$ac_lib
26186     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26187   fi
26188   rm -f conftest.$ac_objext conftest$ac_exeext
26189 if { (ac_try="$ac_link"
26190 case "(($ac_try" in
26191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192   *) ac_try_echo=$ac_try;;
26193 esac
26194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26195 $as_echo "$ac_try_echo") >&5
26196   (eval "$ac_link") 2>conftest.er1
26197   ac_status=$?
26198   grep -v '^ *+' conftest.er1 >conftest.err
26199   rm -f conftest.er1
26200   cat conftest.err >&5
26201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); } && {
26203          test -z "$ac_c_werror_flag" ||
26204          test ! -s conftest.err
26205        } && test -s conftest$ac_exeext && {
26206          test "$cross_compiling" = yes ||
26207          $as_test_x conftest$ac_exeext
26208        }; then
26209   ac_cv_search_shm_open=$ac_res
26210 else
26211   $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214
26215 fi
26216
26217 rm -rf conftest.dSYM
26218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26219       conftest$ac_exeext
26220   if test "${ac_cv_search_shm_open+set}" = set; then
26221   break
26222 fi
26223 done
26224 if test "${ac_cv_search_shm_open+set}" = set; then
26225   :
26226 else
26227   ac_cv_search_shm_open=no
26228 fi
26229 rm conftest.$ac_ext
26230 LIBS=$ac_func_search_save_LIBS
26231 fi
26232 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26233 $as_echo "$ac_cv_search_shm_open" >&6; }
26234 ac_res=$ac_cv_search_shm_open
26235 if test "$ac_res" != no; then
26236   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26237   SHM_OPEN_LIBS="$LIBS"
26238 fi
26239
26240
26241 for ac_func in shm_open
26242 do
26243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26244 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26245 $as_echo_n "checking for $ac_func... " >&6; }
26246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26247   $as_echo_n "(cached) " >&6
26248 else
26249   cat >conftest.$ac_ext <<_ACEOF
26250 /* confdefs.h.  */
26251 _ACEOF
26252 cat confdefs.h >>conftest.$ac_ext
26253 cat >>conftest.$ac_ext <<_ACEOF
26254 /* end confdefs.h.  */
26255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26257 #define $ac_func innocuous_$ac_func
26258
26259 /* System header to define __stub macros and hopefully few prototypes,
26260     which can conflict with char $ac_func (); below.
26261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26262     <limits.h> exists even on freestanding compilers.  */
26263
26264 #ifdef __STDC__
26265 # include <limits.h>
26266 #else
26267 # include <assert.h>
26268 #endif
26269
26270 #undef $ac_func
26271
26272 /* Override any GCC internal prototype to avoid an error.
26273    Use char because int might match the return type of a GCC
26274    builtin and then its argument prototype would still apply.  */
26275 #ifdef __cplusplus
26276 extern "C"
26277 #endif
26278 char $ac_func ();
26279 /* The GNU C library defines this for functions which it implements
26280     to always fail with ENOSYS.  Some functions are actually named
26281     something starting with __ and the normal name is an alias.  */
26282 #if defined __stub_$ac_func || defined __stub___$ac_func
26283 choke me
26284 #endif
26285
26286 int
26287 main ()
26288 {
26289 return $ac_func ();
26290   ;
26291   return 0;
26292 }
26293 _ACEOF
26294 rm -f conftest.$ac_objext conftest$ac_exeext
26295 if { (ac_try="$ac_link"
26296 case "(($ac_try" in
26297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298   *) ac_try_echo=$ac_try;;
26299 esac
26300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26301 $as_echo "$ac_try_echo") >&5
26302   (eval "$ac_link") 2>conftest.er1
26303   ac_status=$?
26304   grep -v '^ *+' conftest.er1 >conftest.err
26305   rm -f conftest.er1
26306   cat conftest.err >&5
26307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); } && {
26309          test -z "$ac_c_werror_flag" ||
26310          test ! -s conftest.err
26311        } && test -s conftest$ac_exeext && {
26312          test "$cross_compiling" = yes ||
26313          $as_test_x conftest$ac_exeext
26314        }; then
26315   eval "$as_ac_var=yes"
26316 else
26317   $as_echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320         eval "$as_ac_var=no"
26321 fi
26322
26323 rm -rf conftest.dSYM
26324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26325       conftest$ac_exeext conftest.$ac_ext
26326 fi
26327 ac_res=`eval 'as_val=${'$as_ac_var'}
26328                  $as_echo "$as_val"'`
26329                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26330 $as_echo "$ac_res" >&6; }
26331 as_val=`eval 'as_val=${'$as_ac_var'}
26332                  $as_echo "$as_val"'`
26333    if test "x$as_val" = x""yes; then
26334   cat >>confdefs.h <<_ACEOF
26335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26336 _ACEOF
26337
26338 fi
26339 done
26340
26341   LIBS="$save_LIBS"
26342
26343
26344
26345
26346 # Check whether --with-gnu-ld was given.
26347 if test "${with_gnu_ld+set}" = set; then
26348   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
26349 else
26350   with_gnu_ld=no
26351 fi
26352
26353 ac_prog=ld
26354 if test "$GCC" = yes; then
26355   # Check if gcc -print-prog-name=ld gives a path.
26356   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
26357 $as_echo_n "checking for ld used by $CC... " >&6; }
26358   case $host in
26359   *-*-mingw*)
26360     # gcc leaves a trailing carriage return which upsets mingw
26361     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26362   *)
26363     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26364   esac
26365   case $ac_prog in
26366     # Accept absolute paths.
26367     [\\/]* | ?:[\\/]*)
26368       re_direlt='/[^/][^/]*/\.\./'
26369       # Canonicalize the pathname of ld
26370       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
26371       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
26372         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
26373       done
26374       test -z "$LD" && LD="$ac_prog"
26375       ;;
26376   "")
26377     # If it fails, then pretend we aren't using GCC.
26378     ac_prog=ld
26379     ;;
26380   *)
26381     # If it is relative, then search for the first ld in PATH.
26382     with_gnu_ld=unknown
26383     ;;
26384   esac
26385 elif test "$with_gnu_ld" = yes; then
26386   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
26387 $as_echo_n "checking for GNU ld... " >&6; }
26388 else
26389   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
26390 $as_echo_n "checking for non-GNU ld... " >&6; }
26391 fi
26392 if test "${lt_cv_path_LD+set}" = set; then
26393   $as_echo_n "(cached) " >&6
26394 else
26395   if test -z "$LD"; then
26396   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
26397   for ac_dir in $PATH; do
26398     IFS="$lt_save_ifs"
26399     test -z "$ac_dir" && ac_dir=.
26400     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26401       lt_cv_path_LD="$ac_dir/$ac_prog"
26402       # Check to see if the program is GNU ld.  I'd rather use --version,
26403       # but apparently some variants of GNU ld only accept -v.
26404       # Break only if it was the GNU/non-GNU ld that we prefer.
26405       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
26406       *GNU* | *'with BFD'*)
26407         test "$with_gnu_ld" != no && break
26408         ;;
26409       *)
26410         test "$with_gnu_ld" != yes && break
26411         ;;
26412       esac
26413     fi
26414   done
26415   IFS="$lt_save_ifs"
26416 else
26417   lt_cv_path_LD="$LD" # Let the user override the test with a path.
26418 fi
26419 fi
26420
26421 LD="$lt_cv_path_LD"
26422 if test -n "$LD"; then
26423   { $as_echo "$as_me:$LINENO: result: $LD" >&5
26424 $as_echo "$LD" >&6; }
26425 else
26426   { $as_echo "$as_me:$LINENO: result: no" >&5
26427 $as_echo "no" >&6; }
26428 fi
26429 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
26430 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
26431    { (exit 1); exit 1; }; }
26432 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
26433 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
26434 if test "${lt_cv_prog_gnu_ld+set}" = set; then
26435   $as_echo_n "(cached) " >&6
26436 else
26437   # I'd rather use --version here, but apparently some GNU lds only accept -v.
26438 case `$LD -v 2>&1 </dev/null` in
26439 *GNU* | *'with BFD'*)
26440   lt_cv_prog_gnu_ld=yes
26441   ;;
26442 *)
26443   lt_cv_prog_gnu_ld=no
26444   ;;
26445 esac
26446 fi
26447 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
26448 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
26449 with_gnu_ld=$lt_cv_prog_gnu_ld
26450
26451
26452
26453
26454
26455
26456
26457
26458 # on Mingw32 extra LDFLAGS are required to ease global variable linking
26459 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
26460
26461 { $as_echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
26462 $as_echo_n "checking whether $LD accepts --enable-runtime-pseudo-reloc... " >&6; }
26463 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
26464 then
26465         # libtool requires the quotes
26466         LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
26467         { $as_echo "$as_me:$LINENO: result: yes" >&5
26468 $as_echo "yes" >&6; }
26469 else
26470         { $as_echo "$as_me:$LINENO: result: no" >&5
26471 $as_echo "no" >&6; }
26472 fi
26473
26474
26475
26476
26477
26478   { $as_echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
26479 $as_echo_n "checking for CreateFileMapping function... " >&6; }
26480   cat >conftest.$ac_ext <<_ACEOF
26481
26482 #include <windows.h>
26483 int main (int argc, char **argv)
26484 {
26485     HANDLE handle;
26486     int size;
26487     char                seg_name[1024];
26488     handle = CreateFileMapping(
26489                      INVALID_HANDLE_VALUE,    // use paging file
26490                      NULL,                    // default security
26491                      PAGE_READWRITE,          // read/write access
26492                      0,                       // max. object size
26493                      size,                // buffer size
26494                      seg_name);                 // name of mapping object
26495     return 0;
26496 }
26497
26498 _ACEOF
26499 rm -f conftest.$ac_objext
26500 if { (ac_try="$ac_compile"
26501 case "(($ac_try" in
26502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503   *) ac_try_echo=$ac_try;;
26504 esac
26505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26506 $as_echo "$ac_try_echo") >&5
26507   (eval "$ac_compile") 2>conftest.er1
26508   ac_status=$?
26509   grep -v '^ *+' conftest.er1 >conftest.err
26510   rm -f conftest.er1
26511   cat conftest.err >&5
26512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); } && {
26514          test -z "$ac_c_werror_flag" ||
26515          test ! -s conftest.err
26516        } && test -s conftest.$ac_objext; then
26517   HAVE_CREATEFILEMAPPING=yes
26518
26519 cat >>confdefs.h <<\_ACEOF
26520 #define HAVE_CREATEFILEMAPPING 1
26521 _ACEOF
26522
26523 else
26524   $as_echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527         HAVE_CREATEFILEMAPPING=no
26528 fi
26529
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531
26532   { $as_echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
26533 $as_echo "$HAVE_CREATEFILEMAPPING" >&6; }
26534    if test x$HAVE_CREATEFILEMAPPING = xyes; then
26535   HAVE_CREATEFILEMAPPING_TRUE=
26536   HAVE_CREATEFILEMAPPING_FALSE='#'
26537 else
26538   HAVE_CREATEFILEMAPPING_TRUE='#'
26539   HAVE_CREATEFILEMAPPING_FALSE=
26540 fi
26541
26542
26543
26544
26545
26546
26547
26548
26549 for ac_header in sys/types.h fcntl.h io.h
26550 do
26551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26553   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26554 $as_echo_n "checking for $ac_header... " >&6; }
26555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26556   $as_echo_n "(cached) " >&6
26557 fi
26558 ac_res=`eval 'as_val=${'$as_ac_Header'}
26559                  $as_echo "$as_val"'`
26560                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26561 $as_echo "$ac_res" >&6; }
26562 else
26563   # Is the header compilable?
26564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26565 $as_echo_n "checking $ac_header usability... " >&6; }
26566 cat >conftest.$ac_ext <<_ACEOF
26567 /* confdefs.h.  */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h.  */
26572 $ac_includes_default
26573 #include <$ac_header>
26574 _ACEOF
26575 rm -f conftest.$ac_objext
26576 if { (ac_try="$ac_compile"
26577 case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26582 $as_echo "$ac_try_echo") >&5
26583   (eval "$ac_compile") 2>conftest.er1
26584   ac_status=$?
26585   grep -v '^ *+' conftest.er1 >conftest.err
26586   rm -f conftest.er1
26587   cat conftest.err >&5
26588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589   (exit $ac_status); } && {
26590          test -z "$ac_c_werror_flag" ||
26591          test ! -s conftest.err
26592        } && test -s conftest.$ac_objext; then
26593   ac_header_compiler=yes
26594 else
26595   $as_echo "$as_me: failed program was:" >&5
26596 sed 's/^/| /' conftest.$ac_ext >&5
26597
26598         ac_header_compiler=no
26599 fi
26600
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26603 $as_echo "$ac_header_compiler" >&6; }
26604
26605 # Is the header present?
26606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26607 $as_echo_n "checking $ac_header presence... " >&6; }
26608 cat >conftest.$ac_ext <<_ACEOF
26609 /* confdefs.h.  */
26610 _ACEOF
26611 cat confdefs.h >>conftest.$ac_ext
26612 cat >>conftest.$ac_ext <<_ACEOF
26613 /* end confdefs.h.  */
26614 #include <$ac_header>
26615 _ACEOF
26616 if { (ac_try="$ac_cpp conftest.$ac_ext"
26617 case "(($ac_try" in
26618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619   *) ac_try_echo=$ac_try;;
26620 esac
26621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26622 $as_echo "$ac_try_echo") >&5
26623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26624   ac_status=$?
26625   grep -v '^ *+' conftest.er1 >conftest.err
26626   rm -f conftest.er1
26627   cat conftest.err >&5
26628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629   (exit $ac_status); } >/dev/null && {
26630          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26631          test ! -s conftest.err
26632        }; then
26633   ac_header_preproc=yes
26634 else
26635   $as_echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638   ac_header_preproc=no
26639 fi
26640
26641 rm -f conftest.err conftest.$ac_ext
26642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26643 $as_echo "$ac_header_preproc" >&6; }
26644
26645 # So?  What about this header?
26646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26647   yes:no: )
26648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26652     ac_header_preproc=yes
26653     ;;
26654   no:yes:* )
26655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26657     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26658 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26659     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26662 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26667
26668     ;;
26669 esac
26670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26671 $as_echo_n "checking for $ac_header... " >&6; }
26672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26673   $as_echo_n "(cached) " >&6
26674 else
26675   eval "$as_ac_Header=\$ac_header_preproc"
26676 fi
26677 ac_res=`eval 'as_val=${'$as_ac_Header'}
26678                  $as_echo "$as_val"'`
26679                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26680 $as_echo "$ac_res" >&6; }
26681
26682 fi
26683 as_val=`eval 'as_val=${'$as_ac_Header'}
26684                  $as_echo "$as_val"'`
26685    if test "x$as_val" = x""yes; then
26686   cat >>confdefs.h <<_ACEOF
26687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26688 _ACEOF
26689
26690 fi
26691
26692 done
26693
26694
26695 for ac_header in windows.h
26696 do
26697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26699   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26700 $as_echo_n "checking for $ac_header... " >&6; }
26701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26702   $as_echo_n "(cached) " >&6
26703 fi
26704 ac_res=`eval 'as_val=${'$as_ac_Header'}
26705                  $as_echo "$as_val"'`
26706                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26707 $as_echo "$ac_res" >&6; }
26708 else
26709   # Is the header compilable?
26710 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26711 $as_echo_n "checking $ac_header usability... " >&6; }
26712 cat >conftest.$ac_ext <<_ACEOF
26713 /* confdefs.h.  */
26714 _ACEOF
26715 cat confdefs.h >>conftest.$ac_ext
26716 cat >>conftest.$ac_ext <<_ACEOF
26717 /* end confdefs.h.  */
26718 $ac_includes_default
26719 #include <$ac_header>
26720 _ACEOF
26721 rm -f conftest.$ac_objext
26722 if { (ac_try="$ac_compile"
26723 case "(($ac_try" in
26724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26725   *) ac_try_echo=$ac_try;;
26726 esac
26727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26728 $as_echo "$ac_try_echo") >&5
26729   (eval "$ac_compile") 2>conftest.er1
26730   ac_status=$?
26731   grep -v '^ *+' conftest.er1 >conftest.err
26732   rm -f conftest.er1
26733   cat conftest.err >&5
26734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); } && {
26736          test -z "$ac_c_werror_flag" ||
26737          test ! -s conftest.err
26738        } && test -s conftest.$ac_objext; then
26739   ac_header_compiler=yes
26740 else
26741   $as_echo "$as_me: failed program was:" >&5
26742 sed 's/^/| /' conftest.$ac_ext >&5
26743
26744         ac_header_compiler=no
26745 fi
26746
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26749 $as_echo "$ac_header_compiler" >&6; }
26750
26751 # Is the header present?
26752 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26753 $as_echo_n "checking $ac_header presence... " >&6; }
26754 cat >conftest.$ac_ext <<_ACEOF
26755 /* confdefs.h.  */
26756 _ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h.  */
26760 #include <$ac_header>
26761 _ACEOF
26762 if { (ac_try="$ac_cpp conftest.$ac_ext"
26763 case "(($ac_try" in
26764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26765   *) ac_try_echo=$ac_try;;
26766 esac
26767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26768 $as_echo "$ac_try_echo") >&5
26769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26770   ac_status=$?
26771   grep -v '^ *+' conftest.er1 >conftest.err
26772   rm -f conftest.er1
26773   cat conftest.err >&5
26774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); } >/dev/null && {
26776          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26777          test ! -s conftest.err
26778        }; then
26779   ac_header_preproc=yes
26780 else
26781   $as_echo "$as_me: failed program was:" >&5
26782 sed 's/^/| /' conftest.$ac_ext >&5
26783
26784   ac_header_preproc=no
26785 fi
26786
26787 rm -f conftest.err conftest.$ac_ext
26788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26789 $as_echo "$ac_header_preproc" >&6; }
26790
26791 # So?  What about this header?
26792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26793   yes:no: )
26794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26795 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26798     ac_header_preproc=yes
26799     ;;
26800   no:yes:* )
26801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26802 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26804 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26806 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26807     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26808 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26810 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26812 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26813
26814     ;;
26815 esac
26816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26817 $as_echo_n "checking for $ac_header... " >&6; }
26818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26819   $as_echo_n "(cached) " >&6
26820 else
26821   eval "$as_ac_Header=\$ac_header_preproc"
26822 fi
26823 ac_res=`eval 'as_val=${'$as_ac_Header'}
26824                  $as_echo "$as_val"'`
26825                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26826 $as_echo "$ac_res" >&6; }
26827
26828 fi
26829 as_val=`eval 'as_val=${'$as_ac_Header'}
26830                  $as_echo "$as_val"'`
26831    if test "x$as_val" = x""yes; then
26832   cat >>confdefs.h <<_ACEOF
26833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26834 _ACEOF
26835
26836 fi
26837
26838 done
26839
26840
26841
26842 for ac_header in winioctl.h winbase.h
26843 do
26844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26846 $as_echo_n "checking for $ac_header... " >&6; }
26847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26848   $as_echo_n "(cached) " >&6
26849 else
26850   cat >conftest.$ac_ext <<_ACEOF
26851 /* confdefs.h.  */
26852 _ACEOF
26853 cat confdefs.h >>conftest.$ac_ext
26854 cat >>conftest.$ac_ext <<_ACEOF
26855 /* end confdefs.h.  */
26856
26857         #if HAVE_WINDOWS_H
26858         #include <windows.h>
26859         #endif
26860
26861
26862 #include <$ac_header>
26863 _ACEOF
26864 rm -f conftest.$ac_objext
26865 if { (ac_try="$ac_compile"
26866 case "(($ac_try" in
26867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26868   *) ac_try_echo=$ac_try;;
26869 esac
26870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26871 $as_echo "$ac_try_echo") >&5
26872   (eval "$ac_compile") 2>conftest.er1
26873   ac_status=$?
26874   grep -v '^ *+' conftest.er1 >conftest.err
26875   rm -f conftest.er1
26876   cat conftest.err >&5
26877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); } && {
26879          test -z "$ac_c_werror_flag" ||
26880          test ! -s conftest.err
26881        } && test -s conftest.$ac_objext; then
26882   eval "$as_ac_Header=yes"
26883 else
26884   $as_echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887         eval "$as_ac_Header=no"
26888 fi
26889
26890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26891 fi
26892 ac_res=`eval 'as_val=${'$as_ac_Header'}
26893                  $as_echo "$as_val"'`
26894                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26895 $as_echo "$ac_res" >&6; }
26896 as_val=`eval 'as_val=${'$as_ac_Header'}
26897                  $as_echo "$as_val"'`
26898    if test "x$as_val" = x""yes; then
26899   cat >>confdefs.h <<_ACEOF
26900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26901 _ACEOF
26902
26903 fi
26904
26905 done
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
26919 do
26920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26921 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26922 $as_echo_n "checking for $ac_func... " >&6; }
26923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26924   $as_echo_n "(cached) " >&6
26925 else
26926   cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26934 #define $ac_func innocuous_$ac_func
26935
26936 /* System header to define __stub macros and hopefully few prototypes,
26937     which can conflict with char $ac_func (); below.
26938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26939     <limits.h> exists even on freestanding compilers.  */
26940
26941 #ifdef __STDC__
26942 # include <limits.h>
26943 #else
26944 # include <assert.h>
26945 #endif
26946
26947 #undef $ac_func
26948
26949 /* Override any GCC internal prototype to avoid an error.
26950    Use char because int might match the return type of a GCC
26951    builtin and then its argument prototype would still apply.  */
26952 #ifdef __cplusplus
26953 extern "C"
26954 #endif
26955 char $ac_func ();
26956 /* The GNU C library defines this for functions which it implements
26957     to always fail with ENOSYS.  Some functions are actually named
26958     something starting with __ and the normal name is an alias.  */
26959 #if defined __stub_$ac_func || defined __stub___$ac_func
26960 choke me
26961 #endif
26962
26963 int
26964 main ()
26965 {
26966 return $ac_func ();
26967   ;
26968   return 0;
26969 }
26970 _ACEOF
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (ac_try="$ac_link"
26973 case "(($ac_try" in
26974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975   *) ac_try_echo=$ac_try;;
26976 esac
26977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26978 $as_echo "$ac_try_echo") >&5
26979   (eval "$ac_link") 2>conftest.er1
26980   ac_status=$?
26981   grep -v '^ *+' conftest.er1 >conftest.err
26982   rm -f conftest.er1
26983   cat conftest.err >&5
26984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } && {
26986          test -z "$ac_c_werror_flag" ||
26987          test ! -s conftest.err
26988        } && test -s conftest$ac_exeext && {
26989          test "$cross_compiling" = yes ||
26990          $as_test_x conftest$ac_exeext
26991        }; then
26992   eval "$as_ac_var=yes"
26993 else
26994   $as_echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26996
26997         eval "$as_ac_var=no"
26998 fi
26999
27000 rm -rf conftest.dSYM
27001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27002       conftest$ac_exeext conftest.$ac_ext
27003 fi
27004 ac_res=`eval 'as_val=${'$as_ac_var'}
27005                  $as_echo "$as_val"'`
27006                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27007 $as_echo "$ac_res" >&6; }
27008 as_val=`eval 'as_val=${'$as_ac_var'}
27009                  $as_echo "$as_val"'`
27010    if test "x$as_val" = x""yes; then
27011   cat >>confdefs.h <<_ACEOF
27012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27013 _ACEOF
27014
27015 fi
27016 done
27017
27018 { $as_echo "$as_me:$LINENO: checking for struct timezone" >&5
27019 $as_echo_n "checking for struct timezone... " >&6; }
27020 if test "${ac_cv_type_struct_timezone+set}" = set; then
27021   $as_echo_n "(cached) " >&6
27022 else
27023   ac_cv_type_struct_timezone=no
27024 cat >conftest.$ac_ext <<_ACEOF
27025 /* confdefs.h.  */
27026 _ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h.  */
27030
27031      #if HAVE_SYS_TYPES_H
27032      # include <sys/types.h>
27033      #endif
27034      #if TIME_WITH_SYS_TIME
27035      # include <sys/time.h>
27036      # include <time.h>
27037      #else
27038      # if HAVE_SYS_TIME_H
27039      #  include <sys/time.h>
27040      # else
27041      #  include <time.h>
27042      # endif
27043      #endif
27044
27045
27046 int
27047 main ()
27048 {
27049 if (sizeof (struct timezone))
27050        return 0;
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest.$ac_objext
27056 if { (ac_try="$ac_compile"
27057 case "(($ac_try" in
27058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059   *) ac_try_echo=$ac_try;;
27060 esac
27061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27062 $as_echo "$ac_try_echo") >&5
27063   (eval "$ac_compile") 2>conftest.er1
27064   ac_status=$?
27065   grep -v '^ *+' conftest.er1 >conftest.err
27066   rm -f conftest.er1
27067   cat conftest.err >&5
27068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); } && {
27070          test -z "$ac_c_werror_flag" ||
27071          test ! -s conftest.err
27072        } && test -s conftest.$ac_objext; then
27073   cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h.  */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h.  */
27079
27080      #if HAVE_SYS_TYPES_H
27081      # include <sys/types.h>
27082      #endif
27083      #if TIME_WITH_SYS_TIME
27084      # include <sys/time.h>
27085      # include <time.h>
27086      #else
27087      # if HAVE_SYS_TIME_H
27088      #  include <sys/time.h>
27089      # else
27090      #  include <time.h>
27091      # endif
27092      #endif
27093
27094
27095 int
27096 main ()
27097 {
27098 if (sizeof ((struct timezone)))
27099           return 0;
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest.$ac_objext
27105 if { (ac_try="$ac_compile"
27106 case "(($ac_try" in
27107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108   *) ac_try_echo=$ac_try;;
27109 esac
27110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27111 $as_echo "$ac_try_echo") >&5
27112   (eval "$ac_compile") 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } && {
27119          test -z "$ac_c_werror_flag" ||
27120          test ! -s conftest.err
27121        } && test -s conftest.$ac_objext; then
27122   :
27123 else
27124   $as_echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27126
27127         ac_cv_type_struct_timezone=yes
27128 fi
27129
27130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27131 else
27132   $as_echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135
27136 fi
27137
27138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27139 fi
27140 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
27141 $as_echo "$ac_cv_type_struct_timezone" >&6; }
27142 if test "x$ac_cv_type_struct_timezone" = x""yes; then
27143
27144 cat >>confdefs.h <<_ACEOF
27145 #define HAVE_STRUCT_TIMEZONE 1
27146 _ACEOF
27147
27148
27149 fi
27150 { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
27151 $as_echo_n "checking for struct timespec... " >&6; }
27152 if test "${ac_cv_type_struct_timespec+set}" = set; then
27153   $as_echo_n "(cached) " >&6
27154 else
27155   ac_cv_type_struct_timespec=no
27156 cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162
27163      #if HAVE_SYS_TYPES_H
27164      # include <sys/types.h>
27165      #endif
27166      #if TIME_WITH_SYS_TIME
27167      # include <sys/time.h>
27168      # include <time.h>
27169      #else
27170      # if HAVE_SYS_TIME_H
27171      #  include <sys/time.h>
27172      # else
27173      #  include <time.h>
27174      # endif
27175      #endif
27176
27177
27178 int
27179 main ()
27180 {
27181 if (sizeof (struct timespec))
27182        return 0;
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext
27188 if { (ac_try="$ac_compile"
27189 case "(($ac_try" in
27190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191   *) ac_try_echo=$ac_try;;
27192 esac
27193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27194 $as_echo "$ac_try_echo") >&5
27195   (eval "$ac_compile") 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } && {
27202          test -z "$ac_c_werror_flag" ||
27203          test ! -s conftest.err
27204        } && test -s conftest.$ac_objext; then
27205   cat >conftest.$ac_ext <<_ACEOF
27206 /* confdefs.h.  */
27207 _ACEOF
27208 cat confdefs.h >>conftest.$ac_ext
27209 cat >>conftest.$ac_ext <<_ACEOF
27210 /* end confdefs.h.  */
27211
27212      #if HAVE_SYS_TYPES_H
27213      # include <sys/types.h>
27214      #endif
27215      #if TIME_WITH_SYS_TIME
27216      # include <sys/time.h>
27217      # include <time.h>
27218      #else
27219      # if HAVE_SYS_TIME_H
27220      #  include <sys/time.h>
27221      # else
27222      #  include <time.h>
27223      # endif
27224      #endif
27225
27226
27227 int
27228 main ()
27229 {
27230 if (sizeof ((struct timespec)))
27231           return 0;
27232   ;
27233   return 0;
27234 }
27235 _ACEOF
27236 rm -f conftest.$ac_objext
27237 if { (ac_try="$ac_compile"
27238 case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27243 $as_echo "$ac_try_echo") >&5
27244   (eval "$ac_compile") 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } && {
27251          test -z "$ac_c_werror_flag" ||
27252          test ! -s conftest.err
27253        } && test -s conftest.$ac_objext; then
27254   :
27255 else
27256   $as_echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27258
27259         ac_cv_type_struct_timespec=yes
27260 fi
27261
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263 else
27264   $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267
27268 fi
27269
27270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27271 fi
27272 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
27273 $as_echo "$ac_cv_type_struct_timespec" >&6; }
27274 if test "x$ac_cv_type_struct_timespec" = x""yes; then
27275
27276 cat >>confdefs.h <<_ACEOF
27277 #define HAVE_STRUCT_TIMESPEC 1
27278 _ACEOF
27279
27280
27281 fi
27282 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
27283 $as_echo_n "checking for ssize_t... " >&6; }
27284 if test "${ac_cv_type_ssize_t+set}" = set; then
27285   $as_echo_n "(cached) " >&6
27286 else
27287   ac_cv_type_ssize_t=no
27288 cat >conftest.$ac_ext <<_ACEOF
27289 /* confdefs.h.  */
27290 _ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h.  */
27294
27295      #if HAVE_SYS_TYPES_H
27296      # include <sys/types.h>
27297      #endif
27298      #if TIME_WITH_SYS_TIME
27299      # include <sys/time.h>
27300      # include <time.h>
27301      #else
27302      # if HAVE_SYS_TIME_H
27303      #  include <sys/time.h>
27304      # else
27305      #  include <time.h>
27306      # endif
27307      #endif
27308
27309
27310 int
27311 main ()
27312 {
27313 if (sizeof (ssize_t))
27314        return 0;
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 rm -f conftest.$ac_objext
27320 if { (ac_try="$ac_compile"
27321 case "(($ac_try" in
27322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323   *) ac_try_echo=$ac_try;;
27324 esac
27325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27326 $as_echo "$ac_try_echo") >&5
27327   (eval "$ac_compile") 2>conftest.er1
27328   ac_status=$?
27329   grep -v '^ *+' conftest.er1 >conftest.err
27330   rm -f conftest.er1
27331   cat conftest.err >&5
27332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); } && {
27334          test -z "$ac_c_werror_flag" ||
27335          test ! -s conftest.err
27336        } && test -s conftest.$ac_objext; then
27337   cat >conftest.$ac_ext <<_ACEOF
27338 /* confdefs.h.  */
27339 _ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h.  */
27343
27344      #if HAVE_SYS_TYPES_H
27345      # include <sys/types.h>
27346      #endif
27347      #if TIME_WITH_SYS_TIME
27348      # include <sys/time.h>
27349      # include <time.h>
27350      #else
27351      # if HAVE_SYS_TIME_H
27352      #  include <sys/time.h>
27353      # else
27354      #  include <time.h>
27355      # endif
27356      #endif
27357
27358
27359 int
27360 main ()
27361 {
27362 if (sizeof ((ssize_t)))
27363           return 0;
27364   ;
27365   return 0;
27366 }
27367 _ACEOF
27368 rm -f conftest.$ac_objext
27369 if { (ac_try="$ac_compile"
27370 case "(($ac_try" in
27371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27372   *) ac_try_echo=$ac_try;;
27373 esac
27374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27375 $as_echo "$ac_try_echo") >&5
27376   (eval "$ac_compile") 2>conftest.er1
27377   ac_status=$?
27378   grep -v '^ *+' conftest.er1 >conftest.err
27379   rm -f conftest.er1
27380   cat conftest.err >&5
27381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); } && {
27383          test -z "$ac_c_werror_flag" ||
27384          test ! -s conftest.err
27385        } && test -s conftest.$ac_objext; then
27386   :
27387 else
27388   $as_echo "$as_me: failed program was:" >&5
27389 sed 's/^/| /' conftest.$ac_ext >&5
27390
27391         ac_cv_type_ssize_t=yes
27392 fi
27393
27394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27395 else
27396   $as_echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27398
27399
27400 fi
27401
27402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27403 fi
27404 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27405 $as_echo "$ac_cv_type_ssize_t" >&6; }
27406 if test "x$ac_cv_type_ssize_t" = x""yes; then
27407
27408 cat >>confdefs.h <<_ACEOF
27409 #define HAVE_SSIZE_T 1
27410 _ACEOF
27411
27412
27413 fi
27414
27415
27416
27417
27418
27419 for ac_func in getopt usleep gettimeofday
27420 do
27421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27423 $as_echo_n "checking for $ac_func... " >&6; }
27424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27425   $as_echo_n "(cached) " >&6
27426 else
27427   cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27435 #define $ac_func innocuous_$ac_func
27436
27437 /* System header to define __stub macros and hopefully few prototypes,
27438     which can conflict with char $ac_func (); below.
27439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27440     <limits.h> exists even on freestanding compilers.  */
27441
27442 #ifdef __STDC__
27443 # include <limits.h>
27444 #else
27445 # include <assert.h>
27446 #endif
27447
27448 #undef $ac_func
27449
27450 /* Override any GCC internal prototype to avoid an error.
27451    Use char because int might match the return type of a GCC
27452    builtin and then its argument prototype would still apply.  */
27453 #ifdef __cplusplus
27454 extern "C"
27455 #endif
27456 char $ac_func ();
27457 /* The GNU C library defines this for functions which it implements
27458     to always fail with ENOSYS.  Some functions are actually named
27459     something starting with __ and the normal name is an alias.  */
27460 #if defined __stub_$ac_func || defined __stub___$ac_func
27461 choke me
27462 #endif
27463
27464 int
27465 main ()
27466 {
27467 return $ac_func ();
27468   ;
27469   return 0;
27470 }
27471 _ACEOF
27472 rm -f conftest.$ac_objext conftest$ac_exeext
27473 if { (ac_try="$ac_link"
27474 case "(($ac_try" in
27475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476   *) ac_try_echo=$ac_try;;
27477 esac
27478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27479 $as_echo "$ac_try_echo") >&5
27480   (eval "$ac_link") 2>conftest.er1
27481   ac_status=$?
27482   grep -v '^ *+' conftest.er1 >conftest.err
27483   rm -f conftest.er1
27484   cat conftest.err >&5
27485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486   (exit $ac_status); } && {
27487          test -z "$ac_c_werror_flag" ||
27488          test ! -s conftest.err
27489        } && test -s conftest$ac_exeext && {
27490          test "$cross_compiling" = yes ||
27491          $as_test_x conftest$ac_exeext
27492        }; then
27493   eval "$as_ac_var=yes"
27494 else
27495   $as_echo "$as_me: failed program was:" >&5
27496 sed 's/^/| /' conftest.$ac_ext >&5
27497
27498         eval "$as_ac_var=no"
27499 fi
27500
27501 rm -rf conftest.dSYM
27502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27503       conftest$ac_exeext conftest.$ac_ext
27504 fi
27505 ac_res=`eval 'as_val=${'$as_ac_var'}
27506                  $as_echo "$as_val"'`
27507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27508 $as_echo "$ac_res" >&6; }
27509 as_val=`eval 'as_val=${'$as_ac_var'}
27510                  $as_echo "$as_val"'`
27511    if test "x$as_val" = x""yes; then
27512   cat >>confdefs.h <<_ACEOF
27513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27514 _ACEOF
27515
27516 else
27517   case " $LIBOBJS " in
27518   *" $ac_func.$ac_objext "* ) ;;
27519   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27520  ;;
27521 esac
27522
27523 fi
27524 done
27525
27526
27527
27528
27529 { $as_echo "$as_me:$LINENO: checking for Sleep" >&5
27530 $as_echo_n "checking for Sleep... " >&6; }
27531 cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h.  */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h.  */
27537    #include <windows.h>
27538                 #include <winbase.h>
27539
27540 int
27541 main ()
27542 {
27543  Sleep(0);
27544   ;
27545   return 0;
27546 }
27547 _ACEOF
27548 rm -f conftest.$ac_objext conftest$ac_exeext
27549 if { (ac_try="$ac_link"
27550 case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27555 $as_echo "$ac_try_echo") >&5
27556   (eval "$ac_link") 2>conftest.er1
27557   ac_status=$?
27558   grep -v '^ *+' conftest.er1 >conftest.err
27559   rm -f conftest.er1
27560   cat conftest.err >&5
27561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); } && {
27563          test -z "$ac_c_werror_flag" ||
27564          test ! -s conftest.err
27565        } && test -s conftest$ac_exeext && {
27566          test "$cross_compiling" = yes ||
27567          $as_test_x conftest$ac_exeext
27568        }; then
27569
27570 cat >>confdefs.h <<\_ACEOF
27571 #define HAVE_SSLEEP 1
27572 _ACEOF
27573
27574                 { $as_echo "$as_me:$LINENO: result: yes" >&5
27575 $as_echo "yes" >&6; }
27576 else
27577   $as_echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27579
27580         { $as_echo "$as_me:$LINENO: result: no" >&5
27581 $as_echo "no" >&6; }
27582
27583 fi
27584
27585 rm -rf conftest.dSYM
27586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27587       conftest$ac_exeext conftest.$ac_ext
27588
27589 { $as_echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
27590 $as_echo_n "checking whether mkdir accepts only one arg... " >&6; }
27591 cat >conftest.$ac_ext <<_ACEOF
27592 /* confdefs.h.  */
27593 _ACEOF
27594 cat confdefs.h >>conftest.$ac_ext
27595 cat >>conftest.$ac_ext <<_ACEOF
27596 /* end confdefs.h.  */
27597 #include <sys/types.h>
27598        #include <sys/stat.h>
27599        #include <fcntl.h>
27600 int
27601 main ()
27602 {
27603
27604        mkdir("")
27605
27606   ;
27607   return 0;
27608 }
27609 _ACEOF
27610 rm -f conftest.$ac_objext
27611 if { (ac_try="$ac_compile"
27612 case "(($ac_try" in
27613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614   *) ac_try_echo=$ac_try;;
27615 esac
27616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27617 $as_echo "$ac_try_echo") >&5
27618   (eval "$ac_compile") 2>conftest.er1
27619   ac_status=$?
27620   grep -v '^ *+' conftest.er1 >conftest.err
27621   rm -f conftest.er1
27622   cat conftest.err >&5
27623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); } && {
27625          test -z "$ac_c_werror_flag" ||
27626          test ! -s conftest.err
27627        } && test -s conftest.$ac_objext; then
27628    { $as_echo "$as_me:$LINENO: result: yes" >&5
27629 $as_echo "yes" >&6; }
27630
27631 cat >>confdefs.h <<\_ACEOF
27632 #define MKDIR_TAKES_ONE_ARG /**/
27633 _ACEOF
27634
27635 else
27636   $as_echo "$as_me: failed program was:" >&5
27637 sed 's/^/| /' conftest.$ac_ext >&5
27638
27639          { $as_echo "$as_me:$LINENO: result: no" >&5
27640 $as_echo "no" >&6; }
27641
27642 fi
27643
27644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27645
27646
27647
27648
27649
27650
27651
27652 # Extract the first word of "dot", so it can be a program name with args.
27653 set dummy dot; ac_word=$2
27654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27655 $as_echo_n "checking for $ac_word... " >&6; }
27656 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
27657   $as_echo_n "(cached) " >&6
27658 else
27659   if test -n "$HAVE_DOT"; then
27660   ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
27661 else
27662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27663 for as_dir in $PATH
27664 do
27665   IFS=$as_save_IFS
27666   test -z "$as_dir" && as_dir=.
27667   for ac_exec_ext in '' $ac_executable_extensions; do
27668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27669     ac_cv_prog_HAVE_DOT="YES"
27670     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27671     break 2
27672   fi
27673 done
27674 done
27675 IFS=$as_save_IFS
27676
27677   test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
27678 fi
27679 fi
27680 HAVE_DOT=$ac_cv_prog_HAVE_DOT
27681 if test -n "$HAVE_DOT"; then
27682   { $as_echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
27683 $as_echo "$HAVE_DOT" >&6; }
27684 else
27685   { $as_echo "$as_me:$LINENO: result: no" >&5
27686 $as_echo "no" >&6; }
27687 fi
27688
27689
27690
27691
27692
27693 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
27694         if test -n "$ac_tool_prefix"; then
27695   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27696 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27698 $as_echo_n "checking for $ac_word... " >&6; }
27699 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27700   $as_echo_n "(cached) " >&6
27701 else
27702   case $PKG_CONFIG in
27703   [\\/]* | ?:[\\/]*)
27704   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27705   ;;
27706   *)
27707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27708 for as_dir in $PATH
27709 do
27710   IFS=$as_save_IFS
27711   test -z "$as_dir" && as_dir=.
27712   for ac_exec_ext in '' $ac_executable_extensions; do
27713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27714     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27715     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27716     break 2
27717   fi
27718 done
27719 done
27720 IFS=$as_save_IFS
27721
27722   ;;
27723 esac
27724 fi
27725 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27726 if test -n "$PKG_CONFIG"; then
27727   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27728 $as_echo "$PKG_CONFIG" >&6; }
27729 else
27730   { $as_echo "$as_me:$LINENO: result: no" >&5
27731 $as_echo "no" >&6; }
27732 fi
27733
27734
27735 fi
27736 if test -z "$ac_cv_path_PKG_CONFIG"; then
27737   ac_pt_PKG_CONFIG=$PKG_CONFIG
27738   # Extract the first word of "pkg-config", so it can be a program name with args.
27739 set dummy pkg-config; ac_word=$2
27740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27741 $as_echo_n "checking for $ac_word... " >&6; }
27742 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
27743   $as_echo_n "(cached) " >&6
27744 else
27745   case $ac_pt_PKG_CONFIG in
27746   [\\/]* | ?:[\\/]*)
27747   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
27748   ;;
27749   *)
27750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27751 for as_dir in $PATH
27752 do
27753   IFS=$as_save_IFS
27754   test -z "$as_dir" && as_dir=.
27755   for ac_exec_ext in '' $ac_executable_extensions; do
27756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27757     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27758     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27759     break 2
27760   fi
27761 done
27762 done
27763 IFS=$as_save_IFS
27764
27765   ;;
27766 esac
27767 fi
27768 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
27769 if test -n "$ac_pt_PKG_CONFIG"; then
27770   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
27771 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
27772 else
27773   { $as_echo "$as_me:$LINENO: result: no" >&5
27774 $as_echo "no" >&6; }
27775 fi
27776
27777   if test "x$ac_pt_PKG_CONFIG" = x; then
27778     PKG_CONFIG=""
27779   else
27780     case $cross_compiling:$ac_tool_warned in
27781 yes:)
27782 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
27783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27784 ac_tool_warned=yes ;;
27785 esac
27786     PKG_CONFIG=$ac_pt_PKG_CONFIG
27787   fi
27788 else
27789   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
27790 fi
27791
27792 fi
27793 if test -n "$PKG_CONFIG"; then
27794         _pkg_min_version=0.18
27795         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
27796 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
27797         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
27798                 { $as_echo "$as_me:$LINENO: result: yes" >&5
27799 $as_echo "yes" >&6; }
27800         else
27801                 { $as_echo "$as_me:$LINENO: result: no" >&5
27802 $as_echo "no" >&6; }
27803                 PKG_CONFIG=""
27804         fi
27805
27806 fi
27807
27808
27809
27810 pkg_failed=no
27811 { $as_echo "$as_me:$LINENO: checking for FFTW3F" >&5
27812 $as_echo_n "checking for FFTW3F... " >&6; }
27813
27814 if test -n "$PKG_CONFIG"; then
27815     if test -n "$FFTW3F_CFLAGS"; then
27816         pkg_cv_FFTW3F_CFLAGS="$FFTW3F_CFLAGS"
27817     else
27818         if test -n "$PKG_CONFIG" && \
27819     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\"") >&5
27820   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
27821   ac_status=$?
27822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); }; then
27824   pkg_cv_FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0" 2>/dev/null`
27825 else
27826   pkg_failed=yes
27827 fi
27828     fi
27829 else
27830         pkg_failed=untried
27831 fi
27832
27833 if test x$cross_compiling = xyes
27834 then
27835     if test -n "$PKG_CONFIG"; then
27836     if test -n "$FFTW3F_LIBS"; then
27837         pkg_cv_FFTW3F_LIBS="$FFTW3F_LIBS"
27838     else
27839         if test -n "$PKG_CONFIG" && \
27840     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\"") >&5
27841   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
27842   ac_status=$?
27843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); }; then
27845   pkg_cv_FFTW3F_LIBS=`$PKG_CONFIG --libs --static "fftw3f >= 3.0" 2>/dev/null`
27846 else
27847   pkg_failed=yes
27848 fi
27849     fi
27850 else
27851         pkg_failed=untried
27852 fi
27853     _pkg_tmp=
27854   for flag in $pkg_cv_FFTW3F_LIBS; do
27855     case $flag in
27856     (-L/lib* | -L/usr/lib* )       ;; # ignore
27857     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
27858     esac
27859   done
27860   pkg_cv_FFTW3F_LIBS="$_pkg_tmp"
27861 else
27862   if test -n "$PKG_CONFIG"; then
27863     if test -n "$FFTW3F_LIBS"; then
27864         pkg_cv_FFTW3F_LIBS="$FFTW3F_LIBS"
27865     else
27866         if test -n "$PKG_CONFIG" && \
27867     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\"") >&5
27868   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
27869   ac_status=$?
27870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871   (exit $ac_status); }; then
27872   pkg_cv_FFTW3F_LIBS=`$PKG_CONFIG --libs --static "fftw3f >= 3.0" 2>/dev/null`
27873 else
27874   pkg_failed=yes
27875 fi
27876     fi
27877 else
27878         pkg_failed=untried
27879 fi
27880 fi
27881
27882 if test -n "$PKG_CONFIG"; then
27883     if test -n "$FFTW3F_INCLUDEDIR"; then
27884         pkg_cv_FFTW3F_INCLUDEDIR="$FFTW3F_INCLUDEDIR"
27885     else
27886         if test -n "$PKG_CONFIG" && \
27887     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\"") >&5
27888   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
27889   ac_status=$?
27890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; then
27892   pkg_cv_FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0" 2>/dev/null`
27893 else
27894   pkg_failed=yes
27895 fi
27896     fi
27897 else
27898         pkg_failed=untried
27899 fi
27900
27901
27902
27903
27904 if test $pkg_failed = yes; then
27905
27906 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27907         _pkg_short_errors_supported=yes
27908 else
27909         _pkg_short_errors_supported=no
27910 fi
27911         if test $_pkg_short_errors_supported = yes; then
27912                 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3f >= 3.0"`
27913         else
27914                 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
27915         fi
27916         # Put the nasty error message in config.log where it belongs
27917         echo "$FFTW3F_PKG_ERRORS" >&5
27918
27919         { { $as_echo "$as_me:$LINENO: error: Package requirements (fftw3f >= 3.0) were not met:
27920
27921 $FFTW3F_PKG_ERRORS
27922
27923 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27924 installed software in a non-standard prefix.
27925
27926 Alternatively, you may set the environment variables FFTW3F_CFLAGS
27927 and FFTW3F_LIBS to avoid the need to call pkg-config.
27928 See the pkg-config man page for more details.
27929 " >&5
27930 $as_echo "$as_me: error: Package requirements (fftw3f >= 3.0) were not met:
27931
27932 $FFTW3F_PKG_ERRORS
27933
27934 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27935 installed software in a non-standard prefix.
27936
27937 Alternatively, you may set the environment variables FFTW3F_CFLAGS
27938 and FFTW3F_LIBS to avoid the need to call pkg-config.
27939 See the pkg-config man page for more details.
27940 " >&2;}
27941    { (exit 1); exit 1; }; }
27942 elif test $pkg_failed = untried; then
27943         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27945 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
27946 is in your PATH or set the PKG_CONFIG environment variable to the full
27947 path to pkg-config.
27948
27949 Alternatively, you may set the environment variables FFTW3F_CFLAGS
27950 and FFTW3F_LIBS to avoid the need to call pkg-config.
27951 See the pkg-config man page for more details.
27952
27953 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27954 See \`config.log' for more details." >&5
27955 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
27956 is in your PATH or set the PKG_CONFIG environment variable to the full
27957 path to pkg-config.
27958
27959 Alternatively, you may set the environment variables FFTW3F_CFLAGS
27960 and FFTW3F_LIBS to avoid the need to call pkg-config.
27961 See the pkg-config man page for more details.
27962
27963 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27964 See \`config.log' for more details." >&2;}
27965    { (exit 1); exit 1; }; }; }
27966 else
27967         FFTW3F_CFLAGS=$pkg_cv_FFTW3F_CFLAGS
27968         FFTW3F_LIBS=$pkg_cv_FFTW3F_LIBS
27969         FFTW3F_INCLUDEDIR=$pkg_cv_FFTW3F_INCLUDEDIR
27970
27971         FFTW3F_CPPFLAGS=""
27972         for flag in $FFTW3F_CFLAGS; do
27973           case $flag in
27974           -I* | -D* | -U*) FFTW3F_CPPFLAGS="$FFTW3F_CPPFLAGS $flag" ;;
27975           esac
27976         done
27977         pkg_cv_FFTW3F_CPPFLAGS=$FFTW3F_CPPFLAGS
27978
27979
27980         { $as_echo "$as_me:$LINENO: result: yes" >&5
27981 $as_echo "yes" >&6; }
27982         :
27983 fi
27984
27985
27986
27987   # Check whether --enable-doxygen was given.
27988 if test "${enable_doxygen+set}" = set; then
27989   enableval=$enable_doxygen;
27990 fi
27991
27992   # Check whether --enable-dot was given.
27993 if test "${enable_dot+set}" = set; then
27994   enableval=$enable_dot;
27995 fi
27996
27997
27998   if test "x$enable_doxygen" = xno; then
27999         enable_doc=no
28000   else
28001         # Extract the first word of "doxygen", so it can be a program name with args.
28002 set dummy doxygen; ac_word=$2
28003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28004 $as_echo_n "checking for $ac_word... " >&6; }
28005 if test "${ac_cv_path_DOXYGEN+set}" = set; then
28006   $as_echo_n "(cached) " >&6
28007 else
28008   case $DOXYGEN in
28009   [\\/]* | ?:[\\/]*)
28010   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
28011   ;;
28012   *)
28013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28014 for as_dir in $PATH
28015 do
28016   IFS=$as_save_IFS
28017   test -z "$as_dir" && as_dir=.
28018   for ac_exec_ext in '' $ac_executable_extensions; do
28019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28020     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
28021     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28022     break 2
28023   fi
28024 done
28025 done
28026 IFS=$as_save_IFS
28027
28028   ;;
28029 esac
28030 fi
28031 DOXYGEN=$ac_cv_path_DOXYGEN
28032 if test -n "$DOXYGEN"; then
28033   { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
28034 $as_echo "$DOXYGEN" >&6; }
28035 else
28036   { $as_echo "$as_me:$LINENO: result: no" >&5
28037 $as_echo "no" >&6; }
28038 fi
28039
28040
28041         if test x$DOXYGEN = x; then
28042                 if test "x$enable_doxygen" = xyes; then
28043                         { { $as_echo "$as_me:$LINENO: error: could not find doxygen" >&5
28044 $as_echo "$as_me: error: could not find doxygen" >&2;}
28045    { (exit 1); exit 1; }; }
28046                 fi
28047                 enable_doc=no
28048                 generate_docs=
28049         else
28050                 enable_doc=yes
28051                 generate_docs=docs
28052                 # Extract the first word of "dot", so it can be a program name with args.
28053 set dummy dot; ac_word=$2
28054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28055 $as_echo_n "checking for $ac_word... " >&6; }
28056 if test "${ac_cv_path_DOT+set}" = set; then
28057   $as_echo_n "(cached) " >&6
28058 else
28059   case $DOT in
28060   [\\/]* | ?:[\\/]*)
28061   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
28062   ;;
28063   *)
28064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28065 for as_dir in $PATH
28066 do
28067   IFS=$as_save_IFS
28068   test -z "$as_dir" && as_dir=.
28069   for ac_exec_ext in '' $ac_executable_extensions; do
28070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28071     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
28072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28073     break 2
28074   fi
28075 done
28076 done
28077 IFS=$as_save_IFS
28078
28079   ;;
28080 esac
28081 fi
28082 DOT=$ac_cv_path_DOT
28083 if test -n "$DOT"; then
28084   { $as_echo "$as_me:$LINENO: result: $DOT" >&5
28085 $as_echo "$DOT" >&6; }
28086 else
28087   { $as_echo "$as_me:$LINENO: result: no" >&5
28088 $as_echo "no" >&6; }
28089 fi
28090
28091
28092         fi
28093   fi
28094
28095    if test x$enable_doc = xyes; then
28096   DOC_TRUE=
28097   DOC_FALSE='#'
28098 else
28099   DOC_TRUE='#'
28100   DOC_FALSE=
28101 fi
28102
28103
28104   if test x$DOT = x; then
28105         if test "x$enable_dot" = xyes; then
28106                 { { $as_echo "$as_me:$LINENO: error: could not find dot" >&5
28107 $as_echo "$as_me: error: could not find dot" >&2;}
28108    { (exit 1); exit 1; }; }
28109         fi
28110         enable_dot=no
28111   else
28112         enable_dot=yes
28113   fi
28114
28115   enable_xml_docs=YES
28116
28117   enable_html_docs=YES
28118
28119   enable_latex_docs=NO
28120
28121
28122
28123
28124
28125
28126 # Check whether --with-md-cpu was given.
28127 if test "${with_md_cpu+set}" = set; then
28128   withval=$with_md_cpu; cf_with_md_cpu="$withval"
28129 else
28130   cf_with_md_cpu="$host_cpu"
28131 fi
28132
28133
28134   case "$cf_with_md_cpu" in
28135    x86 | i[3-7]86)      MD_CPU=x86      MD_SUBCPU=x86 ;;
28136    x86_64)              MD_CPU=x86      MD_SUBCPU=x86_64 ;;
28137    powerpc*)            MD_CPU=powerpc ;;
28138    *)                   MD_CPU=generic ;;
28139   esac
28140
28141   # Check whether --enable-altivec was given.
28142 if test "${enable_altivec+set}" = set; then
28143   enableval=$enable_altivec;  if test $MD_CPU = powerpc; then
28144         case "$enableval" in
28145           (no)  MD_CPU=generic ;;
28146           (yes)
28147
28148   echo 'void f(){}' > conftest.c
28149   for i in -mabi=altivec -maltivec
28150   do
28151     { $as_echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
28152 $as_echo_n "checking whether $CC accepts $i... " >&6; }
28153     if test -z "`${CC} $i -c conftest.c 2>&1`"
28154     then
28155       lf_CFLAGS="${lf_CFLAGS} $i"
28156       { $as_echo "$as_me:$LINENO: result: yes" >&5
28157 $as_echo "yes" >&6; }
28158     else
28159       { $as_echo "$as_me:$LINENO: result: no" >&5
28160 $as_echo "no" >&6; }
28161     fi
28162   done
28163   rm -f conftest.c conftest.o
28164
28165
28166
28167   echo 'void f(){}' > conftest.cc
28168   for i in -mabi=altivec -maltivec
28169   do
28170     { $as_echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
28171 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
28172     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
28173     then
28174       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
28175       { $as_echo "$as_me:$LINENO: result: yes" >&5
28176 $as_echo "yes" >&6; }
28177     else
28178       { $as_echo "$as_me:$LINENO: result: no" >&5
28179 $as_echo "no" >&6; }
28180     fi
28181   done
28182   rm -f conftest.cc conftest.o
28183
28184
28185  ;;
28186           (*) { { $as_echo "$as_me:$LINENO: error: Invalid argument ($enableval) to --enable-altivec" >&5
28187 $as_echo "$as_me: error: Invalid argument ($enableval) to --enable-altivec" >&2;}
28188    { (exit 1); exit 1; }; } ;;
28189         esac
28190       fi
28191 else
28192    if test $MD_CPU = powerpc; then
28193
28194   echo 'void f(){}' > conftest.c
28195   for i in -mabi=altivec -maltivec
28196   do
28197     { $as_echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
28198 $as_echo_n "checking whether $CC accepts $i... " >&6; }
28199     if test -z "`${CC} $i -c conftest.c 2>&1`"
28200     then
28201       lf_CFLAGS="${lf_CFLAGS} $i"
28202       { $as_echo "$as_me:$LINENO: result: yes" >&5
28203 $as_echo "yes" >&6; }
28204     else
28205       { $as_echo "$as_me:$LINENO: result: no" >&5
28206 $as_echo "no" >&6; }
28207     fi
28208   done
28209   rm -f conftest.c conftest.o
28210
28211
28212
28213   echo 'void f(){}' > conftest.cc
28214   for i in -mabi=altivec -maltivec
28215   do
28216     { $as_echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
28217 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
28218     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
28219     then
28220       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
28221       { $as_echo "$as_me:$LINENO: result: yes" >&5
28222 $as_echo "yes" >&6; }
28223     else
28224       { $as_echo "$as_me:$LINENO: result: no" >&5
28225 $as_echo "no" >&6; }
28226     fi
28227   done
28228   rm -f conftest.cc conftest.o
28229
28230
28231  fi
28232 fi
28233
28234
28235
28236   { $as_echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
28237 $as_echo_n "checking for machine dependent speedups... " >&6; }
28238   { $as_echo "$as_me:$LINENO: result: $MD_CPU" >&5
28239 $as_echo "$MD_CPU" >&6; }
28240
28241
28242
28243    if test "$MD_CPU" = "x86"; then
28244   MD_CPU_x86_TRUE=
28245   MD_CPU_x86_FALSE='#'
28246 else
28247   MD_CPU_x86_TRUE='#'
28248   MD_CPU_x86_FALSE=
28249 fi
28250
28251    if test "$MD_SUBCPU" = "x86_64"; then
28252   MD_SUBCPU_x86_64_TRUE=
28253   MD_SUBCPU_x86_64_FALSE='#'
28254 else
28255   MD_SUBCPU_x86_64_TRUE='#'
28256   MD_SUBCPU_x86_64_FALSE=
28257 fi
28258
28259    if test "$MD_CPU" = "powerpc"; then
28260   MD_CPU_powerpc_TRUE=
28261   MD_CPU_powerpc_FALSE='#'
28262 else
28263   MD_CPU_powerpc_TRUE='#'
28264   MD_CPU_powerpc_FALSE=
28265 fi
28266
28267    if test "$MD_CPU" = "generic"; then
28268   MD_CPU_generic_TRUE=
28269   MD_CPU_generic_FALSE='#'
28270 else
28271   MD_CPU_generic_TRUE='#'
28272   MD_CPU_generic_FALSE=
28273 fi
28274
28275
28276
28277 if test -n "$PKG_CONFIG" && \
28278     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cppunit\"") >&5
28279   ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
28280   ac_status=$?
28281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); }; then
28283
28284
28285
28286 pkg_failed=no
28287 { $as_echo "$as_me:$LINENO: checking for CPPUNIT" >&5
28288 $as_echo_n "checking for CPPUNIT... " >&6; }
28289
28290 if test -n "$PKG_CONFIG"; then
28291     if test -n "$CPPUNIT_CFLAGS"; then
28292         pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
28293     else
28294         if test -n "$PKG_CONFIG" && \
28295     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\"") >&5
28296   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
28297   ac_status=$?
28298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); }; then
28300   pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.9.14" 2>/dev/null`
28301 else
28302   pkg_failed=yes
28303 fi
28304     fi
28305 else
28306         pkg_failed=untried
28307 fi
28308
28309 if test x$cross_compiling = xyes
28310 then
28311     if test -n "$PKG_CONFIG"; then
28312     if test -n "$CPPUNIT_LIBS"; then
28313         pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
28314     else
28315         if test -n "$PKG_CONFIG" && \
28316     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\"") >&5
28317   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
28318   ac_status=$?
28319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); }; then
28321   pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs --static "cppunit >= 1.9.14" 2>/dev/null`
28322 else
28323   pkg_failed=yes
28324 fi
28325     fi
28326 else
28327         pkg_failed=untried
28328 fi
28329     _pkg_tmp=
28330   for flag in $pkg_cv_CPPUNIT_LIBS; do
28331     case $flag in
28332     (-L/lib* | -L/usr/lib* )       ;; # ignore
28333     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
28334     esac
28335   done
28336   pkg_cv_CPPUNIT_LIBS="$_pkg_tmp"
28337 else
28338   if test -n "$PKG_CONFIG"; then
28339     if test -n "$CPPUNIT_LIBS"; then
28340         pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
28341     else
28342         if test -n "$PKG_CONFIG" && \
28343     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\"") >&5
28344   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
28345   ac_status=$?
28346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); }; then
28348   pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs --static "cppunit >= 1.9.14" 2>/dev/null`
28349 else
28350   pkg_failed=yes
28351 fi
28352     fi
28353 else
28354         pkg_failed=untried
28355 fi
28356 fi
28357
28358 if test -n "$PKG_CONFIG"; then
28359     if test -n "$CPPUNIT_INCLUDEDIR"; then
28360         pkg_cv_CPPUNIT_INCLUDEDIR="$CPPUNIT_INCLUDEDIR"
28361     else
28362         if test -n "$PKG_CONFIG" && \
28363     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\"") >&5
28364   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
28365   ac_status=$?
28366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); }; then
28368   pkg_cv_CPPUNIT_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "cppunit >= 1.9.14" 2>/dev/null`
28369 else
28370   pkg_failed=yes
28371 fi
28372     fi
28373 else
28374         pkg_failed=untried
28375 fi
28376
28377
28378
28379
28380 if test $pkg_failed = yes; then
28381
28382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28383         _pkg_short_errors_supported=yes
28384 else
28385         _pkg_short_errors_supported=no
28386 fi
28387         if test $_pkg_short_errors_supported = yes; then
28388                 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cppunit >= 1.9.14"`
28389         else
28390                 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cppunit >= 1.9.14"`
28391         fi
28392         # Put the nasty error message in config.log where it belongs
28393         echo "$CPPUNIT_PKG_ERRORS" >&5
28394
28395         { { $as_echo "$as_me:$LINENO: error: Package requirements (cppunit >= 1.9.14) were not met:
28396
28397 $CPPUNIT_PKG_ERRORS
28398
28399 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28400 installed software in a non-standard prefix.
28401
28402 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
28403 and CPPUNIT_LIBS to avoid the need to call pkg-config.
28404 See the pkg-config man page for more details.
28405 " >&5
28406 $as_echo "$as_me: error: Package requirements (cppunit >= 1.9.14) were not met:
28407
28408 $CPPUNIT_PKG_ERRORS
28409
28410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28411 installed software in a non-standard prefix.
28412
28413 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
28414 and CPPUNIT_LIBS to avoid the need to call pkg-config.
28415 See the pkg-config man page for more details.
28416 " >&2;}
28417    { (exit 1); exit 1; }; }
28418 elif test $pkg_failed = untried; then
28419         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28421 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
28422 is in your PATH or set the PKG_CONFIG environment variable to the full
28423 path to pkg-config.
28424
28425 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
28426 and CPPUNIT_LIBS to avoid the need to call pkg-config.
28427 See the pkg-config man page for more details.
28428
28429 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28430 See \`config.log' for more details." >&5
28431 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
28432 is in your PATH or set the PKG_CONFIG environment variable to the full
28433 path to pkg-config.
28434
28435 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
28436 and CPPUNIT_LIBS to avoid the need to call pkg-config.
28437 See the pkg-config man page for more details.
28438
28439 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28440 See \`config.log' for more details." >&2;}
28441    { (exit 1); exit 1; }; }; }
28442 else
28443         CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
28444         CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
28445         CPPUNIT_INCLUDEDIR=$pkg_cv_CPPUNIT_INCLUDEDIR
28446
28447         CPPUNIT_CPPFLAGS=""
28448         for flag in $CPPUNIT_CFLAGS; do
28449           case $flag in
28450           -I* | -D* | -U*) CPPUNIT_CPPFLAGS="$CPPUNIT_CPPFLAGS $flag" ;;
28451           esac
28452         done
28453         pkg_cv_CPPUNIT_CPPFLAGS=$CPPUNIT_CPPFLAGS
28454
28455
28456         { $as_echo "$as_me:$LINENO: result: yes" >&5
28457 $as_echo "yes" >&6; }
28458         :
28459 fi
28460 else
28461
28462
28463
28464 # Check whether --with-cppunit-prefix was given.
28465 if test "${with_cppunit_prefix+set}" = set; then
28466   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
28467 else
28468   cppunit_config_prefix=""
28469 fi
28470
28471
28472 # Check whether --with-cppunit-exec-prefix was given.
28473 if test "${with_cppunit_exec_prefix+set}" = set; then
28474   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
28475 else
28476   cppunit_config_exec_prefix=""
28477 fi
28478
28479
28480   if test x$cppunit_config_exec_prefix != x ; then
28481      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
28482      if test x${CPPUNIT_CONFIG+set} != xset ; then
28483         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
28484      fi
28485   fi
28486   if test x$cppunit_config_prefix != x ; then
28487      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
28488      if test x${CPPUNIT_CONFIG+set} != xset ; then
28489         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
28490      fi
28491   fi
28492
28493   # Extract the first word of "cppunit-config", so it can be a program name with args.
28494 set dummy cppunit-config; ac_word=$2
28495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28496 $as_echo_n "checking for $ac_word... " >&6; }
28497 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
28498   $as_echo_n "(cached) " >&6
28499 else
28500   case $CPPUNIT_CONFIG in
28501   [\\/]* | ?:[\\/]*)
28502   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
28503   ;;
28504   *)
28505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28506 for as_dir in $PATH
28507 do
28508   IFS=$as_save_IFS
28509   test -z "$as_dir" && as_dir=.
28510   for ac_exec_ext in '' $ac_executable_extensions; do
28511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28512     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28513     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28514     break 2
28515   fi
28516 done
28517 done
28518 IFS=$as_save_IFS
28519
28520   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
28521   ;;
28522 esac
28523 fi
28524 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
28525 if test -n "$CPPUNIT_CONFIG"; then
28526   { $as_echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
28527 $as_echo "$CPPUNIT_CONFIG" >&6; }
28528 else
28529   { $as_echo "$as_me:$LINENO: result: no" >&5
28530 $as_echo "no" >&6; }
28531 fi
28532
28533
28534   cppunit_version_min=1.9.14
28535
28536   { $as_echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
28537 $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
28538   no_cppunit=""
28539   if test "$CPPUNIT_CONFIG" = "no" ; then
28540     no_cppunit=yes
28541   else
28542     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
28543     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
28544     cppunit_version=`$CPPUNIT_CONFIG --version`
28545
28546     cppunit_major_version=`echo $cppunit_version | \
28547            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28548     cppunit_minor_version=`echo $cppunit_version | \
28549            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28550     cppunit_micro_version=`echo $cppunit_version | \
28551            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28552
28553     cppunit_major_min=`echo $cppunit_version_min | \
28554            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28555     cppunit_minor_min=`echo $cppunit_version_min | \
28556            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28557     cppunit_micro_min=`echo $cppunit_version_min | \
28558            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28559
28560     cppunit_version_proper=`expr \
28561         $cppunit_major_version \> $cppunit_major_min \| \
28562         $cppunit_major_version \= $cppunit_major_min \& \
28563         $cppunit_minor_version \> $cppunit_minor_min \| \
28564         $cppunit_major_version \= $cppunit_major_min \& \
28565         $cppunit_minor_version \= $cppunit_minor_min \& \
28566         $cppunit_micro_version \>= $cppunit_micro_min `
28567
28568     if test "$cppunit_version_proper" = "1" ; then
28569       { $as_echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
28570 $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
28571     else
28572       { $as_echo "$as_me:$LINENO: result: no" >&5
28573 $as_echo "no" >&6; }
28574       no_cppunit=yes
28575     fi
28576   fi
28577
28578   if test "x$no_cppunit" = x ; then
28579      :
28580   else
28581      CPPUNIT_CFLAGS=""
28582      CPPUNIT_LIBS=""
28583      { { $as_echo "$as_me:$LINENO: error: GNU Radio requires cppunit.  Stop" >&5
28584 $as_echo "$as_me: error: GNU Radio requires cppunit.  Stop" >&2;}
28585    { (exit 1); exit 1; }; }
28586   fi
28587
28588
28589
28590
28591 fi
28592
28593 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
28594
28595
28596 # Extract the first word of "guile", so it can be a program name with args.
28597 set dummy guile; ac_word=$2
28598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28599 $as_echo_n "checking for $ac_word... " >&6; }
28600 if test "${ac_cv_path_GUILE+set}" = set; then
28601   $as_echo_n "(cached) " >&6
28602 else
28603   case $GUILE in
28604   [\\/]* | ?:[\\/]*)
28605   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
28606   ;;
28607   *)
28608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28609 for as_dir in $PATH
28610 do
28611   IFS=$as_save_IFS
28612   test -z "$as_dir" && as_dir=.
28613   for ac_exec_ext in '' $ac_executable_extensions; do
28614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28615     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
28616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28617     break 2
28618   fi
28619 done
28620 done
28621 IFS=$as_save_IFS
28622
28623   ;;
28624 esac
28625 fi
28626 GUILE=$ac_cv_path_GUILE
28627 if test -n "$GUILE"; then
28628   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
28629 $as_echo "$GUILE" >&6; }
28630 else
28631   { $as_echo "$as_me:$LINENO: result: no" >&5
28632 $as_echo "no" >&6; }
28633 fi
28634
28635
28636
28637
28638
28639
28640 # Check whether --with-boost was given.
28641 if test "${with_boost+set}" = set; then
28642   withval=$with_boost;
28643     if test "$withval" = "no"; then
28644         want_boost="no"
28645     elif test "$withval" = "yes"; then
28646         want_boost="yes"
28647         ac_boost_path=""
28648     else
28649         want_boost="yes"
28650         ac_boost_path="$withval"
28651     fi
28652
28653 else
28654   want_boost="yes"
28655 fi
28656
28657
28658
28659
28660 # Check whether --with-boost-libdir was given.
28661 if test "${with_boost_libdir+set}" = set; then
28662   withval=$with_boost_libdir;
28663         if test -d $withval
28664         then
28665                 ac_boost_lib_path="$withval"
28666         else
28667                 { { $as_echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
28668 $as_echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
28669    { (exit 1); exit 1; }; }
28670         fi
28671
28672 else
28673   ac_boost_lib_path=""
28674
28675 fi
28676
28677
28678 if test "x$want_boost" = "xyes"; then
28679     boost_lib_version_req=1.35
28680     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
28681     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
28682     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
28683     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
28684     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
28685         boost_lib_version_req_sub_minor="0"
28686         fi
28687     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
28688     { $as_echo "$as_me:$LINENO: checking for boost >= $boost_lib_version_req" >&5
28689 $as_echo_n "checking for boost >= $boost_lib_version_req... " >&6; }
28690     succeeded=no
28691
28692                 if test "$ac_boost_path" != ""; then
28693                         if test -d "$ac_boost_path/lib${gr_libdir_suffix}"; then
28694             BOOST_LDFLAGS="-L$ac_boost_path/lib${gr_libdir_suffix}"
28695         else
28696             BOOST_LDFLAGS="-L$ac_boost_path/lib"
28697         fi
28698         BOOST_CPPFLAGS="-I$ac_boost_path/include"
28699     else
28700         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
28701             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
28702                                                 if test -d "$ac_boost_path_tmp/lib${gr_libdir_suffix}"; then
28703                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib${gr_libdir_suffix}"
28704                 else
28705                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
28706                 fi
28707                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
28708                 break;
28709             fi
28710         done
28711     fi
28712
28713             if test "$ac_boost_lib_path" != ""; then
28714        BOOST_LDFLAGS="-L$ac_boost_lib_path"
28715     fi
28716
28717     CPPFLAGS_SAVED="$CPPFLAGS"
28718     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
28719     export CPPFLAGS
28720
28721     LDFLAGS_SAVED="$LDFLAGS"
28722     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
28723     export LDFLAGS
28724
28725     ac_ext=cpp
28726 ac_cpp='$CXXCPP $CPPFLAGS'
28727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28730
28731         cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h.  */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h.  */
28737
28738     #include <boost/version.hpp>
28739
28740 int
28741 main ()
28742 {
28743
28744     #if BOOST_VERSION >= $WANT_BOOST_VERSION
28745     // Everything is okay
28746     #else
28747     #  error Boost version is too old
28748     #endif
28749
28750   ;
28751   return 0;
28752 }
28753 _ACEOF
28754 rm -f conftest.$ac_objext
28755 if { (ac_try="$ac_compile"
28756 case "(($ac_try" in
28757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758   *) ac_try_echo=$ac_try;;
28759 esac
28760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28761 $as_echo "$ac_try_echo") >&5
28762   (eval "$ac_compile") 2>conftest.er1
28763   ac_status=$?
28764   grep -v '^ *+' conftest.er1 >conftest.err
28765   rm -f conftest.er1
28766   cat conftest.err >&5
28767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); } && {
28769          test -z "$ac_cxx_werror_flag" ||
28770          test ! -s conftest.err
28771        } && test -s conftest.$ac_objext; then
28772   { $as_echo "$as_me:$LINENO: result: yes" >&5
28773 $as_echo "yes" >&6; }
28774           succeeded=yes
28775           found_system=yes
28776
28777 else
28778   $as_echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781
28782 fi
28783
28784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28785     ac_ext=c
28786 ac_cpp='$CPP $CPPFLAGS'
28787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28790
28791     CPPFLAGS="$CPPFLAGS_SAVED"
28792     LDFLAGS="$LDFLAGS_SAVED"
28793
28794
28795             if test "$succeeded" != "yes"; then
28796         _version=0
28797
28798         if test "$ac_boost_path" != ""; then
28799             path_list="$ac_boost_path"
28800         else
28801             path_list="/usr /usr/local /opt /opt/local"
28802         fi
28803         for ac_boost_path in $path_list ; do
28804             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
28805                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
28806                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's,/include/boost-,,; s,_,.,'`
28807                     V_CHECK=`expr $_version_tmp \> $_version`
28808                     if test "$V_CHECK" = "1" ; then
28809                         _version=$_version_tmp
28810                         best_path=$ac_boost_path
28811                     fi
28812                 done
28813             fi
28814         done
28815
28816         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
28817         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
28818
28819         if test "$ac_boost_lib_path" = "";  then
28820                             if test -d "$best_path/lib${gr_libdir_suffix}"; then
28821                 BOOST_LDFLAGS="-L$best_path/lib${gr_libdir_suffix}"
28822             else
28823                 BOOST_LDFLAGS="-L$best_path/lib"
28824             fi
28825         fi
28826
28827         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
28828         export CPPFLAGS
28829         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
28830         export LDFLAGS
28831
28832         ac_ext=cpp
28833 ac_cpp='$CXXCPP $CPPFLAGS'
28834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28837
28838             cat >conftest.$ac_ext <<_ACEOF
28839 /* confdefs.h.  */
28840 _ACEOF
28841 cat confdefs.h >>conftest.$ac_ext
28842 cat >>conftest.$ac_ext <<_ACEOF
28843 /* end confdefs.h.  */
28844
28845         #include <boost/version.hpp>
28846
28847 int
28848 main ()
28849 {
28850
28851         #if BOOST_VERSION >= $WANT_BOOST_VERSION
28852         // Everything is okay
28853         #else
28854         #  error Boost version is too old
28855         #endif
28856
28857   ;
28858   return 0;
28859 }
28860 _ACEOF
28861 rm -f conftest.$ac_objext
28862 if { (ac_try="$ac_compile"
28863 case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28868 $as_echo "$ac_try_echo") >&5
28869   (eval "$ac_compile") 2>conftest.er1
28870   ac_status=$?
28871   grep -v '^ *+' conftest.er1 >conftest.err
28872   rm -f conftest.er1
28873   cat conftest.err >&5
28874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875   (exit $ac_status); } && {
28876          test -z "$ac_cxx_werror_flag" ||
28877          test ! -s conftest.err
28878        } && test -s conftest.$ac_objext; then
28879   { $as_echo "$as_me:$LINENO: result: yes" >&5
28880 $as_echo "yes" >&6; }
28881               succeeded=yes
28882               found_system=yes
28883
28884 else
28885   $as_echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28887
28888
28889 fi
28890
28891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28892         ac_ext=c
28893 ac_cpp='$CPP $CPPFLAGS'
28894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28897
28898         CPPFLAGS="$CPPFLAGS_SAVED"
28899         LDFLAGS="$LDFLAGS_SAVED"
28900     fi
28901
28902     if test "$succeeded" != "yes" ; then
28903         { $as_echo "$as_me:$LINENO: result: no" >&5
28904 $as_echo "no" >&6; }
28905         if test "$_version" = "0" ; then
28906             { { $as_echo "$as_me:$LINENO: error: we could not detect the boost libraries (version $boost_lib_version_req_shorten or higher).
28907 If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>." >&5
28908 $as_echo "$as_me: error: we could not detect the boost libraries (version $boost_lib_version_req_shorten or higher).
28909 If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>." >&2;}
28910    { (exit 1); exit 1; }; }
28911         else
28912             { { $as_echo "$as_me:$LINENO: error: your boost libraries seem to old (version $_version)." >&5
28913 $as_echo "$as_me: error: your boost libraries seem to old (version $_version)." >&2;}
28914    { (exit 1); exit 1; }; }
28915         fi
28916     else
28917
28918
28919
28920 cat >>confdefs.h <<\_ACEOF
28921 #define HAVE_BOOST 1
28922 _ACEOF
28923
28924     fi
28925 fi
28926
28927
28928
28929
28930
28931
28932
28933
28934 # Check whether --with-boost-thread was given.
28935 if test "${with_boost_thread+set}" = set; then
28936   withval=$with_boost_thread;
28937                 if test "$withval" = "no"; then
28938                     want_boost="no"
28939                 elif test "$withval" = "yes"; then
28940                     want_boost="yes"
28941                     ax_boost_user_lib=""
28942                 else
28943                     want_boost="yes"
28944                     ax_boost_user_lib="$withval"
28945                 fi
28946
28947 else
28948   want_boost="yes"
28949 fi
28950
28951
28952
28953
28954     if test "$want_boost" = "yes"; then
28955
28956
28957
28958
28959         CPPFLAGS_SAVED="$CPPFLAGS"
28960         LDFLAGS_SAVED="$LDFLAGS"
28961         CXXFLAGS_SAVED="$CXXFLAGS"
28962
28963         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
28964         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS $PTHREAD_LIBS"
28965         CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
28966
28967         { $as_echo "$as_me:$LINENO: checking whether the boost::thread includes are available" >&5
28968 $as_echo_n "checking whether the boost::thread includes are available... " >&6; }
28969 if test "${ax_cv_boost_thread+set}" = set; then
28970   $as_echo_n "(cached) " >&6
28971 else
28972   ac_ext=cpp
28973 ac_cpp='$CXXCPP $CPPFLAGS'
28974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28977
28978              cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984 #include <boost/thread/thread.hpp>
28985 int
28986 main ()
28987 {
28988 boost::thread_group thrds;
28989                                    return 0;
28990   ;
28991   return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest.$ac_objext
28995 if { (ac_try="$ac_compile"
28996 case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29001 $as_echo "$ac_try_echo") >&5
29002   (eval "$ac_compile") 2>conftest.er1
29003   ac_status=$?
29004   grep -v '^ *+' conftest.er1 >conftest.err
29005   rm -f conftest.er1
29006   cat conftest.err >&5
29007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); } && {
29009          test -z "$ac_cxx_werror_flag" ||
29010          test ! -s conftest.err
29011        } && test -s conftest.$ac_objext; then
29012   ax_cv_boost_thread=yes
29013 else
29014   $as_echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017         ax_cv_boost_thread=no
29018 fi
29019
29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29021              ac_ext=c
29022 ac_cpp='$CPP $CPPFLAGS'
29023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29026
29027
29028 fi
29029 { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_thread" >&5
29030 $as_echo "$ax_cv_boost_thread" >&6; }
29031
29032         if test "$ax_cv_boost_thread" = "yes"; then
29033             BOOST_CXXFLAGS="$PTHREAD_CFLAGS"
29034
29035
29036
29037     ac_ext=cpp
29038 ac_cpp='$CXXCPP $CPPFLAGS'
29039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29042
29043
29044 cat >>confdefs.h <<\_ACEOF
29045 #define HAVE_BOOST_THREAD 1
29046 _ACEOF
29047
29048     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
29049
29050         link_ok="no"
29051     if test "$ax_boost_user_lib" != ""; then
29052                 for ax_lib in $ax_boost_user_lib boost_thread-${ax_boost_user_lib}; do
29053             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
29054 { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
29055 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
29056 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29057   $as_echo_n "(cached) " >&6
29058 else
29059   ac_check_lib_save_LIBS=$LIBS
29060 LIBS="-l$ax_lib  $LIBS"
29061 cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h.  */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h.  */
29067
29068 /* Override any GCC internal prototype to avoid an error.
29069    Use char because int might match the return type of a GCC
29070    builtin and then its argument prototype would still apply.  */
29071 #ifdef __cplusplus
29072 extern "C"
29073 #endif
29074 char exit ();
29075 int
29076 main ()
29077 {
29078 return exit ();
29079   ;
29080   return 0;
29081 }
29082 _ACEOF
29083 rm -f conftest.$ac_objext conftest$ac_exeext
29084 if { (ac_try="$ac_link"
29085 case "(($ac_try" in
29086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087   *) ac_try_echo=$ac_try;;
29088 esac
29089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29090 $as_echo "$ac_try_echo") >&5
29091   (eval "$ac_link") 2>conftest.er1
29092   ac_status=$?
29093   grep -v '^ *+' conftest.er1 >conftest.err
29094   rm -f conftest.er1
29095   cat conftest.err >&5
29096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } && {
29098          test -z "$ac_cxx_werror_flag" ||
29099          test ! -s conftest.err
29100        } && test -s conftest$ac_exeext && {
29101          test "$cross_compiling" = yes ||
29102          $as_test_x conftest$ac_exeext
29103        }; then
29104   eval "$as_ac_Lib=yes"
29105 else
29106   $as_echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29108
29109         eval "$as_ac_Lib=no"
29110 fi
29111
29112 rm -rf conftest.dSYM
29113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29114       conftest$ac_exeext conftest.$ac_ext
29115 LIBS=$ac_check_lib_save_LIBS
29116 fi
29117 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29118                  $as_echo "$as_val"'`
29119                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29120 $as_echo "$ac_res" >&6; }
29121 as_val=`eval 'as_val=${'$as_ac_Lib'}
29122                  $as_echo "$as_val"'`
29123    if test "x$as_val" = x""yes; then
29124   BOOST_THREAD_LIB="-l$ax_lib";  link_ok="yes"; break
29125 fi
29126
29127         done
29128     else
29129                 head=$BOOSTLIBDIR/libboost_thread
29130         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
29131                     case $f in
29132               *\**) continue;;
29133             esac
29134             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
29135                     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,'`
29136
29137             ax_lib=$f
29138             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
29139 { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
29140 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
29141 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29142   $as_echo_n "(cached) " >&6
29143 else
29144   ac_check_lib_save_LIBS=$LIBS
29145 LIBS="-l$ax_lib  $LIBS"
29146 cat >conftest.$ac_ext <<_ACEOF
29147 /* confdefs.h.  */
29148 _ACEOF
29149 cat confdefs.h >>conftest.$ac_ext
29150 cat >>conftest.$ac_ext <<_ACEOF
29151 /* end confdefs.h.  */
29152
29153 /* Override any GCC internal prototype to avoid an error.
29154    Use char because int might match the return type of a GCC
29155    builtin and then its argument prototype would still apply.  */
29156 #ifdef __cplusplus
29157 extern "C"
29158 #endif
29159 char exit ();
29160 int
29161 main ()
29162 {
29163 return exit ();
29164   ;
29165   return 0;
29166 }
29167 _ACEOF
29168 rm -f conftest.$ac_objext conftest$ac_exeext
29169 if { (ac_try="$ac_link"
29170 case "(($ac_try" in
29171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172   *) ac_try_echo=$ac_try;;
29173 esac
29174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29175 $as_echo "$ac_try_echo") >&5
29176   (eval "$ac_link") 2>conftest.er1
29177   ac_status=$?
29178   grep -v '^ *+' conftest.er1 >conftest.err
29179   rm -f conftest.er1
29180   cat conftest.err >&5
29181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); } && {
29183          test -z "$ac_cxx_werror_flag" ||
29184          test ! -s conftest.err
29185        } && test -s conftest$ac_exeext && {
29186          test "$cross_compiling" = yes ||
29187          $as_test_x conftest$ac_exeext
29188        }; then
29189   eval "$as_ac_Lib=yes"
29190 else
29191   $as_echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29193
29194         eval "$as_ac_Lib=no"
29195 fi
29196
29197 rm -rf conftest.dSYM
29198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29199       conftest$ac_exeext conftest.$ac_ext
29200 LIBS=$ac_check_lib_save_LIBS
29201 fi
29202 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29203                  $as_echo "$as_val"'`
29204                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29205 $as_echo "$ac_res" >&6; }
29206 as_val=`eval 'as_val=${'$as_ac_Lib'}
29207                  $as_echo "$as_val"'`
29208    if test "x$as_val" = x""yes; then
29209   BOOST_THREAD_LIB="-l$ax_lib";  link_ok="yes"; break
29210 fi
29211
29212         done
29213     fi
29214
29215     if test "$link_ok" != "yes"; then
29216         { { $as_echo "$as_me:$LINENO: error: Could not link against libboost_thread!" >&5
29217 $as_echo "$as_me: error: Could not link against libboost_thread!" >&2;}
29218    { (exit 1); exit 1; }; }
29219     fi
29220     ac_ext=c
29221 ac_cpp='$CPP $CPPFLAGS'
29222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29225
29226
29227
29228             if test "$link_ok" = "yes" && test -n "$PTHREAD_LIBS"; then
29229                 BOOST_THREAD_LIB="$BOOST_THREAD_LIB $PTHREAD_LIBS"
29230             fi
29231         fi
29232
29233         CPPFLAGS="$CPPFLAGS_SAVED"
29234         LDFLAGS="$LDFLAGS_SAVED"
29235         CXXFLAGS="$CXXFLAGS_SAVED"
29236     fi
29237
29238 CXXFLAGS="$CXXFLAGS $BOOST_CXXFLAGS"       CFLAGS="$CFLAGS $BOOST_CXXFLAGS"
29239
29240
29241
29242
29243
29244
29245
29246 # Check whether --with-boost-date-time was given.
29247 if test "${with_boost_date_time+set}" = set; then
29248   withval=$with_boost_date_time;
29249                 if test "$withval" = "no"; then
29250                     want_boost="no"
29251                 elif test "$withval" = "yes"; then
29252                     want_boost="yes"
29253                     ax_boost_user_lib=""
29254                 else
29255                     want_boost="yes"
29256                     ax_boost_user_lib="$withval"
29257                 fi
29258
29259 else
29260   want_boost="yes"
29261 fi
29262
29263
29264
29265     if test "$want_boost" = "yes"; then
29266
29267
29268         CPPFLAGS_SAVED="$CPPFLAGS"
29269         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
29270         LDFLAGS_SAVED="$LDFLAGS"
29271         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
29272         { $as_echo "$as_me:$LINENO: checking whether the boost::date_time includes are available" >&5
29273 $as_echo_n "checking whether the boost::date_time includes are available... " >&6; }
29274 if test "${ax_cv_boost_date_time+set}" = set; then
29275   $as_echo_n "(cached) " >&6
29276 else
29277   ac_ext=cpp
29278 ac_cpp='$CXXCPP $CPPFLAGS'
29279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29282
29283                         cat >conftest.$ac_ext <<_ACEOF
29284 /* confdefs.h.  */
29285 _ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h.  */
29289 #include <boost/date_time/gregorian/gregorian_types.hpp>
29290 int
29291 main ()
29292 {
29293 using namespace boost::gregorian; date d(2002,Jan,10); return 0;
29294   ;
29295   return 0;
29296 }
29297 _ACEOF
29298 rm -f conftest.$ac_objext
29299 if { (ac_try="$ac_compile"
29300 case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29305 $as_echo "$ac_try_echo") >&5
29306   (eval "$ac_compile") 2>conftest.er1
29307   ac_status=$?
29308   grep -v '^ *+' conftest.er1 >conftest.err
29309   rm -f conftest.er1
29310   cat conftest.err >&5
29311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); } && {
29313          test -z "$ac_cxx_werror_flag" ||
29314          test ! -s conftest.err
29315        } && test -s conftest.$ac_objext; then
29316   ax_cv_boost_date_time=yes
29317 else
29318   $as_echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321         ax_cv_boost_date_time=no
29322 fi
29323
29324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325                         ac_ext=c
29326 ac_cpp='$CPP $CPPFLAGS'
29327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29330
29331
29332 fi
29333 { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_date_time" >&5
29334 $as_echo "$ax_cv_boost_date_time" >&6; }
29335         if test "$ax_cv_boost_date_time" = "yes"; then
29336
29337
29338     ac_ext=cpp
29339 ac_cpp='$CXXCPP $CPPFLAGS'
29340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29343
29344
29345 cat >>confdefs.h <<\_ACEOF
29346 #define HAVE_BOOST_DATE_TIME 1
29347 _ACEOF
29348
29349     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
29350
29351         link_ok="no"
29352     if test "$ax_boost_user_lib" != ""; then
29353                 for ax_lib in $ax_boost_user_lib boost_date_time-${ax_boost_user_lib}; do
29354             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
29355 { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
29356 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
29357 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29358   $as_echo_n "(cached) " >&6
29359 else
29360   ac_check_lib_save_LIBS=$LIBS
29361 LIBS="-l$ax_lib  $LIBS"
29362 cat >conftest.$ac_ext <<_ACEOF
29363 /* confdefs.h.  */
29364 _ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h.  */
29368
29369 /* Override any GCC internal prototype to avoid an error.
29370    Use char because int might match the return type of a GCC
29371    builtin and then its argument prototype would still apply.  */
29372 #ifdef __cplusplus
29373 extern "C"
29374 #endif
29375 char exit ();
29376 int
29377 main ()
29378 {
29379 return exit ();
29380   ;
29381   return 0;
29382 }
29383 _ACEOF
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (ac_try="$ac_link"
29386 case "(($ac_try" in
29387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388   *) ac_try_echo=$ac_try;;
29389 esac
29390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29391 $as_echo "$ac_try_echo") >&5
29392   (eval "$ac_link") 2>conftest.er1
29393   ac_status=$?
29394   grep -v '^ *+' conftest.er1 >conftest.err
29395   rm -f conftest.er1
29396   cat conftest.err >&5
29397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398   (exit $ac_status); } && {
29399          test -z "$ac_cxx_werror_flag" ||
29400          test ! -s conftest.err
29401        } && test -s conftest$ac_exeext && {
29402          test "$cross_compiling" = yes ||
29403          $as_test_x conftest$ac_exeext
29404        }; then
29405   eval "$as_ac_Lib=yes"
29406 else
29407   $as_echo "$as_me: failed program was:" >&5
29408 sed 's/^/| /' conftest.$ac_ext >&5
29409
29410         eval "$as_ac_Lib=no"
29411 fi
29412
29413 rm -rf conftest.dSYM
29414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29415       conftest$ac_exeext conftest.$ac_ext
29416 LIBS=$ac_check_lib_save_LIBS
29417 fi
29418 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29419                  $as_echo "$as_val"'`
29420                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29421 $as_echo "$ac_res" >&6; }
29422 as_val=`eval 'as_val=${'$as_ac_Lib'}
29423                  $as_echo "$as_val"'`
29424    if test "x$as_val" = x""yes; then
29425   BOOST_DATE_TIME_LIB="-l$ax_lib";  link_ok="yes"; break
29426 fi
29427
29428         done
29429     else
29430                 head=$BOOSTLIBDIR/libboost_date_time
29431         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
29432                     case $f in
29433               *\**) continue;;
29434             esac
29435             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
29436                     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,'`
29437
29438             ax_lib=$f
29439             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
29440 { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
29441 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
29442 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29443   $as_echo_n "(cached) " >&6
29444 else
29445   ac_check_lib_save_LIBS=$LIBS
29446 LIBS="-l$ax_lib  $LIBS"
29447 cat >conftest.$ac_ext <<_ACEOF
29448 /* confdefs.h.  */
29449 _ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h.  */
29453
29454 /* Override any GCC internal prototype to avoid an error.
29455    Use char because int might match the return type of a GCC
29456    builtin and then its argument prototype would still apply.  */
29457 #ifdef __cplusplus
29458 extern "C"
29459 #endif
29460 char exit ();
29461 int
29462 main ()
29463 {
29464 return exit ();
29465   ;
29466   return 0;
29467 }
29468 _ACEOF
29469 rm -f conftest.$ac_objext conftest$ac_exeext
29470 if { (ac_try="$ac_link"
29471 case "(($ac_try" in
29472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29473   *) ac_try_echo=$ac_try;;
29474 esac
29475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29476 $as_echo "$ac_try_echo") >&5
29477   (eval "$ac_link") 2>conftest.er1
29478   ac_status=$?
29479   grep -v '^ *+' conftest.er1 >conftest.err
29480   rm -f conftest.er1
29481   cat conftest.err >&5
29482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483   (exit $ac_status); } && {
29484          test -z "$ac_cxx_werror_flag" ||
29485          test ! -s conftest.err
29486        } && test -s conftest$ac_exeext && {
29487          test "$cross_compiling" = yes ||
29488          $as_test_x conftest$ac_exeext
29489        }; then
29490   eval "$as_ac_Lib=yes"
29491 else
29492   $as_echo "$as_me: failed program was:" >&5
29493 sed 's/^/| /' conftest.$ac_ext >&5
29494
29495         eval "$as_ac_Lib=no"
29496 fi
29497
29498 rm -rf conftest.dSYM
29499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29500       conftest$ac_exeext conftest.$ac_ext
29501 LIBS=$ac_check_lib_save_LIBS
29502 fi
29503 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29504                  $as_echo "$as_val"'`
29505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29506 $as_echo "$ac_res" >&6; }
29507 as_val=`eval 'as_val=${'$as_ac_Lib'}
29508                  $as_echo "$as_val"'`
29509    if test "x$as_val" = x""yes; then
29510   BOOST_DATE_TIME_LIB="-l$ax_lib";  link_ok="yes"; break
29511 fi
29512
29513         done
29514     fi
29515
29516     if test "$link_ok" != "yes"; then
29517         { { $as_echo "$as_me:$LINENO: error: Could not link against libboost_date_time!" >&5
29518 $as_echo "$as_me: error: Could not link against libboost_date_time!" >&2;}
29519    { (exit 1); exit 1; }; }
29520     fi
29521     ac_ext=c
29522 ac_cpp='$CPP $CPPFLAGS'
29523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29526
29527
29528
29529         fi
29530         CPPFLAGS="$CPPFLAGS_SAVED"
29531         LDFLAGS="$LDFLAGS_SAVED"
29532     fi
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543 # Check whether --with-boost-program-options was given.
29544 if test "${with_boost_program_options+set}" = set; then
29545   withval=$with_boost_program_options;
29546                 if test "$withval" = "no"; then
29547                     want_boost="no"
29548                 elif test "$withval" = "yes"; then
29549                     want_boost="yes"
29550                     ax_boost_user_lib=""
29551                 else
29552                     want_boost="yes"
29553                     ax_boost_user_lib="$withval"
29554                 fi
29555
29556 else
29557   want_boost="yes"
29558 fi
29559
29560
29561
29562     if test "$want_boost" = "yes"; then
29563
29564
29565         CPPFLAGS_SAVED="$CPPFLAGS"
29566         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
29567         LDFLAGS_SAVED="$LDFLAGS"
29568         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
29569         { $as_echo "$as_me:$LINENO: checking whether the boost::program_options includes are available" >&5
29570 $as_echo_n "checking whether the boost::program_options includes are available... " >&6; }
29571 if test "${ax_cv_boost_program_options+set}" = set; then
29572   $as_echo_n "(cached) " >&6
29573 else
29574   ac_ext=cpp
29575 ac_cpp='$CXXCPP $CPPFLAGS'
29576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29579
29580                         cat >conftest.$ac_ext <<_ACEOF
29581 /* confdefs.h.  */
29582 _ACEOF
29583 cat confdefs.h >>conftest.$ac_ext
29584 cat >>conftest.$ac_ext <<_ACEOF
29585 /* end confdefs.h.  */
29586 #include <boost/program_options.hpp>
29587 int
29588 main ()
29589 {
29590 boost::program_options::options_description generic("Generic options");
29591                      return 0;
29592   ;
29593   return 0;
29594 }
29595 _ACEOF
29596 rm -f conftest.$ac_objext
29597 if { (ac_try="$ac_compile"
29598 case "(($ac_try" in
29599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600   *) ac_try_echo=$ac_try;;
29601 esac
29602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29603 $as_echo "$ac_try_echo") >&5
29604   (eval "$ac_compile") 2>conftest.er1
29605   ac_status=$?
29606   grep -v '^ *+' conftest.er1 >conftest.err
29607   rm -f conftest.er1
29608   cat conftest.err >&5
29609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); } && {
29611          test -z "$ac_cxx_werror_flag" ||
29612          test ! -s conftest.err
29613        } && test -s conftest.$ac_objext; then
29614   ax_cv_boost_program_options=yes
29615 else
29616   $as_echo "$as_me: failed program was:" >&5
29617 sed 's/^/| /' conftest.$ac_ext >&5
29618
29619         ax_cv_boost_program_options=no
29620 fi
29621
29622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29623                         ac_ext=c
29624 ac_cpp='$CPP $CPPFLAGS'
29625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29628
29629
29630 fi
29631 { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_program_options" >&5
29632 $as_echo "$ax_cv_boost_program_options" >&6; }
29633         if test "$ax_cv_boost_program_options" = "yes"; then
29634
29635
29636     ac_ext=cpp
29637 ac_cpp='$CXXCPP $CPPFLAGS'
29638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29641
29642
29643 cat >>confdefs.h <<\_ACEOF
29644 #define HAVE_BOOST_PROGRAM_OPTIONS 1
29645 _ACEOF
29646
29647     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
29648
29649         link_ok="no"
29650     if test "$ax_boost_user_lib" != ""; then
29651                 for ax_lib in $ax_boost_user_lib boost_program_options-${ax_boost_user_lib}; do
29652             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
29653 { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
29654 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
29655 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29656   $as_echo_n "(cached) " >&6
29657 else
29658   ac_check_lib_save_LIBS=$LIBS
29659 LIBS="-l$ax_lib  $LIBS"
29660 cat >conftest.$ac_ext <<_ACEOF
29661 /* confdefs.h.  */
29662 _ACEOF
29663 cat confdefs.h >>conftest.$ac_ext
29664 cat >>conftest.$ac_ext <<_ACEOF
29665 /* end confdefs.h.  */
29666
29667 /* Override any GCC internal prototype to avoid an error.
29668    Use char because int might match the return type of a GCC
29669    builtin and then its argument prototype would still apply.  */
29670 #ifdef __cplusplus
29671 extern "C"
29672 #endif
29673 char exit ();
29674 int
29675 main ()
29676 {
29677 return exit ();
29678   ;
29679   return 0;
29680 }
29681 _ACEOF
29682 rm -f conftest.$ac_objext conftest$ac_exeext
29683 if { (ac_try="$ac_link"
29684 case "(($ac_try" in
29685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686   *) ac_try_echo=$ac_try;;
29687 esac
29688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29689 $as_echo "$ac_try_echo") >&5
29690   (eval "$ac_link") 2>conftest.er1
29691   ac_status=$?
29692   grep -v '^ *+' conftest.er1 >conftest.err
29693   rm -f conftest.er1
29694   cat conftest.err >&5
29695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); } && {
29697          test -z "$ac_cxx_werror_flag" ||
29698          test ! -s conftest.err
29699        } && test -s conftest$ac_exeext && {
29700          test "$cross_compiling" = yes ||
29701          $as_test_x conftest$ac_exeext
29702        }; then
29703   eval "$as_ac_Lib=yes"
29704 else
29705   $as_echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29707
29708         eval "$as_ac_Lib=no"
29709 fi
29710
29711 rm -rf conftest.dSYM
29712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29713       conftest$ac_exeext conftest.$ac_ext
29714 LIBS=$ac_check_lib_save_LIBS
29715 fi
29716 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29717                  $as_echo "$as_val"'`
29718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29719 $as_echo "$ac_res" >&6; }
29720 as_val=`eval 'as_val=${'$as_ac_Lib'}
29721                  $as_echo "$as_val"'`
29722    if test "x$as_val" = x""yes; then
29723   BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib";  link_ok="yes"; break
29724 fi
29725
29726         done
29727     else
29728                 head=$BOOSTLIBDIR/libboost_program_options
29729         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
29730                     case $f in
29731               *\**) continue;;
29732             esac
29733             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
29734                     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,'`
29735
29736             ax_lib=$f
29737             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
29738 { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
29739 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
29740 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29741   $as_echo_n "(cached) " >&6
29742 else
29743   ac_check_lib_save_LIBS=$LIBS
29744 LIBS="-l$ax_lib  $LIBS"
29745 cat >conftest.$ac_ext <<_ACEOF
29746 /* confdefs.h.  */
29747 _ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h.  */
29751
29752 /* Override any GCC internal prototype to avoid an error.
29753    Use char because int might match the return type of a GCC
29754    builtin and then its argument prototype would still apply.  */
29755 #ifdef __cplusplus
29756 extern "C"
29757 #endif
29758 char exit ();
29759 int
29760 main ()
29761 {
29762 return exit ();
29763   ;
29764   return 0;
29765 }
29766 _ACEOF
29767 rm -f conftest.$ac_objext conftest$ac_exeext
29768 if { (ac_try="$ac_link"
29769 case "(($ac_try" in
29770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771   *) ac_try_echo=$ac_try;;
29772 esac
29773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29774 $as_echo "$ac_try_echo") >&5
29775   (eval "$ac_link") 2>conftest.er1
29776   ac_status=$?
29777   grep -v '^ *+' conftest.er1 >conftest.err
29778   rm -f conftest.er1
29779   cat conftest.err >&5
29780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781   (exit $ac_status); } && {
29782          test -z "$ac_cxx_werror_flag" ||
29783          test ! -s conftest.err
29784        } && test -s conftest$ac_exeext && {
29785          test "$cross_compiling" = yes ||
29786          $as_test_x conftest$ac_exeext
29787        }; then
29788   eval "$as_ac_Lib=yes"
29789 else
29790   $as_echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29792
29793         eval "$as_ac_Lib=no"
29794 fi
29795
29796 rm -rf conftest.dSYM
29797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29798       conftest$ac_exeext conftest.$ac_ext
29799 LIBS=$ac_check_lib_save_LIBS
29800 fi
29801 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29802                  $as_echo "$as_val"'`
29803                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29804 $as_echo "$ac_res" >&6; }
29805 as_val=`eval 'as_val=${'$as_ac_Lib'}
29806                  $as_echo "$as_val"'`
29807    if test "x$as_val" = x""yes; then
29808   BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib";  link_ok="yes"; break
29809 fi
29810
29811         done
29812     fi
29813
29814     if test "$link_ok" != "yes"; then
29815         { { $as_echo "$as_me:$LINENO: error: Could not link against libboost_program_options!" >&5
29816 $as_echo "$as_me: error: Could not link against libboost_program_options!" >&2;}
29817    { (exit 1); exit 1; }; }
29818     fi
29819     ac_ext=c
29820 ac_cpp='$CPP $CPPFLAGS'
29821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29824
29825
29826
29827         fi
29828         CPPFLAGS="$CPPFLAGS_SAVED"
29829         LDFLAGS="$LDFLAGS_SAVED"
29830     fi
29831
29832
29833
29834
29835
29836
29837         # Extract the first word of "svn", so it can be a program name with args.
29838 set dummy svn; ac_word=$2
29839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29840 $as_echo_n "checking for $ac_word... " >&6; }
29841 if test "${ac_cv_path_SVN+set}" = set; then
29842   $as_echo_n "(cached) " >&6
29843 else
29844   case $SVN in
29845   [\\/]* | ?:[\\/]*)
29846   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
29847   ;;
29848   *)
29849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29850 for as_dir in $PATH
29851 do
29852   IFS=$as_save_IFS
29853   test -z "$as_dir" && as_dir=.
29854   for ac_exec_ext in '' $ac_executable_extensions; do
29855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29856     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
29857     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29858     break 2
29859   fi
29860 done
29861 done
29862 IFS=$as_save_IFS
29863
29864   ;;
29865 esac
29866 fi
29867 SVN=$ac_cv_path_SVN
29868 if test -n "$SVN"; then
29869   { $as_echo "$as_me:$LINENO: result: $SVN" >&5
29870 $as_echo "$SVN" >&6; }
29871 else
29872   { $as_echo "$as_me:$LINENO: result: no" >&5
29873 $as_echo "no" >&6; }
29874 fi
29875
29876
29877         if test "$SVN" != "" -a -d .svn ; then
29878             SVNVERSION=`$SVN info . | grep '^Revision' | cut -f 2- -d ' '`
29879             SVNDATE=`$SVN info . | grep 'Last Changed Date' | cut -f 4-6 -d ' '`
29880         fi
29881
29882
29883
29884
29885
29886
29887 # Check whether --enable-all-components was given.
29888 if test "${enable_all_components+set}" = set; then
29889   enableval=$enable_all_components;
29890 fi
29891
29892
29893 build_dirs="config"
29894
29895
29896
29897     passed=yes
29898     # Check whether --enable-gruel was given.
29899 if test "${enable_gruel+set}" = set; then
29900   enableval=$enable_gruel;
29901 else
29902
29903         enable_gruel=$enable_all_components
29904         if test x$enable_all_components = xno; then
29905             passed=no
29906         fi
29907
29908 fi
29909
29910
29911
29912
29913     if test x = x; then
29914         pc_comp_name="gruel"
29915     else
29916         pc_comp_name=""
29917     fi
29918
29919
29920 # Check whether --with-gruel was given.
29921 if test "${with_gruel+set}" = set; then
29922   withval=$with_gruel; if test "x$withval" != "xyes"; then
29923                     with_gruel_val=$withval
29924                     with_gruel=yes
29925                  fi
29926 fi
29927
29928     if test x$with_gruel = xyes; then
29929         if test x$enable_gruel = xyes; then
29930             { { $as_echo "$as_me:$LINENO: error: Component gruel: Cannot use both --enable and --with" >&5
29931 $as_echo "$as_me: error: Component gruel: Cannot use both --enable and --with" >&2;}
29932    { (exit 1); exit 1; }; }
29933         else
29934
29935         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
29936
29937             l_PKG_CONFIG_PATH=$with_gruel_val
29938     if test "x$l_PKG_CONFIG_PATH" != "x"; then
29939         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
29940
29941                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
29942             { { $as_echo "$as_me:$LINENO: error: Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&5
29943 $as_echo "$as_me: error: Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&2;}
29944    { (exit 1); exit 1; }; }
29945         fi
29946     fi
29947
29948         if test -n "$PKG_CONFIG" && \
29949     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
29950   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
29951   ac_status=$?
29952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; then
29954   passed=with; check1=yes
29955 else
29956
29957         check1=no
29958                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
29959             if test "x$s_PKG_CONFIG_PATH" != "x"; then
29960                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
29961                 if test -n "$PKG_CONFIG" && \
29962     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
29963   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
29964   ac_status=$?
29965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966   (exit $ac_status); }; then
29967   passed=with
29968 else
29969   passed=no
29970 fi
29971             fi
29972         fi
29973         if test $passed != with; then
29974             { { $as_echo "$as_me:$LINENO: error: Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&5
29975 $as_echo "$as_me: error: Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&2;}
29976    { (exit 1); exit 1; }; }
29977         fi
29978                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
29979
29980 fi
29981
29982                 gruel_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
29983     gruel_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
29984     gruel_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
29985
29986     if test x$check1 = xyes; then
29987                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
29988             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
29989         fi
29990     fi
29991
29992             :
29993         fi
29994     fi
29995
29996
29997
29998                     if test $passed != with; then
29999                 gruel_INCLUDES="\
30000 -I\${abs_top_srcdir}/gruel/src/include \
30001 -I\${abs_top_builddir}/gruel/src/include"
30002         gruel_LA="\${abs_top_builddir}/gruel/src/lib/libgruel.la"
30003         gruel_LIBDIRPATH="\${abs_top_builddir}/gruel/src/lib:\${abs_top_builddir}/gruel/src/lib/.libs"
30004     fi
30005
30006     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"
30007
30008
30009         if test "${ac_cv_header_arpa_inet_h+set}" = set; then
30010   { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
30011 $as_echo_n "checking for arpa/inet.h... " >&6; }
30012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
30013   $as_echo_n "(cached) " >&6
30014 fi
30015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
30016 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
30017 else
30018   # Is the header compilable?
30019 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
30020 $as_echo_n "checking arpa/inet.h usability... " >&6; }
30021 cat >conftest.$ac_ext <<_ACEOF
30022 /* confdefs.h.  */
30023 _ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h.  */
30027 $ac_includes_default
30028 #include <arpa/inet.h>
30029 _ACEOF
30030 rm -f conftest.$ac_objext
30031 if { (ac_try="$ac_compile"
30032 case "(($ac_try" in
30033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034   *) ac_try_echo=$ac_try;;
30035 esac
30036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30037 $as_echo "$ac_try_echo") >&5
30038   (eval "$ac_compile") 2>conftest.er1
30039   ac_status=$?
30040   grep -v '^ *+' conftest.er1 >conftest.err
30041   rm -f conftest.er1
30042   cat conftest.err >&5
30043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } && {
30045          test -z "$ac_c_werror_flag" ||
30046          test ! -s conftest.err
30047        } && test -s conftest.$ac_objext; then
30048   ac_header_compiler=yes
30049 else
30050   $as_echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30052
30053         ac_header_compiler=no
30054 fi
30055
30056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30058 $as_echo "$ac_header_compiler" >&6; }
30059
30060 # Is the header present?
30061 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
30062 $as_echo_n "checking arpa/inet.h presence... " >&6; }
30063 cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h.  */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h.  */
30069 #include <arpa/inet.h>
30070 _ACEOF
30071 if { (ac_try="$ac_cpp conftest.$ac_ext"
30072 case "(($ac_try" in
30073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074   *) ac_try_echo=$ac_try;;
30075 esac
30076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30077 $as_echo "$ac_try_echo") >&5
30078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30079   ac_status=$?
30080   grep -v '^ *+' conftest.er1 >conftest.err
30081   rm -f conftest.er1
30082   cat conftest.err >&5
30083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084   (exit $ac_status); } >/dev/null && {
30085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30086          test ! -s conftest.err
30087        }; then
30088   ac_header_preproc=yes
30089 else
30090   $as_echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30092
30093   ac_header_preproc=no
30094 fi
30095
30096 rm -f conftest.err conftest.$ac_ext
30097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30098 $as_echo "$ac_header_preproc" >&6; }
30099
30100 # So?  What about this header?
30101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30102   yes:no: )
30103     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
30104 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30105     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
30106 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
30107     ac_header_preproc=yes
30108     ;;
30109   no:yes:* )
30110     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
30111 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
30112     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&5
30113 $as_echo "$as_me: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&2;}
30114     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
30115 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
30116     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&5
30117 $as_echo "$as_me: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30118     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
30119 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
30120     { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
30121 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
30122
30123     ;;
30124 esac
30125 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
30126 $as_echo_n "checking for arpa/inet.h... " >&6; }
30127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
30128   $as_echo_n "(cached) " >&6
30129 else
30130   ac_cv_header_arpa_inet_h=$ac_header_preproc
30131 fi
30132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
30133 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
30134
30135 fi
30136 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then
30137   GR_HAVE_ARPA_INET=1
30138 else
30139   GR_HAVE_ARPA_INET=0
30140 fi
30141
30142
30143     if test "${ac_cv_header_netinet_in_h+set}" = set; then
30144   { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
30145 $as_echo_n "checking for netinet/in.h... " >&6; }
30146 if test "${ac_cv_header_netinet_in_h+set}" = set; then
30147   $as_echo_n "(cached) " >&6
30148 fi
30149 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
30150 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
30151 else
30152   # Is the header compilable?
30153 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
30154 $as_echo_n "checking netinet/in.h usability... " >&6; }
30155 cat >conftest.$ac_ext <<_ACEOF
30156 /* confdefs.h.  */
30157 _ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h.  */
30161 $ac_includes_default
30162 #include <netinet/in.h>
30163 _ACEOF
30164 rm -f conftest.$ac_objext
30165 if { (ac_try="$ac_compile"
30166 case "(($ac_try" in
30167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30168   *) ac_try_echo=$ac_try;;
30169 esac
30170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30171 $as_echo "$ac_try_echo") >&5
30172   (eval "$ac_compile") 2>conftest.er1
30173   ac_status=$?
30174   grep -v '^ *+' conftest.er1 >conftest.err
30175   rm -f conftest.er1
30176   cat conftest.err >&5
30177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178   (exit $ac_status); } && {
30179          test -z "$ac_c_werror_flag" ||
30180          test ! -s conftest.err
30181        } && test -s conftest.$ac_objext; then
30182   ac_header_compiler=yes
30183 else
30184   $as_echo "$as_me: failed program was:" >&5
30185 sed 's/^/| /' conftest.$ac_ext >&5
30186
30187         ac_header_compiler=no
30188 fi
30189
30190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30191 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30192 $as_echo "$ac_header_compiler" >&6; }
30193
30194 # Is the header present?
30195 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
30196 $as_echo_n "checking netinet/in.h presence... " >&6; }
30197 cat >conftest.$ac_ext <<_ACEOF
30198 /* confdefs.h.  */
30199 _ACEOF
30200 cat confdefs.h >>conftest.$ac_ext
30201 cat >>conftest.$ac_ext <<_ACEOF
30202 /* end confdefs.h.  */
30203 #include <netinet/in.h>
30204 _ACEOF
30205 if { (ac_try="$ac_cpp conftest.$ac_ext"
30206 case "(($ac_try" in
30207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208   *) ac_try_echo=$ac_try;;
30209 esac
30210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30211 $as_echo "$ac_try_echo") >&5
30212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30213   ac_status=$?
30214   grep -v '^ *+' conftest.er1 >conftest.err
30215   rm -f conftest.er1
30216   cat conftest.err >&5
30217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218   (exit $ac_status); } >/dev/null && {
30219          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30220          test ! -s conftest.err
30221        }; then
30222   ac_header_preproc=yes
30223 else
30224   $as_echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227   ac_header_preproc=no
30228 fi
30229
30230 rm -f conftest.err conftest.$ac_ext
30231 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30232 $as_echo "$ac_header_preproc" >&6; }
30233
30234 # So?  What about this header?
30235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30236   yes:no: )
30237     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
30238 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30239     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
30240 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
30241     ac_header_preproc=yes
30242     ;;
30243   no:yes:* )
30244     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
30245 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
30246     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&5
30247 $as_echo "$as_me: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&2;}
30248     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
30249 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
30250     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&5
30251 $as_echo "$as_me: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30252     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
30253 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
30254     { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
30255 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
30256
30257     ;;
30258 esac
30259 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
30260 $as_echo_n "checking for netinet/in.h... " >&6; }
30261 if test "${ac_cv_header_netinet_in_h+set}" = set; then
30262   $as_echo_n "(cached) " >&6
30263 else
30264   ac_cv_header_netinet_in_h=$ac_header_preproc
30265 fi
30266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
30267 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
30268
30269 fi
30270 if test "x$ac_cv_header_netinet_in_h" = x""yes; then
30271   GR_HAVE_NETINET_IN=1
30272 else
30273   GR_HAVE_NETINET_IN=0
30274 fi
30275
30276
30277     if test "${ac_cv_header_byteswap_h+set}" = set; then
30278   { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
30279 $as_echo_n "checking for byteswap.h... " >&6; }
30280 if test "${ac_cv_header_byteswap_h+set}" = set; then
30281   $as_echo_n "(cached) " >&6
30282 fi
30283 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
30284 $as_echo "$ac_cv_header_byteswap_h" >&6; }
30285 else
30286   # Is the header compilable?
30287 { $as_echo "$as_me:$LINENO: checking byteswap.h usability" >&5
30288 $as_echo_n "checking byteswap.h usability... " >&6; }
30289 cat >conftest.$ac_ext <<_ACEOF
30290 /* confdefs.h.  */
30291 _ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h.  */
30295 $ac_includes_default
30296 #include <byteswap.h>
30297 _ACEOF
30298 rm -f conftest.$ac_objext
30299 if { (ac_try="$ac_compile"
30300 case "(($ac_try" in
30301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302   *) ac_try_echo=$ac_try;;
30303 esac
30304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30305 $as_echo "$ac_try_echo") >&5
30306   (eval "$ac_compile") 2>conftest.er1
30307   ac_status=$?
30308   grep -v '^ *+' conftest.er1 >conftest.err
30309   rm -f conftest.er1
30310   cat conftest.err >&5
30311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312   (exit $ac_status); } && {
30313          test -z "$ac_c_werror_flag" ||
30314          test ! -s conftest.err
30315        } && test -s conftest.$ac_objext; then
30316   ac_header_compiler=yes
30317 else
30318   $as_echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30320
30321         ac_header_compiler=no
30322 fi
30323
30324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30326 $as_echo "$ac_header_compiler" >&6; }
30327
30328 # Is the header present?
30329 { $as_echo "$as_me:$LINENO: checking byteswap.h presence" >&5
30330 $as_echo_n "checking byteswap.h presence... " >&6; }
30331 cat >conftest.$ac_ext <<_ACEOF
30332 /* confdefs.h.  */
30333 _ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h.  */
30337 #include <byteswap.h>
30338 _ACEOF
30339 if { (ac_try="$ac_cpp conftest.$ac_ext"
30340 case "(($ac_try" in
30341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342   *) ac_try_echo=$ac_try;;
30343 esac
30344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30345 $as_echo "$ac_try_echo") >&5
30346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30347   ac_status=$?
30348   grep -v '^ *+' conftest.er1 >conftest.err
30349   rm -f conftest.er1
30350   cat conftest.err >&5
30351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); } >/dev/null && {
30353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30354          test ! -s conftest.err
30355        }; then
30356   ac_header_preproc=yes
30357 else
30358   $as_echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361   ac_header_preproc=no
30362 fi
30363
30364 rm -f conftest.err conftest.$ac_ext
30365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30366 $as_echo "$ac_header_preproc" >&6; }
30367
30368 # So?  What about this header?
30369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30370   yes:no: )
30371     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
30372 $as_echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30373     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
30374 $as_echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
30375     ac_header_preproc=yes
30376     ;;
30377   no:yes:* )
30378     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
30379 $as_echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
30380     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h:     check for missing prerequisite headers?" >&5
30381 $as_echo "$as_me: WARNING: byteswap.h:     check for missing prerequisite headers?" >&2;}
30382     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
30383 $as_echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
30384     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h:     section \"Present But Cannot Be Compiled\"" >&5
30385 $as_echo "$as_me: WARNING: byteswap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30386     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
30387 $as_echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
30388     { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
30389 $as_echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
30390
30391     ;;
30392 esac
30393 { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
30394 $as_echo_n "checking for byteswap.h... " >&6; }
30395 if test "${ac_cv_header_byteswap_h+set}" = set; then
30396   $as_echo_n "(cached) " >&6
30397 else
30398   ac_cv_header_byteswap_h=$ac_header_preproc
30399 fi
30400 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
30401 $as_echo "$ac_cv_header_byteswap_h" >&6; }
30402
30403 fi
30404 if test "x$ac_cv_header_byteswap_h" = x""yes; then
30405   GR_HAVE_BYTESWAP=1
30406 else
30407   GR_HAVE_BYTESWAP=0
30408 fi
30409
30410
30411
30412
30413
30414
30415
30416
30417     gruel_with=no
30418     if test $passed = no; then
30419         if test x$enable_gruel = xyes; then
30420             { { $as_echo "$as_me:$LINENO: error: Component gruel has errors; stopping." >&5
30421 $as_echo "$as_me: error: Component gruel has errors; stopping." >&2;}
30422    { (exit 1); exit 1; }; }
30423         else
30424             { $as_echo "$as_me:$LINENO: result: Not building component gruel." >&5
30425 $as_echo "Not building component gruel." >&6; }
30426         fi
30427     else
30428         if test $passed = with; then
30429             with_dirs="$with_dirs gruel"
30430
30431     if test "x${gruel_INCLUDES}" != "x"; then
30432         if test "x$with_INCLUDES" = "x"; then
30433             with_INCLUDES="${gruel_INCLUDES}"
30434         else
30435             with_INCLUDES="${gruel_INCLUDES}"" ""$with_INCLUDES"
30436         fi
30437         gruel_INCLUDES=
30438     fi
30439
30440
30441     if test "x${gruel_SWIG_INCLUDES}" != "x"; then
30442         if test "x$with_SWIG_INCLUDES" = "x"; then
30443             with_SWIG_INCLUDES="${gruel_SWIG_INCLUDES}"
30444         else
30445             with_SWIG_INCLUDES="${gruel_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30446         fi
30447         gruel_SWIG_INCLUDES=
30448     fi
30449
30450
30451     if test "x${gruel_PYDIRPATH}" != "x"; then
30452         if test "x$with_PYDIRPATH" = "x"; then
30453             with_PYDIRPATH="${gruel_PYDIRPATH}"
30454         else
30455             with_PYDIRPATH="${gruel_PYDIRPATH}"":""$with_PYDIRPATH"
30456         fi
30457         gruel_PYDIRPATH=
30458     fi
30459
30460
30461     if test "x${gruel_SWIGDIRPATH}" != "x"; then
30462         if test "x$with_SWIGDIRPATH" = "x"; then
30463             with_SWIGDIRPATH="${gruel_SWIGDIRPATH}"
30464         else
30465             with_SWIGDIRPATH="${gruel_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30466         fi
30467         gruel_SWIGDIRPATH=
30468     fi
30469
30470
30471     if test "x${gruel_LIBDIRPATH}" != "x"; then
30472         if test "x$with_LIBDIRPATH" = "x"; then
30473             with_LIBDIRPATH="${gruel_LIBDIRPATH}"
30474         else
30475             with_LIBDIRPATH="${gruel_LIBDIRPATH}"":""$with_LIBDIRPATH"
30476         fi
30477         gruel_LIBDIRPATH=
30478     fi
30479
30480             { $as_echo "$as_me:$LINENO: result: Component gruel will be included from a pre-installed library and includes." >&5
30481 $as_echo "Component gruel will be included from a pre-installed library and includes." >&6; }
30482             gruel_with=yes
30483         else
30484             gruel_LDFLAG=
30485             if test x$enable_gruel != xno; then
30486                 :
30487                 build_dirs="$build_dirs gruel"
30488                 { $as_echo "$as_me:$LINENO: result: Component gruel passed configuration checks; building." >&5
30489 $as_echo "Component gruel passed configuration checks; building." >&6; }
30490             else
30491                 passed=no
30492                 { $as_echo "$as_me:$LINENO: result: Component gruel passed configuration checks; but not building." >&5
30493 $as_echo "Component gruel passed configuration checks; but not building." >&6; }
30494             fi
30495         fi
30496     fi
30497     if test $passed = no; then
30498         skipped_dirs="$skipped_dirs gruel"
30499         gruel_skipped=yes
30500     else
30501         gruel_skipped=no
30502     fi
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513     passed=yes
30514     # Check whether --enable-omnithread was given.
30515 if test "${enable_omnithread+set}" = set; then
30516   enableval=$enable_omnithread;
30517 else
30518
30519         enable_omnithread=$enable_all_components
30520         if test x$enable_all_components = xno; then
30521             passed=no
30522         fi
30523
30524 fi
30525
30526
30527
30528
30529
30530     if test xgnuradio-omnithread = x; then
30531         pc_comp_name="omnithread"
30532     else
30533         pc_comp_name="gnuradio-omnithread"
30534     fi
30535
30536
30537 # Check whether --with-omnithread was given.
30538 if test "${with_omnithread+set}" = set; then
30539   withval=$with_omnithread; if test "x$withval" != "xyes"; then
30540                     with_omnithread_val=$withval
30541                     with_omnithread=yes
30542                  fi
30543 fi
30544
30545     if test x$with_omnithread = xyes; then
30546         if test x$enable_omnithread = xyes; then
30547             { { $as_echo "$as_me:$LINENO: error: Component omnithread: Cannot use both --enable and --with" >&5
30548 $as_echo "$as_me: error: Component omnithread: Cannot use both --enable and --with" >&2;}
30549    { (exit 1); exit 1; }; }
30550         else
30551
30552         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
30553
30554             l_PKG_CONFIG_PATH=$with_omnithread_val
30555     if test "x$l_PKG_CONFIG_PATH" != "x"; then
30556         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
30557
30558                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
30559             { { $as_echo "$as_me:$LINENO: error: Component omnithread: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&5
30560 $as_echo "$as_me: error: Component omnithread: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&2;}
30561    { (exit 1); exit 1; }; }
30562         fi
30563     fi
30564
30565         if test -n "$PKG_CONFIG" && \
30566     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
30567   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
30568   ac_status=$?
30569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570   (exit $ac_status); }; then
30571   passed=with; check1=yes
30572 else
30573
30574         check1=no
30575                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
30576             if test "x$s_PKG_CONFIG_PATH" != "x"; then
30577                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
30578                 if test -n "$PKG_CONFIG" && \
30579     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
30580   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
30581   ac_status=$?
30582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583   (exit $ac_status); }; then
30584   passed=with
30585 else
30586   passed=no
30587 fi
30588             fi
30589         fi
30590         if test $passed != with; then
30591             { { $as_echo "$as_me:$LINENO: error: Component omnithread: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&5
30592 $as_echo "$as_me: error: Component omnithread: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&2;}
30593    { (exit 1); exit 1; }; }
30594         fi
30595                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
30596
30597 fi
30598
30599                 omnithread_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
30600     omnithread_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
30601     omnithread_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
30602
30603     if test x$check1 = xyes; then
30604                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
30605             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
30606         fi
30607     fi
30608
30609             :
30610         fi
30611     fi
30612
30613
30614
30615                     if test $passed != with; then
30616                 omnithread_INCLUDES="-I\${abs_top_srcdir}/omnithread"
30617         omnithread_LA="\${abs_top_builddir}/omnithread/libgromnithread.la"
30618         omnithread_LIBDIRPATH="\${abs_top_builddir}/omnithread:\${abs_top_builddir}/omnithread/.libs"
30619     fi
30620
30621     ac_config_files="$ac_config_files omnithread/Makefile omnithread/gnuradio/Makefile omnithread/gnuradio-omnithread.pc"
30622
30623
30624
30625
30626     omnithread_with=no
30627     if test $passed = no; then
30628         if test x$enable_omnithread = xyes; then
30629             { { $as_echo "$as_me:$LINENO: error: Component omnithread has errors; stopping." >&5
30630 $as_echo "$as_me: error: Component omnithread has errors; stopping." >&2;}
30631    { (exit 1); exit 1; }; }
30632         else
30633             { $as_echo "$as_me:$LINENO: result: Not building component omnithread." >&5
30634 $as_echo "Not building component omnithread." >&6; }
30635         fi
30636     else
30637         if test $passed = with; then
30638             with_dirs="$with_dirs omnithread"
30639
30640     if test "x${omnithread_INCLUDES}" != "x"; then
30641         if test "x$with_INCLUDES" = "x"; then
30642             with_INCLUDES="${omnithread_INCLUDES}"
30643         else
30644             with_INCLUDES="${omnithread_INCLUDES}"" ""$with_INCLUDES"
30645         fi
30646         omnithread_INCLUDES=
30647     fi
30648
30649
30650     if test "x${omnithread_SWIG_INCLUDES}" != "x"; then
30651         if test "x$with_SWIG_INCLUDES" = "x"; then
30652             with_SWIG_INCLUDES="${omnithread_SWIG_INCLUDES}"
30653         else
30654             with_SWIG_INCLUDES="${omnithread_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30655         fi
30656         omnithread_SWIG_INCLUDES=
30657     fi
30658
30659
30660     if test "x${omnithread_PYDIRPATH}" != "x"; then
30661         if test "x$with_PYDIRPATH" = "x"; then
30662             with_PYDIRPATH="${omnithread_PYDIRPATH}"
30663         else
30664             with_PYDIRPATH="${omnithread_PYDIRPATH}"":""$with_PYDIRPATH"
30665         fi
30666         omnithread_PYDIRPATH=
30667     fi
30668
30669
30670     if test "x${omnithread_SWIGDIRPATH}" != "x"; then
30671         if test "x$with_SWIGDIRPATH" = "x"; then
30672             with_SWIGDIRPATH="${omnithread_SWIGDIRPATH}"
30673         else
30674             with_SWIGDIRPATH="${omnithread_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30675         fi
30676         omnithread_SWIGDIRPATH=
30677     fi
30678
30679
30680     if test "x${omnithread_LIBDIRPATH}" != "x"; then
30681         if test "x$with_LIBDIRPATH" = "x"; then
30682             with_LIBDIRPATH="${omnithread_LIBDIRPATH}"
30683         else
30684             with_LIBDIRPATH="${omnithread_LIBDIRPATH}"":""$with_LIBDIRPATH"
30685         fi
30686         omnithread_LIBDIRPATH=
30687     fi
30688
30689             { $as_echo "$as_me:$LINENO: result: Component omnithread will be included from a pre-installed library and includes." >&5
30690 $as_echo "Component omnithread will be included from a pre-installed library and includes." >&6; }
30691             omnithread_with=yes
30692         else
30693             omnithread_LDFLAG=
30694             if test x$enable_omnithread != xno; then
30695
30696                 build_dirs="$build_dirs omnithread"
30697                 { $as_echo "$as_me:$LINENO: result: Component omnithread passed configuration checks; building." >&5
30698 $as_echo "Component omnithread passed configuration checks; building." >&6; }
30699             else
30700                 passed=no
30701                 { $as_echo "$as_me:$LINENO: result: Component omnithread passed configuration checks; but not building." >&5
30702 $as_echo "Component omnithread passed configuration checks; but not building." >&6; }
30703             fi
30704         fi
30705     fi
30706     if test $passed = no; then
30707         skipped_dirs="$skipped_dirs omnithread"
30708         omnithread_skipped=yes
30709     else
30710         omnithread_skipped=no
30711     fi
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722     passed=yes
30723     # Check whether --enable-gcell was given.
30724 if test "${enable_gcell+set}" = set; then
30725   enableval=$enable_gcell;
30726 else
30727
30728         enable_gcell=$enable_all_components
30729         if test x$enable_all_components = xno; then
30730             passed=no
30731         fi
30732
30733 fi
30734
30735
30736
30737
30738
30739     if test $passed != no; then
30740         if test $passed = yes; then
30741                         if test x$omnithread_skipped = xyes; then
30742                 { $as_echo "$as_me:$LINENO: result: Component gcell requires omnithread, which is not being built or specified via pre-installed files." >&5
30743 $as_echo "Component gcell requires omnithread, which is not being built or specified via pre-installed files." >&6; }
30744                 passed=no
30745             fi
30746         else
30747                         if test x$omnithread_with = xno; then
30748                 { { $as_echo "$as_me:$LINENO: error: Component gcell requires omnithread to be included as --with-omnithread[=arg]" >&5
30749 $as_echo "$as_me: error: Component gcell requires omnithread to be included as --with-omnithread[=arg]" >&2;}
30750    { (exit 1); exit 1; }; }
30751             fi
30752         fi
30753     fi
30754
30755
30756                     if test $passed = yes; then
30757                 { $as_echo "$as_me:$LINENO: checking whether host_cpu is powerpc*" >&5
30758 $as_echo_n "checking whether host_cpu is powerpc*... " >&6; }
30759         case "$host_cpu" in
30760             powerpc*)
30761                 { $as_echo "$as_me:$LINENO: result: yes" >&5
30762 $as_echo "yes" >&6; }
30763                 ;;
30764             *)
30765                 passed=no
30766                 { $as_echo "$as_me:$LINENO: result: no" >&5
30767 $as_echo "no" >&6; }
30768                 ;;
30769         esac
30770
30771                 # Extract the first word of "spu-gcc", so it can be a program name with args.
30772 set dummy spu-gcc; ac_word=$2
30773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30774 $as_echo_n "checking for $ac_word... " >&6; }
30775 if test "${ac_cv_prog_SPU_GCC_PROG+set}" = set; then
30776   $as_echo_n "(cached) " >&6
30777 else
30778   if test -n "$SPU_GCC_PROG"; then
30779   ac_cv_prog_SPU_GCC_PROG="$SPU_GCC_PROG" # Let the user override the test.
30780 else
30781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30782 for as_dir in $PATH
30783 do
30784   IFS=$as_save_IFS
30785   test -z "$as_dir" && as_dir=.
30786   for ac_exec_ext in '' $ac_executable_extensions; do
30787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30788     ac_cv_prog_SPU_GCC_PROG="yes"
30789     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30790     break 2
30791   fi
30792 done
30793 done
30794 IFS=$as_save_IFS
30795
30796   test -z "$ac_cv_prog_SPU_GCC_PROG" && ac_cv_prog_SPU_GCC_PROG="no"
30797 fi
30798 fi
30799 SPU_GCC_PROG=$ac_cv_prog_SPU_GCC_PROG
30800 if test -n "$SPU_GCC_PROG"; then
30801   { $as_echo "$as_me:$LINENO: result: $SPU_GCC_PROG" >&5
30802 $as_echo "$SPU_GCC_PROG" >&6; }
30803 else
30804   { $as_echo "$as_me:$LINENO: result: no" >&5
30805 $as_echo "no" >&6; }
30806 fi
30807
30808
30809         if test $SPU_GCC_PROG = no; then
30810             passed=no
30811         fi
30812     fi
30813
30814     if test $passed != with; then
30815                 gcell_INCLUDES="-I\${abs_top_srcdir}/gcell/include"
30816         gcell_LA="\${abs_top_builddir}/gcell/lib/libgcell.la"
30817         gcell_spu_INCLUDES="-I\${abs_top_srcdir}/gcell/include"
30818         gcell_spu_LA="\${abs_top_builddir}/gcell/lib/spu/libgcell_spu.a"
30819
30820
30821
30822     fi
30823
30824     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"
30825
30826
30827
30828
30829     gcell_with=no
30830     if test $passed = no; then
30831         if test x$enable_gcell = xyes; then
30832             { { $as_echo "$as_me:$LINENO: error: Component gcell has errors; stopping." >&5
30833 $as_echo "$as_me: error: Component gcell has errors; stopping." >&2;}
30834    { (exit 1); exit 1; }; }
30835         else
30836             { $as_echo "$as_me:$LINENO: result: Not building component gcell." >&5
30837 $as_echo "Not building component gcell." >&6; }
30838         fi
30839     else
30840         if test $passed = with; then
30841             with_dirs="$with_dirs gcell"
30842
30843     if test "x${gcell_INCLUDES}" != "x"; then
30844         if test "x$with_INCLUDES" = "x"; then
30845             with_INCLUDES="${gcell_INCLUDES}"
30846         else
30847             with_INCLUDES="${gcell_INCLUDES}"" ""$with_INCLUDES"
30848         fi
30849         gcell_INCLUDES=
30850     fi
30851
30852
30853     if test "x${gcell_SWIG_INCLUDES}" != "x"; then
30854         if test "x$with_SWIG_INCLUDES" = "x"; then
30855             with_SWIG_INCLUDES="${gcell_SWIG_INCLUDES}"
30856         else
30857             with_SWIG_INCLUDES="${gcell_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30858         fi
30859         gcell_SWIG_INCLUDES=
30860     fi
30861
30862
30863     if test "x${gcell_PYDIRPATH}" != "x"; then
30864         if test "x$with_PYDIRPATH" = "x"; then
30865             with_PYDIRPATH="${gcell_PYDIRPATH}"
30866         else
30867             with_PYDIRPATH="${gcell_PYDIRPATH}"":""$with_PYDIRPATH"
30868         fi
30869         gcell_PYDIRPATH=
30870     fi
30871
30872
30873     if test "x${gcell_SWIGDIRPATH}" != "x"; then
30874         if test "x$with_SWIGDIRPATH" = "x"; then
30875             with_SWIGDIRPATH="${gcell_SWIGDIRPATH}"
30876         else
30877             with_SWIGDIRPATH="${gcell_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30878         fi
30879         gcell_SWIGDIRPATH=
30880     fi
30881
30882
30883     if test "x${gcell_LIBDIRPATH}" != "x"; then
30884         if test "x$with_LIBDIRPATH" = "x"; then
30885             with_LIBDIRPATH="${gcell_LIBDIRPATH}"
30886         else
30887             with_LIBDIRPATH="${gcell_LIBDIRPATH}"":""$with_LIBDIRPATH"
30888         fi
30889         gcell_LIBDIRPATH=
30890     fi
30891
30892             { $as_echo "$as_me:$LINENO: result: Component gcell will be included from a pre-installed library and includes." >&5
30893 $as_echo "Component gcell will be included from a pre-installed library and includes." >&6; }
30894             gcell_with=yes
30895         else
30896             gcell_LDFLAG=
30897             if test x$enable_gcell != xno; then
30898                 :
30899                 build_dirs="$build_dirs gcell"
30900                 { $as_echo "$as_me:$LINENO: result: Component gcell passed configuration checks; building." >&5
30901 $as_echo "Component gcell passed configuration checks; building." >&6; }
30902             else
30903                 passed=no
30904                 { $as_echo "$as_me:$LINENO: result: Component gcell passed configuration checks; but not building." >&5
30905 $as_echo "Component gcell passed configuration checks; but not building." >&6; }
30906             fi
30907         fi
30908     fi
30909     if test $passed = no; then
30910         skipped_dirs="$skipped_dirs gcell"
30911         gcell_skipped=yes
30912     else
30913         gcell_skipped=no
30914     fi
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926     passed=yes
30927     # Check whether --enable-gnuradio-core was given.
30928 if test "${enable_gnuradio_core+set}" = set; then
30929   enableval=$enable_gnuradio_core;
30930 else
30931
30932         enable_gnuradio_core=$enable_all_components
30933         if test x$enable_all_components = xno; then
30934             passed=no
30935         fi
30936
30937 fi
30938
30939
30940
30941
30942
30943     if test x = x; then
30944         pc_comp_name="gnuradio-core"
30945     else
30946         pc_comp_name=""
30947     fi
30948
30949
30950 # Check whether --with-gnuradio-core was given.
30951 if test "${with_gnuradio_core+set}" = set; then
30952   withval=$with_gnuradio_core; if test "x$withval" != "xyes"; then
30953                     with_gnuradio_core_val=$withval
30954                     with_gnuradio_core=yes
30955                  fi
30956 fi
30957
30958     if test x$with_gnuradio_core = xyes; then
30959         if test x$enable_gnuradio_core = xyes; then
30960             { { $as_echo "$as_me:$LINENO: error: Component gnuradio-core: Cannot use both --enable and --with" >&5
30961 $as_echo "$as_me: error: Component gnuradio-core: Cannot use both --enable and --with" >&2;}
30962    { (exit 1); exit 1; }; }
30963         else
30964
30965         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
30966
30967             l_PKG_CONFIG_PATH=$with_gnuradio_core_val
30968     if test "x$l_PKG_CONFIG_PATH" != "x"; then
30969         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
30970
30971                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
30972             { { $as_echo "$as_me:$LINENO: error: Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&5
30973 $as_echo "$as_me: error: Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&2;}
30974    { (exit 1); exit 1; }; }
30975         fi
30976     fi
30977
30978         if test -n "$PKG_CONFIG" && \
30979     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
30980   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
30981   ac_status=$?
30982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); }; then
30984   passed=with; check1=yes
30985 else
30986
30987         check1=no
30988                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
30989             if test "x$s_PKG_CONFIG_PATH" != "x"; then
30990                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
30991                 if test -n "$PKG_CONFIG" && \
30992     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
30993   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
30994   ac_status=$?
30995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); }; then
30997   passed=with
30998 else
30999   passed=no
31000 fi
31001             fi
31002         fi
31003         if test $passed != with; then
31004             { { $as_echo "$as_me:$LINENO: error: Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&5
31005 $as_echo "$as_me: error: Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&2;}
31006    { (exit 1); exit 1; }; }
31007         fi
31008                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
31009
31010 fi
31011
31012                 gnuradio_core_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
31013     gnuradio_core_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
31014     gnuradio_core_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
31015
31016     if test x$check1 = xyes; then
31017                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
31018             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
31019         fi
31020     fi
31021
31022
31023                 gnuradio_core_SWIGDIRPATH="$gnuradio_core_INCLUDEDIR/swig"
31024         gnuradio_core_I="$gnuradio_core_SWIGDIRPATH/gnuradio.i"
31025         gnuradio_core_SWIG_INCLUDES="-I$gnuradio_core_SWIGDIRPATH"
31026         gnuradio_core_PYDIRPATH=$pythondir
31027
31028         fi
31029     fi
31030
31031
31032
31033
31034     if test $passed != no; then
31035         if test $passed = yes; then
31036                         if test x$gruel_skipped = xyes; then
31037                 { $as_echo "$as_me:$LINENO: result: Component gnuradio-core requires gruel, which is not being built or specified via pre-installed files." >&5
31038 $as_echo "Component gnuradio-core requires gruel, which is not being built or specified via pre-installed files." >&6; }
31039                 passed=no
31040             fi
31041         else
31042                         if test x$gruel_with = xno; then
31043                 { { $as_echo "$as_me:$LINENO: error: Component gnuradio-core requires gruel to be included as --with-gruel[=arg]" >&5
31044 $as_echo "$as_me: error: Component gnuradio-core requires gruel to be included as --with-gruel[=arg]" >&2;}
31045    { (exit 1); exit 1; }; }
31046             fi
31047         fi
31048     fi
31049
31050
31051     if test $passed != no; then
31052         if test $passed = yes; then
31053                         if test x$omnithread_skipped = xyes; then
31054                 { $as_echo "$as_me:$LINENO: result: Component gnuradio-core requires omnithread, which is not being built or specified via pre-installed files." >&5
31055 $as_echo "Component gnuradio-core requires omnithread, which is not being built or specified via pre-installed files." >&6; }
31056                 passed=no
31057             fi
31058         else
31059                         if test x$omnithread_with = xno; then
31060                 { { $as_echo "$as_me:$LINENO: error: Component gnuradio-core requires omnithread to be included as --with-omnithread[=arg]" >&5
31061 $as_echo "$as_me: error: Component gnuradio-core requires omnithread to be included as --with-omnithread[=arg]" >&2;}
31062    { (exit 1); exit 1; }; }
31063             fi
31064         fi
31065     fi
31066
31067
31068                     if test $passed = yes; then
31069
31070
31071
31072 acx_cblas_ok=no
31073
31074
31075 # Check whether --with-cblas was given.
31076 if test "${with_cblas+set}" = set; then
31077   withval=$with_cblas;
31078 fi
31079
31080 case $with_cblas in
31081         yes | "") ;;
31082         no) acx_cblas_ok=disable ;;
31083         -* | */* | *.a | *.so | *.so.* | *.o) CBLAS_LIBS="$with_cblas" ;;
31084         *) CBLAS_LIBS="-l$with_cblas" ;;
31085 esac
31086
31087
31088 acx_cblas_save_LIBS="$LIBS"
31089 LIBS="$LIBS $FLIBS"
31090
31091 # First, check CBLAS_LIBS environment variable
31092 if test $acx_cblas_ok = no; then
31093 if test "x$CBLAS_LIBS" != x; then
31094         save_LIBS="$LIBS"; LIBS="$CBLAS_LIBS $LIBS"
31095         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in $CBLAS_LIBS" >&5
31096 $as_echo_n "checking for cblas_sgemm in $CBLAS_LIBS... " >&6; }
31097         cat >conftest.$ac_ext <<_ACEOF
31098 /* confdefs.h.  */
31099 _ACEOF
31100 cat confdefs.h >>conftest.$ac_ext
31101 cat >>conftest.$ac_ext <<_ACEOF
31102 /* end confdefs.h.  */
31103
31104 /* Override any GCC internal prototype to avoid an error.
31105    Use char because int might match the return type of a GCC
31106    builtin and then its argument prototype would still apply.  */
31107 #ifdef __cplusplus
31108 extern "C"
31109 #endif
31110 char cblas_sgemm ();
31111 int
31112 main ()
31113 {
31114 return cblas_sgemm ();
31115   ;
31116   return 0;
31117 }
31118 _ACEOF
31119 rm -f conftest.$ac_objext conftest$ac_exeext
31120 if { (ac_try="$ac_link"
31121 case "(($ac_try" in
31122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123   *) ac_try_echo=$ac_try;;
31124 esac
31125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31126 $as_echo "$ac_try_echo") >&5
31127   (eval "$ac_link") 2>conftest.er1
31128   ac_status=$?
31129   grep -v '^ *+' conftest.er1 >conftest.err
31130   rm -f conftest.er1
31131   cat conftest.err >&5
31132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133   (exit $ac_status); } && {
31134          test -z "$ac_c_werror_flag" ||
31135          test ! -s conftest.err
31136        } && test -s conftest$ac_exeext && {
31137          test "$cross_compiling" = yes ||
31138          $as_test_x conftest$ac_exeext
31139        }; then
31140   acx_cblas_ok=yes
31141 else
31142   $as_echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31144
31145         CBLAS_LIBS=""
31146 fi
31147
31148 rm -rf conftest.dSYM
31149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31150       conftest$ac_exeext conftest.$ac_ext
31151         { $as_echo "$as_me:$LINENO: result: $acx_cblas_ok" >&5
31152 $as_echo "$acx_cblas_ok" >&6; }
31153         LIBS="$save_LIBS"
31154 fi
31155 fi
31156
31157 # CBLAS linked to by default?  (happens on some supercomputers)
31158 if test $acx_cblas_ok = no; then
31159         save_LIBS="$LIBS"; LIBS="$LIBS"
31160         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm" >&5
31161 $as_echo_n "checking for cblas_sgemm... " >&6; }
31162 if test "${ac_cv_func_cblas_sgemm+set}" = set; then
31163   $as_echo_n "(cached) " >&6
31164 else
31165   cat >conftest.$ac_ext <<_ACEOF
31166 /* confdefs.h.  */
31167 _ACEOF
31168 cat confdefs.h >>conftest.$ac_ext
31169 cat >>conftest.$ac_ext <<_ACEOF
31170 /* end confdefs.h.  */
31171 /* Define cblas_sgemm to an innocuous variant, in case <limits.h> declares cblas_sgemm.
31172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31173 #define cblas_sgemm innocuous_cblas_sgemm
31174
31175 /* System header to define __stub macros and hopefully few prototypes,
31176     which can conflict with char cblas_sgemm (); below.
31177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31178     <limits.h> exists even on freestanding compilers.  */
31179
31180 #ifdef __STDC__
31181 # include <limits.h>
31182 #else
31183 # include <assert.h>
31184 #endif
31185
31186 #undef cblas_sgemm
31187
31188 /* Override any GCC internal prototype to avoid an error.
31189    Use char because int might match the return type of a GCC
31190    builtin and then its argument prototype would still apply.  */
31191 #ifdef __cplusplus
31192 extern "C"
31193 #endif
31194 char cblas_sgemm ();
31195 /* The GNU C library defines this for functions which it implements
31196     to always fail with ENOSYS.  Some functions are actually named
31197     something starting with __ and the normal name is an alias.  */
31198 #if defined __stub_cblas_sgemm || defined __stub___cblas_sgemm
31199 choke me
31200 #endif
31201
31202 int
31203 main ()
31204 {
31205 return cblas_sgemm ();
31206   ;
31207   return 0;
31208 }
31209 _ACEOF
31210 rm -f conftest.$ac_objext conftest$ac_exeext
31211 if { (ac_try="$ac_link"
31212 case "(($ac_try" in
31213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214   *) ac_try_echo=$ac_try;;
31215 esac
31216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31217 $as_echo "$ac_try_echo") >&5
31218   (eval "$ac_link") 2>conftest.er1
31219   ac_status=$?
31220   grep -v '^ *+' conftest.er1 >conftest.err
31221   rm -f conftest.er1
31222   cat conftest.err >&5
31223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); } && {
31225          test -z "$ac_c_werror_flag" ||
31226          test ! -s conftest.err
31227        } && test -s conftest$ac_exeext && {
31228          test "$cross_compiling" = yes ||
31229          $as_test_x conftest$ac_exeext
31230        }; then
31231   ac_cv_func_cblas_sgemm=yes
31232 else
31233   $as_echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31235
31236         ac_cv_func_cblas_sgemm=no
31237 fi
31238
31239 rm -rf conftest.dSYM
31240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31241       conftest$ac_exeext conftest.$ac_ext
31242 fi
31243 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_cblas_sgemm" >&5
31244 $as_echo "$ac_cv_func_cblas_sgemm" >&6; }
31245 if test "x$ac_cv_func_cblas_sgemm" = x""yes; then
31246   acx_cblas_ok=yes
31247 fi
31248
31249         LIBS="$save_LIBS"
31250 fi
31251
31252 # CBLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
31253 if test $acx_cblas_ok = no; then
31254         { $as_echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5
31255 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
31256 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then
31257   $as_echo_n "(cached) " >&6
31258 else
31259   ac_check_lib_save_LIBS=$LIBS
31260 LIBS="-latlas -latlas $LIBS"
31261 cat >conftest.$ac_ext <<_ACEOF
31262 /* confdefs.h.  */
31263 _ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h.  */
31267
31268 /* Override any GCC internal prototype to avoid an error.
31269    Use char because int might match the return type of a GCC
31270    builtin and then its argument prototype would still apply.  */
31271 #ifdef __cplusplus
31272 extern "C"
31273 #endif
31274 char ATL_xerbla ();
31275 int
31276 main ()
31277 {
31278 return ATL_xerbla ();
31279   ;
31280   return 0;
31281 }
31282 _ACEOF
31283 rm -f conftest.$ac_objext conftest$ac_exeext
31284 if { (ac_try="$ac_link"
31285 case "(($ac_try" in
31286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287   *) ac_try_echo=$ac_try;;
31288 esac
31289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31290 $as_echo "$ac_try_echo") >&5
31291   (eval "$ac_link") 2>conftest.er1
31292   ac_status=$?
31293   grep -v '^ *+' conftest.er1 >conftest.err
31294   rm -f conftest.er1
31295   cat conftest.err >&5
31296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297   (exit $ac_status); } && {
31298          test -z "$ac_c_werror_flag" ||
31299          test ! -s conftest.err
31300        } && test -s conftest$ac_exeext && {
31301          test "$cross_compiling" = yes ||
31302          $as_test_x conftest$ac_exeext
31303        }; then
31304   ac_cv_lib_atlas_ATL_xerbla=yes
31305 else
31306   $as_echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31308
31309         ac_cv_lib_atlas_ATL_xerbla=no
31310 fi
31311
31312 rm -rf conftest.dSYM
31313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31314       conftest$ac_exeext conftest.$ac_ext
31315 LIBS=$ac_check_lib_save_LIBS
31316 fi
31317 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
31318 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
31319 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then
31320   { $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
31321 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
31322 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
31323   $as_echo_n "(cached) " >&6
31324 else
31325   ac_check_lib_save_LIBS=$LIBS
31326 LIBS="-lcblas -latlas $LIBS"
31327 cat >conftest.$ac_ext <<_ACEOF
31328 /* confdefs.h.  */
31329 _ACEOF
31330 cat confdefs.h >>conftest.$ac_ext
31331 cat >>conftest.$ac_ext <<_ACEOF
31332 /* end confdefs.h.  */
31333
31334 /* Override any GCC internal prototype to avoid an error.
31335    Use char because int might match the return type of a GCC
31336    builtin and then its argument prototype would still apply.  */
31337 #ifdef __cplusplus
31338 extern "C"
31339 #endif
31340 char cblas_dgemm ();
31341 int
31342 main ()
31343 {
31344 return cblas_dgemm ();
31345   ;
31346   return 0;
31347 }
31348 _ACEOF
31349 rm -f conftest.$ac_objext conftest$ac_exeext
31350 if { (ac_try="$ac_link"
31351 case "(($ac_try" in
31352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353   *) ac_try_echo=$ac_try;;
31354 esac
31355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31356 $as_echo "$ac_try_echo") >&5
31357   (eval "$ac_link") 2>conftest.er1
31358   ac_status=$?
31359   grep -v '^ *+' conftest.er1 >conftest.err
31360   rm -f conftest.er1
31361   cat conftest.err >&5
31362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363   (exit $ac_status); } && {
31364          test -z "$ac_c_werror_flag" ||
31365          test ! -s conftest.err
31366        } && test -s conftest$ac_exeext && {
31367          test "$cross_compiling" = yes ||
31368          $as_test_x conftest$ac_exeext
31369        }; then
31370   ac_cv_lib_cblas_cblas_dgemm=yes
31371 else
31372   $as_echo "$as_me: failed program was:" >&5
31373 sed 's/^/| /' conftest.$ac_ext >&5
31374
31375         ac_cv_lib_cblas_cblas_dgemm=no
31376 fi
31377
31378 rm -rf conftest.dSYM
31379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31380       conftest$ac_exeext conftest.$ac_ext
31381 LIBS=$ac_check_lib_save_LIBS
31382 fi
31383 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
31384 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
31385 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
31386   acx_cblas_ok=yes
31387                  CBLAS_LIBS="-lcblas -latlas"
31388 fi
31389
31390 fi
31391
31392 fi
31393
31394 # CBLAS in ATLAS library in /usr/lib64/atlas (if not cross-compiling)
31395 if test $acx_cblas_ok = no && test "$cross_compiling" = no; then
31396         unset ac_cv_lib_atlas_ATL_xerbla
31397         unset ac_cv_lib_cblas_cblas_dgemm
31398         { $as_echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5
31399 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
31400 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then
31401   $as_echo_n "(cached) " >&6
31402 else
31403   ac_check_lib_save_LIBS=$LIBS
31404 LIBS="-latlas -L/usr/lib64/atlas -latlas $LIBS"
31405 cat >conftest.$ac_ext <<_ACEOF
31406 /* confdefs.h.  */
31407 _ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h.  */
31411
31412 /* Override any GCC internal prototype to avoid an error.
31413    Use char because int might match the return type of a GCC
31414    builtin and then its argument prototype would still apply.  */
31415 #ifdef __cplusplus
31416 extern "C"
31417 #endif
31418 char ATL_xerbla ();
31419 int
31420 main ()
31421 {
31422 return ATL_xerbla ();
31423   ;
31424   return 0;
31425 }
31426 _ACEOF
31427 rm -f conftest.$ac_objext conftest$ac_exeext
31428 if { (ac_try="$ac_link"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31434 $as_echo "$ac_try_echo") >&5
31435   (eval "$ac_link") 2>conftest.er1
31436   ac_status=$?
31437   grep -v '^ *+' conftest.er1 >conftest.err
31438   rm -f conftest.er1
31439   cat conftest.err >&5
31440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); } && {
31442          test -z "$ac_c_werror_flag" ||
31443          test ! -s conftest.err
31444        } && test -s conftest$ac_exeext && {
31445          test "$cross_compiling" = yes ||
31446          $as_test_x conftest$ac_exeext
31447        }; then
31448   ac_cv_lib_atlas_ATL_xerbla=yes
31449 else
31450   $as_echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31452
31453         ac_cv_lib_atlas_ATL_xerbla=no
31454 fi
31455
31456 rm -rf conftest.dSYM
31457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31458       conftest$ac_exeext conftest.$ac_ext
31459 LIBS=$ac_check_lib_save_LIBS
31460 fi
31461 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
31462 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
31463 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then
31464   { $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
31465 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
31466 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
31467   $as_echo_n "(cached) " >&6
31468 else
31469   ac_check_lib_save_LIBS=$LIBS
31470 LIBS="-lcblas -L/usr/lib64/atlas -latlas $LIBS"
31471 cat >conftest.$ac_ext <<_ACEOF
31472 /* confdefs.h.  */
31473 _ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h.  */
31477
31478 /* Override any GCC internal prototype to avoid an error.
31479    Use char because int might match the return type of a GCC
31480    builtin and then its argument prototype would still apply.  */
31481 #ifdef __cplusplus
31482 extern "C"
31483 #endif
31484 char cblas_dgemm ();
31485 int
31486 main ()
31487 {
31488 return cblas_dgemm ();
31489   ;
31490   return 0;
31491 }
31492 _ACEOF
31493 rm -f conftest.$ac_objext conftest$ac_exeext
31494 if { (ac_try="$ac_link"
31495 case "(($ac_try" in
31496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31497   *) ac_try_echo=$ac_try;;
31498 esac
31499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31500 $as_echo "$ac_try_echo") >&5
31501   (eval "$ac_link") 2>conftest.er1
31502   ac_status=$?
31503   grep -v '^ *+' conftest.er1 >conftest.err
31504   rm -f conftest.er1
31505   cat conftest.err >&5
31506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); } && {
31508          test -z "$ac_c_werror_flag" ||
31509          test ! -s conftest.err
31510        } && test -s conftest$ac_exeext && {
31511          test "$cross_compiling" = yes ||
31512          $as_test_x conftest$ac_exeext
31513        }; then
31514   ac_cv_lib_cblas_cblas_dgemm=yes
31515 else
31516   $as_echo "$as_me: failed program was:" >&5
31517 sed 's/^/| /' conftest.$ac_ext >&5
31518
31519         ac_cv_lib_cblas_cblas_dgemm=no
31520 fi
31521
31522 rm -rf conftest.dSYM
31523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31524       conftest$ac_exeext conftest.$ac_ext
31525 LIBS=$ac_check_lib_save_LIBS
31526 fi
31527 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
31528 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
31529 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
31530   acx_cblas_ok=yes
31531                  CBLAS_LIBS="-L/usr/lib64/atlas -lcblas -latlas"
31532 fi
31533
31534 fi
31535
31536 fi
31537
31538 # CBLAS in ATLAS library in /usr/lib/atlas (if not cross-compiling)
31539 if test $acx_cblas_ok = no && test "$cross_compiling" = no; then
31540         unset ac_cv_lib_atlas_ATL_xerbla
31541         unset ac_cv_lib_cblas_cblas_dgemm
31542         { $as_echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5
31543 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
31544 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then
31545   $as_echo_n "(cached) " >&6
31546 else
31547   ac_check_lib_save_LIBS=$LIBS
31548 LIBS="-latlas -L/usr/lib/atlas -latlas $LIBS"
31549 cat >conftest.$ac_ext <<_ACEOF
31550 /* confdefs.h.  */
31551 _ACEOF
31552 cat confdefs.h >>conftest.$ac_ext
31553 cat >>conftest.$ac_ext <<_ACEOF
31554 /* end confdefs.h.  */
31555
31556 /* Override any GCC internal prototype to avoid an error.
31557    Use char because int might match the return type of a GCC
31558    builtin and then its argument prototype would still apply.  */
31559 #ifdef __cplusplus
31560 extern "C"
31561 #endif
31562 char ATL_xerbla ();
31563 int
31564 main ()
31565 {
31566 return ATL_xerbla ();
31567   ;
31568   return 0;
31569 }
31570 _ACEOF
31571 rm -f conftest.$ac_objext conftest$ac_exeext
31572 if { (ac_try="$ac_link"
31573 case "(($ac_try" in
31574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575   *) ac_try_echo=$ac_try;;
31576 esac
31577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31578 $as_echo "$ac_try_echo") >&5
31579   (eval "$ac_link") 2>conftest.er1
31580   ac_status=$?
31581   grep -v '^ *+' conftest.er1 >conftest.err
31582   rm -f conftest.er1
31583   cat conftest.err >&5
31584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); } && {
31586          test -z "$ac_c_werror_flag" ||
31587          test ! -s conftest.err
31588        } && test -s conftest$ac_exeext && {
31589          test "$cross_compiling" = yes ||
31590          $as_test_x conftest$ac_exeext
31591        }; then
31592   ac_cv_lib_atlas_ATL_xerbla=yes
31593 else
31594   $as_echo "$as_me: failed program was:" >&5
31595 sed 's/^/| /' conftest.$ac_ext >&5
31596
31597         ac_cv_lib_atlas_ATL_xerbla=no
31598 fi
31599
31600 rm -rf conftest.dSYM
31601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31602       conftest$ac_exeext conftest.$ac_ext
31603 LIBS=$ac_check_lib_save_LIBS
31604 fi
31605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
31606 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
31607 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then
31608   { $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
31609 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
31610 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
31611   $as_echo_n "(cached) " >&6
31612 else
31613   ac_check_lib_save_LIBS=$LIBS
31614 LIBS="-lcblas -L/usr/lib/atlas -latlas $LIBS"
31615 cat >conftest.$ac_ext <<_ACEOF
31616 /* confdefs.h.  */
31617 _ACEOF
31618 cat confdefs.h >>conftest.$ac_ext
31619 cat >>conftest.$ac_ext <<_ACEOF
31620 /* end confdefs.h.  */
31621
31622 /* Override any GCC internal prototype to avoid an error.
31623    Use char because int might match the return type of a GCC
31624    builtin and then its argument prototype would still apply.  */
31625 #ifdef __cplusplus
31626 extern "C"
31627 #endif
31628 char cblas_dgemm ();
31629 int
31630 main ()
31631 {
31632 return cblas_dgemm ();
31633   ;
31634   return 0;
31635 }
31636 _ACEOF
31637 rm -f conftest.$ac_objext conftest$ac_exeext
31638 if { (ac_try="$ac_link"
31639 case "(($ac_try" in
31640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31641   *) ac_try_echo=$ac_try;;
31642 esac
31643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31644 $as_echo "$ac_try_echo") >&5
31645   (eval "$ac_link") 2>conftest.er1
31646   ac_status=$?
31647   grep -v '^ *+' conftest.er1 >conftest.err
31648   rm -f conftest.er1
31649   cat conftest.err >&5
31650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651   (exit $ac_status); } && {
31652          test -z "$ac_c_werror_flag" ||
31653          test ! -s conftest.err
31654        } && test -s conftest$ac_exeext && {
31655          test "$cross_compiling" = yes ||
31656          $as_test_x conftest$ac_exeext
31657        }; then
31658   ac_cv_lib_cblas_cblas_dgemm=yes
31659 else
31660   $as_echo "$as_me: failed program was:" >&5
31661 sed 's/^/| /' conftest.$ac_ext >&5
31662
31663         ac_cv_lib_cblas_cblas_dgemm=no
31664 fi
31665
31666 rm -rf conftest.dSYM
31667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31668       conftest$ac_exeext conftest.$ac_ext
31669 LIBS=$ac_check_lib_save_LIBS
31670 fi
31671 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
31672 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
31673 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
31674   acx_cblas_ok=yes
31675                  CBLAS_LIBS="-L/usr/lib/atlas -lcblas -latlas"
31676 fi
31677
31678 fi
31679
31680 fi
31681
31682
31683 # CBLAS in PhiPACK libraries? (requires generic BLAS lib, too)
31684 if test $acx_cblas_ok = no; then
31685         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lcblas" >&5
31686 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
31687 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then
31688   $as_echo_n "(cached) " >&6
31689 else
31690   ac_check_lib_save_LIBS=$LIBS
31691 LIBS="-lcblas  $LIBS"
31692 cat >conftest.$ac_ext <<_ACEOF
31693 /* confdefs.h.  */
31694 _ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h.  */
31698
31699 /* Override any GCC internal prototype to avoid an error.
31700    Use char because int might match the return type of a GCC
31701    builtin and then its argument prototype would still apply.  */
31702 #ifdef __cplusplus
31703 extern "C"
31704 #endif
31705 char cblas_sgemm ();
31706 int
31707 main ()
31708 {
31709 return cblas_sgemm ();
31710   ;
31711   return 0;
31712 }
31713 _ACEOF
31714 rm -f conftest.$ac_objext conftest$ac_exeext
31715 if { (ac_try="$ac_link"
31716 case "(($ac_try" in
31717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718   *) ac_try_echo=$ac_try;;
31719 esac
31720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31721 $as_echo "$ac_try_echo") >&5
31722   (eval "$ac_link") 2>conftest.er1
31723   ac_status=$?
31724   grep -v '^ *+' conftest.er1 >conftest.err
31725   rm -f conftest.er1
31726   cat conftest.err >&5
31727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728   (exit $ac_status); } && {
31729          test -z "$ac_c_werror_flag" ||
31730          test ! -s conftest.err
31731        } && test -s conftest$ac_exeext && {
31732          test "$cross_compiling" = yes ||
31733          $as_test_x conftest$ac_exeext
31734        }; then
31735   ac_cv_lib_cblas_cblas_sgemm=yes
31736 else
31737   $as_echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31739
31740         ac_cv_lib_cblas_cblas_sgemm=no
31741 fi
31742
31743 rm -rf conftest.dSYM
31744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31745       conftest$ac_exeext conftest.$ac_ext
31746 LIBS=$ac_check_lib_save_LIBS
31747 fi
31748 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
31749 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
31750 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then
31751   { $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -ldgemm" >&5
31752 $as_echo_n "checking for cblas_dgemm in -ldgemm... " >&6; }
31753 if test "${ac_cv_lib_dgemm_cblas_dgemm+set}" = set; then
31754   $as_echo_n "(cached) " >&6
31755 else
31756   ac_check_lib_save_LIBS=$LIBS
31757 LIBS="-ldgemm -lblas $LIBS"
31758 cat >conftest.$ac_ext <<_ACEOF
31759 /* confdefs.h.  */
31760 _ACEOF
31761 cat confdefs.h >>conftest.$ac_ext
31762 cat >>conftest.$ac_ext <<_ACEOF
31763 /* end confdefs.h.  */
31764
31765 /* Override any GCC internal prototype to avoid an error.
31766    Use char because int might match the return type of a GCC
31767    builtin and then its argument prototype would still apply.  */
31768 #ifdef __cplusplus
31769 extern "C"
31770 #endif
31771 char cblas_dgemm ();
31772 int
31773 main ()
31774 {
31775 return cblas_dgemm ();
31776   ;
31777   return 0;
31778 }
31779 _ACEOF
31780 rm -f conftest.$ac_objext conftest$ac_exeext
31781 if { (ac_try="$ac_link"
31782 case "(($ac_try" in
31783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31784   *) ac_try_echo=$ac_try;;
31785 esac
31786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31787 $as_echo "$ac_try_echo") >&5
31788   (eval "$ac_link") 2>conftest.er1
31789   ac_status=$?
31790   grep -v '^ *+' conftest.er1 >conftest.err
31791   rm -f conftest.er1
31792   cat conftest.err >&5
31793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794   (exit $ac_status); } && {
31795          test -z "$ac_c_werror_flag" ||
31796          test ! -s conftest.err
31797        } && test -s conftest$ac_exeext && {
31798          test "$cross_compiling" = yes ||
31799          $as_test_x conftest$ac_exeext
31800        }; then
31801   ac_cv_lib_dgemm_cblas_dgemm=yes
31802 else
31803   $as_echo "$as_me: failed program was:" >&5
31804 sed 's/^/| /' conftest.$ac_ext >&5
31805
31806         ac_cv_lib_dgemm_cblas_dgemm=no
31807 fi
31808
31809 rm -rf conftest.dSYM
31810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31811       conftest$ac_exeext conftest.$ac_ext
31812 LIBS=$ac_check_lib_save_LIBS
31813 fi
31814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgemm_cblas_dgemm" >&5
31815 $as_echo "$ac_cv_lib_dgemm_cblas_dgemm" >&6; }
31816 if test "x$ac_cv_lib_dgemm_cblas_dgemm" = x""yes; then
31817   { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lsgemm" >&5
31818 $as_echo_n "checking for cblas_sgemm in -lsgemm... " >&6; }
31819 if test "${ac_cv_lib_sgemm_cblas_sgemm+set}" = set; then
31820   $as_echo_n "(cached) " >&6
31821 else
31822   ac_check_lib_save_LIBS=$LIBS
31823 LIBS="-lsgemm -lblas $LIBS"
31824 cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h.  */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h.  */
31830
31831 /* Override any GCC internal prototype to avoid an error.
31832    Use char because int might match the return type of a GCC
31833    builtin and then its argument prototype would still apply.  */
31834 #ifdef __cplusplus
31835 extern "C"
31836 #endif
31837 char cblas_sgemm ();
31838 int
31839 main ()
31840 {
31841 return cblas_sgemm ();
31842   ;
31843   return 0;
31844 }
31845 _ACEOF
31846 rm -f conftest.$ac_objext conftest$ac_exeext
31847 if { (ac_try="$ac_link"
31848 case "(($ac_try" in
31849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850   *) ac_try_echo=$ac_try;;
31851 esac
31852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31853 $as_echo "$ac_try_echo") >&5
31854   (eval "$ac_link") 2>conftest.er1
31855   ac_status=$?
31856   grep -v '^ *+' conftest.er1 >conftest.err
31857   rm -f conftest.er1
31858   cat conftest.err >&5
31859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860   (exit $ac_status); } && {
31861          test -z "$ac_c_werror_flag" ||
31862          test ! -s conftest.err
31863        } && test -s conftest$ac_exeext && {
31864          test "$cross_compiling" = yes ||
31865          $as_test_x conftest$ac_exeext
31866        }; then
31867   ac_cv_lib_sgemm_cblas_sgemm=yes
31868 else
31869   $as_echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872         ac_cv_lib_sgemm_cblas_sgemm=no
31873 fi
31874
31875 rm -rf conftest.dSYM
31876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31877       conftest$ac_exeext conftest.$ac_ext
31878 LIBS=$ac_check_lib_save_LIBS
31879 fi
31880 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sgemm_cblas_sgemm" >&5
31881 $as_echo "$ac_cv_lib_sgemm_cblas_sgemm" >&6; }
31882 if test "x$ac_cv_lib_sgemm_cblas_sgemm" = x""yes; then
31883   acx_cblas_ok=yes; CBLAS_LIBS="-lsgemm -ldgemm -lblas"
31884 fi
31885
31886 fi
31887
31888 fi
31889
31890 fi
31891
31892 # BLAS in Intel MKL library?
31893 if test $acx_cblas_ok = no; then
31894         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lmkl" >&5
31895 $as_echo_n "checking for cblas_sgemm in -lmkl... " >&6; }
31896 if test "${ac_cv_lib_mkl_cblas_sgemm+set}" = set; then
31897   $as_echo_n "(cached) " >&6
31898 else
31899   ac_check_lib_save_LIBS=$LIBS
31900 LIBS="-lmkl  $LIBS"
31901 cat >conftest.$ac_ext <<_ACEOF
31902 /* confdefs.h.  */
31903 _ACEOF
31904 cat confdefs.h >>conftest.$ac_ext
31905 cat >>conftest.$ac_ext <<_ACEOF
31906 /* end confdefs.h.  */
31907
31908 /* Override any GCC internal prototype to avoid an error.
31909    Use char because int might match the return type of a GCC
31910    builtin and then its argument prototype would still apply.  */
31911 #ifdef __cplusplus
31912 extern "C"
31913 #endif
31914 char cblas_sgemm ();
31915 int
31916 main ()
31917 {
31918 return cblas_sgemm ();
31919   ;
31920   return 0;
31921 }
31922 _ACEOF
31923 rm -f conftest.$ac_objext conftest$ac_exeext
31924 if { (ac_try="$ac_link"
31925 case "(($ac_try" in
31926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927   *) ac_try_echo=$ac_try;;
31928 esac
31929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31930 $as_echo "$ac_try_echo") >&5
31931   (eval "$ac_link") 2>conftest.er1
31932   ac_status=$?
31933   grep -v '^ *+' conftest.er1 >conftest.err
31934   rm -f conftest.er1
31935   cat conftest.err >&5
31936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937   (exit $ac_status); } && {
31938          test -z "$ac_c_werror_flag" ||
31939          test ! -s conftest.err
31940        } && test -s conftest$ac_exeext && {
31941          test "$cross_compiling" = yes ||
31942          $as_test_x conftest$ac_exeext
31943        }; then
31944   ac_cv_lib_mkl_cblas_sgemm=yes
31945 else
31946   $as_echo "$as_me: failed program was:" >&5
31947 sed 's/^/| /' conftest.$ac_ext >&5
31948
31949         ac_cv_lib_mkl_cblas_sgemm=no
31950 fi
31951
31952 rm -rf conftest.dSYM
31953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31954       conftest$ac_exeext conftest.$ac_ext
31955 LIBS=$ac_check_lib_save_LIBS
31956 fi
31957 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_cblas_sgemm" >&5
31958 $as_echo "$ac_cv_lib_mkl_cblas_sgemm" >&6; }
31959 if test "x$ac_cv_lib_mkl_cblas_sgemm" = x""yes; then
31960   acx_cblas_ok=yes;CBLAS_LIBS="-lmkl"
31961 fi
31962
31963 fi
31964
31965 # CBLAS in Apple vecLib library?
31966 if test $acx_cblas_ok = no; then
31967         save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
31968         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm" >&5
31969 $as_echo_n "checking for cblas_sgemm... " >&6; }
31970 if test "${ac_cv_func_cblas_sgemm+set}" = set; then
31971   $as_echo_n "(cached) " >&6
31972 else
31973   cat >conftest.$ac_ext <<_ACEOF
31974 /* confdefs.h.  */
31975 _ACEOF
31976 cat confdefs.h >>conftest.$ac_ext
31977 cat >>conftest.$ac_ext <<_ACEOF
31978 /* end confdefs.h.  */
31979 /* Define cblas_sgemm to an innocuous variant, in case <limits.h> declares cblas_sgemm.
31980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31981 #define cblas_sgemm innocuous_cblas_sgemm
31982
31983 /* System header to define __stub macros and hopefully few prototypes,
31984     which can conflict with char cblas_sgemm (); below.
31985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31986     <limits.h> exists even on freestanding compilers.  */
31987
31988 #ifdef __STDC__
31989 # include <limits.h>
31990 #else
31991 # include <assert.h>
31992 #endif
31993
31994 #undef cblas_sgemm
31995
31996 /* Override any GCC internal prototype to avoid an error.
31997    Use char because int might match the return type of a GCC
31998    builtin and then its argument prototype would still apply.  */
31999 #ifdef __cplusplus
32000 extern "C"
32001 #endif
32002 char cblas_sgemm ();
32003 /* The GNU C library defines this for functions which it implements
32004     to always fail with ENOSYS.  Some functions are actually named
32005     something starting with __ and the normal name is an alias.  */
32006 #if defined __stub_cblas_sgemm || defined __stub___cblas_sgemm
32007 choke me
32008 #endif
32009
32010 int
32011 main ()
32012 {
32013 return cblas_sgemm ();
32014   ;
32015   return 0;
32016 }
32017 _ACEOF
32018 rm -f conftest.$ac_objext conftest$ac_exeext
32019 if { (ac_try="$ac_link"
32020 case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32025 $as_echo "$ac_try_echo") >&5
32026   (eval "$ac_link") 2>conftest.er1
32027   ac_status=$?
32028   grep -v '^ *+' conftest.er1 >conftest.err
32029   rm -f conftest.er1
32030   cat conftest.err >&5
32031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); } && {
32033          test -z "$ac_c_werror_flag" ||
32034          test ! -s conftest.err
32035        } && test -s conftest$ac_exeext && {
32036          test "$cross_compiling" = yes ||
32037          $as_test_x conftest$ac_exeext
32038        }; then
32039   ac_cv_func_cblas_sgemm=yes
32040 else
32041   $as_echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32043
32044         ac_cv_func_cblas_sgemm=no
32045 fi
32046
32047 rm -rf conftest.dSYM
32048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32049       conftest$ac_exeext conftest.$ac_ext
32050 fi
32051 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_cblas_sgemm" >&5
32052 $as_echo "$ac_cv_func_cblas_sgemm" >&6; }
32053 if test "x$ac_cv_func_cblas_sgemm" = x""yes; then
32054   acx_cblas_ok=yes;CBLAS_LIBS="-framework vecLib"
32055 fi
32056
32057         LIBS="$save_LIBS"
32058 fi
32059
32060 # CBLAS in Alpha CXML library?
32061 if test $acx_cblas_ok = no; then
32062         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lcxml" >&5
32063 $as_echo_n "checking for cblas_sgemm in -lcxml... " >&6; }
32064 if test "${ac_cv_lib_cxml_cblas_sgemm+set}" = set; then
32065   $as_echo_n "(cached) " >&6
32066 else
32067   ac_check_lib_save_LIBS=$LIBS
32068 LIBS="-lcxml  $LIBS"
32069 cat >conftest.$ac_ext <<_ACEOF
32070 /* confdefs.h.  */
32071 _ACEOF
32072 cat confdefs.h >>conftest.$ac_ext
32073 cat >>conftest.$ac_ext <<_ACEOF
32074 /* end confdefs.h.  */
32075
32076 /* Override any GCC internal prototype to avoid an error.
32077    Use char because int might match the return type of a GCC
32078    builtin and then its argument prototype would still apply.  */
32079 #ifdef __cplusplus
32080 extern "C"
32081 #endif
32082 char cblas_sgemm ();
32083 int
32084 main ()
32085 {
32086 return cblas_sgemm ();
32087   ;
32088   return 0;
32089 }
32090 _ACEOF
32091 rm -f conftest.$ac_objext conftest$ac_exeext
32092 if { (ac_try="$ac_link"
32093 case "(($ac_try" in
32094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32095   *) ac_try_echo=$ac_try;;
32096 esac
32097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32098 $as_echo "$ac_try_echo") >&5
32099   (eval "$ac_link") 2>conftest.er1
32100   ac_status=$?
32101   grep -v '^ *+' conftest.er1 >conftest.err
32102   rm -f conftest.er1
32103   cat conftest.err >&5
32104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); } && {
32106          test -z "$ac_c_werror_flag" ||
32107          test ! -s conftest.err
32108        } && test -s conftest$ac_exeext && {
32109          test "$cross_compiling" = yes ||
32110          $as_test_x conftest$ac_exeext
32111        }; then
32112   ac_cv_lib_cxml_cblas_sgemm=yes
32113 else
32114   $as_echo "$as_me: failed program was:" >&5
32115 sed 's/^/| /' conftest.$ac_ext >&5
32116
32117         ac_cv_lib_cxml_cblas_sgemm=no
32118 fi
32119
32120 rm -rf conftest.dSYM
32121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32122       conftest$ac_exeext conftest.$ac_ext
32123 LIBS=$ac_check_lib_save_LIBS
32124 fi
32125 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cxml_cblas_sgemm" >&5
32126 $as_echo "$ac_cv_lib_cxml_cblas_sgemm" >&6; }
32127 if test "x$ac_cv_lib_cxml_cblas_sgemm" = x""yes; then
32128   acx_cblas_ok=yes;CBLAS_LIBS="-lcxml"
32129 fi
32130
32131 fi
32132
32133 # CBLAS in Alpha DXML library? (now called CXML, see above)
32134 if test $acx_cblas_ok = no; then
32135         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -ldxml" >&5
32136 $as_echo_n "checking for cblas_sgemm in -ldxml... " >&6; }
32137 if test "${ac_cv_lib_dxml_cblas_sgemm+set}" = set; then
32138   $as_echo_n "(cached) " >&6
32139 else
32140   ac_check_lib_save_LIBS=$LIBS
32141 LIBS="-ldxml  $LIBS"
32142 cat >conftest.$ac_ext <<_ACEOF
32143 /* confdefs.h.  */
32144 _ACEOF
32145 cat confdefs.h >>conftest.$ac_ext
32146 cat >>conftest.$ac_ext <<_ACEOF
32147 /* end confdefs.h.  */
32148
32149 /* Override any GCC internal prototype to avoid an error.
32150    Use char because int might match the return type of a GCC
32151    builtin and then its argument prototype would still apply.  */
32152 #ifdef __cplusplus
32153 extern "C"
32154 #endif
32155 char cblas_sgemm ();
32156 int
32157 main ()
32158 {
32159 return cblas_sgemm ();
32160   ;
32161   return 0;
32162 }
32163 _ACEOF
32164 rm -f conftest.$ac_objext conftest$ac_exeext
32165 if { (ac_try="$ac_link"
32166 case "(($ac_try" in
32167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168   *) ac_try_echo=$ac_try;;
32169 esac
32170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32171 $as_echo "$ac_try_echo") >&5
32172   (eval "$ac_link") 2>conftest.er1
32173   ac_status=$?
32174   grep -v '^ *+' conftest.er1 >conftest.err
32175   rm -f conftest.er1
32176   cat conftest.err >&5
32177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178   (exit $ac_status); } && {
32179          test -z "$ac_c_werror_flag" ||
32180          test ! -s conftest.err
32181        } && test -s conftest$ac_exeext && {
32182          test "$cross_compiling" = yes ||
32183          $as_test_x conftest$ac_exeext
32184        }; then
32185   ac_cv_lib_dxml_cblas_sgemm=yes
32186 else
32187   $as_echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32189
32190         ac_cv_lib_dxml_cblas_sgemm=no
32191 fi
32192
32193 rm -rf conftest.dSYM
32194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32195       conftest$ac_exeext conftest.$ac_ext
32196 LIBS=$ac_check_lib_save_LIBS
32197 fi
32198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dxml_cblas_sgemm" >&5
32199 $as_echo "$ac_cv_lib_dxml_cblas_sgemm" >&6; }
32200 if test "x$ac_cv_lib_dxml_cblas_sgemm" = x""yes; then
32201   acx_cblas_ok=yes;CBLAS_LIBS="-ldxml"
32202 fi
32203
32204 fi
32205
32206 # CBLAS in Sun Performance library?
32207 if test $acx_cblas_ok = no; then
32208         if test "x$GCC" != xyes; then # only works with Sun CC
32209                 { $as_echo "$as_me:$LINENO: checking for acosp in -lsunmath" >&5
32210 $as_echo_n "checking for acosp in -lsunmath... " >&6; }
32211 if test "${ac_cv_lib_sunmath_acosp+set}" = set; then
32212   $as_echo_n "(cached) " >&6
32213 else
32214   ac_check_lib_save_LIBS=$LIBS
32215 LIBS="-lsunmath  $LIBS"
32216 cat >conftest.$ac_ext <<_ACEOF
32217 /* confdefs.h.  */
32218 _ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h.  */
32222
32223 /* Override any GCC internal prototype to avoid an error.
32224    Use char because int might match the return type of a GCC
32225    builtin and then its argument prototype would still apply.  */
32226 #ifdef __cplusplus
32227 extern "C"
32228 #endif
32229 char acosp ();
32230 int
32231 main ()
32232 {
32233 return acosp ();
32234   ;
32235   return 0;
32236 }
32237 _ACEOF
32238 rm -f conftest.$ac_objext conftest$ac_exeext
32239 if { (ac_try="$ac_link"
32240 case "(($ac_try" in
32241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32242   *) ac_try_echo=$ac_try;;
32243 esac
32244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32245 $as_echo "$ac_try_echo") >&5
32246   (eval "$ac_link") 2>conftest.er1
32247   ac_status=$?
32248   grep -v '^ *+' conftest.er1 >conftest.err
32249   rm -f conftest.er1
32250   cat conftest.err >&5
32251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252   (exit $ac_status); } && {
32253          test -z "$ac_c_werror_flag" ||
32254          test ! -s conftest.err
32255        } && test -s conftest$ac_exeext && {
32256          test "$cross_compiling" = yes ||
32257          $as_test_x conftest$ac_exeext
32258        }; then
32259   ac_cv_lib_sunmath_acosp=yes
32260 else
32261   $as_echo "$as_me: failed program was:" >&5
32262 sed 's/^/| /' conftest.$ac_ext >&5
32263
32264         ac_cv_lib_sunmath_acosp=no
32265 fi
32266
32267 rm -rf conftest.dSYM
32268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32269       conftest$ac_exeext conftest.$ac_ext
32270 LIBS=$ac_check_lib_save_LIBS
32271 fi
32272 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_acosp" >&5
32273 $as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
32274 if test "x$ac_cv_lib_sunmath_acosp" = x""yes; then
32275   { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lsunperf" >&5
32276 $as_echo_n "checking for cblas_sgemm in -lsunperf... " >&6; }
32277 if test "${ac_cv_lib_sunperf_cblas_sgemm+set}" = set; then
32278   $as_echo_n "(cached) " >&6
32279 else
32280   ac_check_lib_save_LIBS=$LIBS
32281 LIBS="-lsunperf -lsunmath $LIBS"
32282 cat >conftest.$ac_ext <<_ACEOF
32283 /* confdefs.h.  */
32284 _ACEOF
32285 cat confdefs.h >>conftest.$ac_ext
32286 cat >>conftest.$ac_ext <<_ACEOF
32287 /* end confdefs.h.  */
32288
32289 /* Override any GCC internal prototype to avoid an error.
32290    Use char because int might match the return type of a GCC
32291    builtin and then its argument prototype would still apply.  */
32292 #ifdef __cplusplus
32293 extern "C"
32294 #endif
32295 char cblas_sgemm ();
32296 int
32297 main ()
32298 {
32299 return cblas_sgemm ();
32300   ;
32301   return 0;
32302 }
32303 _ACEOF
32304 rm -f conftest.$ac_objext conftest$ac_exeext
32305 if { (ac_try="$ac_link"
32306 case "(($ac_try" in
32307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308   *) ac_try_echo=$ac_try;;
32309 esac
32310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32311 $as_echo "$ac_try_echo") >&5
32312   (eval "$ac_link") 2>conftest.er1
32313   ac_status=$?
32314   grep -v '^ *+' conftest.er1 >conftest.err
32315   rm -f conftest.er1
32316   cat conftest.err >&5
32317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); } && {
32319          test -z "$ac_c_werror_flag" ||
32320          test ! -s conftest.err
32321        } && test -s conftest$ac_exeext && {
32322          test "$cross_compiling" = yes ||
32323          $as_test_x conftest$ac_exeext
32324        }; then
32325   ac_cv_lib_sunperf_cblas_sgemm=yes
32326 else
32327   $as_echo "$as_me: failed program was:" >&5
32328 sed 's/^/| /' conftest.$ac_ext >&5
32329
32330         ac_cv_lib_sunperf_cblas_sgemm=no
32331 fi
32332
32333 rm -rf conftest.dSYM
32334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32335       conftest$ac_exeext conftest.$ac_ext
32336 LIBS=$ac_check_lib_save_LIBS
32337 fi
32338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sunperf_cblas_sgemm" >&5
32339 $as_echo "$ac_cv_lib_sunperf_cblas_sgemm" >&6; }
32340 if test "x$ac_cv_lib_sunperf_cblas_sgemm" = x""yes; then
32341   CBLAS_LIBS="-xlic_lib=sunperf -lsunmath"
32342                                  acx_cblas_ok=yes
32343 fi
32344
32345 fi
32346
32347         fi
32348 fi
32349
32350 # CBLAS in SCSL library?  (SGI/Cray Scientific Library)
32351 if test $acx_cblas_ok = no; then
32352         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lscs" >&5
32353 $as_echo_n "checking for cblas_sgemm in -lscs... " >&6; }
32354 if test "${ac_cv_lib_scs_cblas_sgemm+set}" = set; then
32355   $as_echo_n "(cached) " >&6
32356 else
32357   ac_check_lib_save_LIBS=$LIBS
32358 LIBS="-lscs  $LIBS"
32359 cat >conftest.$ac_ext <<_ACEOF
32360 /* confdefs.h.  */
32361 _ACEOF
32362 cat confdefs.h >>conftest.$ac_ext
32363 cat >>conftest.$ac_ext <<_ACEOF
32364 /* end confdefs.h.  */
32365
32366 /* Override any GCC internal prototype to avoid an error.
32367    Use char because int might match the return type of a GCC
32368    builtin and then its argument prototype would still apply.  */
32369 #ifdef __cplusplus
32370 extern "C"
32371 #endif
32372 char cblas_sgemm ();
32373 int
32374 main ()
32375 {
32376 return cblas_sgemm ();
32377   ;
32378   return 0;
32379 }
32380 _ACEOF
32381 rm -f conftest.$ac_objext conftest$ac_exeext
32382 if { (ac_try="$ac_link"
32383 case "(($ac_try" in
32384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385   *) ac_try_echo=$ac_try;;
32386 esac
32387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32388 $as_echo "$ac_try_echo") >&5
32389   (eval "$ac_link") 2>conftest.er1
32390   ac_status=$?
32391   grep -v '^ *+' conftest.er1 >conftest.err
32392   rm -f conftest.er1
32393   cat conftest.err >&5
32394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395   (exit $ac_status); } && {
32396          test -z "$ac_c_werror_flag" ||
32397          test ! -s conftest.err
32398        } && test -s conftest$ac_exeext && {
32399          test "$cross_compiling" = yes ||
32400          $as_test_x conftest$ac_exeext
32401        }; then
32402   ac_cv_lib_scs_cblas_sgemm=yes
32403 else
32404   $as_echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32406
32407         ac_cv_lib_scs_cblas_sgemm=no
32408 fi
32409
32410 rm -rf conftest.dSYM
32411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32412       conftest$ac_exeext conftest.$ac_ext
32413 LIBS=$ac_check_lib_save_LIBS
32414 fi
32415 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_scs_cblas_sgemm" >&5
32416 $as_echo "$ac_cv_lib_scs_cblas_sgemm" >&6; }
32417 if test "x$ac_cv_lib_scs_cblas_sgemm" = x""yes; then
32418   acx_cblas_ok=yes; CBLAS_LIBS="-lscs"
32419 fi
32420
32421 fi
32422
32423 # CBLAS in SGIMATH library?
32424 if test $acx_cblas_ok = no; then
32425         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lcomplib.sgimath" >&5
32426 $as_echo_n "checking for cblas_sgemm in -lcomplib.sgimath... " >&6; }
32427 if test "${ac_cv_lib_complib_sgimath_cblas_sgemm+set}" = set; then
32428   $as_echo_n "(cached) " >&6
32429 else
32430   ac_check_lib_save_LIBS=$LIBS
32431 LIBS="-lcomplib.sgimath  $LIBS"
32432 cat >conftest.$ac_ext <<_ACEOF
32433 /* confdefs.h.  */
32434 _ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h.  */
32438
32439 /* Override any GCC internal prototype to avoid an error.
32440    Use char because int might match the return type of a GCC
32441    builtin and then its argument prototype would still apply.  */
32442 #ifdef __cplusplus
32443 extern "C"
32444 #endif
32445 char cblas_sgemm ();
32446 int
32447 main ()
32448 {
32449 return cblas_sgemm ();
32450   ;
32451   return 0;
32452 }
32453 _ACEOF
32454 rm -f conftest.$ac_objext conftest$ac_exeext
32455 if { (ac_try="$ac_link"
32456 case "(($ac_try" in
32457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458   *) ac_try_echo=$ac_try;;
32459 esac
32460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32461 $as_echo "$ac_try_echo") >&5
32462   (eval "$ac_link") 2>conftest.er1
32463   ac_status=$?
32464   grep -v '^ *+' conftest.er1 >conftest.err
32465   rm -f conftest.er1
32466   cat conftest.err >&5
32467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); } && {
32469          test -z "$ac_c_werror_flag" ||
32470          test ! -s conftest.err
32471        } && test -s conftest$ac_exeext && {
32472          test "$cross_compiling" = yes ||
32473          $as_test_x conftest$ac_exeext
32474        }; then
32475   ac_cv_lib_complib_sgimath_cblas_sgemm=yes
32476 else
32477   $as_echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.$ac_ext >&5
32479
32480         ac_cv_lib_complib_sgimath_cblas_sgemm=no
32481 fi
32482
32483 rm -rf conftest.dSYM
32484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32485       conftest$ac_exeext conftest.$ac_ext
32486 LIBS=$ac_check_lib_save_LIBS
32487 fi
32488 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_cblas_sgemm" >&5
32489 $as_echo "$ac_cv_lib_complib_sgimath_cblas_sgemm" >&6; }
32490 if test "x$ac_cv_lib_complib_sgimath_cblas_sgemm" = x""yes; then
32491   acx_cblas_ok=yes; CBLAS_LIBS="-lcomplib.sgimath"
32492 fi
32493
32494 fi
32495
32496 # CBLAS in IBM ESSL library? (requires generic CBLAS lib, too)
32497 if test $acx_cblas_ok = no; then
32498         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lcblas" >&5
32499 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
32500 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then
32501   $as_echo_n "(cached) " >&6
32502 else
32503   ac_check_lib_save_LIBS=$LIBS
32504 LIBS="-lcblas  $LIBS"
32505 cat >conftest.$ac_ext <<_ACEOF
32506 /* confdefs.h.  */
32507 _ACEOF
32508 cat confdefs.h >>conftest.$ac_ext
32509 cat >>conftest.$ac_ext <<_ACEOF
32510 /* end confdefs.h.  */
32511
32512 /* Override any GCC internal prototype to avoid an error.
32513    Use char because int might match the return type of a GCC
32514    builtin and then its argument prototype would still apply.  */
32515 #ifdef __cplusplus
32516 extern "C"
32517 #endif
32518 char cblas_sgemm ();
32519 int
32520 main ()
32521 {
32522 return cblas_sgemm ();
32523   ;
32524   return 0;
32525 }
32526 _ACEOF
32527 rm -f conftest.$ac_objext conftest$ac_exeext
32528 if { (ac_try="$ac_link"
32529 case "(($ac_try" in
32530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531   *) ac_try_echo=$ac_try;;
32532 esac
32533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32534 $as_echo "$ac_try_echo") >&5
32535   (eval "$ac_link") 2>conftest.er1
32536   ac_status=$?
32537   grep -v '^ *+' conftest.er1 >conftest.err
32538   rm -f conftest.er1
32539   cat conftest.err >&5
32540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541   (exit $ac_status); } && {
32542          test -z "$ac_c_werror_flag" ||
32543          test ! -s conftest.err
32544        } && test -s conftest$ac_exeext && {
32545          test "$cross_compiling" = yes ||
32546          $as_test_x conftest$ac_exeext
32547        }; then
32548   ac_cv_lib_cblas_cblas_sgemm=yes
32549 else
32550   $as_echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.$ac_ext >&5
32552
32553         ac_cv_lib_cblas_cblas_sgemm=no
32554 fi
32555
32556 rm -rf conftest.dSYM
32557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32558       conftest$ac_exeext conftest.$ac_ext
32559 LIBS=$ac_check_lib_save_LIBS
32560 fi
32561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
32562 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
32563 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then
32564   { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lessl" >&5
32565 $as_echo_n "checking for cblas_sgemm in -lessl... " >&6; }
32566 if test "${ac_cv_lib_essl_cblas_sgemm+set}" = set; then
32567   $as_echo_n "(cached) " >&6
32568 else
32569   ac_check_lib_save_LIBS=$LIBS
32570 LIBS="-lessl -lblas $FLIBS $LIBS"
32571 cat >conftest.$ac_ext <<_ACEOF
32572 /* confdefs.h.  */
32573 _ACEOF
32574 cat confdefs.h >>conftest.$ac_ext
32575 cat >>conftest.$ac_ext <<_ACEOF
32576 /* end confdefs.h.  */
32577
32578 /* Override any GCC internal prototype to avoid an error.
32579    Use char because int might match the return type of a GCC
32580    builtin and then its argument prototype would still apply.  */
32581 #ifdef __cplusplus
32582 extern "C"
32583 #endif
32584 char cblas_sgemm ();
32585 int
32586 main ()
32587 {
32588 return cblas_sgemm ();
32589   ;
32590   return 0;
32591 }
32592 _ACEOF
32593 rm -f conftest.$ac_objext conftest$ac_exeext
32594 if { (ac_try="$ac_link"
32595 case "(($ac_try" in
32596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597   *) ac_try_echo=$ac_try;;
32598 esac
32599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32600 $as_echo "$ac_try_echo") >&5
32601   (eval "$ac_link") 2>conftest.er1
32602   ac_status=$?
32603   grep -v '^ *+' conftest.er1 >conftest.err
32604   rm -f conftest.er1
32605   cat conftest.err >&5
32606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607   (exit $ac_status); } && {
32608          test -z "$ac_c_werror_flag" ||
32609          test ! -s conftest.err
32610        } && test -s conftest$ac_exeext && {
32611          test "$cross_compiling" = yes ||
32612          $as_test_x conftest$ac_exeext
32613        }; then
32614   ac_cv_lib_essl_cblas_sgemm=yes
32615 else
32616   $as_echo "$as_me: failed program was:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32618
32619         ac_cv_lib_essl_cblas_sgemm=no
32620 fi
32621
32622 rm -rf conftest.dSYM
32623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32624       conftest$ac_exeext conftest.$ac_ext
32625 LIBS=$ac_check_lib_save_LIBS
32626 fi
32627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_essl_cblas_sgemm" >&5
32628 $as_echo "$ac_cv_lib_essl_cblas_sgemm" >&6; }
32629 if test "x$ac_cv_lib_essl_cblas_sgemm" = x""yes; then
32630   acx_cblas_ok=yes; CBLAS_LIBS="-lessl -lblas"
32631 fi
32632
32633 fi
32634
32635 fi
32636
32637 # Generic CBLAS library?
32638 if test $acx_cblas_ok = no; then
32639         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lcblas" >&5
32640 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
32641 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then
32642   $as_echo_n "(cached) " >&6
32643 else
32644   ac_check_lib_save_LIBS=$LIBS
32645 LIBS="-lcblas  $LIBS"
32646 cat >conftest.$ac_ext <<_ACEOF
32647 /* confdefs.h.  */
32648 _ACEOF
32649 cat confdefs.h >>conftest.$ac_ext
32650 cat >>conftest.$ac_ext <<_ACEOF
32651 /* end confdefs.h.  */
32652
32653 /* Override any GCC internal prototype to avoid an error.
32654    Use char because int might match the return type of a GCC
32655    builtin and then its argument prototype would still apply.  */
32656 #ifdef __cplusplus
32657 extern "C"
32658 #endif
32659 char cblas_sgemm ();
32660 int
32661 main ()
32662 {
32663 return cblas_sgemm ();
32664   ;
32665   return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest.$ac_objext conftest$ac_exeext
32669 if { (ac_try="$ac_link"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32675 $as_echo "$ac_try_echo") >&5
32676   (eval "$ac_link") 2>conftest.er1
32677   ac_status=$?
32678   grep -v '^ *+' conftest.er1 >conftest.err
32679   rm -f conftest.er1
32680   cat conftest.err >&5
32681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682   (exit $ac_status); } && {
32683          test -z "$ac_c_werror_flag" ||
32684          test ! -s conftest.err
32685        } && test -s conftest$ac_exeext && {
32686          test "$cross_compiling" = yes ||
32687          $as_test_x conftest$ac_exeext
32688        }; then
32689   ac_cv_lib_cblas_cblas_sgemm=yes
32690 else
32691   $as_echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32693
32694         ac_cv_lib_cblas_cblas_sgemm=no
32695 fi
32696
32697 rm -rf conftest.dSYM
32698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32699       conftest$ac_exeext conftest.$ac_ext
32700 LIBS=$ac_check_lib_save_LIBS
32701 fi
32702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
32703 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
32704 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then
32705   acx_cblas_ok=yes; CBLAS_LIBS="-lcblas"
32706 fi
32707
32708 fi
32709
32710 # Generic BLAS library?
32711 if test $acx_cblas_ok = no; then
32712         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lblas" >&5
32713 $as_echo_n "checking for cblas_sgemm in -lblas... " >&6; }
32714 if test "${ac_cv_lib_blas_cblas_sgemm+set}" = set; then
32715   $as_echo_n "(cached) " >&6
32716 else
32717   ac_check_lib_save_LIBS=$LIBS
32718 LIBS="-lblas  $LIBS"
32719 cat >conftest.$ac_ext <<_ACEOF
32720 /* confdefs.h.  */
32721 _ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h.  */
32725
32726 /* Override any GCC internal prototype to avoid an error.
32727    Use char because int might match the return type of a GCC
32728    builtin and then its argument prototype would still apply.  */
32729 #ifdef __cplusplus
32730 extern "C"
32731 #endif
32732 char cblas_sgemm ();
32733 int
32734 main ()
32735 {
32736 return cblas_sgemm ();
32737   ;
32738   return 0;
32739 }
32740 _ACEOF
32741 rm -f conftest.$ac_objext conftest$ac_exeext
32742 if { (ac_try="$ac_link"
32743 case "(($ac_try" in
32744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745   *) ac_try_echo=$ac_try;;
32746 esac
32747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32748 $as_echo "$ac_try_echo") >&5
32749   (eval "$ac_link") 2>conftest.er1
32750   ac_status=$?
32751   grep -v '^ *+' conftest.er1 >conftest.err
32752   rm -f conftest.er1
32753   cat conftest.err >&5
32754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755   (exit $ac_status); } && {
32756          test -z "$ac_c_werror_flag" ||
32757          test ! -s conftest.err
32758        } && test -s conftest$ac_exeext && {
32759          test "$cross_compiling" = yes ||
32760          $as_test_x conftest$ac_exeext
32761        }; then
32762   ac_cv_lib_blas_cblas_sgemm=yes
32763 else
32764   $as_echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32766
32767         ac_cv_lib_blas_cblas_sgemm=no
32768 fi
32769
32770 rm -rf conftest.dSYM
32771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32772       conftest$ac_exeext conftest.$ac_ext
32773 LIBS=$ac_check_lib_save_LIBS
32774 fi
32775 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blas_cblas_sgemm" >&5
32776 $as_echo "$ac_cv_lib_blas_cblas_sgemm" >&6; }
32777 if test "x$ac_cv_lib_blas_cblas_sgemm" = x""yes; then
32778   acx_cblas_ok=yes; CBLAS_LIBS="-lblas"
32779 fi
32780
32781 fi
32782
32783 # GSL generic CBLAS library?
32784 if test $acx_cblas_ok = no; then
32785         { $as_echo "$as_me:$LINENO: checking for cblas_sgemm in -lgslcblas" >&5
32786 $as_echo_n "checking for cblas_sgemm in -lgslcblas... " >&6; }
32787 if test "${ac_cv_lib_gslcblas_cblas_sgemm+set}" = set; then
32788   $as_echo_n "(cached) " >&6
32789 else
32790   ac_check_lib_save_LIBS=$LIBS
32791 LIBS="-lgslcblas  $LIBS"
32792 cat >conftest.$ac_ext <<_ACEOF
32793 /* confdefs.h.  */
32794 _ACEOF
32795 cat confdefs.h >>conftest.$ac_ext
32796 cat >>conftest.$ac_ext <<_ACEOF
32797 /* end confdefs.h.  */
32798
32799 /* Override any GCC internal prototype to avoid an error.
32800    Use char because int might match the return type of a GCC
32801    builtin and then its argument prototype would still apply.  */
32802 #ifdef __cplusplus
32803 extern "C"
32804 #endif
32805 char cblas_sgemm ();
32806 int
32807 main ()
32808 {
32809 return cblas_sgemm ();
32810   ;
32811   return 0;
32812 }
32813 _ACEOF
32814 rm -f conftest.$ac_objext conftest$ac_exeext
32815 if { (ac_try="$ac_link"
32816 case "(($ac_try" in
32817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32818   *) ac_try_echo=$ac_try;;
32819 esac
32820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32821 $as_echo "$ac_try_echo") >&5
32822   (eval "$ac_link") 2>conftest.er1
32823   ac_status=$?
32824   grep -v '^ *+' conftest.er1 >conftest.err
32825   rm -f conftest.er1
32826   cat conftest.err >&5
32827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828   (exit $ac_status); } && {
32829          test -z "$ac_c_werror_flag" ||
32830          test ! -s conftest.err
32831        } && test -s conftest$ac_exeext && {
32832          test "$cross_compiling" = yes ||
32833          $as_test_x conftest$ac_exeext
32834        }; then
32835   ac_cv_lib_gslcblas_cblas_sgemm=yes
32836 else
32837   $as_echo "$as_me: failed program was:" >&5
32838 sed 's/^/| /' conftest.$ac_ext >&5
32839
32840         ac_cv_lib_gslcblas_cblas_sgemm=no
32841 fi
32842
32843 rm -rf conftest.dSYM
32844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32845       conftest$ac_exeext conftest.$ac_ext
32846 LIBS=$ac_check_lib_save_LIBS
32847 fi
32848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gslcblas_cblas_sgemm" >&5
32849 $as_echo "$ac_cv_lib_gslcblas_cblas_sgemm" >&6; }
32850 if test "x$ac_cv_lib_gslcblas_cblas_sgemm" = x""yes; then
32851   acx_cblas_ok=yes; CBLAS_LIBS="-lgslcblas"
32852 fi
32853
32854 fi
32855
32856
32857
32858 LIBS="$acx_cblas_save_LIBS"
32859
32860 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
32861 if test x"$acx_cblas_ok" = xyes; then
32862
32863 cat >>confdefs.h <<\_ACEOF
32864 #define HAVE_CBLAS 1
32865 _ACEOF
32866
32867         :
32868 else
32869         acx_cblas_ok=no
32870
32871 fi
32872
32873
32874
32875
32876 pkg_failed=no
32877 { $as_echo "$as_me:$LINENO: checking for GSL" >&5
32878 $as_echo_n "checking for GSL... " >&6; }
32879
32880 if test -n "$PKG_CONFIG"; then
32881     if test -n "$GSL_CFLAGS"; then
32882         pkg_cv_GSL_CFLAGS="$GSL_CFLAGS"
32883     else
32884         if test -n "$PKG_CONFIG" && \
32885     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\"") >&5
32886   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
32887   ac_status=$?
32888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); }; then
32890   pkg_cv_GSL_CFLAGS=`$PKG_CONFIG --cflags "gsl >= 1.10" 2>/dev/null`
32891 else
32892   pkg_failed=yes
32893 fi
32894     fi
32895 else
32896         pkg_failed=untried
32897 fi
32898
32899 if test x$cross_compiling = xyes
32900 then
32901     if test -n "$PKG_CONFIG"; then
32902     if test -n "$GSL_LIBS"; then
32903         pkg_cv_GSL_LIBS="$GSL_LIBS"
32904     else
32905         if test -n "$PKG_CONFIG" && \
32906     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\"") >&5
32907   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
32908   ac_status=$?
32909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910   (exit $ac_status); }; then
32911   pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs --static "gsl >= 1.10" 2>/dev/null`
32912 else
32913   pkg_failed=yes
32914 fi
32915     fi
32916 else
32917         pkg_failed=untried
32918 fi
32919     _pkg_tmp=
32920   for flag in $pkg_cv_GSL_LIBS; do
32921     case $flag in
32922     (-L/lib* | -L/usr/lib* )       ;; # ignore
32923     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
32924     esac
32925   done
32926   pkg_cv_GSL_LIBS="$_pkg_tmp"
32927 else
32928   if test -n "$PKG_CONFIG"; then
32929     if test -n "$GSL_LIBS"; then
32930         pkg_cv_GSL_LIBS="$GSL_LIBS"
32931     else
32932         if test -n "$PKG_CONFIG" && \
32933     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\"") >&5
32934   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
32935   ac_status=$?
32936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937   (exit $ac_status); }; then
32938   pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs --static "gsl >= 1.10" 2>/dev/null`
32939 else
32940   pkg_failed=yes
32941 fi
32942     fi
32943 else
32944         pkg_failed=untried
32945 fi
32946 fi
32947
32948 if test -n "$PKG_CONFIG"; then
32949     if test -n "$GSL_INCLUDEDIR"; then
32950         pkg_cv_GSL_INCLUDEDIR="$GSL_INCLUDEDIR"
32951     else
32952         if test -n "$PKG_CONFIG" && \
32953     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\"") >&5
32954   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
32955   ac_status=$?
32956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; then
32958   pkg_cv_GSL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "gsl >= 1.10" 2>/dev/null`
32959 else
32960   pkg_failed=yes
32961 fi
32962     fi
32963 else
32964         pkg_failed=untried
32965 fi
32966
32967
32968
32969
32970 if test $pkg_failed = yes; then
32971
32972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32973         _pkg_short_errors_supported=yes
32974 else
32975         _pkg_short_errors_supported=no
32976 fi
32977         if test $_pkg_short_errors_supported = yes; then
32978                 GSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gsl >= 1.10"`
32979         else
32980                 GSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gsl >= 1.10"`
32981         fi
32982         # Put the nasty error message in config.log where it belongs
32983         echo "$GSL_PKG_ERRORS" >&5
32984
32985         { $as_echo "$as_me:$LINENO: result: no" >&5
32986 $as_echo "no" >&6; }
32987                             passed=no;{ $as_echo "$as_me:$LINENO: result: gnuradio-core requires package gsl >= 1.10, not found." >&5
32988 $as_echo "gnuradio-core requires package gsl >= 1.10, not found." >&6; }
32989 elif test $pkg_failed = untried; then
32990                     passed=no;{ $as_echo "$as_me:$LINENO: result: gnuradio-core requires package gsl >= 1.10, not found." >&5
32991 $as_echo "gnuradio-core requires package gsl >= 1.10, not found." >&6; }
32992 else
32993         GSL_CFLAGS=$pkg_cv_GSL_CFLAGS
32994         GSL_LIBS=$pkg_cv_GSL_LIBS
32995         GSL_INCLUDEDIR=$pkg_cv_GSL_INCLUDEDIR
32996
32997         GSL_CPPFLAGS=""
32998         for flag in $GSL_CFLAGS; do
32999           case $flag in
33000           -I* | -D* | -U*) GSL_CPPFLAGS="$GSL_CPPFLAGS $flag" ;;
33001           esac
33002         done
33003         pkg_cv_GSL_CPPFLAGS=$GSL_CPPFLAGS
33004
33005
33006         { $as_echo "$as_me:$LINENO: result: yes" >&5
33007 $as_echo "yes" >&6; }
33008         :
33009 fi
33010     fi
33011
33012     if test $passed != with; then
33013                 gnuradio_core_INCLUDES="\
33014 -I\${abs_top_srcdir}/gnuradio-core/src/lib/runtime \
33015 -I\${abs_top_srcdir}/gnuradio-core/src/lib/general \
33016 -I\${abs_top_builddir}/gnuradio-core/src/lib/general \
33017 -I\${abs_top_srcdir}/gnuradio-core/src/lib/gengen \
33018 -I\${abs_top_builddir}/gnuradio-core/src/lib/gengen \
33019 -I\${abs_top_srcdir}/gnuradio-core/src/lib/filter \
33020 -I\${abs_top_builddir}/gnuradio-core/src/lib/filter \
33021 -I\${abs_top_srcdir}/gnuradio-core/src/lib/missing \
33022 -I\${abs_top_srcdir}/gnuradio-core/src/lib/reed-solomon \
33023 -I\${abs_top_srcdir}/gnuradio-core/src/lib/viterbi \
33024 -I\${abs_top_srcdir}/gnuradio-core/src/lib/io \
33025 -I\${abs_top_srcdir}/gnuradio-core/src/lib/g72x \
33026 -I\${abs_top_srcdir}/gnuradio-core/src/lib/swig \
33027 -I\${abs_top_srcdir}/gnuradio-core/src/lib/hier \
33028 -I\${abs_top_builddir}/gnuradio-core/src/lib/swig \
33029 \$(FFTW3F_CFLAGS) \
33030 \$(GSL_CFLAGS)"
33031         gnuradio_core_LA="\${abs_top_builddir}/gnuradio-core/src/lib/libgnuradio-core.la"
33032                 gnuradio_core_LIBDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib:\${abs_top_builddir}/gnuradio-core/src/lib/.libs"
33033         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"
33034         gnuradio_core_PYDIRPATH="\${abs_top_srcdir}/gnuradio-core/src/python"
33035     fi
33036
33037
33038
33039
33040
33041     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_prefix.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"
33042
33043
33044
33045
33046     gnuradio_core_with=no
33047     if test $passed = no; then
33048         if test x$enable_gnuradio_core = xyes; then
33049             { { $as_echo "$as_me:$LINENO: error: Component gnuradio-core has errors; stopping." >&5
33050 $as_echo "$as_me: error: Component gnuradio-core has errors; stopping." >&2;}
33051    { (exit 1); exit 1; }; }
33052         else
33053             { $as_echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
33054 $as_echo "Not building component gnuradio-core." >&6; }
33055         fi
33056     else
33057         if test $passed = with; then
33058             with_dirs="$with_dirs gnuradio-core"
33059
33060     if test "x${gnuradio_core_INCLUDES}" != "x"; then
33061         if test "x$with_INCLUDES" = "x"; then
33062             with_INCLUDES="${gnuradio_core_INCLUDES}"
33063         else
33064             with_INCLUDES="${gnuradio_core_INCLUDES}"" ""$with_INCLUDES"
33065         fi
33066         gnuradio_core_INCLUDES=
33067     fi
33068
33069
33070     if test "x${gnuradio_core_SWIG_INCLUDES}" != "x"; then
33071         if test "x$with_SWIG_INCLUDES" = "x"; then
33072             with_SWIG_INCLUDES="${gnuradio_core_SWIG_INCLUDES}"
33073         else
33074             with_SWIG_INCLUDES="${gnuradio_core_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
33075         fi
33076         gnuradio_core_SWIG_INCLUDES=
33077     fi
33078
33079
33080     if test "x${gnuradio_core_PYDIRPATH}" != "x"; then
33081         if test "x$with_PYDIRPATH" = "x"; then
33082             with_PYDIRPATH="${gnuradio_core_PYDIRPATH}"
33083         else
33084             with_PYDIRPATH="${gnuradio_core_PYDIRPATH}"":""$with_PYDIRPATH"
33085         fi
33086         gnuradio_core_PYDIRPATH=
33087     fi
33088
33089
33090     if test "x${gnuradio_core_SWIGDIRPATH}" != "x"; then
33091         if test "x$with_SWIGDIRPATH" = "x"; then
33092             with_SWIGDIRPATH="${gnuradio_core_SWIGDIRPATH}"
33093         else
33094             with_SWIGDIRPATH="${gnuradio_core_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
33095         fi
33096         gnuradio_core_SWIGDIRPATH=
33097     fi
33098
33099
33100     if test "x${gnuradio_core_LIBDIRPATH}" != "x"; then
33101         if test "x$with_LIBDIRPATH" = "x"; then
33102             with_LIBDIRPATH="${gnuradio_core_LIBDIRPATH}"
33103         else
33104             with_LIBDIRPATH="${gnuradio_core_LIBDIRPATH}"":""$with_LIBDIRPATH"
33105         fi
33106         gnuradio_core_LIBDIRPATH=
33107     fi
33108
33109             { $as_echo "$as_me:$LINENO: result: Component gnuradio-core will be included from a pre-installed library and includes." >&5
33110 $as_echo "Component gnuradio-core will be included from a pre-installed library and includes." >&6; }
33111             gnuradio_core_with=yes
33112         else
33113             gnuradio_core_LDFLAG=
33114             if test x$enable_gnuradio_core != xno; then
33115                         ac_config_commands="$ac_config_commands run_tests_core"
33116
33117
33118                 build_dirs="$build_dirs gnuradio-core"
33119                 { $as_echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks; building." >&5
33120 $as_echo "Component gnuradio-core passed configuration checks; building." >&6; }
33121             else
33122                 passed=no
33123                 { $as_echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks; but not building." >&5
33124 $as_echo "Component gnuradio-core passed configuration checks; but not building." >&6; }
33125             fi
33126         fi
33127     fi
33128     if test $passed = no; then
33129         skipped_dirs="$skipped_dirs gnuradio-core"
33130         gnuradio_core_skipped=yes
33131     else
33132         gnuradio_core_skipped=no
33133     fi
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145     passed=yes
33146     # Check whether --enable-pmt was given.
33147 if test "${enable_pmt+set}" = set; then
33148   enableval=$enable_pmt;
33149 else
33150
33151         enable_pmt=$enable_all_components
33152         if test x$enable_all_components = xno; then
33153             passed=no
33154         fi
33155
33156 fi
33157
33158
33159
33160
33161     if test x = x; then
33162         pc_comp_name="pmt"
33163     else
33164         pc_comp_name=""
33165     fi
33166
33167
33168 # Check whether --with-pmt was given.
33169 if test "${with_pmt+set}" = set; then
33170   withval=$with_pmt; if test "x$withval" != "xyes"; then
33171                     with_pmt_val=$withval
33172                     with_pmt=yes
33173                  fi
33174 fi
33175
33176     if test x$with_pmt = xyes; then
33177         if test x$enable_pmt = xyes; then
33178             { { $as_echo "$as_me:$LINENO: error: Component pmt: Cannot use both --enable and --with" >&5
33179 $as_echo "$as_me: error: Component pmt: Cannot use both --enable and --with" >&2;}
33180    { (exit 1); exit 1; }; }
33181         else
33182
33183         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
33184
33185             l_PKG_CONFIG_PATH=$with_pmt_val
33186     if test "x$l_PKG_CONFIG_PATH" != "x"; then
33187         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
33188
33189                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
33190             { { $as_echo "$as_me:$LINENO: error: Component pmt: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&5
33191 $as_echo "$as_me: error: Component pmt: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&2;}
33192    { (exit 1); exit 1; }; }
33193         fi
33194     fi
33195
33196         if test -n "$PKG_CONFIG" && \
33197     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
33198   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
33199   ac_status=$?
33200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201   (exit $ac_status); }; then
33202   passed=with; check1=yes
33203 else
33204
33205         check1=no
33206                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
33207             if test "x$s_PKG_CONFIG_PATH" != "x"; then
33208                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
33209                 if test -n "$PKG_CONFIG" && \
33210     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
33211   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
33212   ac_status=$?
33213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214   (exit $ac_status); }; then
33215   passed=with
33216 else
33217   passed=no
33218 fi
33219             fi
33220         fi
33221         if test $passed != with; then
33222             { { $as_echo "$as_me:$LINENO: error: Component pmt: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&5
33223 $as_echo "$as_me: error: Component pmt: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&2;}
33224    { (exit 1); exit 1; }; }
33225         fi
33226                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
33227
33228 fi
33229
33230                 pmt_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
33231     pmt_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
33232     pmt_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
33233
33234     if test x$check1 = xyes; then
33235                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
33236             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
33237         fi
33238     fi
33239
33240             :
33241         fi
33242     fi
33243
33244
33245
33246
33247     if test $passed != no; then
33248         if test $passed = yes; then
33249                         if test x$omnithread_skipped = xyes; then
33250                 { $as_echo "$as_me:$LINENO: result: Component pmt requires omnithread, which is not being built or specified via pre-installed files." >&5
33251 $as_echo "Component pmt requires omnithread, which is not being built or specified via pre-installed files." >&6; }
33252                 passed=no
33253             fi
33254         else
33255                         if test x$omnithread_with = xno; then
33256                 { { $as_echo "$as_me:$LINENO: error: Component pmt requires omnithread to be included as --with-omnithread[=arg]" >&5
33257 $as_echo "$as_me: error: Component pmt requires omnithread to be included as --with-omnithread[=arg]" >&2;}
33258    { (exit 1); exit 1; }; }
33259             fi
33260         fi
33261     fi
33262
33263
33264                     if test $passed = yes; then
33265
33266     if test x"$GUILE" = x; then
33267         { $as_echo "$as_me:$LINENO: result: Component pmt requires guile, which was not found." >&5
33268 $as_echo "Component pmt requires guile, which was not found." >&6; }
33269         passed=no
33270     fi
33271
33272     fi
33273     if test $passed != with; then
33274                 pmt_INCLUDES="-I\${abs_top_srcdir}/pmt/src/lib"
33275         pmt_LA="\${abs_top_builddir}/pmt/src/lib/libpmt.la"
33276     fi
33277
33278     ac_config_files="$ac_config_files pmt/Makefile pmt/pmt.pc pmt/doc/Makefile pmt/src/Makefile pmt/src/lib/Makefile pmt/src/scheme/Makefile pmt/src/scheme/gnuradio/Makefile"
33279
33280
33281
33282
33283     pmt_with=no
33284     if test $passed = no; then
33285         if test x$enable_pmt = xyes; then
33286             { { $as_echo "$as_me:$LINENO: error: Component pmt has errors; stopping." >&5
33287 $as_echo "$as_me: error: Component pmt has errors; stopping." >&2;}
33288    { (exit 1); exit 1; }; }
33289         else
33290             { $as_echo "$as_me:$LINENO: result: Not building component pmt." >&5
33291 $as_echo "Not building component pmt." >&6; }
33292         fi
33293     else
33294         if test $passed = with; then
33295             with_dirs="$with_dirs pmt"
33296
33297     if test "x${pmt_INCLUDES}" != "x"; then
33298         if test "x$with_INCLUDES" = "x"; then
33299             with_INCLUDES="${pmt_INCLUDES}"
33300         else
33301             with_INCLUDES="${pmt_INCLUDES}"" ""$with_INCLUDES"
33302         fi
33303         pmt_INCLUDES=
33304     fi
33305
33306
33307     if test "x${pmt_SWIG_INCLUDES}" != "x"; then
33308         if test "x$with_SWIG_INCLUDES" = "x"; then
33309             with_SWIG_INCLUDES="${pmt_SWIG_INCLUDES}"
33310         else
33311             with_SWIG_INCLUDES="${pmt_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
33312         fi
33313         pmt_SWIG_INCLUDES=
33314     fi
33315
33316
33317     if test "x${pmt_PYDIRPATH}" != "x"; then
33318         if test "x$with_PYDIRPATH" = "x"; then
33319             with_PYDIRPATH="${pmt_PYDIRPATH}"
33320         else
33321             with_PYDIRPATH="${pmt_PYDIRPATH}"":""$with_PYDIRPATH"
33322         fi
33323         pmt_PYDIRPATH=
33324     fi
33325
33326
33327     if test "x${pmt_SWIGDIRPATH}" != "x"; then
33328         if test "x$with_SWIGDIRPATH" = "x"; then
33329             with_SWIGDIRPATH="${pmt_SWIGDIRPATH}"
33330         else
33331             with_SWIGDIRPATH="${pmt_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
33332         fi
33333         pmt_SWIGDIRPATH=
33334     fi
33335
33336
33337     if test "x${pmt_LIBDIRPATH}" != "x"; then
33338         if test "x$with_LIBDIRPATH" = "x"; then
33339             with_LIBDIRPATH="${pmt_LIBDIRPATH}"
33340         else
33341             with_LIBDIRPATH="${pmt_LIBDIRPATH}"":""$with_LIBDIRPATH"
33342         fi
33343         pmt_LIBDIRPATH=
33344     fi
33345
33346             { $as_echo "$as_me:$LINENO: result: Component pmt will be included from a pre-installed library and includes." >&5
33347 $as_echo "Component pmt will be included from a pre-installed library and includes." >&6; }
33348             pmt_with=yes
33349         else
33350             pmt_LDFLAG=
33351             if test x$enable_pmt != xno; then
33352
33353                 build_dirs="$build_dirs pmt"
33354                 { $as_echo "$as_me:$LINENO: result: Component pmt passed configuration checks; building." >&5
33355 $as_echo "Component pmt passed configuration checks; building." >&6; }
33356             else
33357                 passed=no
33358                 { $as_echo "$as_me:$LINENO: result: Component pmt passed configuration checks; but not building." >&5
33359 $as_echo "Component pmt passed configuration checks; but not building." >&6; }
33360             fi
33361         fi
33362     fi
33363     if test $passed = no; then
33364         skipped_dirs="$skipped_dirs pmt"
33365         pmt_skipped=yes
33366     else
33367         pmt_skipped=no
33368     fi
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380     passed=yes
33381     # Check whether --enable-mblock was given.
33382 if test "${enable_mblock+set}" = set; then
33383   enableval=$enable_mblock;
33384 else
33385
33386         enable_mblock=$enable_all_components
33387         if test x$enable_all_components = xno; then
33388             passed=no
33389         fi
33390
33391 fi
33392
33393
33394
33395
33396
33397     if test x = x; then
33398         pc_comp_name="mblock"
33399     else
33400         pc_comp_name=""
33401     fi
33402
33403
33404 # Check whether --with-mblock was given.
33405 if test "${with_mblock+set}" = set; then
33406   withval=$with_mblock; if test "x$withval" != "xyes"; then
33407                     with_mblock_val=$withval
33408                     with_mblock=yes
33409                  fi
33410 fi
33411
33412     if test x$with_mblock = xyes; then
33413         if test x$enable_mblock = xyes; then
33414             { { $as_echo "$as_me:$LINENO: error: Component mblock: Cannot use both --enable and --with" >&5
33415 $as_echo "$as_me: error: Component mblock: Cannot use both --enable and --with" >&2;}
33416    { (exit 1); exit 1; }; }
33417         else
33418
33419         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
33420
33421             l_PKG_CONFIG_PATH=$with_mblock_val
33422     if test "x$l_PKG_CONFIG_PATH" != "x"; then
33423         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
33424
33425                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
33426             { { $as_echo "$as_me:$LINENO: error: Component mblock: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&5
33427 $as_echo "$as_me: error: Component mblock: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&2;}
33428    { (exit 1); exit 1; }; }
33429         fi
33430     fi
33431
33432         if test -n "$PKG_CONFIG" && \
33433     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
33434   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
33435   ac_status=$?
33436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437   (exit $ac_status); }; then
33438   passed=with; check1=yes
33439 else
33440
33441         check1=no
33442                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
33443             if test "x$s_PKG_CONFIG_PATH" != "x"; then
33444                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
33445                 if test -n "$PKG_CONFIG" && \
33446     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
33447   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
33448   ac_status=$?
33449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450   (exit $ac_status); }; then
33451   passed=with
33452 else
33453   passed=no
33454 fi
33455             fi
33456         fi
33457         if test $passed != with; then
33458             { { $as_echo "$as_me:$LINENO: error: Component mblock: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&5
33459 $as_echo "$as_me: error: Component mblock: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&2;}
33460    { (exit 1); exit 1; }; }
33461         fi
33462                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
33463
33464 fi
33465
33466                 mblock_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
33467     mblock_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
33468     mblock_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
33469
33470     if test x$check1 = xyes; then
33471                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
33472             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
33473         fi
33474     fi
33475
33476             :
33477         fi
33478     fi
33479
33480
33481
33482
33483     if test $passed != no; then
33484         if test $passed = yes; then
33485                         if test x$pmt_skipped = xyes; then
33486                 { $as_echo "$as_me:$LINENO: result: Component mblock requires pmt, which is not being built or specified via pre-installed files." >&5
33487 $as_echo "Component mblock requires pmt, which is not being built or specified via pre-installed files." >&6; }
33488                 passed=no
33489             fi
33490         else
33491                         if test x$pmt_with = xno; then
33492                 { { $as_echo "$as_me:$LINENO: error: Component mblock requires pmt to be included as --with-pmt[=arg]" >&5
33493 $as_echo "$as_me: error: Component mblock requires pmt to be included as --with-pmt[=arg]" >&2;}
33494    { (exit 1); exit 1; }; }
33495             fi
33496         fi
33497     fi
33498
33499
33500     if test $passed != no; then
33501         if test $passed = yes; then
33502                         if test x$omnithread_skipped = xyes; then
33503                 { $as_echo "$as_me:$LINENO: result: Component mblock requires omnithread, which is not being built or specified via pre-installed files." >&5
33504 $as_echo "Component mblock requires omnithread, which is not being built or specified via pre-installed files." >&6; }
33505                 passed=no
33506             fi
33507         else
33508                         if test x$omnithread_with = xno; then
33509                 { { $as_echo "$as_me:$LINENO: error: Component mblock requires omnithread to be included as --with-omnithread[=arg]" >&5
33510 $as_echo "$as_me: error: Component mblock requires omnithread to be included as --with-omnithread[=arg]" >&2;}
33511    { (exit 1); exit 1; }; }
33512             fi
33513         fi
33514     fi
33515
33516
33517                     if test $passed = yes; then
33518
33519     if test x"$GUILE" = x; then
33520         { $as_echo "$as_me:$LINENO: result: Component mblock requires guile, which was not found." >&5
33521 $as_echo "Component mblock requires guile, which was not found." >&6; }
33522         passed=no
33523     fi
33524
33525     fi
33526     if test $passed != with; then
33527                 mblock_INCLUDES="-I\${abs_top_srcdir}/mblock/src/include"
33528         mblock_LA="\${abs_top_builddir}/mblock/src/lib/libmblock.la"
33529     fi
33530
33531     ac_config_files="$ac_config_files mblock/Makefile mblock/mblock.pc mblock/doc/Makefile mblock/src/Makefile mblock/src/include/Makefile mblock/src/include/mblock/Makefile mblock/src/lib/Makefile mblock/src/scheme/Makefile mblock/src/scheme/gnuradio/Makefile"
33532
33533
33534
33535
33536     mblock_with=no
33537     if test $passed = no; then
33538         if test x$enable_mblock = xyes; then
33539             { { $as_echo "$as_me:$LINENO: error: Component mblock has errors; stopping." >&5
33540 $as_echo "$as_me: error: Component mblock has errors; stopping." >&2;}
33541    { (exit 1); exit 1; }; }
33542         else
33543             { $as_echo "$as_me:$LINENO: result: Not building component mblock." >&5
33544 $as_echo "Not building component mblock." >&6; }
33545         fi
33546     else
33547         if test $passed = with; then
33548             with_dirs="$with_dirs mblock"
33549
33550     if test "x${mblock_INCLUDES}" != "x"; then
33551         if test "x$with_INCLUDES" = "x"; then
33552             with_INCLUDES="${mblock_INCLUDES}"
33553         else
33554             with_INCLUDES="${mblock_INCLUDES}"" ""$with_INCLUDES"
33555         fi
33556         mblock_INCLUDES=
33557     fi
33558
33559
33560     if test "x${mblock_SWIG_INCLUDES}" != "x"; then
33561         if test "x$with_SWIG_INCLUDES" = "x"; then
33562             with_SWIG_INCLUDES="${mblock_SWIG_INCLUDES}"
33563         else
33564             with_SWIG_INCLUDES="${mblock_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
33565         fi
33566         mblock_SWIG_INCLUDES=
33567     fi
33568
33569
33570     if test "x${mblock_PYDIRPATH}" != "x"; then
33571         if test "x$with_PYDIRPATH" = "x"; then
33572             with_PYDIRPATH="${mblock_PYDIRPATH}"
33573         else
33574             with_PYDIRPATH="${mblock_PYDIRPATH}"":""$with_PYDIRPATH"
33575         fi
33576         mblock_PYDIRPATH=
33577     fi
33578
33579
33580     if test "x${mblock_SWIGDIRPATH}" != "x"; then
33581         if test "x$with_SWIGDIRPATH" = "x"; then
33582             with_SWIGDIRPATH="${mblock_SWIGDIRPATH}"
33583         else
33584             with_SWIGDIRPATH="${mblock_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
33585         fi
33586         mblock_SWIGDIRPATH=
33587     fi
33588
33589
33590     if test "x${mblock_LIBDIRPATH}" != "x"; then
33591         if test "x$with_LIBDIRPATH" = "x"; then
33592             with_LIBDIRPATH="${mblock_LIBDIRPATH}"
33593         else
33594             with_LIBDIRPATH="${mblock_LIBDIRPATH}"":""$with_LIBDIRPATH"
33595         fi
33596         mblock_LIBDIRPATH=
33597     fi
33598
33599             { $as_echo "$as_me:$LINENO: result: Component mblock will be included from a pre-installed library and includes." >&5
33600 $as_echo "Component mblock will be included from a pre-installed library and includes." >&6; }
33601             mblock_with=yes
33602         else
33603             mblock_LDFLAG=
33604             if test x$enable_mblock != xno; then
33605
33606                 build_dirs="$build_dirs mblock"
33607                 { $as_echo "$as_me:$LINENO: result: Component mblock passed configuration checks; building." >&5
33608 $as_echo "Component mblock passed configuration checks; building." >&6; }
33609             else
33610                 passed=no
33611                 { $as_echo "$as_me:$LINENO: result: Component mblock passed configuration checks; but not building." >&5
33612 $as_echo "Component mblock passed configuration checks; but not building." >&6; }
33613             fi
33614         fi
33615     fi
33616     if test $passed = no; then
33617         skipped_dirs="$skipped_dirs mblock"
33618         mblock_skipped=yes
33619     else
33620         mblock_skipped=no
33621     fi
33622
33623
33624
33625
33626
33627
33628
33629                         { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
33630 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
33631 if test "${ac_cv_header_stat_broken+set}" = set; then
33632   $as_echo_n "(cached) " >&6
33633 else
33634   cat >conftest.$ac_ext <<_ACEOF
33635 /* confdefs.h.  */
33636 _ACEOF
33637 cat confdefs.h >>conftest.$ac_ext
33638 cat >>conftest.$ac_ext <<_ACEOF
33639 /* end confdefs.h.  */
33640 #include <sys/types.h>
33641 #include <sys/stat.h>
33642
33643 #if defined S_ISBLK && defined S_IFDIR
33644 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
33645 #endif
33646
33647 #if defined S_ISBLK && defined S_IFCHR
33648 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
33649 #endif
33650
33651 #if defined S_ISLNK && defined S_IFREG
33652 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
33653 #endif
33654
33655 #if defined S_ISSOCK && defined S_IFREG
33656 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
33657 #endif
33658
33659 _ACEOF
33660 rm -f conftest.$ac_objext
33661 if { (ac_try="$ac_compile"
33662 case "(($ac_try" in
33663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33664   *) ac_try_echo=$ac_try;;
33665 esac
33666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33667 $as_echo "$ac_try_echo") >&5
33668   (eval "$ac_compile") 2>conftest.er1
33669   ac_status=$?
33670   grep -v '^ *+' conftest.er1 >conftest.err
33671   rm -f conftest.er1
33672   cat conftest.err >&5
33673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674   (exit $ac_status); } && {
33675          test -z "$ac_c_werror_flag" ||
33676          test ! -s conftest.err
33677        } && test -s conftest.$ac_objext; then
33678   ac_cv_header_stat_broken=no
33679 else
33680   $as_echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.$ac_ext >&5
33682
33683         ac_cv_header_stat_broken=yes
33684 fi
33685
33686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33687 fi
33688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
33689 $as_echo "$ac_cv_header_stat_broken" >&6; }
33690 if test $ac_cv_header_stat_broken = yes; then
33691
33692 cat >>confdefs.h <<\_ACEOF
33693 #define STAT_MACROS_BROKEN 1
33694 _ACEOF
33695
33696 fi
33697
33698
33699
33700 for ac_header in fcntl.h
33701 do
33702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33704   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33705 $as_echo_n "checking for $ac_header... " >&6; }
33706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33707   $as_echo_n "(cached) " >&6
33708 fi
33709 ac_res=`eval 'as_val=${'$as_ac_Header'}
33710                  $as_echo "$as_val"'`
33711                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33712 $as_echo "$ac_res" >&6; }
33713 else
33714   # Is the header compilable?
33715 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33716 $as_echo_n "checking $ac_header usability... " >&6; }
33717 cat >conftest.$ac_ext <<_ACEOF
33718 /* confdefs.h.  */
33719 _ACEOF
33720 cat confdefs.h >>conftest.$ac_ext
33721 cat >>conftest.$ac_ext <<_ACEOF
33722 /* end confdefs.h.  */
33723 $ac_includes_default
33724 #include <$ac_header>
33725 _ACEOF
33726 rm -f conftest.$ac_objext
33727 if { (ac_try="$ac_compile"
33728 case "(($ac_try" in
33729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33730   *) ac_try_echo=$ac_try;;
33731 esac
33732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33733 $as_echo "$ac_try_echo") >&5
33734   (eval "$ac_compile") 2>conftest.er1
33735   ac_status=$?
33736   grep -v '^ *+' conftest.er1 >conftest.err
33737   rm -f conftest.er1
33738   cat conftest.err >&5
33739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740   (exit $ac_status); } && {
33741          test -z "$ac_c_werror_flag" ||
33742          test ! -s conftest.err
33743        } && test -s conftest.$ac_objext; then
33744   ac_header_compiler=yes
33745 else
33746   $as_echo "$as_me: failed program was:" >&5
33747 sed 's/^/| /' conftest.$ac_ext >&5
33748
33749         ac_header_compiler=no
33750 fi
33751
33752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33754 $as_echo "$ac_header_compiler" >&6; }
33755
33756 # Is the header present?
33757 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33758 $as_echo_n "checking $ac_header presence... " >&6; }
33759 cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h.  */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h.  */
33765 #include <$ac_header>
33766 _ACEOF
33767 if { (ac_try="$ac_cpp conftest.$ac_ext"
33768 case "(($ac_try" in
33769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770   *) ac_try_echo=$ac_try;;
33771 esac
33772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33773 $as_echo "$ac_try_echo") >&5
33774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33775   ac_status=$?
33776   grep -v '^ *+' conftest.er1 >conftest.err
33777   rm -f conftest.er1
33778   cat conftest.err >&5
33779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780   (exit $ac_status); } >/dev/null && {
33781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33782          test ! -s conftest.err
33783        }; then
33784   ac_header_preproc=yes
33785 else
33786   $as_echo "$as_me: failed program was:" >&5
33787 sed 's/^/| /' conftest.$ac_ext >&5
33788
33789   ac_header_preproc=no
33790 fi
33791
33792 rm -f conftest.err conftest.$ac_ext
33793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33794 $as_echo "$ac_header_preproc" >&6; }
33795
33796 # So?  What about this header?
33797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33798   yes:no: )
33799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33800 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33802 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33803     ac_header_preproc=yes
33804     ;;
33805   no:yes:* )
33806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33807 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33809 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33811 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33813 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33817 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33818
33819     ;;
33820 esac
33821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33822 $as_echo_n "checking for $ac_header... " >&6; }
33823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33824   $as_echo_n "(cached) " >&6
33825 else
33826   eval "$as_ac_Header=\$ac_header_preproc"
33827 fi
33828 ac_res=`eval 'as_val=${'$as_ac_Header'}
33829                  $as_echo "$as_val"'`
33830                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33831 $as_echo "$ac_res" >&6; }
33832
33833 fi
33834 as_val=`eval 'as_val=${'$as_ac_Header'}
33835                  $as_echo "$as_val"'`
33836    if test "x$as_val" = x""yes; then
33837   cat >>confdefs.h <<_ACEOF
33838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33839 _ACEOF
33840
33841 fi
33842
33843 done
33844
33845
33846
33847
33848 for ac_header in sys/time.h
33849 do
33850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33852   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33853 $as_echo_n "checking for $ac_header... " >&6; }
33854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33855   $as_echo_n "(cached) " >&6
33856 fi
33857 ac_res=`eval 'as_val=${'$as_ac_Header'}
33858                  $as_echo "$as_val"'`
33859                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33860 $as_echo "$ac_res" >&6; }
33861 else
33862   # Is the header compilable?
33863 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33864 $as_echo_n "checking $ac_header usability... " >&6; }
33865 cat >conftest.$ac_ext <<_ACEOF
33866 /* confdefs.h.  */
33867 _ACEOF
33868 cat confdefs.h >>conftest.$ac_ext
33869 cat >>conftest.$ac_ext <<_ACEOF
33870 /* end confdefs.h.  */
33871 $ac_includes_default
33872 #include <$ac_header>
33873 _ACEOF
33874 rm -f conftest.$ac_objext
33875 if { (ac_try="$ac_compile"
33876 case "(($ac_try" in
33877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878   *) ac_try_echo=$ac_try;;
33879 esac
33880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33881 $as_echo "$ac_try_echo") >&5
33882   (eval "$ac_compile") 2>conftest.er1
33883   ac_status=$?
33884   grep -v '^ *+' conftest.er1 >conftest.err
33885   rm -f conftest.er1
33886   cat conftest.err >&5
33887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888   (exit $ac_status); } && {
33889          test -z "$ac_c_werror_flag" ||
33890          test ! -s conftest.err
33891        } && test -s conftest.$ac_objext; then
33892   ac_header_compiler=yes
33893 else
33894   $as_echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33896
33897         ac_header_compiler=no
33898 fi
33899
33900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33902 $as_echo "$ac_header_compiler" >&6; }
33903
33904 # Is the header present?
33905 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33906 $as_echo_n "checking $ac_header presence... " >&6; }
33907 cat >conftest.$ac_ext <<_ACEOF
33908 /* confdefs.h.  */
33909 _ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h.  */
33913 #include <$ac_header>
33914 _ACEOF
33915 if { (ac_try="$ac_cpp conftest.$ac_ext"
33916 case "(($ac_try" in
33917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918   *) ac_try_echo=$ac_try;;
33919 esac
33920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33921 $as_echo "$ac_try_echo") >&5
33922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33923   ac_status=$?
33924   grep -v '^ *+' conftest.er1 >conftest.err
33925   rm -f conftest.er1
33926   cat conftest.err >&5
33927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928   (exit $ac_status); } >/dev/null && {
33929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33930          test ! -s conftest.err
33931        }; then
33932   ac_header_preproc=yes
33933 else
33934   $as_echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33936
33937   ac_header_preproc=no
33938 fi
33939
33940 rm -f conftest.err conftest.$ac_ext
33941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33942 $as_echo "$ac_header_preproc" >&6; }
33943
33944 # So?  What about this header?
33945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33946   yes:no: )
33947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33948 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33951     ac_header_preproc=yes
33952     ;;
33953   no:yes:* )
33954     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33955 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33957 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33959 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33961 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33965 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33966
33967     ;;
33968 esac
33969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33970 $as_echo_n "checking for $ac_header... " >&6; }
33971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33972   $as_echo_n "(cached) " >&6
33973 else
33974   eval "$as_ac_Header=\$ac_header_preproc"
33975 fi
33976 ac_res=`eval 'as_val=${'$as_ac_Header'}
33977                  $as_echo "$as_val"'`
33978                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33979 $as_echo "$ac_res" >&6; }
33980
33981 fi
33982 as_val=`eval 'as_val=${'$as_ac_Header'}
33983                  $as_echo "$as_val"'`
33984    if test "x$as_val" = x""yes; then
33985   cat >>confdefs.h <<_ACEOF
33986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33987 _ACEOF
33988
33989 fi
33990
33991 done
33992
33993
33994
33995
33996 for ac_header in unistd.h
33997 do
33998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34000   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34001 $as_echo_n "checking for $ac_header... " >&6; }
34002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34003   $as_echo_n "(cached) " >&6
34004 fi
34005 ac_res=`eval 'as_val=${'$as_ac_Header'}
34006                  $as_echo "$as_val"'`
34007                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34008 $as_echo "$ac_res" >&6; }
34009 else
34010   # Is the header compilable?
34011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34012 $as_echo_n "checking $ac_header usability... " >&6; }
34013 cat >conftest.$ac_ext <<_ACEOF
34014 /* confdefs.h.  */
34015 _ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h.  */
34019 $ac_includes_default
34020 #include <$ac_header>
34021 _ACEOF
34022 rm -f conftest.$ac_objext
34023 if { (ac_try="$ac_compile"
34024 case "(($ac_try" in
34025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34026   *) ac_try_echo=$ac_try;;
34027 esac
34028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34029 $as_echo "$ac_try_echo") >&5
34030   (eval "$ac_compile") 2>conftest.er1
34031   ac_status=$?
34032   grep -v '^ *+' conftest.er1 >conftest.err
34033   rm -f conftest.er1
34034   cat conftest.err >&5
34035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036   (exit $ac_status); } && {
34037          test -z "$ac_c_werror_flag" ||
34038          test ! -s conftest.err
34039        } && test -s conftest.$ac_objext; then
34040   ac_header_compiler=yes
34041 else
34042   $as_echo "$as_me: failed program was:" >&5
34043 sed 's/^/| /' conftest.$ac_ext >&5
34044
34045         ac_header_compiler=no
34046 fi
34047
34048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34050 $as_echo "$ac_header_compiler" >&6; }
34051
34052 # Is the header present?
34053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34054 $as_echo_n "checking $ac_header presence... " >&6; }
34055 cat >conftest.$ac_ext <<_ACEOF
34056 /* confdefs.h.  */
34057 _ACEOF
34058 cat confdefs.h >>conftest.$ac_ext
34059 cat >>conftest.$ac_ext <<_ACEOF
34060 /* end confdefs.h.  */
34061 #include <$ac_header>
34062 _ACEOF
34063 if { (ac_try="$ac_cpp conftest.$ac_ext"
34064 case "(($ac_try" in
34065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34066   *) ac_try_echo=$ac_try;;
34067 esac
34068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34069 $as_echo "$ac_try_echo") >&5
34070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34071   ac_status=$?
34072   grep -v '^ *+' conftest.er1 >conftest.err
34073   rm -f conftest.er1
34074   cat conftest.err >&5
34075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076   (exit $ac_status); } >/dev/null && {
34077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34078          test ! -s conftest.err
34079        }; then
34080   ac_header_preproc=yes
34081 else
34082   $as_echo "$as_me: failed program was:" >&5
34083 sed 's/^/| /' conftest.$ac_ext >&5
34084
34085   ac_header_preproc=no
34086 fi
34087
34088 rm -f conftest.err conftest.$ac_ext
34089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34090 $as_echo "$ac_header_preproc" >&6; }
34091
34092 # So?  What about this header?
34093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34094   yes:no: )
34095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34099     ac_header_preproc=yes
34100     ;;
34101   no:yes:* )
34102     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34104     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34105 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34106     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34108     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34109 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34112     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34114
34115     ;;
34116 esac
34117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34118 $as_echo_n "checking for $ac_header... " >&6; }
34119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34120   $as_echo_n "(cached) " >&6
34121 else
34122   eval "$as_ac_Header=\$ac_header_preproc"
34123 fi
34124 ac_res=`eval 'as_val=${'$as_ac_Header'}
34125                  $as_echo "$as_val"'`
34126                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34127 $as_echo "$ac_res" >&6; }
34128
34129 fi
34130 as_val=`eval 'as_val=${'$as_ac_Header'}
34131                  $as_echo "$as_val"'`
34132    if test "x$as_val" = x""yes; then
34133   cat >>confdefs.h <<_ACEOF
34134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34135 _ACEOF
34136
34137 fi
34138
34139 done
34140
34141
34142
34143       { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
34144 $as_echo_n "checking whether getenv is declared... " >&6; }
34145 if test "${ac_cv_have_decl_getenv+set}" = set; then
34146   $as_echo_n "(cached) " >&6
34147 else
34148   cat >conftest.$ac_ext <<_ACEOF
34149 /* confdefs.h.  */
34150 _ACEOF
34151 cat confdefs.h >>conftest.$ac_ext
34152 cat >>conftest.$ac_ext <<_ACEOF
34153 /* end confdefs.h.  */
34154 $ac_includes_default
34155 int
34156 main ()
34157 {
34158 #ifndef getenv
34159   (void) getenv;
34160 #endif
34161
34162   ;
34163   return 0;
34164 }
34165 _ACEOF
34166 rm -f conftest.$ac_objext
34167 if { (ac_try="$ac_compile"
34168 case "(($ac_try" in
34169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170   *) ac_try_echo=$ac_try;;
34171 esac
34172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34173 $as_echo "$ac_try_echo") >&5
34174   (eval "$ac_compile") 2>conftest.er1
34175   ac_status=$?
34176   grep -v '^ *+' conftest.er1 >conftest.err
34177   rm -f conftest.er1
34178   cat conftest.err >&5
34179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180   (exit $ac_status); } && {
34181          test -z "$ac_c_werror_flag" ||
34182          test ! -s conftest.err
34183        } && test -s conftest.$ac_objext; then
34184   ac_cv_have_decl_getenv=yes
34185 else
34186   $as_echo "$as_me: failed program was:" >&5
34187 sed 's/^/| /' conftest.$ac_ext >&5
34188
34189         ac_cv_have_decl_getenv=no
34190 fi
34191
34192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34193 fi
34194 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
34195 $as_echo "$ac_cv_have_decl_getenv" >&6; }
34196 if test "x$ac_cv_have_decl_getenv" = x""yes; then
34197
34198 cat >>confdefs.h <<_ACEOF
34199 #define HAVE_DECL_GETENV 1
34200 _ACEOF
34201
34202
34203 else
34204   cat >>confdefs.h <<_ACEOF
34205 #define HAVE_DECL_GETENV 0
34206 _ACEOF
34207
34208
34209 fi
34210
34211
34212
34213
34214
34215
34216     passed=yes
34217     # Check whether --enable-usrp was given.
34218 if test "${enable_usrp+set}" = set; then
34219   enableval=$enable_usrp;
34220 else
34221
34222         enable_usrp=$enable_all_components
34223         if test x$enable_all_components = xno; then
34224             passed=no
34225         fi
34226
34227 fi
34228
34229
34230
34231
34232
34233     if test x = x; then
34234         pc_comp_name="usrp"
34235     else
34236         pc_comp_name=""
34237     fi
34238
34239
34240 # Check whether --with-usrp was given.
34241 if test "${with_usrp+set}" = set; then
34242   withval=$with_usrp; if test "x$withval" != "xyes"; then
34243                     with_usrp_val=$withval
34244                     with_usrp=yes
34245                  fi
34246 fi
34247
34248     if test x$with_usrp = xyes; then
34249         if test x$enable_usrp = xyes; then
34250             { { $as_echo "$as_me:$LINENO: error: Component usrp: Cannot use both --enable and --with" >&5
34251 $as_echo "$as_me: error: Component usrp: Cannot use both --enable and --with" >&2;}
34252    { (exit 1); exit 1; }; }
34253         else
34254
34255         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
34256
34257             l_PKG_CONFIG_PATH=$with_usrp_val
34258     if test "x$l_PKG_CONFIG_PATH" != "x"; then
34259         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
34260
34261                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
34262             { { $as_echo "$as_me:$LINENO: error: Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&5
34263 $as_echo "$as_me: error: Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&2;}
34264    { (exit 1); exit 1; }; }
34265         fi
34266     fi
34267
34268         if test -n "$PKG_CONFIG" && \
34269     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
34270   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
34271   ac_status=$?
34272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); }; then
34274   passed=with; check1=yes
34275 else
34276
34277         check1=no
34278                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
34279             if test "x$s_PKG_CONFIG_PATH" != "x"; then
34280                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
34281                 if test -n "$PKG_CONFIG" && \
34282     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
34283   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
34284   ac_status=$?
34285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286   (exit $ac_status); }; then
34287   passed=with
34288 else
34289   passed=no
34290 fi
34291             fi
34292         fi
34293         if test $passed != with; then
34294             { { $as_echo "$as_me:$LINENO: error: Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&5
34295 $as_echo "$as_me: error: Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&2;}
34296    { (exit 1); exit 1; }; }
34297         fi
34298                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
34299
34300 fi
34301
34302                 usrp_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
34303     usrp_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
34304     usrp_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
34305
34306     if test x$check1 = xyes; then
34307                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
34308             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
34309         fi
34310     fi
34311
34312             :
34313         fi
34314     fi
34315
34316
34317
34318
34319     if test $passed != no; then
34320         if test $passed = yes; then
34321                         if test x$omnithread_skipped = xyes; then
34322                 { $as_echo "$as_me:$LINENO: result: Component usrp requires omnithread, which is not being built or specified via pre-installed files." >&5
34323 $as_echo "Component usrp requires omnithread, which is not being built or specified via pre-installed files." >&6; }
34324                 passed=no
34325             fi
34326         else
34327                         if test x$omnithread_with = xno; then
34328                 { { $as_echo "$as_me:$LINENO: error: Component usrp requires omnithread to be included as --with-omnithread[=arg]" >&5
34329 $as_echo "$as_me: error: Component usrp requires omnithread to be included as --with-omnithread[=arg]" >&2;}
34330    { (exit 1); exit 1; }; }
34331             fi
34332         fi
34333     fi
34334
34335
34336
34337
34338 # Check whether --with-fusb-tech was given.
34339 if test "${with_fusb_tech+set}" = set; then
34340   withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
34341 else
34342   cf_with_fusb_tech="$host_os"
34343 fi
34344
34345   if test x${enable_usrp} != xno; then
34346       case "$cf_with_fusb_tech" in
34347         linux*)
34348           if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
34349   { $as_echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
34350 $as_echo_n "checking for linux/usbdevice_fs.h... " >&6; }
34351 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
34352   $as_echo_n "(cached) " >&6
34353 fi
34354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
34355 $as_echo "$ac_cv_header_linux_usbdevice_fs_h" >&6; }
34356 else
34357   # Is the header compilable?
34358 { $as_echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
34359 $as_echo_n "checking linux/usbdevice_fs.h usability... " >&6; }
34360 cat >conftest.$ac_ext <<_ACEOF
34361 /* confdefs.h.  */
34362 _ACEOF
34363 cat confdefs.h >>conftest.$ac_ext
34364 cat >>conftest.$ac_ext <<_ACEOF
34365 /* end confdefs.h.  */
34366 $ac_includes_default
34367 #include <linux/usbdevice_fs.h>
34368 _ACEOF
34369 rm -f conftest.$ac_objext
34370 if { (ac_try="$ac_compile"
34371 case "(($ac_try" in
34372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34373   *) ac_try_echo=$ac_try;;
34374 esac
34375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34376 $as_echo "$ac_try_echo") >&5
34377   (eval "$ac_compile") 2>conftest.er1
34378   ac_status=$?
34379   grep -v '^ *+' conftest.er1 >conftest.err
34380   rm -f conftest.er1
34381   cat conftest.err >&5
34382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383   (exit $ac_status); } && {
34384          test -z "$ac_c_werror_flag" ||
34385          test ! -s conftest.err
34386        } && test -s conftest.$ac_objext; then
34387   ac_header_compiler=yes
34388 else
34389   $as_echo "$as_me: failed program was:" >&5
34390 sed 's/^/| /' conftest.$ac_ext >&5
34391
34392         ac_header_compiler=no
34393 fi
34394
34395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34397 $as_echo "$ac_header_compiler" >&6; }
34398
34399 # Is the header present?
34400 { $as_echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
34401 $as_echo_n "checking linux/usbdevice_fs.h presence... " >&6; }
34402 cat >conftest.$ac_ext <<_ACEOF
34403 /* confdefs.h.  */
34404 _ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h.  */
34408 #include <linux/usbdevice_fs.h>
34409 _ACEOF
34410 if { (ac_try="$ac_cpp conftest.$ac_ext"
34411 case "(($ac_try" in
34412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34413   *) ac_try_echo=$ac_try;;
34414 esac
34415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34416 $as_echo "$ac_try_echo") >&5
34417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34418   ac_status=$?
34419   grep -v '^ *+' conftest.er1 >conftest.err
34420   rm -f conftest.er1
34421   cat conftest.err >&5
34422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423   (exit $ac_status); } >/dev/null && {
34424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34425          test ! -s conftest.err
34426        }; then
34427   ac_header_preproc=yes
34428 else
34429   $as_echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34431
34432   ac_header_preproc=no
34433 fi
34434
34435 rm -f conftest.err conftest.$ac_ext
34436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34437 $as_echo "$ac_header_preproc" >&6; }
34438
34439 # So?  What about this header?
34440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34441   yes:no: )
34442     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34443 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34444     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
34445 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
34446     ac_header_preproc=yes
34447     ;;
34448   no:yes:* )
34449     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
34450 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
34451     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&5
34452 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&2;}
34453     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
34454 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
34455     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
34456 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34457     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
34458 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
34459     { $as_echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
34460 $as_echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
34461
34462     ;;
34463 esac
34464 { $as_echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
34465 $as_echo_n "checking for linux/usbdevice_fs.h... " >&6; }
34466 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
34467   $as_echo_n "(cached) " >&6
34468 else
34469   ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
34470 fi
34471 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
34472 $as_echo "$ac_cv_header_linux_usbdevice_fs_h" >&6; }
34473
34474 fi
34475 if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then
34476   x_have_usbdevice_fs_h=yes
34477 else
34478   x_have_usbdevice_fs_h=no
34479 fi
34480
34481
34482           if test x${x_have_usbdevice_fs_h} = xyes; then
34483               FUSB_TECH=linux
34484           else
34485               FUSB_TECH=generic
34486           fi
34487           ;;
34488         darwin*)
34489           FUSB_TECH=darwin
34490           ;;
34491         cygwin*|win*|mingw*)
34492           FUSB_TECH=win32
34493           ;;
34494         *bsd*)
34495           { $as_echo "$as_me:$LINENO: checking for RA/WB" >&5
34496 $as_echo_n "checking for RA/WB... " >&6; }
34497           cat >conftest.$ac_ext <<_ACEOF
34498 /* confdefs.h.  */
34499 _ACEOF
34500 cat confdefs.h >>conftest.$ac_ext
34501 cat >>conftest.$ac_ext <<_ACEOF
34502 /* end confdefs.h.  */
34503 #include <dev/usb/usb.h>
34504 int
34505 main ()
34506 {
34507 struct usb_bulk_ra_wb_opt o;
34508                                                ioctl(0, USB_SET_BULK_RA, &o);
34509   ;
34510   return 0;
34511 }
34512 _ACEOF
34513 rm -f conftest.$ac_objext
34514 if { (ac_try="$ac_compile"
34515 case "(($ac_try" in
34516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34517   *) ac_try_echo=$ac_try;;
34518 esac
34519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34520 $as_echo "$ac_try_echo") >&5
34521   (eval "$ac_compile") 2>conftest.er1
34522   ac_status=$?
34523   grep -v '^ *+' conftest.er1 >conftest.err
34524   rm -f conftest.er1
34525   cat conftest.err >&5
34526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); } && {
34528          test -z "$ac_c_werror_flag" ||
34529          test ! -s conftest.err
34530        } && test -s conftest.$ac_objext; then
34531   FUSB_TECH=ra_wb
34532 else
34533   $as_echo "$as_me: failed program was:" >&5
34534 sed 's/^/| /' conftest.$ac_ext >&5
34535
34536         FUSB_TECH=generic
34537 fi
34538
34539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34540           ;;
34541         *)
34542           FUSB_TECH=generic
34543           ;;
34544       esac
34545
34546       { $as_echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
34547 $as_echo_n "checking for fast usb technique to use... " >&6; }
34548       { $as_echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
34549 $as_echo "$FUSB_TECH" >&6; }
34550
34551   fi
34552
34553    if test x$FUSB_TECH = xdarwin; then
34554   FUSB_TECH_darwin_TRUE=
34555   FUSB_TECH_darwin_FALSE='#'
34556 else
34557   FUSB_TECH_darwin_TRUE='#'
34558   FUSB_TECH_darwin_FALSE=
34559 fi
34560
34561    if test x$FUSB_TECH = xwin32; then
34562   FUSB_TECH_win32_TRUE=
34563   FUSB_TECH_win32_FALSE='#'
34564 else
34565   FUSB_TECH_win32_TRUE='#'
34566   FUSB_TECH_win32_FALSE=
34567 fi
34568
34569    if test x$FUSB_TECH = xgeneric; then
34570   FUSB_TECH_generic_TRUE=
34571   FUSB_TECH_generic_FALSE='#'
34572 else
34573   FUSB_TECH_generic_TRUE='#'
34574   FUSB_TECH_generic_FALSE=
34575 fi
34576
34577    if test x$FUSB_TECH = xlinux; then
34578   FUSB_TECH_linux_TRUE=
34579   FUSB_TECH_linux_FALSE='#'
34580 else
34581   FUSB_TECH_linux_TRUE='#'
34582   FUSB_TECH_linux_FALSE=
34583 fi
34584
34585    if test x$FUSB_TECH = xra_wb; then
34586   FUSB_TECH_ra_wb_TRUE=
34587   FUSB_TECH_ra_wb_FALSE='#'
34588 else
34589   FUSB_TECH_ra_wb_TRUE='#'
34590   FUSB_TECH_ra_wb_FALSE=
34591 fi
34592
34593
34594
34595                     if test $passed = yes; then
34596
34597 for ac_func in mkstemp
34598 do
34599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34600 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34601 $as_echo_n "checking for $ac_func... " >&6; }
34602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34603   $as_echo_n "(cached) " >&6
34604 else
34605   cat >conftest.$ac_ext <<_ACEOF
34606 /* confdefs.h.  */
34607 _ACEOF
34608 cat confdefs.h >>conftest.$ac_ext
34609 cat >>conftest.$ac_ext <<_ACEOF
34610 /* end confdefs.h.  */
34611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34613 #define $ac_func innocuous_$ac_func
34614
34615 /* System header to define __stub macros and hopefully few prototypes,
34616     which can conflict with char $ac_func (); below.
34617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34618     <limits.h> exists even on freestanding compilers.  */
34619
34620 #ifdef __STDC__
34621 # include <limits.h>
34622 #else
34623 # include <assert.h>
34624 #endif
34625
34626 #undef $ac_func
34627
34628 /* Override any GCC internal prototype to avoid an error.
34629    Use char because int might match the return type of a GCC
34630    builtin and then its argument prototype would still apply.  */
34631 #ifdef __cplusplus
34632 extern "C"
34633 #endif
34634 char $ac_func ();
34635 /* The GNU C library defines this for functions which it implements
34636     to always fail with ENOSYS.  Some functions are actually named
34637     something starting with __ and the normal name is an alias.  */
34638 #if defined __stub_$ac_func || defined __stub___$ac_func
34639 choke me
34640 #endif
34641
34642 int
34643 main ()
34644 {
34645 return $ac_func ();
34646   ;
34647   return 0;
34648 }
34649 _ACEOF
34650 rm -f conftest.$ac_objext conftest$ac_exeext
34651 if { (ac_try="$ac_link"
34652 case "(($ac_try" in
34653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654   *) ac_try_echo=$ac_try;;
34655 esac
34656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34657 $as_echo "$ac_try_echo") >&5
34658   (eval "$ac_link") 2>conftest.er1
34659   ac_status=$?
34660   grep -v '^ *+' conftest.er1 >conftest.err
34661   rm -f conftest.er1
34662   cat conftest.err >&5
34663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664   (exit $ac_status); } && {
34665          test -z "$ac_c_werror_flag" ||
34666          test ! -s conftest.err
34667        } && test -s conftest$ac_exeext && {
34668          test "$cross_compiling" = yes ||
34669          $as_test_x conftest$ac_exeext
34670        }; then
34671   eval "$as_ac_var=yes"
34672 else
34673   $as_echo "$as_me: failed program was:" >&5
34674 sed 's/^/| /' conftest.$ac_ext >&5
34675
34676         eval "$as_ac_var=no"
34677 fi
34678
34679 rm -rf conftest.dSYM
34680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34681       conftest$ac_exeext conftest.$ac_ext
34682 fi
34683 ac_res=`eval 'as_val=${'$as_ac_var'}
34684                  $as_echo "$as_val"'`
34685                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34686 $as_echo "$ac_res" >&6; }
34687 as_val=`eval 'as_val=${'$as_ac_var'}
34688                  $as_echo "$as_val"'`
34689    if test "x$as_val" = x""yes; then
34690   cat >>confdefs.h <<_ACEOF
34691 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34692 _ACEOF
34693
34694 else
34695   case " $LIBOBJS " in
34696   *" $ac_func.$ac_objext "* ) ;;
34697   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34698  ;;
34699 esac
34700
34701 fi
34702 done
34703
34704
34705   if test $ac_cv_func_mkstemp = no; then
34706     utils_cv_func_mkstemp_limitations=yes
34707   else
34708     { $as_echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
34709 $as_echo_n "checking for mkstemp limitations... " >&6; }
34710 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
34711   $as_echo_n "(cached) " >&6
34712 else
34713
34714         if test "$cross_compiling" = yes; then
34715   utils_cv_func_mkstemp_limitations=yes
34716
34717 else
34718   cat >conftest.$ac_ext <<_ACEOF
34719 /* confdefs.h.  */
34720 _ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h.  */
34724
34725 #         include <stdlib.h>
34726           int main ()
34727           {
34728             int i;
34729             for (i = 0; i < 70; i++)
34730               {
34731                 char template[] = "conftestXXXXXX";
34732                 int fd = mkstemp (template);
34733                 if (fd == -1)
34734                   exit (1);
34735                 close (fd);
34736               }
34737             exit (0);
34738           }
34739
34740 _ACEOF
34741 rm -f conftest$ac_exeext
34742 if { (ac_try="$ac_link"
34743 case "(($ac_try" in
34744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34745   *) ac_try_echo=$ac_try;;
34746 esac
34747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34748 $as_echo "$ac_try_echo") >&5
34749   (eval "$ac_link") 2>&5
34750   ac_status=$?
34751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34753   { (case "(($ac_try" in
34754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34755   *) ac_try_echo=$ac_try;;
34756 esac
34757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34758 $as_echo "$ac_try_echo") >&5
34759   (eval "$ac_try") 2>&5
34760   ac_status=$?
34761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762   (exit $ac_status); }; }; then
34763   utils_cv_func_mkstemp_limitations=no
34764 else
34765   $as_echo "$as_me: program exited with status $ac_status" >&5
34766 $as_echo "$as_me: failed program was:" >&5
34767 sed 's/^/| /' conftest.$ac_ext >&5
34768
34769 ( exit $ac_status )
34770 utils_cv_func_mkstemp_limitations=yes
34771 fi
34772 rm -rf conftest.dSYM
34773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34774 fi
34775
34776
34777
34778
34779 fi
34780 { $as_echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
34781 $as_echo "$utils_cv_func_mkstemp_limitations" >&6; }
34782   fi
34783
34784   if test $utils_cv_func_mkstemp_limitations = yes; then
34785     case " $LIBOBJS " in
34786   *" mkstemp.$ac_objext "* ) ;;
34787   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
34788  ;;
34789 esac
34790
34791     case " $LIBOBJS " in
34792   *" tempname.$ac_objext "* ) ;;
34793   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
34794  ;;
34795 esac
34796
34797
34798 cat >>confdefs.h <<\_ACEOF
34799 #define mkstemp rpl_mkstemp
34800 _ACEOF
34801
34802
34803
34804
34805
34806
34807
34808
34809   :
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822 for ac_header in stdint.h
34823 do
34824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34826   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34827 $as_echo_n "checking for $ac_header... " >&6; }
34828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34829   $as_echo_n "(cached) " >&6
34830 fi
34831 ac_res=`eval 'as_val=${'$as_ac_Header'}
34832                  $as_echo "$as_val"'`
34833                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34834 $as_echo "$ac_res" >&6; }
34835 else
34836   # Is the header compilable?
34837 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34838 $as_echo_n "checking $ac_header usability... " >&6; }
34839 cat >conftest.$ac_ext <<_ACEOF
34840 /* confdefs.h.  */
34841 _ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h.  */
34845 $ac_includes_default
34846 #include <$ac_header>
34847 _ACEOF
34848 rm -f conftest.$ac_objext
34849 if { (ac_try="$ac_compile"
34850 case "(($ac_try" in
34851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34852   *) ac_try_echo=$ac_try;;
34853 esac
34854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34855 $as_echo "$ac_try_echo") >&5
34856   (eval "$ac_compile") 2>conftest.er1
34857   ac_status=$?
34858   grep -v '^ *+' conftest.er1 >conftest.err
34859   rm -f conftest.er1
34860   cat conftest.err >&5
34861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862   (exit $ac_status); } && {
34863          test -z "$ac_c_werror_flag" ||
34864          test ! -s conftest.err
34865        } && test -s conftest.$ac_objext; then
34866   ac_header_compiler=yes
34867 else
34868   $as_echo "$as_me: failed program was:" >&5
34869 sed 's/^/| /' conftest.$ac_ext >&5
34870
34871         ac_header_compiler=no
34872 fi
34873
34874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34876 $as_echo "$ac_header_compiler" >&6; }
34877
34878 # Is the header present?
34879 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34880 $as_echo_n "checking $ac_header presence... " >&6; }
34881 cat >conftest.$ac_ext <<_ACEOF
34882 /* confdefs.h.  */
34883 _ACEOF
34884 cat confdefs.h >>conftest.$ac_ext
34885 cat >>conftest.$ac_ext <<_ACEOF
34886 /* end confdefs.h.  */
34887 #include <$ac_header>
34888 _ACEOF
34889 if { (ac_try="$ac_cpp conftest.$ac_ext"
34890 case "(($ac_try" in
34891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34892   *) ac_try_echo=$ac_try;;
34893 esac
34894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34895 $as_echo "$ac_try_echo") >&5
34896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34897   ac_status=$?
34898   grep -v '^ *+' conftest.er1 >conftest.err
34899   rm -f conftest.er1
34900   cat conftest.err >&5
34901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); } >/dev/null && {
34903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34904          test ! -s conftest.err
34905        }; then
34906   ac_header_preproc=yes
34907 else
34908   $as_echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.$ac_ext >&5
34910
34911   ac_header_preproc=no
34912 fi
34913
34914 rm -f conftest.err conftest.$ac_ext
34915 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34916 $as_echo "$ac_header_preproc" >&6; }
34917
34918 # So?  What about this header?
34919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34920   yes:no: )
34921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34922 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34924 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34925     ac_header_preproc=yes
34926     ;;
34927   no:yes:* )
34928     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34929 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34931 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34933 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34935 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34937 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34939 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34940
34941     ;;
34942 esac
34943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34944 $as_echo_n "checking for $ac_header... " >&6; }
34945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34946   $as_echo_n "(cached) " >&6
34947 else
34948   eval "$as_ac_Header=\$ac_header_preproc"
34949 fi
34950 ac_res=`eval 'as_val=${'$as_ac_Header'}
34951                  $as_echo "$as_val"'`
34952                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34953 $as_echo "$ac_res" >&6; }
34954
34955 fi
34956 as_val=`eval 'as_val=${'$as_ac_Header'}
34957                  $as_echo "$as_val"'`
34958    if test "x$as_val" = x""yes; then
34959   cat >>confdefs.h <<_ACEOF
34960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34961 _ACEOF
34962
34963 fi
34964
34965 done
34966
34967
34968
34969
34970 for ac_func in __secure_getenv gettimeofday lstat
34971 do
34972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34973 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34974 $as_echo_n "checking for $ac_func... " >&6; }
34975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34976   $as_echo_n "(cached) " >&6
34977 else
34978   cat >conftest.$ac_ext <<_ACEOF
34979 /* confdefs.h.  */
34980 _ACEOF
34981 cat confdefs.h >>conftest.$ac_ext
34982 cat >>conftest.$ac_ext <<_ACEOF
34983 /* end confdefs.h.  */
34984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34986 #define $ac_func innocuous_$ac_func
34987
34988 /* System header to define __stub macros and hopefully few prototypes,
34989     which can conflict with char $ac_func (); below.
34990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34991     <limits.h> exists even on freestanding compilers.  */
34992
34993 #ifdef __STDC__
34994 # include <limits.h>
34995 #else
34996 # include <assert.h>
34997 #endif
34998
34999 #undef $ac_func
35000
35001 /* Override any GCC internal prototype to avoid an error.
35002    Use char because int might match the return type of a GCC
35003    builtin and then its argument prototype would still apply.  */
35004 #ifdef __cplusplus
35005 extern "C"
35006 #endif
35007 char $ac_func ();
35008 /* The GNU C library defines this for functions which it implements
35009     to always fail with ENOSYS.  Some functions are actually named
35010     something starting with __ and the normal name is an alias.  */
35011 #if defined __stub_$ac_func || defined __stub___$ac_func
35012 choke me
35013 #endif
35014
35015 int
35016 main ()
35017 {
35018 return $ac_func ();
35019   ;
35020   return 0;
35021 }
35022 _ACEOF
35023 rm -f conftest.$ac_objext conftest$ac_exeext
35024 if { (ac_try="$ac_link"
35025 case "(($ac_try" in
35026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027   *) ac_try_echo=$ac_try;;
35028 esac
35029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35030 $as_echo "$ac_try_echo") >&5
35031   (eval "$ac_link") 2>conftest.er1
35032   ac_status=$?
35033   grep -v '^ *+' conftest.er1 >conftest.err
35034   rm -f conftest.er1
35035   cat conftest.err >&5
35036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037   (exit $ac_status); } && {
35038          test -z "$ac_c_werror_flag" ||
35039          test ! -s conftest.err
35040        } && test -s conftest$ac_exeext && {
35041          test "$cross_compiling" = yes ||
35042          $as_test_x conftest$ac_exeext
35043        }; then
35044   eval "$as_ac_var=yes"
35045 else
35046   $as_echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35048
35049         eval "$as_ac_var=no"
35050 fi
35051
35052 rm -rf conftest.dSYM
35053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35054       conftest$ac_exeext conftest.$ac_ext
35055 fi
35056 ac_res=`eval 'as_val=${'$as_ac_var'}
35057                  $as_echo "$as_val"'`
35058                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35059 $as_echo "$ac_res" >&6; }
35060 as_val=`eval 'as_val=${'$as_ac_var'}
35061                  $as_echo "$as_val"'`
35062    if test "x$as_val" = x""yes; then
35063   cat >>confdefs.h <<_ACEOF
35064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35065 _ACEOF
35066
35067 fi
35068 done
35069
35070
35071   :
35072
35073
35074
35075
35076
35077   # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
35078
35079     { $as_echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
35080 $as_echo_n "checking whether mkdir accepts only one arg... " >&6; }
35081   cat >conftest.$ac_ext <<_ACEOF
35082 /* confdefs.h.  */
35083 _ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h.  */
35087 #include <sys/types.h>
35088        #include <sys/stat.h>
35089        #include <fcntl.h>
35090 int
35091 main ()
35092 {
35093
35094        mkdir("")
35095
35096   ;
35097   return 0;
35098 }
35099 _ACEOF
35100 rm -f conftest.$ac_objext
35101 if { (ac_try="$ac_compile"
35102 case "(($ac_try" in
35103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35104   *) ac_try_echo=$ac_try;;
35105 esac
35106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35107 $as_echo "$ac_try_echo") >&5
35108   (eval "$ac_compile") 2>conftest.er1
35109   ac_status=$?
35110   grep -v '^ *+' conftest.er1 >conftest.err
35111   rm -f conftest.er1
35112   cat conftest.err >&5
35113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); } && {
35115          test -z "$ac_c_werror_flag" ||
35116          test ! -s conftest.err
35117        } && test -s conftest.$ac_objext; then
35118    { $as_echo "$as_me:$LINENO: result: yes" >&5
35119 $as_echo "yes" >&6; }
35120
35121 cat >>confdefs.h <<\_ACEOF
35122 #define MKDIR_TAKES_ONE_ARG /**/
35123 _ACEOF
35124
35125 else
35126   $as_echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35128
35129          { $as_echo "$as_me:$LINENO: result: no" >&5
35130 $as_echo "no" >&6; }
35131
35132 fi
35133
35134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35135
35136   fi
35137
35138
35139
35140  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35141 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
35142 if test "${ac_cv_c_bigendian+set}" = set; then
35143   $as_echo_n "(cached) " >&6
35144 else
35145   ac_cv_c_bigendian=unknown
35146     # See if we're dealing with a universal compiler.
35147     cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h.  */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h.  */
35153 #ifndef __APPLE_CC__
35154                not a universal capable compiler
35155              #endif
35156              typedef int dummy;
35157
35158 _ACEOF
35159 rm -f conftest.$ac_objext
35160 if { (ac_try="$ac_compile"
35161 case "(($ac_try" in
35162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35163   *) ac_try_echo=$ac_try;;
35164 esac
35165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35166 $as_echo "$ac_try_echo") >&5
35167   (eval "$ac_compile") 2>conftest.er1
35168   ac_status=$?
35169   grep -v '^ *+' conftest.er1 >conftest.err
35170   rm -f conftest.er1
35171   cat conftest.err >&5
35172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); } && {
35174          test -z "$ac_c_werror_flag" ||
35175          test ! -s conftest.err
35176        } && test -s conftest.$ac_objext; then
35177
35178         # Check for potential -arch flags.  It is not universal unless
35179         # there are some -arch flags.  Note that *ppc* also matches
35180         # ppc64.  This check is also rather less than ideal.
35181         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
35182           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
35183         esac
35184 else
35185   $as_echo "$as_me: failed program was:" >&5
35186 sed 's/^/| /' conftest.$ac_ext >&5
35187
35188
35189 fi
35190
35191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35192     if test $ac_cv_c_bigendian = unknown; then
35193       # See if sys/param.h defines the BYTE_ORDER macro.
35194       cat >conftest.$ac_ext <<_ACEOF
35195 /* confdefs.h.  */
35196 _ACEOF
35197 cat confdefs.h >>conftest.$ac_ext
35198 cat >>conftest.$ac_ext <<_ACEOF
35199 /* end confdefs.h.  */
35200 #include <sys/types.h>
35201              #include <sys/param.h>
35202
35203 int
35204 main ()
35205 {
35206 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
35207                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
35208                      && LITTLE_ENDIAN)
35209               bogus endian macros
35210              #endif
35211
35212   ;
35213   return 0;
35214 }
35215 _ACEOF
35216 rm -f conftest.$ac_objext
35217 if { (ac_try="$ac_compile"
35218 case "(($ac_try" in
35219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35220   *) ac_try_echo=$ac_try;;
35221 esac
35222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35223 $as_echo "$ac_try_echo") >&5
35224   (eval "$ac_compile") 2>conftest.er1
35225   ac_status=$?
35226   grep -v '^ *+' conftest.er1 >conftest.err
35227   rm -f conftest.er1
35228   cat conftest.err >&5
35229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230   (exit $ac_status); } && {
35231          test -z "$ac_c_werror_flag" ||
35232          test ! -s conftest.err
35233        } && test -s conftest.$ac_objext; then
35234   # It does; now see whether it defined to BIG_ENDIAN or not.
35235          cat >conftest.$ac_ext <<_ACEOF
35236 /* confdefs.h.  */
35237 _ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h.  */
35241 #include <sys/types.h>
35242                 #include <sys/param.h>
35243
35244 int
35245 main ()
35246 {
35247 #if BYTE_ORDER != BIG_ENDIAN
35248                  not big endian
35249                 #endif
35250
35251   ;
35252   return 0;
35253 }
35254 _ACEOF
35255 rm -f conftest.$ac_objext
35256 if { (ac_try="$ac_compile"
35257 case "(($ac_try" in
35258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35259   *) ac_try_echo=$ac_try;;
35260 esac
35261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35262 $as_echo "$ac_try_echo") >&5
35263   (eval "$ac_compile") 2>conftest.er1
35264   ac_status=$?
35265   grep -v '^ *+' conftest.er1 >conftest.err
35266   rm -f conftest.er1
35267   cat conftest.err >&5
35268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269   (exit $ac_status); } && {
35270          test -z "$ac_c_werror_flag" ||
35271          test ! -s conftest.err
35272        } && test -s conftest.$ac_objext; then
35273   ac_cv_c_bigendian=yes
35274 else
35275   $as_echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35277
35278         ac_cv_c_bigendian=no
35279 fi
35280
35281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35282 else
35283   $as_echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35285
35286
35287 fi
35288
35289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35290     fi
35291     if test $ac_cv_c_bigendian = unknown; then
35292       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
35293       cat >conftest.$ac_ext <<_ACEOF
35294 /* confdefs.h.  */
35295 _ACEOF
35296 cat confdefs.h >>conftest.$ac_ext
35297 cat >>conftest.$ac_ext <<_ACEOF
35298 /* end confdefs.h.  */
35299 #include <limits.h>
35300
35301 int
35302 main ()
35303 {
35304 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
35305               bogus endian macros
35306              #endif
35307
35308   ;
35309   return 0;
35310 }
35311 _ACEOF
35312 rm -f conftest.$ac_objext
35313 if { (ac_try="$ac_compile"
35314 case "(($ac_try" in
35315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35316   *) ac_try_echo=$ac_try;;
35317 esac
35318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35319 $as_echo "$ac_try_echo") >&5
35320   (eval "$ac_compile") 2>conftest.er1
35321   ac_status=$?
35322   grep -v '^ *+' conftest.er1 >conftest.err
35323   rm -f conftest.er1
35324   cat conftest.err >&5
35325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326   (exit $ac_status); } && {
35327          test -z "$ac_c_werror_flag" ||
35328          test ! -s conftest.err
35329        } && test -s conftest.$ac_objext; then
35330   # It does; now see whether it defined to _BIG_ENDIAN or not.
35331          cat >conftest.$ac_ext <<_ACEOF
35332 /* confdefs.h.  */
35333 _ACEOF
35334 cat confdefs.h >>conftest.$ac_ext
35335 cat >>conftest.$ac_ext <<_ACEOF
35336 /* end confdefs.h.  */
35337 #include <limits.h>
35338
35339 int
35340 main ()
35341 {
35342 #ifndef _BIG_ENDIAN
35343                  not big endian
35344                 #endif
35345
35346   ;
35347   return 0;
35348 }
35349 _ACEOF
35350 rm -f conftest.$ac_objext
35351 if { (ac_try="$ac_compile"
35352 case "(($ac_try" in
35353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354   *) ac_try_echo=$ac_try;;
35355 esac
35356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35357 $as_echo "$ac_try_echo") >&5
35358   (eval "$ac_compile") 2>conftest.er1
35359   ac_status=$?
35360   grep -v '^ *+' conftest.er1 >conftest.err
35361   rm -f conftest.er1
35362   cat conftest.err >&5
35363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364   (exit $ac_status); } && {
35365          test -z "$ac_c_werror_flag" ||
35366          test ! -s conftest.err
35367        } && test -s conftest.$ac_objext; then
35368   ac_cv_c_bigendian=yes
35369 else
35370   $as_echo "$as_me: failed program was:" >&5
35371 sed 's/^/| /' conftest.$ac_ext >&5
35372
35373         ac_cv_c_bigendian=no
35374 fi
35375
35376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35377 else
35378   $as_echo "$as_me: failed program was:" >&5
35379 sed 's/^/| /' conftest.$ac_ext >&5
35380
35381
35382 fi
35383
35384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35385     fi
35386     if test $ac_cv_c_bigendian = unknown; then
35387       # Compile a test program.
35388       if test "$cross_compiling" = yes; then
35389   # Try to guess by grepping values from an object file.
35390          cat >conftest.$ac_ext <<_ACEOF
35391 /* confdefs.h.  */
35392 _ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h.  */
35396 short int ascii_mm[] =
35397                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35398                 short int ascii_ii[] =
35399                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35400                 int use_ascii (int i) {
35401                   return ascii_mm[i] + ascii_ii[i];
35402                 }
35403                 short int ebcdic_ii[] =
35404                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35405                 short int ebcdic_mm[] =
35406                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35407                 int use_ebcdic (int i) {
35408                   return ebcdic_mm[i] + ebcdic_ii[i];
35409                 }
35410                 extern int foo;
35411
35412 int
35413 main ()
35414 {
35415 return use_ascii (foo) == use_ebcdic (foo);
35416   ;
35417   return 0;
35418 }
35419 _ACEOF
35420 rm -f conftest.$ac_objext
35421 if { (ac_try="$ac_compile"
35422 case "(($ac_try" in
35423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35424   *) ac_try_echo=$ac_try;;
35425 esac
35426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35427 $as_echo "$ac_try_echo") >&5
35428   (eval "$ac_compile") 2>conftest.er1
35429   ac_status=$?
35430   grep -v '^ *+' conftest.er1 >conftest.err
35431   rm -f conftest.er1
35432   cat conftest.err >&5
35433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434   (exit $ac_status); } && {
35435          test -z "$ac_c_werror_flag" ||
35436          test ! -s conftest.err
35437        } && test -s conftest.$ac_objext; then
35438   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
35439               ac_cv_c_bigendian=yes
35440             fi
35441             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35442               if test "$ac_cv_c_bigendian" = unknown; then
35443                 ac_cv_c_bigendian=no
35444               else
35445                 # finding both strings is unlikely to happen, but who knows?
35446                 ac_cv_c_bigendian=unknown
35447               fi
35448             fi
35449 else
35450   $as_echo "$as_me: failed program was:" >&5
35451 sed 's/^/| /' conftest.$ac_ext >&5
35452
35453
35454 fi
35455
35456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35457 else
35458   cat >conftest.$ac_ext <<_ACEOF
35459 /* confdefs.h.  */
35460 _ACEOF
35461 cat confdefs.h >>conftest.$ac_ext
35462 cat >>conftest.$ac_ext <<_ACEOF
35463 /* end confdefs.h.  */
35464 $ac_includes_default
35465 int
35466 main ()
35467 {
35468
35469              /* Are we little or big endian?  From Harbison&Steele.  */
35470              union
35471              {
35472                long int l;
35473                char c[sizeof (long int)];
35474              } u;
35475              u.l = 1;
35476              return u.c[sizeof (long int) - 1] == 1;
35477
35478   ;
35479   return 0;
35480 }
35481 _ACEOF
35482 rm -f conftest$ac_exeext
35483 if { (ac_try="$ac_link"
35484 case "(($ac_try" in
35485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35486   *) ac_try_echo=$ac_try;;
35487 esac
35488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35489 $as_echo "$ac_try_echo") >&5
35490   (eval "$ac_link") 2>&5
35491   ac_status=$?
35492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35494   { (case "(($ac_try" in
35495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35496   *) ac_try_echo=$ac_try;;
35497 esac
35498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35499 $as_echo "$ac_try_echo") >&5
35500   (eval "$ac_try") 2>&5
35501   ac_status=$?
35502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503   (exit $ac_status); }; }; then
35504   ac_cv_c_bigendian=no
35505 else
35506   $as_echo "$as_me: program exited with status $ac_status" >&5
35507 $as_echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.$ac_ext >&5
35509
35510 ( exit $ac_status )
35511 ac_cv_c_bigendian=yes
35512 fi
35513 rm -rf conftest.dSYM
35514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35515 fi
35516
35517
35518     fi
35519 fi
35520 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35521 $as_echo "$ac_cv_c_bigendian" >&6; }
35522  case $ac_cv_c_bigendian in #(
35523    yes)
35524      cat >>confdefs.h <<\_ACEOF
35525 #define WORDS_BIGENDIAN 1
35526 _ACEOF
35527 ;; #(
35528    no)
35529       ;; #(
35530    universal)
35531
35532 cat >>confdefs.h <<\_ACEOF
35533 #define AC_APPLE_UNIVERSAL_BUILD 1
35534 _ACEOF
35535
35536      ;; #(
35537    *)
35538      { { $as_echo "$as_me:$LINENO: error: unknown endianness
35539  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35540 $as_echo "$as_me: error: unknown endianness
35541  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35542    { (exit 1); exit 1; }; } ;;
35543  esac
35544
35545
35546
35547 for ac_header in byteswap.h linux/compiler.h
35548 do
35549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35551   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35552 $as_echo_n "checking for $ac_header... " >&6; }
35553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35554   $as_echo_n "(cached) " >&6
35555 fi
35556 ac_res=`eval 'as_val=${'$as_ac_Header'}
35557                  $as_echo "$as_val"'`
35558                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35559 $as_echo "$ac_res" >&6; }
35560 else
35561   # Is the header compilable?
35562 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35563 $as_echo_n "checking $ac_header usability... " >&6; }
35564 cat >conftest.$ac_ext <<_ACEOF
35565 /* confdefs.h.  */
35566 _ACEOF
35567 cat confdefs.h >>conftest.$ac_ext
35568 cat >>conftest.$ac_ext <<_ACEOF
35569 /* end confdefs.h.  */
35570 $ac_includes_default
35571 #include <$ac_header>
35572 _ACEOF
35573 rm -f conftest.$ac_objext
35574 if { (ac_try="$ac_compile"
35575 case "(($ac_try" in
35576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35577   *) ac_try_echo=$ac_try;;
35578 esac
35579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35580 $as_echo "$ac_try_echo") >&5
35581   (eval "$ac_compile") 2>conftest.er1
35582   ac_status=$?
35583   grep -v '^ *+' conftest.er1 >conftest.err
35584   rm -f conftest.er1
35585   cat conftest.err >&5
35586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587   (exit $ac_status); } && {
35588          test -z "$ac_c_werror_flag" ||
35589          test ! -s conftest.err
35590        } && test -s conftest.$ac_objext; then
35591   ac_header_compiler=yes
35592 else
35593   $as_echo "$as_me: failed program was:" >&5
35594 sed 's/^/| /' conftest.$ac_ext >&5
35595
35596         ac_header_compiler=no
35597 fi
35598
35599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35601 $as_echo "$ac_header_compiler" >&6; }
35602
35603 # Is the header present?
35604 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35605 $as_echo_n "checking $ac_header presence... " >&6; }
35606 cat >conftest.$ac_ext <<_ACEOF
35607 /* confdefs.h.  */
35608 _ACEOF
35609 cat confdefs.h >>conftest.$ac_ext
35610 cat >>conftest.$ac_ext <<_ACEOF
35611 /* end confdefs.h.  */
35612 #include <$ac_header>
35613 _ACEOF
35614 if { (ac_try="$ac_cpp conftest.$ac_ext"
35615 case "(($ac_try" in
35616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35617   *) ac_try_echo=$ac_try;;
35618 esac
35619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35620 $as_echo "$ac_try_echo") >&5
35621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35622   ac_status=$?
35623   grep -v '^ *+' conftest.er1 >conftest.err
35624   rm -f conftest.er1
35625   cat conftest.err >&5
35626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627   (exit $ac_status); } >/dev/null && {
35628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35629          test ! -s conftest.err
35630        }; then
35631   ac_header_preproc=yes
35632 else
35633   $as_echo "$as_me: failed program was:" >&5
35634 sed 's/^/| /' conftest.$ac_ext >&5
35635
35636   ac_header_preproc=no
35637 fi
35638
35639 rm -f conftest.err conftest.$ac_ext
35640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35641 $as_echo "$ac_header_preproc" >&6; }
35642
35643 # So?  What about this header?
35644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35645   yes:no: )
35646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35647 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35649 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35650     ac_header_preproc=yes
35651     ;;
35652   no:yes:* )
35653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35654 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35656 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35657     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35658 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35659     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35660 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35664 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35665
35666     ;;
35667 esac
35668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35669 $as_echo_n "checking for $ac_header... " >&6; }
35670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35671   $as_echo_n "(cached) " >&6
35672 else
35673   eval "$as_ac_Header=\$ac_header_preproc"
35674 fi
35675 ac_res=`eval 'as_val=${'$as_ac_Header'}
35676                  $as_echo "$as_val"'`
35677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35678 $as_echo "$ac_res" >&6; }
35679
35680 fi
35681 as_val=`eval 'as_val=${'$as_ac_Header'}
35682                  $as_echo "$as_val"'`
35683    if test "x$as_val" = x""yes; then
35684   cat >>confdefs.h <<_ACEOF
35685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35686 _ACEOF
35687
35688 fi
35689
35690 done
35691
35692
35693
35694
35695 for ac_func in getrusage sched_setscheduler pthread_setschedparam
35696 do
35697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35698 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35699 $as_echo_n "checking for $ac_func... " >&6; }
35700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35701   $as_echo_n "(cached) " >&6
35702 else
35703   cat >conftest.$ac_ext <<_ACEOF
35704 /* confdefs.h.  */
35705 _ACEOF
35706 cat confdefs.h >>conftest.$ac_ext
35707 cat >>conftest.$ac_ext <<_ACEOF
35708 /* end confdefs.h.  */
35709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35711 #define $ac_func innocuous_$ac_func
35712
35713 /* System header to define __stub macros and hopefully few prototypes,
35714     which can conflict with char $ac_func (); below.
35715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35716     <limits.h> exists even on freestanding compilers.  */
35717
35718 #ifdef __STDC__
35719 # include <limits.h>
35720 #else
35721 # include <assert.h>
35722 #endif
35723
35724 #undef $ac_func
35725
35726 /* Override any GCC internal prototype to avoid an error.
35727    Use char because int might match the return type of a GCC
35728    builtin and then its argument prototype would still apply.  */
35729 #ifdef __cplusplus
35730 extern "C"
35731 #endif
35732 char $ac_func ();
35733 /* The GNU C library defines this for functions which it implements
35734     to always fail with ENOSYS.  Some functions are actually named
35735     something starting with __ and the normal name is an alias.  */
35736 #if defined __stub_$ac_func || defined __stub___$ac_func
35737 choke me
35738 #endif
35739
35740 int
35741 main ()
35742 {
35743 return $ac_func ();
35744   ;
35745   return 0;
35746 }
35747 _ACEOF
35748 rm -f conftest.$ac_objext conftest$ac_exeext
35749 if { (ac_try="$ac_link"
35750 case "(($ac_try" in
35751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35752   *) ac_try_echo=$ac_try;;
35753 esac
35754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35755 $as_echo "$ac_try_echo") >&5
35756   (eval "$ac_link") 2>conftest.er1
35757   ac_status=$?
35758   grep -v '^ *+' conftest.er1 >conftest.err
35759   rm -f conftest.er1
35760   cat conftest.err >&5
35761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762   (exit $ac_status); } && {
35763          test -z "$ac_c_werror_flag" ||
35764          test ! -s conftest.err
35765        } && test -s conftest$ac_exeext && {
35766          test "$cross_compiling" = yes ||
35767          $as_test_x conftest$ac_exeext
35768        }; then
35769   eval "$as_ac_var=yes"
35770 else
35771   $as_echo "$as_me: failed program was:" >&5
35772 sed 's/^/| /' conftest.$ac_ext >&5
35773
35774         eval "$as_ac_var=no"
35775 fi
35776
35777 rm -rf conftest.dSYM
35778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35779       conftest$ac_exeext conftest.$ac_ext
35780 fi
35781 ac_res=`eval 'as_val=${'$as_ac_var'}
35782                  $as_echo "$as_val"'`
35783                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35784 $as_echo "$ac_res" >&6; }
35785 as_val=`eval 'as_val=${'$as_ac_var'}
35786                  $as_echo "$as_val"'`
35787    if test "x$as_val" = x""yes; then
35788   cat >>confdefs.h <<_ACEOF
35789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35790 _ACEOF
35791
35792 fi
35793 done
35794
35795
35796
35797 for ac_func in sigaction snprintf
35798 do
35799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35800 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35801 $as_echo_n "checking for $ac_func... " >&6; }
35802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35803   $as_echo_n "(cached) " >&6
35804 else
35805   cat >conftest.$ac_ext <<_ACEOF
35806 /* confdefs.h.  */
35807 _ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h.  */
35811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35813 #define $ac_func innocuous_$ac_func
35814
35815 /* System header to define __stub macros and hopefully few prototypes,
35816     which can conflict with char $ac_func (); below.
35817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35818     <limits.h> exists even on freestanding compilers.  */
35819
35820 #ifdef __STDC__
35821 # include <limits.h>
35822 #else
35823 # include <assert.h>
35824 #endif
35825
35826 #undef $ac_func
35827
35828 /* Override any GCC internal prototype to avoid an error.
35829    Use char because int might match the return type of a GCC
35830    builtin and then its argument prototype would still apply.  */
35831 #ifdef __cplusplus
35832 extern "C"
35833 #endif
35834 char $ac_func ();
35835 /* The GNU C library defines this for functions which it implements
35836     to always fail with ENOSYS.  Some functions are actually named
35837     something starting with __ and the normal name is an alias.  */
35838 #if defined __stub_$ac_func || defined __stub___$ac_func
35839 choke me
35840 #endif
35841
35842 int
35843 main ()
35844 {
35845 return $ac_func ();
35846   ;
35847   return 0;
35848 }
35849 _ACEOF
35850 rm -f conftest.$ac_objext conftest$ac_exeext
35851 if { (ac_try="$ac_link"
35852 case "(($ac_try" in
35853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35854   *) ac_try_echo=$ac_try;;
35855 esac
35856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35857 $as_echo "$ac_try_echo") >&5
35858   (eval "$ac_link") 2>conftest.er1
35859   ac_status=$?
35860   grep -v '^ *+' conftest.er1 >conftest.err
35861   rm -f conftest.er1
35862   cat conftest.err >&5
35863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); } && {
35865          test -z "$ac_c_werror_flag" ||
35866          test ! -s conftest.err
35867        } && test -s conftest$ac_exeext && {
35868          test "$cross_compiling" = yes ||
35869          $as_test_x conftest$ac_exeext
35870        }; then
35871   eval "$as_ac_var=yes"
35872 else
35873   $as_echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35875
35876         eval "$as_ac_var=no"
35877 fi
35878
35879 rm -rf conftest.dSYM
35880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35881       conftest$ac_exeext conftest.$ac_ext
35882 fi
35883 ac_res=`eval 'as_val=${'$as_ac_var'}
35884                  $as_echo "$as_val"'`
35885                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35886 $as_echo "$ac_res" >&6; }
35887 as_val=`eval 'as_val=${'$as_ac_var'}
35888                  $as_echo "$as_val"'`
35889    if test "x$as_val" = x""yes; then
35890   cat >>confdefs.h <<_ACEOF
35891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35892 _ACEOF
35893
35894 fi
35895 done
35896
35897
35898
35899     libusbok=yes
35900
35901
35902
35903 pkg_failed=no
35904 { $as_echo "$as_me:$LINENO: checking for USB" >&5
35905 $as_echo_n "checking for USB... " >&6; }
35906
35907 if test -n "$PKG_CONFIG"; then
35908     if test -n "$USB_CFLAGS"; then
35909         pkg_cv_USB_CFLAGS="$USB_CFLAGS"
35910     else
35911         if test -n "$PKG_CONFIG" && \
35912     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
35913   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
35914   ac_status=$?
35915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35916   (exit $ac_status); }; then
35917   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
35918 else
35919   pkg_failed=yes
35920 fi
35921     fi
35922 else
35923         pkg_failed=untried
35924 fi
35925
35926 if test x$cross_compiling = xyes
35927 then
35928     if test -n "$PKG_CONFIG"; then
35929     if test -n "$USB_LIBS"; then
35930         pkg_cv_USB_LIBS="$USB_LIBS"
35931     else
35932         if test -n "$PKG_CONFIG" && \
35933     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
35934   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
35935   ac_status=$?
35936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937   (exit $ac_status); }; then
35938   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb" 2>/dev/null`
35939 else
35940   pkg_failed=yes
35941 fi
35942     fi
35943 else
35944         pkg_failed=untried
35945 fi
35946     _pkg_tmp=
35947   for flag in $pkg_cv_USB_LIBS; do
35948     case $flag in
35949     (-L/lib* | -L/usr/lib* )       ;; # ignore
35950     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
35951     esac
35952   done
35953   pkg_cv_USB_LIBS="$_pkg_tmp"
35954 else
35955   if test -n "$PKG_CONFIG"; then
35956     if test -n "$USB_LIBS"; then
35957         pkg_cv_USB_LIBS="$USB_LIBS"
35958     else
35959         if test -n "$PKG_CONFIG" && \
35960     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
35961   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
35962   ac_status=$?
35963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); }; then
35965   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb" 2>/dev/null`
35966 else
35967   pkg_failed=yes
35968 fi
35969     fi
35970 else
35971         pkg_failed=untried
35972 fi
35973 fi
35974
35975 if test -n "$PKG_CONFIG"; then
35976     if test -n "$USB_INCLUDEDIR"; then
35977         pkg_cv_USB_INCLUDEDIR="$USB_INCLUDEDIR"
35978     else
35979         if test -n "$PKG_CONFIG" && \
35980     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
35981   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
35982   ac_status=$?
35983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984   (exit $ac_status); }; then
35985   pkg_cv_USB_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "libusb" 2>/dev/null`
35986 else
35987   pkg_failed=yes
35988 fi
35989     fi
35990 else
35991         pkg_failed=untried
35992 fi
35993
35994
35995
35996
35997 if test $pkg_failed = yes; then
35998
35999 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36000         _pkg_short_errors_supported=yes
36001 else
36002         _pkg_short_errors_supported=no
36003 fi
36004         if test $_pkg_short_errors_supported = yes; then
36005                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb"`
36006         else
36007                 USB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb"`
36008         fi
36009         # Put the nasty error message in config.log where it belongs
36010         echo "$USB_PKG_ERRORS" >&5
36011
36012         { $as_echo "$as_me:$LINENO: result: no" >&5
36013 $as_echo "no" >&6; }
36014
36015         ac_ext=c
36016 ac_cpp='$CPP $CPPFLAGS'
36017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36020
36021
36022
36023 for ac_header in usb.h
36024 do
36025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36027   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36028 $as_echo_n "checking for $ac_header... " >&6; }
36029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36030   $as_echo_n "(cached) " >&6
36031 fi
36032 ac_res=`eval 'as_val=${'$as_ac_Header'}
36033                  $as_echo "$as_val"'`
36034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36035 $as_echo "$ac_res" >&6; }
36036 else
36037   # Is the header compilable?
36038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36039 $as_echo_n "checking $ac_header usability... " >&6; }
36040 cat >conftest.$ac_ext <<_ACEOF
36041 /* confdefs.h.  */
36042 _ACEOF
36043 cat confdefs.h >>conftest.$ac_ext
36044 cat >>conftest.$ac_ext <<_ACEOF
36045 /* end confdefs.h.  */
36046 $ac_includes_default
36047 #include <$ac_header>
36048 _ACEOF
36049 rm -f conftest.$ac_objext
36050 if { (ac_try="$ac_compile"
36051 case "(($ac_try" in
36052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36053   *) ac_try_echo=$ac_try;;
36054 esac
36055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36056 $as_echo "$ac_try_echo") >&5
36057   (eval "$ac_compile") 2>conftest.er1
36058   ac_status=$?
36059   grep -v '^ *+' conftest.er1 >conftest.err
36060   rm -f conftest.er1
36061   cat conftest.err >&5
36062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063   (exit $ac_status); } && {
36064          test -z "$ac_c_werror_flag" ||
36065          test ! -s conftest.err
36066        } && test -s conftest.$ac_objext; then
36067   ac_header_compiler=yes
36068 else
36069   $as_echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36071
36072         ac_header_compiler=no
36073 fi
36074
36075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36077 $as_echo "$ac_header_compiler" >&6; }
36078
36079 # Is the header present?
36080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36081 $as_echo_n "checking $ac_header presence... " >&6; }
36082 cat >conftest.$ac_ext <<_ACEOF
36083 /* confdefs.h.  */
36084 _ACEOF
36085 cat confdefs.h >>conftest.$ac_ext
36086 cat >>conftest.$ac_ext <<_ACEOF
36087 /* end confdefs.h.  */
36088 #include <$ac_header>
36089 _ACEOF
36090 if { (ac_try="$ac_cpp conftest.$ac_ext"
36091 case "(($ac_try" in
36092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36093   *) ac_try_echo=$ac_try;;
36094 esac
36095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36096 $as_echo "$ac_try_echo") >&5
36097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36098   ac_status=$?
36099   grep -v '^ *+' conftest.er1 >conftest.err
36100   rm -f conftest.er1
36101   cat conftest.err >&5
36102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103   (exit $ac_status); } >/dev/null && {
36104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36105          test ! -s conftest.err
36106        }; then
36107   ac_header_preproc=yes
36108 else
36109   $as_echo "$as_me: failed program was:" >&5
36110 sed 's/^/| /' conftest.$ac_ext >&5
36111
36112   ac_header_preproc=no
36113 fi
36114
36115 rm -f conftest.err conftest.$ac_ext
36116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36117 $as_echo "$ac_header_preproc" >&6; }
36118
36119 # So?  What about this header?
36120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36121   yes:no: )
36122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36126     ac_header_preproc=yes
36127     ;;
36128   no:yes:* )
36129     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36131     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36132 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36136 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36141
36142     ;;
36143 esac
36144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36145 $as_echo_n "checking for $ac_header... " >&6; }
36146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36147   $as_echo_n "(cached) " >&6
36148 else
36149   eval "$as_ac_Header=\$ac_header_preproc"
36150 fi
36151 ac_res=`eval 'as_val=${'$as_ac_Header'}
36152                  $as_echo "$as_val"'`
36153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36154 $as_echo "$ac_res" >&6; }
36155
36156 fi
36157 as_val=`eval 'as_val=${'$as_ac_Header'}
36158                  $as_echo "$as_val"'`
36159    if test "x$as_val" = x""yes; then
36160   cat >>confdefs.h <<_ACEOF
36161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36162 _ACEOF
36163
36164 else
36165   libusbok=no; { $as_echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
36166 $as_echo "USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
36167 fi
36168
36169 done
36170
36171
36172         save_LIBS="$LIBS"
36173         case "$host_os" in
36174           darwin*)
36175             LIBS="$LIBS -lIOKit"
36176             ;;
36177           *) ;;
36178         esac
36179
36180         { $as_echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
36181 $as_echo_n "checking for library containing usb_bulk_write... " >&6; }
36182 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
36183   $as_echo_n "(cached) " >&6
36184 else
36185   ac_func_search_save_LIBS=$LIBS
36186 cat >conftest.$ac_ext <<_ACEOF
36187 /* confdefs.h.  */
36188 _ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h.  */
36192
36193 /* Override any GCC internal prototype to avoid an error.
36194    Use char because int might match the return type of a GCC
36195    builtin and then its argument prototype would still apply.  */
36196 #ifdef __cplusplus
36197 extern "C"
36198 #endif
36199 char usb_bulk_write ();
36200 int
36201 main ()
36202 {
36203 return usb_bulk_write ();
36204   ;
36205   return 0;
36206 }
36207 _ACEOF
36208 for ac_lib in '' usb; do
36209   if test -z "$ac_lib"; then
36210     ac_res="none required"
36211   else
36212     ac_res=-l$ac_lib
36213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36214   fi
36215   rm -f conftest.$ac_objext conftest$ac_exeext
36216 if { (ac_try="$ac_link"
36217 case "(($ac_try" in
36218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36219   *) ac_try_echo=$ac_try;;
36220 esac
36221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36222 $as_echo "$ac_try_echo") >&5
36223   (eval "$ac_link") 2>conftest.er1
36224   ac_status=$?
36225   grep -v '^ *+' conftest.er1 >conftest.err
36226   rm -f conftest.er1
36227   cat conftest.err >&5
36228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36229   (exit $ac_status); } && {
36230          test -z "$ac_c_werror_flag" ||
36231          test ! -s conftest.err
36232        } && test -s conftest$ac_exeext && {
36233          test "$cross_compiling" = yes ||
36234          $as_test_x conftest$ac_exeext
36235        }; then
36236   ac_cv_search_usb_bulk_write=$ac_res
36237 else
36238   $as_echo "$as_me: failed program was:" >&5
36239 sed 's/^/| /' conftest.$ac_ext >&5
36240
36241
36242 fi
36243
36244 rm -rf conftest.dSYM
36245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36246       conftest$ac_exeext
36247   if test "${ac_cv_search_usb_bulk_write+set}" = set; then
36248   break
36249 fi
36250 done
36251 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
36252   :
36253 else
36254   ac_cv_search_usb_bulk_write=no
36255 fi
36256 rm conftest.$ac_ext
36257 LIBS=$ac_func_search_save_LIBS
36258 fi
36259 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
36260 $as_echo "$ac_cv_search_usb_bulk_write" >&6; }
36261 ac_res=$ac_cv_search_usb_bulk_write
36262 if test "$ac_res" != no; then
36263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36264   USB_LIBS="$LIBS"
36265 else
36266   libusbok=no; { $as_echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
36267 $as_echo "USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
36268 fi
36269
36270
36271         LIBS="$save_LIBS"
36272
36273         ac_ext=c
36274 ac_cpp='$CPP $CPPFLAGS'
36275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36278
36279
36280 elif test $pkg_failed = untried; then
36281
36282         ac_ext=c
36283 ac_cpp='$CPP $CPPFLAGS'
36284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36287
36288
36289
36290 for ac_header in usb.h
36291 do
36292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36294   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36295 $as_echo_n "checking for $ac_header... " >&6; }
36296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36297   $as_echo_n "(cached) " >&6
36298 fi
36299 ac_res=`eval 'as_val=${'$as_ac_Header'}
36300                  $as_echo "$as_val"'`
36301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36302 $as_echo "$ac_res" >&6; }
36303 else
36304   # Is the header compilable?
36305 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36306 $as_echo_n "checking $ac_header usability... " >&6; }
36307 cat >conftest.$ac_ext <<_ACEOF
36308 /* confdefs.h.  */
36309 _ACEOF
36310 cat confdefs.h >>conftest.$ac_ext
36311 cat >>conftest.$ac_ext <<_ACEOF
36312 /* end confdefs.h.  */
36313 $ac_includes_default
36314 #include <$ac_header>
36315 _ACEOF
36316 rm -f conftest.$ac_objext
36317 if { (ac_try="$ac_compile"
36318 case "(($ac_try" in
36319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36320   *) ac_try_echo=$ac_try;;
36321 esac
36322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36323 $as_echo "$ac_try_echo") >&5
36324   (eval "$ac_compile") 2>conftest.er1
36325   ac_status=$?
36326   grep -v '^ *+' conftest.er1 >conftest.err
36327   rm -f conftest.er1
36328   cat conftest.err >&5
36329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330   (exit $ac_status); } && {
36331          test -z "$ac_c_werror_flag" ||
36332          test ! -s conftest.err
36333        } && test -s conftest.$ac_objext; then
36334   ac_header_compiler=yes
36335 else
36336   $as_echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36338
36339         ac_header_compiler=no
36340 fi
36341
36342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36343 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36344 $as_echo "$ac_header_compiler" >&6; }
36345
36346 # Is the header present?
36347 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36348 $as_echo_n "checking $ac_header presence... " >&6; }
36349 cat >conftest.$ac_ext <<_ACEOF
36350 /* confdefs.h.  */
36351 _ACEOF
36352 cat confdefs.h >>conftest.$ac_ext
36353 cat >>conftest.$ac_ext <<_ACEOF
36354 /* end confdefs.h.  */
36355 #include <$ac_header>
36356 _ACEOF
36357 if { (ac_try="$ac_cpp conftest.$ac_ext"
36358 case "(($ac_try" in
36359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36360   *) ac_try_echo=$ac_try;;
36361 esac
36362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36363 $as_echo "$ac_try_echo") >&5
36364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36365   ac_status=$?
36366   grep -v '^ *+' conftest.er1 >conftest.err
36367   rm -f conftest.er1
36368   cat conftest.err >&5
36369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370   (exit $ac_status); } >/dev/null && {
36371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36372          test ! -s conftest.err
36373        }; then
36374   ac_header_preproc=yes
36375 else
36376   $as_echo "$as_me: failed program was:" >&5
36377 sed 's/^/| /' conftest.$ac_ext >&5
36378
36379   ac_header_preproc=no
36380 fi
36381
36382 rm -f conftest.err conftest.$ac_ext
36383 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36384 $as_echo "$ac_header_preproc" >&6; }
36385
36386 # So?  What about this header?
36387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36388   yes:no: )
36389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36390 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36393     ac_header_preproc=yes
36394     ;;
36395   no:yes:* )
36396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36397 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36399 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36400     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36401 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36402     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36403 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36404     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36405 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36407 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36408
36409     ;;
36410 esac
36411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36412 $as_echo_n "checking for $ac_header... " >&6; }
36413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36414   $as_echo_n "(cached) " >&6
36415 else
36416   eval "$as_ac_Header=\$ac_header_preproc"
36417 fi
36418 ac_res=`eval 'as_val=${'$as_ac_Header'}
36419                  $as_echo "$as_val"'`
36420                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36421 $as_echo "$ac_res" >&6; }
36422
36423 fi
36424 as_val=`eval 'as_val=${'$as_ac_Header'}
36425                  $as_echo "$as_val"'`
36426    if test "x$as_val" = x""yes; then
36427   cat >>confdefs.h <<_ACEOF
36428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36429 _ACEOF
36430
36431 else
36432   libusbok=no; { $as_echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
36433 $as_echo "USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
36434 fi
36435
36436 done
36437
36438
36439         save_LIBS="$LIBS"
36440         case "$host_os" in
36441           darwin*)
36442             LIBS="$LIBS -lIOKit"
36443             ;;
36444           *) ;;
36445         esac
36446
36447         { $as_echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
36448 $as_echo_n "checking for library containing usb_bulk_write... " >&6; }
36449 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
36450   $as_echo_n "(cached) " >&6
36451 else
36452   ac_func_search_save_LIBS=$LIBS
36453 cat >conftest.$ac_ext <<_ACEOF
36454 /* confdefs.h.  */
36455 _ACEOF
36456 cat confdefs.h >>conftest.$ac_ext
36457 cat >>conftest.$ac_ext <<_ACEOF
36458 /* end confdefs.h.  */
36459
36460 /* Override any GCC internal prototype to avoid an error.
36461    Use char because int might match the return type of a GCC
36462    builtin and then its argument prototype would still apply.  */
36463 #ifdef __cplusplus
36464 extern "C"
36465 #endif
36466 char usb_bulk_write ();
36467 int
36468 main ()
36469 {
36470 return usb_bulk_write ();
36471   ;
36472   return 0;
36473 }
36474 _ACEOF
36475 for ac_lib in '' usb; do
36476   if test -z "$ac_lib"; then
36477     ac_res="none required"
36478   else
36479     ac_res=-l$ac_lib
36480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36481   fi
36482   rm -f conftest.$ac_objext conftest$ac_exeext
36483 if { (ac_try="$ac_link"
36484 case "(($ac_try" in
36485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36486   *) ac_try_echo=$ac_try;;
36487 esac
36488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36489 $as_echo "$ac_try_echo") >&5
36490   (eval "$ac_link") 2>conftest.er1
36491   ac_status=$?
36492   grep -v '^ *+' conftest.er1 >conftest.err
36493   rm -f conftest.er1
36494   cat conftest.err >&5
36495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496   (exit $ac_status); } && {
36497          test -z "$ac_c_werror_flag" ||
36498          test ! -s conftest.err
36499        } && test -s conftest$ac_exeext && {
36500          test "$cross_compiling" = yes ||
36501          $as_test_x conftest$ac_exeext
36502        }; then
36503   ac_cv_search_usb_bulk_write=$ac_res
36504 else
36505   $as_echo "$as_me: failed program was:" >&5
36506 sed 's/^/| /' conftest.$ac_ext >&5
36507
36508
36509 fi
36510
36511 rm -rf conftest.dSYM
36512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36513       conftest$ac_exeext
36514   if test "${ac_cv_search_usb_bulk_write+set}" = set; then
36515   break
36516 fi
36517 done
36518 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
36519   :
36520 else
36521   ac_cv_search_usb_bulk_write=no
36522 fi
36523 rm conftest.$ac_ext
36524 LIBS=$ac_func_search_save_LIBS
36525 fi
36526 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
36527 $as_echo "$ac_cv_search_usb_bulk_write" >&6; }
36528 ac_res=$ac_cv_search_usb_bulk_write
36529 if test "$ac_res" != no; then
36530   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36531   USB_LIBS="$LIBS"
36532 else
36533   libusbok=no; { $as_echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
36534 $as_echo "USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
36535 fi
36536
36537
36538         LIBS="$save_LIBS"
36539
36540         ac_ext=c
36541 ac_cpp='$CPP $CPPFLAGS'
36542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36545
36546
36547 else
36548         USB_CFLAGS=$pkg_cv_USB_CFLAGS
36549         USB_LIBS=$pkg_cv_USB_LIBS
36550         USB_INCLUDEDIR=$pkg_cv_USB_INCLUDEDIR
36551
36552         USB_CPPFLAGS=""
36553         for flag in $USB_CFLAGS; do
36554           case $flag in
36555           -I* | -D* | -U*) USB_CPPFLAGS="$USB_CPPFLAGS $flag" ;;
36556           esac
36557         done
36558         pkg_cv_USB_CPPFLAGS=$USB_CPPFLAGS
36559
36560
36561         { $as_echo "$as_me:$LINENO: result: yes" >&5
36562 $as_echo "yes" >&6; }
36563         :
36564 fi
36565
36566     if test x$libusbok = xyes; then
36567
36568         :
36569     else
36570         passed=no;{ $as_echo "$as_me:$LINENO: result: Unable to find dependency libusb." >&5
36571 $as_echo "Unable to find dependency libusb." >&6; }
36572     fi
36573
36574
36575
36576         sdccok=yes
36577         # Extract the first word of "sdcc", so it can be a program name with args.
36578 set dummy sdcc; ac_word=$2
36579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36580 $as_echo_n "checking for $ac_word... " >&6; }
36581 if test "${ac_cv_prog_XCC+set}" = set; then
36582   $as_echo_n "(cached) " >&6
36583 else
36584   if test -n "$XCC"; then
36585   ac_cv_prog_XCC="$XCC" # Let the user override the test.
36586 else
36587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36588 for as_dir in $PATH
36589 do
36590   IFS=$as_save_IFS
36591   test -z "$as_dir" && as_dir=.
36592   for ac_exec_ext in '' $ac_executable_extensions; do
36593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36594     ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
36595     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36596     break 2
36597   fi
36598 done
36599 done
36600 IFS=$as_save_IFS
36601
36602   test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
36603 fi
36604 fi
36605 XCC=$ac_cv_prog_XCC
36606 if test -n "$XCC"; then
36607   { $as_echo "$as_me:$LINENO: result: $XCC" >&5
36608 $as_echo "$XCC" >&6; }
36609 else
36610   { $as_echo "$as_me:$LINENO: result: no" >&5
36611 $as_echo "no" >&6; }
36612 fi
36613
36614
36615         # Extract the first word of "asx8051", so it can be a program name with args.
36616 set dummy asx8051; ac_word=$2
36617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36618 $as_echo_n "checking for $ac_word... " >&6; }
36619 if test "${ac_cv_prog_XAS+set}" = set; then
36620   $as_echo_n "(cached) " >&6
36621 else
36622   if test -n "$XAS"; then
36623   ac_cv_prog_XAS="$XAS" # Let the user override the test.
36624 else
36625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36626 for as_dir in $PATH
36627 do
36628   IFS=$as_save_IFS
36629   test -z "$as_dir" && as_dir=.
36630   for ac_exec_ext in '' $ac_executable_extensions; do
36631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36632     ac_cv_prog_XAS="asx8051 -plosgff"
36633     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36634     break 2
36635   fi
36636 done
36637 done
36638 IFS=$as_save_IFS
36639
36640   test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
36641 fi
36642 fi
36643 XAS=$ac_cv_prog_XAS
36644 if test -n "$XAS"; then
36645   { $as_echo "$as_me:$LINENO: result: $XAS" >&5
36646 $as_echo "$XAS" >&6; }
36647 else
36648   { $as_echo "$as_me:$LINENO: result: no" >&5
36649 $as_echo "no" >&6; }
36650 fi
36651
36652
36653
36654         if test "$XCC" = "no" -o "$XAS" = "no" ; then
36655                 { $as_echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
36656 $as_echo "USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
36657                 sdccok=no
36658         else
36659                 sdcc_version_min=2.4.0
36660
36661                 sdcc_version=`sdcc --version 2>&1 | \
36662                         sed  's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
36663
36664                 { $as_echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
36665 $as_echo_n "checking sdcc_version \"$sdcc_version\"... " >&6; }
36666
36667                 sdcc_major_version=`echo $sdcc_version | \
36668                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36669                 sdcc_minor_version=`echo $sdcc_version | \
36670                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36671                 sdcc_micro_version=`echo $sdcc_version | \
36672                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36673
36674                 sdcc_major_min=`echo $sdcc_version_min | \
36675                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36676                 sdcc_minor_min=`echo $sdcc_version_min | \
36677                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36678                 sdcc_micro_min=`echo $sdcc_version_min | \
36679                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36680
36681                 sdcc_version_proper=`expr \
36682                         "$sdcc_major_version" \> "$sdcc_major_min" \| \
36683                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
36684                         "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
36685                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
36686                         "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
36687                         "$sdcc_micro_version" \>= "$sdcc_micro_min" `
36688
36689                 if test "$sdcc_version_proper" = "1" ; then
36690                         { $as_echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
36691 $as_echo "$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
36692                 else
36693                         sdccok=no
36694                         { $as_echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net" >&5
36695 $as_echo "USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net" >&6; }
36696                 fi
36697
36698
36699
36700         fi
36701
36702         if test $sdccok = yes; then
36703                 :
36704         else
36705                 passed=no;{ $as_echo "$as_me:$LINENO: result: Unable to find firmware compiler SDCC." >&5
36706 $as_echo "Unable to find firmware compiler SDCC." >&6; }
36707         fi
36708
36709     fi
36710     if test $passed != with; then
36711                 usrp_INCLUDES="-I\${abs_top_srcdir}/usrp/host/lib/legacy \
36712                 -I\${abs_top_srcdir}/usrp/firmware/include \
36713                 -I\${abs_top_builddir}/usrp/host/lib/legacy"
36714         usrp_LA="\${abs_top_builddir}/usrp/host/lib/legacy/libusrp.la"
36715     fi
36716
36717                 case "$host_os" in
36718       darwin*)
36719         usrp_darwin_omnithread_pc_requires="gnuradio-omnithread"
36720         ;;
36721       *)         usrp_darwin_omnithread_pc_requires=""
36722         ;;
36723     esac
36724
36725
36726     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/misc/Makefile usrp/host/lib/Makefile usrp/host/lib/legacy/Makefile usrp/host/lib/legacy/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"
36727
36728
36729
36730
36731     usrp_with=no
36732     if test $passed = no; then
36733         if test x$enable_usrp = xyes; then
36734             { { $as_echo "$as_me:$LINENO: error: Component usrp has errors; stopping." >&5
36735 $as_echo "$as_me: error: Component usrp has errors; stopping." >&2;}
36736    { (exit 1); exit 1; }; }
36737         else
36738             { $as_echo "$as_me:$LINENO: result: Not building component usrp." >&5
36739 $as_echo "Not building component usrp." >&6; }
36740         fi
36741     else
36742         if test $passed = with; then
36743             with_dirs="$with_dirs usrp"
36744
36745     if test "x${usrp_INCLUDES}" != "x"; then
36746         if test "x$with_INCLUDES" = "x"; then
36747             with_INCLUDES="${usrp_INCLUDES}"
36748         else
36749             with_INCLUDES="${usrp_INCLUDES}"" ""$with_INCLUDES"
36750         fi
36751         usrp_INCLUDES=
36752     fi
36753
36754
36755     if test "x${usrp_SWIG_INCLUDES}" != "x"; then
36756         if test "x$with_SWIG_INCLUDES" = "x"; then
36757             with_SWIG_INCLUDES="${usrp_SWIG_INCLUDES}"
36758         else
36759             with_SWIG_INCLUDES="${usrp_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
36760         fi
36761         usrp_SWIG_INCLUDES=
36762     fi
36763
36764
36765     if test "x${usrp_PYDIRPATH}" != "x"; then
36766         if test "x$with_PYDIRPATH" = "x"; then
36767             with_PYDIRPATH="${usrp_PYDIRPATH}"
36768         else
36769             with_PYDIRPATH="${usrp_PYDIRPATH}"":""$with_PYDIRPATH"
36770         fi
36771         usrp_PYDIRPATH=
36772     fi
36773
36774
36775     if test "x${usrp_SWIGDIRPATH}" != "x"; then
36776         if test "x$with_SWIGDIRPATH" = "x"; then
36777             with_SWIGDIRPATH="${usrp_SWIGDIRPATH}"
36778         else
36779             with_SWIGDIRPATH="${usrp_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
36780         fi
36781         usrp_SWIGDIRPATH=
36782     fi
36783
36784
36785     if test "x${usrp_LIBDIRPATH}" != "x"; then
36786         if test "x$with_LIBDIRPATH" = "x"; then
36787             with_LIBDIRPATH="${usrp_LIBDIRPATH}"
36788         else
36789             with_LIBDIRPATH="${usrp_LIBDIRPATH}"":""$with_LIBDIRPATH"
36790         fi
36791         usrp_LIBDIRPATH=
36792     fi
36793
36794             { $as_echo "$as_me:$LINENO: result: Component usrp will be included from a pre-installed library and includes." >&5
36795 $as_echo "Component usrp will be included from a pre-installed library and includes." >&6; }
36796             usrp_with=yes
36797         else
36798             usrp_LDFLAG=
36799             if test x$enable_usrp != xno; then
36800                 :
36801                 build_dirs="$build_dirs usrp"
36802                 { $as_echo "$as_me:$LINENO: result: Component usrp passed configuration checks; building." >&5
36803 $as_echo "Component usrp passed configuration checks; building." >&6; }
36804             else
36805                 passed=no
36806                 { $as_echo "$as_me:$LINENO: result: Component usrp passed configuration checks; but not building." >&5
36807 $as_echo "Component usrp passed configuration checks; but not building." >&6; }
36808             fi
36809         fi
36810     fi
36811     if test $passed = no; then
36812         skipped_dirs="$skipped_dirs usrp"
36813         usrp_skipped=yes
36814     else
36815         usrp_skipped=no
36816     fi
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830     passed=yes
36831     # Check whether --enable-usrp2 was given.
36832 if test "${enable_usrp2+set}" = set; then
36833   enableval=$enable_usrp2;
36834 else
36835
36836         enable_usrp2=$enable_all_components
36837         if test x$enable_all_components = xno; then
36838             passed=no
36839         fi
36840
36841 fi
36842
36843
36844
36845
36846         subdirs="$subdirs usrp2/firmware"
36847
36848
36849
36850     if test $passed != no; then
36851         if test $passed = yes; then
36852                         if test x$gruel_skipped = xyes; then
36853                 { $as_echo "$as_me:$LINENO: result: Component usrp2 requires gruel, which is not being built or specified via pre-installed files." >&5
36854 $as_echo "Component usrp2 requires gruel, which is not being built or specified via pre-installed files." >&6; }
36855                 passed=no
36856             fi
36857         else
36858                         if test x$gruel_with = xno; then
36859                 { { $as_echo "$as_me:$LINENO: error: Component usrp2 requires gruel to be included as --with-gruel[=arg]" >&5
36860 $as_echo "$as_me: error: Component usrp2 requires gruel to be included as --with-gruel[=arg]" >&2;}
36861    { (exit 1); exit 1; }; }
36862             fi
36863         fi
36864     fi
36865
36866
36867     if test $passed != no; then
36868         if test $passed = yes; then
36869                         if test x$omnithread_skipped = xyes; then
36870                 { $as_echo "$as_me:$LINENO: result: Component usrp2 requires omnithread, which is not being built or specified via pre-installed files." >&5
36871 $as_echo "Component usrp2 requires omnithread, which is not being built or specified via pre-installed files." >&6; }
36872                 passed=no
36873             fi
36874         else
36875                         if test x$omnithread_with = xno; then
36876                 { { $as_echo "$as_me:$LINENO: error: Component usrp2 requires omnithread to be included as --with-omnithread[=arg]" >&5
36877 $as_echo "$as_me: error: Component usrp2 requires omnithread to be included as --with-omnithread[=arg]" >&2;}
36878    { (exit 1); exit 1; }; }
36879             fi
36880         fi
36881     fi
36882
36883
36884         { $as_echo "$as_me:$LINENO: checking whether host_os is linux*" >&5
36885 $as_echo_n "checking whether host_os is linux*... " >&6; }
36886     case "$host_os" in
36887       linux*)
36888         { $as_echo "$as_me:$LINENO: result: yes" >&5
36889 $as_echo "yes" >&6; }
36890         ;;
36891       *)
36892         { $as_echo "$as_me:$LINENO: result: no" >&5
36893 $as_echo "no" >&6; }
36894         { $as_echo "$as_me:$LINENO: USRP2 currently requires Linux host OS, not found" >&5
36895 $as_echo "$as_me: USRP2 currently requires Linux host OS, not found" >&6;}
36896         passed="no"
36897         ;;
36898     esac
36899
36900                     if test $passed = yes; then
36901
36902
36903
36904
36905
36906 for ac_header in arpa/inet.h byteswap.h linux/if_packet.h sys/socket.h sys/un.h
36907 do
36908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36910   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36911 $as_echo_n "checking for $ac_header... " >&6; }
36912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36913   $as_echo_n "(cached) " >&6
36914 fi
36915 ac_res=`eval 'as_val=${'$as_ac_Header'}
36916                  $as_echo "$as_val"'`
36917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36918 $as_echo "$ac_res" >&6; }
36919 else
36920   # Is the header compilable?
36921 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36922 $as_echo_n "checking $ac_header usability... " >&6; }
36923 cat >conftest.$ac_ext <<_ACEOF
36924 /* confdefs.h.  */
36925 _ACEOF
36926 cat confdefs.h >>conftest.$ac_ext
36927 cat >>conftest.$ac_ext <<_ACEOF
36928 /* end confdefs.h.  */
36929 $ac_includes_default
36930 #include <$ac_header>
36931 _ACEOF
36932 rm -f conftest.$ac_objext
36933 if { (ac_try="$ac_compile"
36934 case "(($ac_try" in
36935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36936   *) ac_try_echo=$ac_try;;
36937 esac
36938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36939 $as_echo "$ac_try_echo") >&5
36940   (eval "$ac_compile") 2>conftest.er1
36941   ac_status=$?
36942   grep -v '^ *+' conftest.er1 >conftest.err
36943   rm -f conftest.er1
36944   cat conftest.err >&5
36945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946   (exit $ac_status); } && {
36947          test -z "$ac_c_werror_flag" ||
36948          test ! -s conftest.err
36949        } && test -s conftest.$ac_objext; then
36950   ac_header_compiler=yes
36951 else
36952   $as_echo "$as_me: failed program was:" >&5
36953 sed 's/^/| /' conftest.$ac_ext >&5
36954
36955         ac_header_compiler=no
36956 fi
36957
36958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36959 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36960 $as_echo "$ac_header_compiler" >&6; }
36961
36962 # Is the header present?
36963 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36964 $as_echo_n "checking $ac_header presence... " >&6; }
36965 cat >conftest.$ac_ext <<_ACEOF
36966 /* confdefs.h.  */
36967 _ACEOF
36968 cat confdefs.h >>conftest.$ac_ext
36969 cat >>conftest.$ac_ext <<_ACEOF
36970 /* end confdefs.h.  */
36971 #include <$ac_header>
36972 _ACEOF
36973 if { (ac_try="$ac_cpp conftest.$ac_ext"
36974 case "(($ac_try" in
36975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36976   *) ac_try_echo=$ac_try;;
36977 esac
36978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36979 $as_echo "$ac_try_echo") >&5
36980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36981   ac_status=$?
36982   grep -v '^ *+' conftest.er1 >conftest.err
36983   rm -f conftest.er1
36984   cat conftest.err >&5
36985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36986   (exit $ac_status); } >/dev/null && {
36987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36988          test ! -s conftest.err
36989        }; then
36990   ac_header_preproc=yes
36991 else
36992   $as_echo "$as_me: failed program was:" >&5
36993 sed 's/^/| /' conftest.$ac_ext >&5
36994
36995   ac_header_preproc=no
36996 fi
36997
36998 rm -f conftest.err conftest.$ac_ext
36999 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37000 $as_echo "$ac_header_preproc" >&6; }
37001
37002 # So?  What about this header?
37003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37004   yes:no: )
37005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37006 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37009     ac_header_preproc=yes
37010     ;;
37011   no:yes:* )
37012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37013 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37015 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37017 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37018     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37019 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37023 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37024
37025     ;;
37026 esac
37027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37028 $as_echo_n "checking for $ac_header... " >&6; }
37029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37030   $as_echo_n "(cached) " >&6
37031 else
37032   eval "$as_ac_Header=\$ac_header_preproc"
37033 fi
37034 ac_res=`eval 'as_val=${'$as_ac_Header'}
37035                  $as_echo "$as_val"'`
37036                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37037 $as_echo "$ac_res" >&6; }
37038
37039 fi
37040 as_val=`eval 'as_val=${'$as_ac_Header'}
37041                  $as_echo "$as_val"'`
37042    if test "x$as_val" = x""yes; then
37043   cat >>confdefs.h <<_ACEOF
37044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37045 _ACEOF
37046
37047 fi
37048
37049 done
37050
37051         { $as_echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37052 $as_echo_n "checking for struct msghdr.msg_control... " >&6; }
37053 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37054   $as_echo_n "(cached) " >&6
37055 else
37056   cat >conftest.$ac_ext <<_ACEOF
37057 /* confdefs.h.  */
37058 _ACEOF
37059 cat confdefs.h >>conftest.$ac_ext
37060 cat >>conftest.$ac_ext <<_ACEOF
37061 /* end confdefs.h.  */
37062 #define __USE_GNU 1
37063                           #include <sys/types.h>
37064                           #include <sys/socket.h>
37065                           #include <sys/un.h>
37066
37067 int
37068 main ()
37069 {
37070 static struct msghdr ac_aggr;
37071 if (ac_aggr.msg_control)
37072 return 0;
37073   ;
37074   return 0;
37075 }
37076 _ACEOF
37077 rm -f conftest.$ac_objext
37078 if { (ac_try="$ac_compile"
37079 case "(($ac_try" in
37080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37081   *) ac_try_echo=$ac_try;;
37082 esac
37083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37084 $as_echo "$ac_try_echo") >&5
37085   (eval "$ac_compile") 2>conftest.er1
37086   ac_status=$?
37087   grep -v '^ *+' conftest.er1 >conftest.err
37088   rm -f conftest.er1
37089   cat conftest.err >&5
37090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091   (exit $ac_status); } && {
37092          test -z "$ac_c_werror_flag" ||
37093          test ! -s conftest.err
37094        } && test -s conftest.$ac_objext; then
37095   ac_cv_member_struct_msghdr_msg_control=yes
37096 else
37097   $as_echo "$as_me: failed program was:" >&5
37098 sed 's/^/| /' conftest.$ac_ext >&5
37099
37100         cat >conftest.$ac_ext <<_ACEOF
37101 /* confdefs.h.  */
37102 _ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h.  */
37106 #define __USE_GNU 1
37107                           #include <sys/types.h>
37108                           #include <sys/socket.h>
37109                           #include <sys/un.h>
37110
37111 int
37112 main ()
37113 {
37114 static struct msghdr ac_aggr;
37115 if (sizeof ac_aggr.msg_control)
37116 return 0;
37117   ;
37118   return 0;
37119 }
37120 _ACEOF
37121 rm -f conftest.$ac_objext
37122 if { (ac_try="$ac_compile"
37123 case "(($ac_try" in
37124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37125   *) ac_try_echo=$ac_try;;
37126 esac
37127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37128 $as_echo "$ac_try_echo") >&5
37129   (eval "$ac_compile") 2>conftest.er1
37130   ac_status=$?
37131   grep -v '^ *+' conftest.er1 >conftest.err
37132   rm -f conftest.er1
37133   cat conftest.err >&5
37134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135   (exit $ac_status); } && {
37136          test -z "$ac_c_werror_flag" ||
37137          test ! -s conftest.err
37138        } && test -s conftest.$ac_objext; then
37139   ac_cv_member_struct_msghdr_msg_control=yes
37140 else
37141   $as_echo "$as_me: failed program was:" >&5
37142 sed 's/^/| /' conftest.$ac_ext >&5
37143
37144         ac_cv_member_struct_msghdr_msg_control=no
37145 fi
37146
37147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37148 fi
37149
37150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37151 fi
37152 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37153 $as_echo "$ac_cv_member_struct_msghdr_msg_control" >&6; }
37154 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then
37155
37156 cat >>confdefs.h <<_ACEOF
37157 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37158 _ACEOF
37159
37160
37161 fi
37162 { $as_echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
37163 $as_echo_n "checking for struct msghdr.msg_accrights... " >&6; }
37164 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
37165   $as_echo_n "(cached) " >&6
37166 else
37167   cat >conftest.$ac_ext <<_ACEOF
37168 /* confdefs.h.  */
37169 _ACEOF
37170 cat confdefs.h >>conftest.$ac_ext
37171 cat >>conftest.$ac_ext <<_ACEOF
37172 /* end confdefs.h.  */
37173 #define __USE_GNU 1
37174                           #include <sys/types.h>
37175                           #include <sys/socket.h>
37176                           #include <sys/un.h>
37177
37178 int
37179 main ()
37180 {
37181 static struct msghdr ac_aggr;
37182 if (ac_aggr.msg_accrights)
37183 return 0;
37184   ;
37185   return 0;
37186 }
37187 _ACEOF
37188 rm -f conftest.$ac_objext
37189 if { (ac_try="$ac_compile"
37190 case "(($ac_try" in
37191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37192   *) ac_try_echo=$ac_try;;
37193 esac
37194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37195 $as_echo "$ac_try_echo") >&5
37196   (eval "$ac_compile") 2>conftest.er1
37197   ac_status=$?
37198   grep -v '^ *+' conftest.er1 >conftest.err
37199   rm -f conftest.er1
37200   cat conftest.err >&5
37201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37202   (exit $ac_status); } && {
37203          test -z "$ac_c_werror_flag" ||
37204          test ! -s conftest.err
37205        } && test -s conftest.$ac_objext; then
37206   ac_cv_member_struct_msghdr_msg_accrights=yes
37207 else
37208   $as_echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37210
37211         cat >conftest.$ac_ext <<_ACEOF
37212 /* confdefs.h.  */
37213 _ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h.  */
37217 #define __USE_GNU 1
37218                           #include <sys/types.h>
37219                           #include <sys/socket.h>
37220                           #include <sys/un.h>
37221
37222 int
37223 main ()
37224 {
37225 static struct msghdr ac_aggr;
37226 if (sizeof ac_aggr.msg_accrights)
37227 return 0;
37228   ;
37229   return 0;
37230 }
37231 _ACEOF
37232 rm -f conftest.$ac_objext
37233 if { (ac_try="$ac_compile"
37234 case "(($ac_try" in
37235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37236   *) ac_try_echo=$ac_try;;
37237 esac
37238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37239 $as_echo "$ac_try_echo") >&5
37240   (eval "$ac_compile") 2>conftest.er1
37241   ac_status=$?
37242   grep -v '^ *+' conftest.er1 >conftest.err
37243   rm -f conftest.er1
37244   cat conftest.err >&5
37245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246   (exit $ac_status); } && {
37247          test -z "$ac_c_werror_flag" ||
37248          test ! -s conftest.err
37249        } && test -s conftest.$ac_objext; then
37250   ac_cv_member_struct_msghdr_msg_accrights=yes
37251 else
37252   $as_echo "$as_me: failed program was:" >&5
37253 sed 's/^/| /' conftest.$ac_ext >&5
37254
37255         ac_cv_member_struct_msghdr_msg_accrights=no
37256 fi
37257
37258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37259 fi
37260
37261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37262 fi
37263 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
37264 $as_echo "$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
37265 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then
37266
37267 cat >>confdefs.h <<_ACEOF
37268 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
37269 _ACEOF
37270
37271
37272 fi
37273 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred.cmcred_uid" >&5
37274 $as_echo_n "checking for struct cmsgcred.cmcred_uid... " >&6; }
37275 if test "${ac_cv_member_struct_cmsgcred_cmcred_uid+set}" = set; then
37276   $as_echo_n "(cached) " >&6
37277 else
37278   cat >conftest.$ac_ext <<_ACEOF
37279 /* confdefs.h.  */
37280 _ACEOF
37281 cat confdefs.h >>conftest.$ac_ext
37282 cat >>conftest.$ac_ext <<_ACEOF
37283 /* end confdefs.h.  */
37284 #define __USE_GNU 1
37285                           #include <sys/types.h>
37286                           #include <sys/socket.h>
37287                           #include <sys/un.h>
37288
37289 int
37290 main ()
37291 {
37292 static struct cmsgcred ac_aggr;
37293 if (ac_aggr.cmcred_uid)
37294 return 0;
37295   ;
37296   return 0;
37297 }
37298 _ACEOF
37299 rm -f conftest.$ac_objext
37300 if { (ac_try="$ac_compile"
37301 case "(($ac_try" in
37302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37303   *) ac_try_echo=$ac_try;;
37304 esac
37305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37306 $as_echo "$ac_try_echo") >&5
37307   (eval "$ac_compile") 2>conftest.er1
37308   ac_status=$?
37309   grep -v '^ *+' conftest.er1 >conftest.err
37310   rm -f conftest.er1
37311   cat conftest.err >&5
37312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313   (exit $ac_status); } && {
37314          test -z "$ac_c_werror_flag" ||
37315          test ! -s conftest.err
37316        } && test -s conftest.$ac_objext; then
37317   ac_cv_member_struct_cmsgcred_cmcred_uid=yes
37318 else
37319   $as_echo "$as_me: failed program was:" >&5
37320 sed 's/^/| /' conftest.$ac_ext >&5
37321
37322         cat >conftest.$ac_ext <<_ACEOF
37323 /* confdefs.h.  */
37324 _ACEOF
37325 cat confdefs.h >>conftest.$ac_ext
37326 cat >>conftest.$ac_ext <<_ACEOF
37327 /* end confdefs.h.  */
37328 #define __USE_GNU 1
37329                           #include <sys/types.h>
37330                           #include <sys/socket.h>
37331                           #include <sys/un.h>
37332
37333 int
37334 main ()
37335 {
37336 static struct cmsgcred ac_aggr;
37337 if (sizeof ac_aggr.cmcred_uid)
37338 return 0;
37339   ;
37340   return 0;
37341 }
37342 _ACEOF
37343 rm -f conftest.$ac_objext
37344 if { (ac_try="$ac_compile"
37345 case "(($ac_try" in
37346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37347   *) ac_try_echo=$ac_try;;
37348 esac
37349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37350 $as_echo "$ac_try_echo") >&5
37351   (eval "$ac_compile") 2>conftest.er1
37352   ac_status=$?
37353   grep -v '^ *+' conftest.er1 >conftest.err
37354   rm -f conftest.er1
37355   cat conftest.err >&5
37356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357   (exit $ac_status); } && {
37358          test -z "$ac_c_werror_flag" ||
37359          test ! -s conftest.err
37360        } && test -s conftest.$ac_objext; then
37361   ac_cv_member_struct_cmsgcred_cmcred_uid=yes
37362 else
37363   $as_echo "$as_me: failed program was:" >&5
37364 sed 's/^/| /' conftest.$ac_ext >&5
37365
37366         ac_cv_member_struct_cmsgcred_cmcred_uid=no
37367 fi
37368
37369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37370 fi
37371
37372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37373 fi
37374 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_cmsgcred_cmcred_uid" >&5
37375 $as_echo "$ac_cv_member_struct_cmsgcred_cmcred_uid" >&6; }
37376 if test "x$ac_cv_member_struct_cmsgcred_cmcred_uid" = x""yes; then
37377
37378 cat >>confdefs.h <<_ACEOF
37379 #define HAVE_STRUCT_CMSGCRED_CMCRED_UID 1
37380 _ACEOF
37381
37382
37383 fi
37384 { $as_echo "$as_me:$LINENO: checking for struct ucred.uid" >&5
37385 $as_echo_n "checking for struct ucred.uid... " >&6; }
37386 if test "${ac_cv_member_struct_ucred_uid+set}" = set; then
37387   $as_echo_n "(cached) " >&6
37388 else
37389   cat >conftest.$ac_ext <<_ACEOF
37390 /* confdefs.h.  */
37391 _ACEOF
37392 cat confdefs.h >>conftest.$ac_ext
37393 cat >>conftest.$ac_ext <<_ACEOF
37394 /* end confdefs.h.  */
37395 #define __USE_GNU 1
37396                           #include <sys/types.h>
37397                           #include <sys/socket.h>
37398                           #include <sys/un.h>
37399
37400 int
37401 main ()
37402 {
37403 static struct ucred ac_aggr;
37404 if (ac_aggr.uid)
37405 return 0;
37406   ;
37407   return 0;
37408 }
37409 _ACEOF
37410 rm -f conftest.$ac_objext
37411 if { (ac_try="$ac_compile"
37412 case "(($ac_try" in
37413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37414   *) ac_try_echo=$ac_try;;
37415 esac
37416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37417 $as_echo "$ac_try_echo") >&5
37418   (eval "$ac_compile") 2>conftest.er1
37419   ac_status=$?
37420   grep -v '^ *+' conftest.er1 >conftest.err
37421   rm -f conftest.er1
37422   cat conftest.err >&5
37423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424   (exit $ac_status); } && {
37425          test -z "$ac_c_werror_flag" ||
37426          test ! -s conftest.err
37427        } && test -s conftest.$ac_objext; then
37428   ac_cv_member_struct_ucred_uid=yes
37429 else
37430   $as_echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433         cat >conftest.$ac_ext <<_ACEOF
37434 /* confdefs.h.  */
37435 _ACEOF
37436 cat confdefs.h >>conftest.$ac_ext
37437 cat >>conftest.$ac_ext <<_ACEOF
37438 /* end confdefs.h.  */
37439 #define __USE_GNU 1
37440                           #include <sys/types.h>
37441                           #include <sys/socket.h>
37442                           #include <sys/un.h>
37443
37444 int
37445 main ()
37446 {
37447 static struct ucred ac_aggr;
37448 if (sizeof ac_aggr.uid)
37449 return 0;
37450   ;
37451   return 0;
37452 }
37453 _ACEOF
37454 rm -f conftest.$ac_objext
37455 if { (ac_try="$ac_compile"
37456 case "(($ac_try" in
37457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37458   *) ac_try_echo=$ac_try;;
37459 esac
37460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37461 $as_echo "$ac_try_echo") >&5
37462   (eval "$ac_compile") 2>conftest.er1
37463   ac_status=$?
37464   grep -v '^ *+' conftest.er1 >conftest.err
37465   rm -f conftest.er1
37466   cat conftest.err >&5
37467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468   (exit $ac_status); } && {
37469          test -z "$ac_c_werror_flag" ||
37470          test ! -s conftest.err
37471        } && test -s conftest.$ac_objext; then
37472   ac_cv_member_struct_ucred_uid=yes
37473 else
37474   $as_echo "$as_me: failed program was:" >&5
37475 sed 's/^/| /' conftest.$ac_ext >&5
37476
37477         ac_cv_member_struct_ucred_uid=no
37478 fi
37479
37480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37481 fi
37482
37483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37484 fi
37485 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ucred_uid" >&5
37486 $as_echo "$ac_cv_member_struct_ucred_uid" >&6; }
37487 if test "x$ac_cv_member_struct_ucred_uid" = x""yes; then
37488
37489 cat >>confdefs.h <<_ACEOF
37490 #define HAVE_STRUCT_UCRED_UID 1
37491 _ACEOF
37492
37493
37494 fi
37495
37496     fi
37497     if test $passed != with; then
37498                 USRP2_INCLUDES="-I\${abs_top_srcdir}/usrp2/host/include \
37499                 -I\${abs_top_srcdir}/usrp2/firmware/include"
37500         USRP2_LA="\${abs_top_builddir}/usrp2/host/lib/libusrp2.la"
37501     fi
37502
37503
37504
37505
37506     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"
37507
37508
37509
37510
37511     usrp2_with=no
37512     if test $passed = no; then
37513         if test x$enable_usrp2 = xyes; then
37514             { { $as_echo "$as_me:$LINENO: error: Component usrp2 has errors; stopping." >&5
37515 $as_echo "$as_me: error: Component usrp2 has errors; stopping." >&2;}
37516    { (exit 1); exit 1; }; }
37517         else
37518             { $as_echo "$as_me:$LINENO: result: Not building component usrp2." >&5
37519 $as_echo "Not building component usrp2." >&6; }
37520         fi
37521     else
37522         if test $passed = with; then
37523             with_dirs="$with_dirs usrp2"
37524
37525     if test "x${usrp2_INCLUDES}" != "x"; then
37526         if test "x$with_INCLUDES" = "x"; then
37527             with_INCLUDES="${usrp2_INCLUDES}"
37528         else
37529             with_INCLUDES="${usrp2_INCLUDES}"" ""$with_INCLUDES"
37530         fi
37531         usrp2_INCLUDES=
37532     fi
37533
37534
37535     if test "x${usrp2_SWIG_INCLUDES}" != "x"; then
37536         if test "x$with_SWIG_INCLUDES" = "x"; then
37537             with_SWIG_INCLUDES="${usrp2_SWIG_INCLUDES}"
37538         else
37539             with_SWIG_INCLUDES="${usrp2_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
37540         fi
37541         usrp2_SWIG_INCLUDES=
37542     fi
37543
37544
37545     if test "x${usrp2_PYDIRPATH}" != "x"; then
37546         if test "x$with_PYDIRPATH" = "x"; then
37547             with_PYDIRPATH="${usrp2_PYDIRPATH}"
37548         else
37549             with_PYDIRPATH="${usrp2_PYDIRPATH}"":""$with_PYDIRPATH"
37550         fi
37551         usrp2_PYDIRPATH=
37552     fi
37553
37554
37555     if test "x${usrp2_SWIGDIRPATH}" != "x"; then
37556         if test "x$with_SWIGDIRPATH" = "x"; then
37557             with_SWIGDIRPATH="${usrp2_SWIGDIRPATH}"
37558         else
37559             with_SWIGDIRPATH="${usrp2_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
37560         fi
37561         usrp2_SWIGDIRPATH=
37562     fi
37563
37564
37565     if test "x${usrp2_LIBDIRPATH}" != "x"; then
37566         if test "x$with_LIBDIRPATH" = "x"; then
37567             with_LIBDIRPATH="${usrp2_LIBDIRPATH}"
37568         else
37569             with_LIBDIRPATH="${usrp2_LIBDIRPATH}"":""$with_LIBDIRPATH"
37570         fi
37571         usrp2_LIBDIRPATH=
37572     fi
37573
37574             { $as_echo "$as_me:$LINENO: result: Component usrp2 will be included from a pre-installed library and includes." >&5
37575 $as_echo "Component usrp2 will be included from a pre-installed library and includes." >&6; }
37576             usrp2_with=yes
37577         else
37578             usrp2_LDFLAG=
37579             if test x$enable_usrp2 != xno; then
37580                 :
37581                 build_dirs="$build_dirs usrp2"
37582                 { $as_echo "$as_me:$LINENO: result: Component usrp2 passed configuration checks; building." >&5
37583 $as_echo "Component usrp2 passed configuration checks; building." >&6; }
37584             else
37585                 passed=no
37586                 { $as_echo "$as_me:$LINENO: result: Component usrp2 passed configuration checks; but not building." >&5
37587 $as_echo "Component usrp2 passed configuration checks; but not building." >&6; }
37588             fi
37589         fi
37590     fi
37591     if test $passed = no; then
37592         skipped_dirs="$skipped_dirs usrp2"
37593         usrp2_skipped=yes
37594     else
37595         usrp2_skipped=no
37596     fi
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608     passed=yes
37609     # Check whether --enable-gr-usrp was given.
37610 if test "${enable_gr_usrp+set}" = set; then
37611   enableval=$enable_gr_usrp;
37612 else
37613
37614         enable_gr_usrp=$enable_all_components
37615         if test x$enable_all_components = xno; then
37616             passed=no
37617         fi
37618
37619 fi
37620
37621
37622
37623
37624
37625     if test $passed != no; then
37626         if test $passed = yes; then
37627                         if test x$usrp_skipped = xyes; then
37628                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built or specified via pre-installed files." >&5
37629 $as_echo "Component gr-usrp requires usrp, which is not being built or specified via pre-installed files." >&6; }
37630                 passed=no
37631             fi
37632         else
37633                         if test x$usrp_with = xno; then
37634                 { { $as_echo "$as_me:$LINENO: error: Component gr-usrp requires usrp to be included as --with-usrp[=arg]" >&5
37635 $as_echo "$as_me: error: Component gr-usrp requires usrp to be included as --with-usrp[=arg]" >&2;}
37636    { (exit 1); exit 1; }; }
37637             fi
37638         fi
37639     fi
37640
37641
37642     if test $passed != no; then
37643         if test $passed = yes; then
37644                         if test x$gnuradio_core_skipped = xyes; then
37645                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
37646 $as_echo "Component gr-usrp requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
37647                 passed=no
37648             fi
37649         else
37650                         if test x$gnuradio_core_with = xno; then
37651                 { { $as_echo "$as_me:$LINENO: error: Component gr-usrp requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
37652 $as_echo "$as_me: error: Component gr-usrp requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
37653    { (exit 1); exit 1; }; }
37654             fi
37655         fi
37656     fi
37657
37658
37659     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"
37660
37661
37662
37663
37664     gr_usrp_with=no
37665     if test $passed = no; then
37666         if test x$enable_gr_usrp = xyes; then
37667             { { $as_echo "$as_me:$LINENO: error: Component gr-usrp has errors; stopping." >&5
37668 $as_echo "$as_me: error: Component gr-usrp has errors; stopping." >&2;}
37669    { (exit 1); exit 1; }; }
37670         else
37671             { $as_echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
37672 $as_echo "Not building component gr-usrp." >&6; }
37673         fi
37674     else
37675         if test $passed = with; then
37676             with_dirs="$with_dirs gr-usrp"
37677
37678     if test "x${gr_usrp_INCLUDES}" != "x"; then
37679         if test "x$with_INCLUDES" = "x"; then
37680             with_INCLUDES="${gr_usrp_INCLUDES}"
37681         else
37682             with_INCLUDES="${gr_usrp_INCLUDES}"" ""$with_INCLUDES"
37683         fi
37684         gr_usrp_INCLUDES=
37685     fi
37686
37687
37688     if test "x${gr_usrp_SWIG_INCLUDES}" != "x"; then
37689         if test "x$with_SWIG_INCLUDES" = "x"; then
37690             with_SWIG_INCLUDES="${gr_usrp_SWIG_INCLUDES}"
37691         else
37692             with_SWIG_INCLUDES="${gr_usrp_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
37693         fi
37694         gr_usrp_SWIG_INCLUDES=
37695     fi
37696
37697
37698     if test "x${gr_usrp_PYDIRPATH}" != "x"; then
37699         if test "x$with_PYDIRPATH" = "x"; then
37700             with_PYDIRPATH="${gr_usrp_PYDIRPATH}"
37701         else
37702             with_PYDIRPATH="${gr_usrp_PYDIRPATH}"":""$with_PYDIRPATH"
37703         fi
37704         gr_usrp_PYDIRPATH=
37705     fi
37706
37707
37708     if test "x${gr_usrp_SWIGDIRPATH}" != "x"; then
37709         if test "x$with_SWIGDIRPATH" = "x"; then
37710             with_SWIGDIRPATH="${gr_usrp_SWIGDIRPATH}"
37711         else
37712             with_SWIGDIRPATH="${gr_usrp_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
37713         fi
37714         gr_usrp_SWIGDIRPATH=
37715     fi
37716
37717
37718     if test "x${gr_usrp_LIBDIRPATH}" != "x"; then
37719         if test "x$with_LIBDIRPATH" = "x"; then
37720             with_LIBDIRPATH="${gr_usrp_LIBDIRPATH}"
37721         else
37722             with_LIBDIRPATH="${gr_usrp_LIBDIRPATH}"":""$with_LIBDIRPATH"
37723         fi
37724         gr_usrp_LIBDIRPATH=
37725     fi
37726
37727             { $as_echo "$as_me:$LINENO: result: Component gr-usrp will be included from a pre-installed library and includes." >&5
37728 $as_echo "Component gr-usrp will be included from a pre-installed library and includes." >&6; }
37729             gr_usrp_with=yes
37730         else
37731             gr_usrp_LDFLAG=
37732             if test x$enable_gr_usrp != xno; then
37733                         ac_config_commands="$ac_config_commands run_tests_usrp"
37734
37735
37736                 build_dirs="$build_dirs gr-usrp"
37737                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks; building." >&5
37738 $as_echo "Component gr-usrp passed configuration checks; building." >&6; }
37739             else
37740                 passed=no
37741                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks; but not building." >&5
37742 $as_echo "Component gr-usrp passed configuration checks; but not building." >&6; }
37743             fi
37744         fi
37745     fi
37746     if test $passed = no; then
37747         skipped_dirs="$skipped_dirs gr-usrp"
37748         gr_usrp_skipped=yes
37749     else
37750         gr_usrp_skipped=no
37751     fi
37752
37753
37754
37755
37756
37757
37758
37759
37760
37761
37762     passed=yes
37763     # Check whether --enable-gr-usrp2 was given.
37764 if test "${enable_gr_usrp2+set}" = set; then
37765   enableval=$enable_gr_usrp2;
37766 else
37767
37768         enable_gr_usrp2=$enable_all_components
37769         if test x$enable_all_components = xno; then
37770             passed=no
37771         fi
37772
37773 fi
37774
37775
37776
37777
37778
37779     if test $passed != no; then
37780         if test $passed = yes; then
37781                         if test x$usrp2_skipped = xyes; then
37782                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp2 requires usrp2, which is not being built or specified via pre-installed files." >&5
37783 $as_echo "Component gr-usrp2 requires usrp2, which is not being built or specified via pre-installed files." >&6; }
37784                 passed=no
37785             fi
37786         else
37787                         if test x$usrp2_with = xno; then
37788                 { { $as_echo "$as_me:$LINENO: error: Component gr-usrp2 requires usrp2 to be included as --with-usrp2[=arg]" >&5
37789 $as_echo "$as_me: error: Component gr-usrp2 requires usrp2 to be included as --with-usrp2[=arg]" >&2;}
37790    { (exit 1); exit 1; }; }
37791             fi
37792         fi
37793     fi
37794
37795
37796     if test $passed != no; then
37797         if test $passed = yes; then
37798                         if test x$gnuradio_core_skipped = xyes; then
37799                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp2 requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
37800 $as_echo "Component gr-usrp2 requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
37801                 passed=no
37802             fi
37803         else
37804                         if test x$gnuradio_core_with = xno; then
37805                 { { $as_echo "$as_me:$LINENO: error: Component gr-usrp2 requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
37806 $as_echo "$as_me: error: Component gr-usrp2 requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
37807    { (exit 1); exit 1; }; }
37808             fi
37809         fi
37810     fi
37811
37812
37813     ac_config_files="$ac_config_files gr-usrp2/Makefile gr-usrp2/gnuradio-usrp2.pc gr-usrp2/src/Makefile gr-usrp2/src/run_tests"
37814
37815
37816
37817
37818     gr_usrp2_with=no
37819     if test $passed = no; then
37820         if test x$enable_gr_usrp2 = xyes; then
37821             { { $as_echo "$as_me:$LINENO: error: Component gr-usrp2 has errors; stopping." >&5
37822 $as_echo "$as_me: error: Component gr-usrp2 has errors; stopping." >&2;}
37823    { (exit 1); exit 1; }; }
37824         else
37825             { $as_echo "$as_me:$LINENO: result: Not building component gr-usrp2." >&5
37826 $as_echo "Not building component gr-usrp2." >&6; }
37827         fi
37828     else
37829         if test $passed = with; then
37830             with_dirs="$with_dirs gr-usrp2"
37831
37832     if test "x${gr_usrp2_INCLUDES}" != "x"; then
37833         if test "x$with_INCLUDES" = "x"; then
37834             with_INCLUDES="${gr_usrp2_INCLUDES}"
37835         else
37836             with_INCLUDES="${gr_usrp2_INCLUDES}"" ""$with_INCLUDES"
37837         fi
37838         gr_usrp2_INCLUDES=
37839     fi
37840
37841
37842     if test "x${gr_usrp2_SWIG_INCLUDES}" != "x"; then
37843         if test "x$with_SWIG_INCLUDES" = "x"; then
37844             with_SWIG_INCLUDES="${gr_usrp2_SWIG_INCLUDES}"
37845         else
37846             with_SWIG_INCLUDES="${gr_usrp2_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
37847         fi
37848         gr_usrp2_SWIG_INCLUDES=
37849     fi
37850
37851
37852     if test "x${gr_usrp2_PYDIRPATH}" != "x"; then
37853         if test "x$with_PYDIRPATH" = "x"; then
37854             with_PYDIRPATH="${gr_usrp2_PYDIRPATH}"
37855         else
37856             with_PYDIRPATH="${gr_usrp2_PYDIRPATH}"":""$with_PYDIRPATH"
37857         fi
37858         gr_usrp2_PYDIRPATH=
37859     fi
37860
37861
37862     if test "x${gr_usrp2_SWIGDIRPATH}" != "x"; then
37863         if test "x$with_SWIGDIRPATH" = "x"; then
37864             with_SWIGDIRPATH="${gr_usrp2_SWIGDIRPATH}"
37865         else
37866             with_SWIGDIRPATH="${gr_usrp2_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
37867         fi
37868         gr_usrp2_SWIGDIRPATH=
37869     fi
37870
37871
37872     if test "x${gr_usrp2_LIBDIRPATH}" != "x"; then
37873         if test "x$with_LIBDIRPATH" = "x"; then
37874             with_LIBDIRPATH="${gr_usrp2_LIBDIRPATH}"
37875         else
37876             with_LIBDIRPATH="${gr_usrp2_LIBDIRPATH}"":""$with_LIBDIRPATH"
37877         fi
37878         gr_usrp2_LIBDIRPATH=
37879     fi
37880
37881             { $as_echo "$as_me:$LINENO: result: Component gr-usrp2 will be included from a pre-installed library and includes." >&5
37882 $as_echo "Component gr-usrp2 will be included from a pre-installed library and includes." >&6; }
37883             gr_usrp2_with=yes
37884         else
37885             gr_usrp2_LDFLAG=
37886             if test x$enable_gr_usrp2 != xno; then
37887                         ac_config_commands="$ac_config_commands run_tests_usrp2"
37888
37889
37890                 build_dirs="$build_dirs gr-usrp2"
37891                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp2 passed configuration checks; building." >&5
37892 $as_echo "Component gr-usrp2 passed configuration checks; building." >&6; }
37893             else
37894                 passed=no
37895                 { $as_echo "$as_me:$LINENO: result: Component gr-usrp2 passed configuration checks; but not building." >&5
37896 $as_echo "Component gr-usrp2 passed configuration checks; but not building." >&6; }
37897             fi
37898         fi
37899     fi
37900     if test $passed = no; then
37901         skipped_dirs="$skipped_dirs gr-usrp2"
37902         gr_usrp2_skipped=yes
37903     else
37904         gr_usrp2_skipped=no
37905     fi
37906
37907
37908
37909
37910
37911
37912
37913
37914
37915
37916
37917     passed=yes
37918     # Check whether --enable-gr-gcell was given.
37919 if test "${enable_gr_gcell+set}" = set; then
37920   enableval=$enable_gr_gcell;
37921 else
37922
37923         enable_gr_gcell=$enable_all_components
37924         if test x$enable_all_components = xno; then
37925             passed=no
37926         fi
37927
37928 fi
37929
37930
37931
37932
37933
37934     if test $passed != no; then
37935         if test $passed = yes; then
37936                         if test x$gcell_skipped = xyes; then
37937                 { $as_echo "$as_me:$LINENO: result: Component gr-gcell requires gcell, which is not being built or specified via pre-installed files." >&5
37938 $as_echo "Component gr-gcell requires gcell, which is not being built or specified via pre-installed files." >&6; }
37939                 passed=no
37940             fi
37941         else
37942                         if test x$gcell_with = xno; then
37943                 { { $as_echo "$as_me:$LINENO: error: Component gr-gcell requires gcell to be included as --with-gcell[=arg]" >&5
37944 $as_echo "$as_me: error: Component gr-gcell requires gcell to be included as --with-gcell[=arg]" >&2;}
37945    { (exit 1); exit 1; }; }
37946             fi
37947         fi
37948     fi
37949
37950
37951     if test $passed != no; then
37952         if test $passed = yes; then
37953                         if test x$gnuradio_core_skipped = xyes; then
37954                 { $as_echo "$as_me:$LINENO: result: Component gr-gcell requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
37955 $as_echo "Component gr-gcell requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
37956                 passed=no
37957             fi
37958         else
37959                         if test x$gnuradio_core_with = xno; then
37960                 { { $as_echo "$as_me:$LINENO: error: Component gr-gcell requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
37961 $as_echo "$as_me: error: Component gr-gcell requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
37962    { (exit 1); exit 1; }; }
37963             fi
37964         fi
37965     fi
37966
37967
37968     ac_config_files="$ac_config_files gr-gcell/Makefile gr-gcell/src/Makefile gr-gcell/src/examples/Makefile gr-gcell/src/run_tests"
37969
37970
37971
37972
37973     gr_gcell_with=no
37974     if test $passed = no; then
37975         if test x$enable_gr_gcell = xyes; then
37976             { { $as_echo "$as_me:$LINENO: error: Component gr-gcell has errors; stopping." >&5
37977 $as_echo "$as_me: error: Component gr-gcell has errors; stopping." >&2;}
37978    { (exit 1); exit 1; }; }
37979         else
37980             { $as_echo "$as_me:$LINENO: result: Not building component gr-gcell." >&5
37981 $as_echo "Not building component gr-gcell." >&6; }
37982         fi
37983     else
37984         if test $passed = with; then
37985             with_dirs="$with_dirs gr-gcell"
37986
37987     if test "x${gr_gcell_INCLUDES}" != "x"; then
37988         if test "x$with_INCLUDES" = "x"; then
37989             with_INCLUDES="${gr_gcell_INCLUDES}"
37990         else
37991             with_INCLUDES="${gr_gcell_INCLUDES}"" ""$with_INCLUDES"
37992         fi
37993         gr_gcell_INCLUDES=
37994     fi
37995
37996
37997     if test "x${gr_gcell_SWIG_INCLUDES}" != "x"; then
37998         if test "x$with_SWIG_INCLUDES" = "x"; then
37999             with_SWIG_INCLUDES="${gr_gcell_SWIG_INCLUDES}"
38000         else
38001             with_SWIG_INCLUDES="${gr_gcell_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
38002         fi
38003         gr_gcell_SWIG_INCLUDES=
38004     fi
38005
38006
38007     if test "x${gr_gcell_PYDIRPATH}" != "x"; then
38008         if test "x$with_PYDIRPATH" = "x"; then
38009             with_PYDIRPATH="${gr_gcell_PYDIRPATH}"
38010         else
38011             with_PYDIRPATH="${gr_gcell_PYDIRPATH}"":""$with_PYDIRPATH"
38012         fi
38013         gr_gcell_PYDIRPATH=
38014     fi
38015
38016
38017     if test "x${gr_gcell_SWIGDIRPATH}" != "x"; then
38018         if test "x$with_SWIGDIRPATH" = "x"; then
38019             with_SWIGDIRPATH="${gr_gcell_SWIGDIRPATH}"
38020         else
38021             with_SWIGDIRPATH="${gr_gcell_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
38022         fi
38023         gr_gcell_SWIGDIRPATH=
38024     fi
38025
38026
38027     if test "x${gr_gcell_LIBDIRPATH}" != "x"; then
38028         if test "x$with_LIBDIRPATH" = "x"; then
38029             with_LIBDIRPATH="${gr_gcell_LIBDIRPATH}"
38030         else
38031             with_LIBDIRPATH="${gr_gcell_LIBDIRPATH}"":""$with_LIBDIRPATH"
38032         fi
38033         gr_gcell_LIBDIRPATH=
38034     fi
38035
38036             { $as_echo "$as_me:$LINENO: result: Component gr-gcell will be included from a pre-installed library and includes." >&5
38037 $as_echo "Component gr-gcell will be included from a pre-installed library and includes." >&6; }
38038             gr_gcell_with=yes
38039         else
38040             gr_gcell_LDFLAG=
38041             if test x$enable_gr_gcell != xno; then
38042                         ac_config_commands="$ac_config_commands run_tests_gcell"
38043
38044
38045                 build_dirs="$build_dirs gr-gcell"
38046                 { $as_echo "$as_me:$LINENO: result: Component gr-gcell passed configuration checks; building." >&5
38047 $as_echo "Component gr-gcell passed configuration checks; building." >&6; }
38048             else
38049                 passed=no
38050                 { $as_echo "$as_me:$LINENO: result: Component gr-gcell passed configuration checks; but not building." >&5
38051 $as_echo "Component gr-gcell passed configuration checks; but not building." >&6; }
38052             fi
38053         fi
38054     fi
38055     if test $passed = no; then
38056         skipped_dirs="$skipped_dirs gr-gcell"
38057         gr_gcell_skipped=yes
38058     else
38059         gr_gcell_skipped=no
38060     fi
38061
38062
38063
38064
38065
38066
38067
38068
38069
38070
38071     passed=yes
38072     # Check whether --enable-gr-audio-alsa was given.
38073 if test "${enable_gr_audio_alsa+set}" = set; then
38074   enableval=$enable_gr_audio_alsa;
38075 else
38076
38077         enable_gr_audio_alsa=$enable_all_components
38078         if test x$enable_all_components = xno; then
38079             passed=no
38080         fi
38081
38082 fi
38083
38084
38085
38086
38087
38088     if test $passed != no; then
38089         if test $passed = yes; then
38090                         if test x$gnuradio_core_skipped = xyes; then
38091                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-alsa requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
38092 $as_echo "Component gr-audio-alsa requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
38093                 passed=no
38094             fi
38095         else
38096                         if test x$gnuradio_core_with = xno; then
38097                 { { $as_echo "$as_me:$LINENO: error: Component gr-audio-alsa requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
38098 $as_echo "$as_me: error: Component gr-audio-alsa requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
38099    { (exit 1); exit 1; }; }
38100             fi
38101         fi
38102     fi
38103
38104
38105                     if test $passed = yes; then
38106
38107
38108
38109 pkg_failed=no
38110 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
38111 $as_echo_n "checking for ALSA... " >&6; }
38112
38113 if test -n "$PKG_CONFIG"; then
38114     if test -n "$ALSA_CFLAGS"; then
38115         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
38116     else
38117         if test -n "$PKG_CONFIG" && \
38118     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\"") >&5
38119   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
38120   ac_status=$?
38121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38122   (exit $ac_status); }; then
38123   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9" 2>/dev/null`
38124 else
38125   pkg_failed=yes
38126 fi
38127     fi
38128 else
38129         pkg_failed=untried
38130 fi
38131
38132 if test x$cross_compiling = xyes
38133 then
38134     if test -n "$PKG_CONFIG"; then
38135     if test -n "$ALSA_LIBS"; then
38136         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
38137     else
38138         if test -n "$PKG_CONFIG" && \
38139     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\"") >&5
38140   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
38141   ac_status=$?
38142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38143   (exit $ac_status); }; then
38144   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs --static "alsa >= 0.9" 2>/dev/null`
38145 else
38146   pkg_failed=yes
38147 fi
38148     fi
38149 else
38150         pkg_failed=untried
38151 fi
38152     _pkg_tmp=
38153   for flag in $pkg_cv_ALSA_LIBS; do
38154     case $flag in
38155     (-L/lib* | -L/usr/lib* )       ;; # ignore
38156     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
38157     esac
38158   done
38159   pkg_cv_ALSA_LIBS="$_pkg_tmp"
38160 else
38161   if test -n "$PKG_CONFIG"; then
38162     if test -n "$ALSA_LIBS"; then
38163         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
38164     else
38165         if test -n "$PKG_CONFIG" && \
38166     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\"") >&5
38167   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
38168   ac_status=$?
38169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170   (exit $ac_status); }; then
38171   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs --static "alsa >= 0.9" 2>/dev/null`
38172 else
38173   pkg_failed=yes
38174 fi
38175     fi
38176 else
38177         pkg_failed=untried
38178 fi
38179 fi
38180
38181 if test -n "$PKG_CONFIG"; then
38182     if test -n "$ALSA_INCLUDEDIR"; then
38183         pkg_cv_ALSA_INCLUDEDIR="$ALSA_INCLUDEDIR"
38184     else
38185         if test -n "$PKG_CONFIG" && \
38186     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\"") >&5
38187   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
38188   ac_status=$?
38189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38190   (exit $ac_status); }; then
38191   pkg_cv_ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9" 2>/dev/null`
38192 else
38193   pkg_failed=yes
38194 fi
38195     fi
38196 else
38197         pkg_failed=untried
38198 fi
38199
38200
38201
38202
38203 if test $pkg_failed = yes; then
38204
38205 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38206         _pkg_short_errors_supported=yes
38207 else
38208         _pkg_short_errors_supported=no
38209 fi
38210         if test $_pkg_short_errors_supported = yes; then
38211                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 0.9"`
38212         else
38213                 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
38214         fi
38215         # Put the nasty error message in config.log where it belongs
38216         echo "$ALSA_PKG_ERRORS" >&5
38217
38218         { $as_echo "$as_me:$LINENO: result: no" >&5
38219 $as_echo "no" >&6; }
38220                 passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
38221 $as_echo "gr-audio-alsa requires package alsa, not found." >&6; }
38222 elif test $pkg_failed = untried; then
38223         passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
38224 $as_echo "gr-audio-alsa requires package alsa, not found." >&6; }
38225 else
38226         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
38227         ALSA_LIBS=$pkg_cv_ALSA_LIBS
38228         ALSA_INCLUDEDIR=$pkg_cv_ALSA_INCLUDEDIR
38229
38230         ALSA_CPPFLAGS=""
38231         for flag in $ALSA_CFLAGS; do
38232           case $flag in
38233           -I* | -D* | -U*) ALSA_CPPFLAGS="$ALSA_CPPFLAGS $flag" ;;
38234           esac
38235         done
38236         pkg_cv_ALSA_CPPFLAGS=$ALSA_CPPFLAGS
38237
38238
38239         { $as_echo "$as_me:$LINENO: result: yes" >&5
38240 $as_echo "yes" >&6; }
38241         :
38242 fi
38243     fi
38244
38245     ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/gr-audio-alsa.pc gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
38246
38247
38248
38249
38250     gr_audio_alsa_with=no
38251     if test $passed = no; then
38252         if test x$enable_gr_audio_alsa = xyes; then
38253             { { $as_echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors; stopping." >&5
38254 $as_echo "$as_me: error: Component gr-audio-alsa has errors; stopping." >&2;}
38255    { (exit 1); exit 1; }; }
38256         else
38257             { $as_echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
38258 $as_echo "Not building component gr-audio-alsa." >&6; }
38259         fi
38260     else
38261         if test $passed = with; then
38262             with_dirs="$with_dirs gr-audio-alsa"
38263
38264     if test "x${gr_audio_alsa_INCLUDES}" != "x"; then
38265         if test "x$with_INCLUDES" = "x"; then
38266             with_INCLUDES="${gr_audio_alsa_INCLUDES}"
38267         else
38268             with_INCLUDES="${gr_audio_alsa_INCLUDES}"" ""$with_INCLUDES"
38269         fi
38270         gr_audio_alsa_INCLUDES=
38271     fi
38272
38273
38274     if test "x${gr_audio_alsa_SWIG_INCLUDES}" != "x"; then
38275         if test "x$with_SWIG_INCLUDES" = "x"; then
38276             with_SWIG_INCLUDES="${gr_audio_alsa_SWIG_INCLUDES}"
38277         else
38278             with_SWIG_INCLUDES="${gr_audio_alsa_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
38279         fi
38280         gr_audio_alsa_SWIG_INCLUDES=
38281     fi
38282
38283
38284     if test "x${gr_audio_alsa_PYDIRPATH}" != "x"; then
38285         if test "x$with_PYDIRPATH" = "x"; then
38286             with_PYDIRPATH="${gr_audio_alsa_PYDIRPATH}"
38287         else
38288             with_PYDIRPATH="${gr_audio_alsa_PYDIRPATH}"":""$with_PYDIRPATH"
38289         fi
38290         gr_audio_alsa_PYDIRPATH=
38291     fi
38292
38293
38294     if test "x${gr_audio_alsa_SWIGDIRPATH}" != "x"; then
38295         if test "x$with_SWIGDIRPATH" = "x"; then
38296             with_SWIGDIRPATH="${gr_audio_alsa_SWIGDIRPATH}"
38297         else
38298             with_SWIGDIRPATH="${gr_audio_alsa_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
38299         fi
38300         gr_audio_alsa_SWIGDIRPATH=
38301     fi
38302
38303
38304     if test "x${gr_audio_alsa_LIBDIRPATH}" != "x"; then
38305         if test "x$with_LIBDIRPATH" = "x"; then
38306             with_LIBDIRPATH="${gr_audio_alsa_LIBDIRPATH}"
38307         else
38308             with_LIBDIRPATH="${gr_audio_alsa_LIBDIRPATH}"":""$with_LIBDIRPATH"
38309         fi
38310         gr_audio_alsa_LIBDIRPATH=
38311     fi
38312
38313             { $as_echo "$as_me:$LINENO: result: Component gr-audio-alsa will be included from a pre-installed library and includes." >&5
38314 $as_echo "Component gr-audio-alsa will be included from a pre-installed library and includes." >&6; }
38315             gr_audio_alsa_with=yes
38316         else
38317             gr_audio_alsa_LDFLAG=
38318             if test x$enable_gr_audio_alsa != xno; then
38319                         ac_config_commands="$ac_config_commands run_tests_alsa"
38320
38321
38322                 build_dirs="$build_dirs gr-audio-alsa"
38323                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks; building." >&5
38324 $as_echo "Component gr-audio-alsa passed configuration checks; building." >&6; }
38325             else
38326                 passed=no
38327                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks; but not building." >&5
38328 $as_echo "Component gr-audio-alsa passed configuration checks; but not building." >&6; }
38329             fi
38330         fi
38331     fi
38332     if test $passed = no; then
38333         skipped_dirs="$skipped_dirs gr-audio-alsa"
38334         gr_audio_alsa_skipped=yes
38335     else
38336         gr_audio_alsa_skipped=no
38337     fi
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349     passed=yes
38350     # Check whether --enable-gr-audio-jack was given.
38351 if test "${enable_gr_audio_jack+set}" = set; then
38352   enableval=$enable_gr_audio_jack;
38353 else
38354
38355         enable_gr_audio_jack=$enable_all_components
38356         if test x$enable_all_components = xno; then
38357             passed=no
38358         fi
38359
38360 fi
38361
38362
38363
38364
38365
38366     if test $passed != no; then
38367         if test $passed = yes; then
38368                         if test x$gnuradio_core_skipped = xyes; then
38369                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-jack requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
38370 $as_echo "Component gr-audio-jack requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
38371                 passed=no
38372             fi
38373         else
38374                         if test x$gnuradio_core_with = xno; then
38375                 { { $as_echo "$as_me:$LINENO: error: Component gr-audio-jack requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
38376 $as_echo "$as_me: error: Component gr-audio-jack requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
38377    { (exit 1); exit 1; }; }
38378             fi
38379         fi
38380     fi
38381
38382
38383                     if test $passed = yes; then
38384
38385
38386
38387 pkg_failed=no
38388 { $as_echo "$as_me:$LINENO: checking for JACK" >&5
38389 $as_echo_n "checking for JACK... " >&6; }
38390
38391 if test -n "$PKG_CONFIG"; then
38392     if test -n "$JACK_CFLAGS"; then
38393         pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
38394     else
38395         if test -n "$PKG_CONFIG" && \
38396     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\"") >&5
38397   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
38398   ac_status=$?
38399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400   (exit $ac_status); }; then
38401   pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8" 2>/dev/null`
38402 else
38403   pkg_failed=yes
38404 fi
38405     fi
38406 else
38407         pkg_failed=untried
38408 fi
38409
38410 if test x$cross_compiling = xyes
38411 then
38412     if test -n "$PKG_CONFIG"; then
38413     if test -n "$JACK_LIBS"; then
38414         pkg_cv_JACK_LIBS="$JACK_LIBS"
38415     else
38416         if test -n "$PKG_CONFIG" && \
38417     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\"") >&5
38418   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
38419   ac_status=$?
38420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421   (exit $ac_status); }; then
38422   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs --static "jack >= 0.8" 2>/dev/null`
38423 else
38424   pkg_failed=yes
38425 fi
38426     fi
38427 else
38428         pkg_failed=untried
38429 fi
38430     _pkg_tmp=
38431   for flag in $pkg_cv_JACK_LIBS; do
38432     case $flag in
38433     (-L/lib* | -L/usr/lib* )       ;; # ignore
38434     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
38435     esac
38436   done
38437   pkg_cv_JACK_LIBS="$_pkg_tmp"
38438 else
38439   if test -n "$PKG_CONFIG"; then
38440     if test -n "$JACK_LIBS"; then
38441         pkg_cv_JACK_LIBS="$JACK_LIBS"
38442     else
38443         if test -n "$PKG_CONFIG" && \
38444     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\"") >&5
38445   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
38446   ac_status=$?
38447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448   (exit $ac_status); }; then
38449   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs --static "jack >= 0.8" 2>/dev/null`
38450 else
38451   pkg_failed=yes
38452 fi
38453     fi
38454 else
38455         pkg_failed=untried
38456 fi
38457 fi
38458
38459 if test -n "$PKG_CONFIG"; then
38460     if test -n "$JACK_INCLUDEDIR"; then
38461         pkg_cv_JACK_INCLUDEDIR="$JACK_INCLUDEDIR"
38462     else
38463         if test -n "$PKG_CONFIG" && \
38464     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\"") >&5
38465   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
38466   ac_status=$?
38467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468   (exit $ac_status); }; then
38469   pkg_cv_JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8" 2>/dev/null`
38470 else
38471   pkg_failed=yes
38472 fi
38473     fi
38474 else
38475         pkg_failed=untried
38476 fi
38477
38478
38479
38480
38481 if test $pkg_failed = yes; then
38482
38483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38484         _pkg_short_errors_supported=yes
38485 else
38486         _pkg_short_errors_supported=no
38487 fi
38488         if test $_pkg_short_errors_supported = yes; then
38489                 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack >= 0.8"`
38490         else
38491                 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
38492         fi
38493         # Put the nasty error message in config.log where it belongs
38494         echo "$JACK_PKG_ERRORS" >&5
38495
38496         { $as_echo "$as_me:$LINENO: result: no" >&5
38497 $as_echo "no" >&6; }
38498                 passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
38499 $as_echo "gr-audio-jack requires package jack, not found." >&6; }
38500 elif test $pkg_failed = untried; then
38501         passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
38502 $as_echo "gr-audio-jack requires package jack, not found." >&6; }
38503 else
38504         JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
38505         JACK_LIBS=$pkg_cv_JACK_LIBS
38506         JACK_INCLUDEDIR=$pkg_cv_JACK_INCLUDEDIR
38507
38508         JACK_CPPFLAGS=""
38509         for flag in $JACK_CFLAGS; do
38510           case $flag in
38511           -I* | -D* | -U*) JACK_CPPFLAGS="$JACK_CPPFLAGS $flag" ;;
38512           esac
38513         done
38514         pkg_cv_JACK_CPPFLAGS=$JACK_CPPFLAGS
38515
38516
38517         { $as_echo "$as_me:$LINENO: result: yes" >&5
38518 $as_echo "yes" >&6; }
38519         :
38520 fi
38521     fi
38522
38523     ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
38524
38525
38526
38527
38528     gr_audio_jack_with=no
38529     if test $passed = no; then
38530         if test x$enable_gr_audio_jack = xyes; then
38531             { { $as_echo "$as_me:$LINENO: error: Component gr-audio-jack has errors; stopping." >&5
38532 $as_echo "$as_me: error: Component gr-audio-jack has errors; stopping." >&2;}
38533    { (exit 1); exit 1; }; }
38534         else
38535             { $as_echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
38536 $as_echo "Not building component gr-audio-jack." >&6; }
38537         fi
38538     else
38539         if test $passed = with; then
38540             with_dirs="$with_dirs gr-audio-jack"
38541
38542     if test "x${gr_audio_jack_INCLUDES}" != "x"; then
38543         if test "x$with_INCLUDES" = "x"; then
38544             with_INCLUDES="${gr_audio_jack_INCLUDES}"
38545         else
38546             with_INCLUDES="${gr_audio_jack_INCLUDES}"" ""$with_INCLUDES"
38547         fi
38548         gr_audio_jack_INCLUDES=
38549     fi
38550
38551
38552     if test "x${gr_audio_jack_SWIG_INCLUDES}" != "x"; then
38553         if test "x$with_SWIG_INCLUDES" = "x"; then
38554             with_SWIG_INCLUDES="${gr_audio_jack_SWIG_INCLUDES}"
38555         else
38556             with_SWIG_INCLUDES="${gr_audio_jack_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
38557         fi
38558         gr_audio_jack_SWIG_INCLUDES=
38559     fi
38560
38561
38562     if test "x${gr_audio_jack_PYDIRPATH}" != "x"; then
38563         if test "x$with_PYDIRPATH" = "x"; then
38564             with_PYDIRPATH="${gr_audio_jack_PYDIRPATH}"
38565         else
38566             with_PYDIRPATH="${gr_audio_jack_PYDIRPATH}"":""$with_PYDIRPATH"
38567         fi
38568         gr_audio_jack_PYDIRPATH=
38569     fi
38570
38571
38572     if test "x${gr_audio_jack_SWIGDIRPATH}" != "x"; then
38573         if test "x$with_SWIGDIRPATH" = "x"; then
38574             with_SWIGDIRPATH="${gr_audio_jack_SWIGDIRPATH}"
38575         else
38576             with_SWIGDIRPATH="${gr_audio_jack_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
38577         fi
38578         gr_audio_jack_SWIGDIRPATH=
38579     fi
38580
38581
38582     if test "x${gr_audio_jack_LIBDIRPATH}" != "x"; then
38583         if test "x$with_LIBDIRPATH" = "x"; then
38584             with_LIBDIRPATH="${gr_audio_jack_LIBDIRPATH}"
38585         else
38586             with_LIBDIRPATH="${gr_audio_jack_LIBDIRPATH}"":""$with_LIBDIRPATH"
38587         fi
38588         gr_audio_jack_LIBDIRPATH=
38589     fi
38590
38591             { $as_echo "$as_me:$LINENO: result: Component gr-audio-jack will be included from a pre-installed library and includes." >&5
38592 $as_echo "Component gr-audio-jack will be included from a pre-installed library and includes." >&6; }
38593             gr_audio_jack_with=yes
38594         else
38595             gr_audio_jack_LDFLAG=
38596             if test x$enable_gr_audio_jack != xno; then
38597                         ac_config_commands="$ac_config_commands run_tests_jack"
38598
38599
38600                 build_dirs="$build_dirs gr-audio-jack"
38601                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks; building." >&5
38602 $as_echo "Component gr-audio-jack passed configuration checks; building." >&6; }
38603             else
38604                 passed=no
38605                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks; but not building." >&5
38606 $as_echo "Component gr-audio-jack passed configuration checks; but not building." >&6; }
38607             fi
38608         fi
38609     fi
38610     if test $passed = no; then
38611         skipped_dirs="$skipped_dirs gr-audio-jack"
38612         gr_audio_jack_skipped=yes
38613     else
38614         gr_audio_jack_skipped=no
38615     fi
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627     passed=yes
38628     # Check whether --enable-gr-audio-oss was given.
38629 if test "${enable_gr_audio_oss+set}" = set; then
38630   enableval=$enable_gr_audio_oss;
38631 else
38632
38633         enable_gr_audio_oss=$enable_all_components
38634         if test x$enable_all_components = xno; then
38635             passed=no
38636         fi
38637
38638 fi
38639
38640
38641
38642
38643
38644     if test $passed != no; then
38645         if test $passed = yes; then
38646                         if test x$gnuradio_core_skipped = xyes; then
38647                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-oss requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
38648 $as_echo "Component gr-audio-oss requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
38649                 passed=no
38650             fi
38651         else
38652                         if test x$gnuradio_core_with = xno; then
38653                 { { $as_echo "$as_me:$LINENO: error: Component gr-audio-oss requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
38654 $as_echo "$as_me: error: Component gr-audio-oss requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
38655    { (exit 1); exit 1; }; }
38656             fi
38657         fi
38658     fi
38659
38660
38661                     if test $passed = yes; then
38662                 case $host_os in
38663           netbsd*)
38664
38665 { $as_echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
38666 $as_echo_n "checking for main in -lossaudio... " >&6; }
38667 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
38668   $as_echo_n "(cached) " >&6
38669 else
38670   ac_check_lib_save_LIBS=$LIBS
38671 LIBS="-lossaudio  $LIBS"
38672 cat >conftest.$ac_ext <<_ACEOF
38673 /* confdefs.h.  */
38674 _ACEOF
38675 cat confdefs.h >>conftest.$ac_ext
38676 cat >>conftest.$ac_ext <<_ACEOF
38677 /* end confdefs.h.  */
38678
38679
38680 int
38681 main ()
38682 {
38683 return main ();
38684   ;
38685   return 0;
38686 }
38687 _ACEOF
38688 rm -f conftest.$ac_objext conftest$ac_exeext
38689 if { (ac_try="$ac_link"
38690 case "(($ac_try" in
38691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38692   *) ac_try_echo=$ac_try;;
38693 esac
38694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38695 $as_echo "$ac_try_echo") >&5
38696   (eval "$ac_link") 2>conftest.er1
38697   ac_status=$?
38698   grep -v '^ *+' conftest.er1 >conftest.err
38699   rm -f conftest.er1
38700   cat conftest.err >&5
38701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38702   (exit $ac_status); } && {
38703          test -z "$ac_c_werror_flag" ||
38704          test ! -s conftest.err
38705        } && test -s conftest$ac_exeext && {
38706          test "$cross_compiling" = yes ||
38707          $as_test_x conftest$ac_exeext
38708        }; then
38709   ac_cv_lib_ossaudio_main=yes
38710 else
38711   $as_echo "$as_me: failed program was:" >&5
38712 sed 's/^/| /' conftest.$ac_ext >&5
38713
38714         ac_cv_lib_ossaudio_main=no
38715 fi
38716
38717 rm -rf conftest.dSYM
38718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38719       conftest$ac_exeext conftest.$ac_ext
38720 LIBS=$ac_check_lib_save_LIBS
38721 fi
38722 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
38723 $as_echo "$ac_cv_lib_ossaudio_main" >&6; }
38724 if test "x$ac_cv_lib_ossaudio_main" = x""yes; then
38725   cat >>confdefs.h <<_ACEOF
38726 #define HAVE_LIBOSSAUDIO 1
38727 _ACEOF
38728
38729   LIBS="-lossaudio $LIBS"
38730
38731 else
38732   passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
38733 $as_echo "gr-audio-oss requires library ossaudio, not found." >&6; }
38734 fi
38735 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
38736
38737             if test $passed != no; then
38738                 OSS_LIBS=-lossaudio
38739
38740                 { $as_echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
38741 $as_echo "Using OSS library $OSS_LIBS" >&6; }
38742             fi
38743             ;;
38744           darwin*)
38745                     passed=no
38746             ;;
38747           *)
38748             if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
38749   { $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
38750 $as_echo_n "checking for sys/soundcard.h... " >&6; }
38751 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
38752   $as_echo_n "(cached) " >&6
38753 fi
38754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
38755 $as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
38756 else
38757   # Is the header compilable?
38758 { $as_echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
38759 $as_echo_n "checking sys/soundcard.h usability... " >&6; }
38760 cat >conftest.$ac_ext <<_ACEOF
38761 /* confdefs.h.  */
38762 _ACEOF
38763 cat confdefs.h >>conftest.$ac_ext
38764 cat >>conftest.$ac_ext <<_ACEOF
38765 /* end confdefs.h.  */
38766 $ac_includes_default
38767 #include <sys/soundcard.h>
38768 _ACEOF
38769 rm -f conftest.$ac_objext
38770 if { (ac_try="$ac_compile"
38771 case "(($ac_try" in
38772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773   *) ac_try_echo=$ac_try;;
38774 esac
38775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38776 $as_echo "$ac_try_echo") >&5
38777   (eval "$ac_compile") 2>conftest.er1
38778   ac_status=$?
38779   grep -v '^ *+' conftest.er1 >conftest.err
38780   rm -f conftest.er1
38781   cat conftest.err >&5
38782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783   (exit $ac_status); } && {
38784          test -z "$ac_c_werror_flag" ||
38785          test ! -s conftest.err
38786        } && test -s conftest.$ac_objext; then
38787   ac_header_compiler=yes
38788 else
38789   $as_echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38791
38792         ac_header_compiler=no
38793 fi
38794
38795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38796 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38797 $as_echo "$ac_header_compiler" >&6; }
38798
38799 # Is the header present?
38800 { $as_echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
38801 $as_echo_n "checking sys/soundcard.h presence... " >&6; }
38802 cat >conftest.$ac_ext <<_ACEOF
38803 /* confdefs.h.  */
38804 _ACEOF
38805 cat confdefs.h >>conftest.$ac_ext
38806 cat >>conftest.$ac_ext <<_ACEOF
38807 /* end confdefs.h.  */
38808 #include <sys/soundcard.h>
38809 _ACEOF
38810 if { (ac_try="$ac_cpp conftest.$ac_ext"
38811 case "(($ac_try" in
38812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38813   *) ac_try_echo=$ac_try;;
38814 esac
38815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38816 $as_echo "$ac_try_echo") >&5
38817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38818   ac_status=$?
38819   grep -v '^ *+' conftest.er1 >conftest.err
38820   rm -f conftest.er1
38821   cat conftest.err >&5
38822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); } >/dev/null && {
38824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38825          test ! -s conftest.err
38826        }; then
38827   ac_header_preproc=yes
38828 else
38829   $as_echo "$as_me: failed program was:" >&5
38830 sed 's/^/| /' conftest.$ac_ext >&5
38831
38832   ac_header_preproc=no
38833 fi
38834
38835 rm -f conftest.err conftest.$ac_ext
38836 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38837 $as_echo "$ac_header_preproc" >&6; }
38838
38839 # So?  What about this header?
38840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38841   yes:no: )
38842     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
38843 $as_echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38844     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
38845 $as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
38846     ac_header_preproc=yes
38847     ;;
38848   no:yes:* )
38849     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
38850 $as_echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
38851     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
38852 $as_echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
38853     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
38854 $as_echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
38855     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
38856 $as_echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38857     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
38858 $as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
38859     { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
38860 $as_echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
38861
38862     ;;
38863 esac
38864 { $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
38865 $as_echo_n "checking for sys/soundcard.h... " >&6; }
38866 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
38867   $as_echo_n "(cached) " >&6
38868 else
38869   ac_cv_header_sys_soundcard_h=$ac_header_preproc
38870 fi
38871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
38872 $as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
38873
38874 fi
38875 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then
38876   :
38877 else
38878   passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
38879 $as_echo "gr-audio-oss requires sys/soundcard.h, not found." >&6; }
38880 fi
38881
38882
38883         esac
38884     fi
38885
38886     ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
38887
38888
38889
38890
38891     gr_audio_oss_with=no
38892     if test $passed = no; then
38893         if test x$enable_gr_audio_oss = xyes; then
38894             { { $as_echo "$as_me:$LINENO: error: Component gr-audio-oss has errors; stopping." >&5
38895 $as_echo "$as_me: error: Component gr-audio-oss has errors; stopping." >&2;}
38896    { (exit 1); exit 1; }; }
38897         else
38898             { $as_echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
38899 $as_echo "Not building component gr-audio-oss." >&6; }
38900         fi
38901     else
38902         if test $passed = with; then
38903             with_dirs="$with_dirs gr-audio-oss"
38904
38905     if test "x${gr_audio_oss_INCLUDES}" != "x"; then
38906         if test "x$with_INCLUDES" = "x"; then
38907             with_INCLUDES="${gr_audio_oss_INCLUDES}"
38908         else
38909             with_INCLUDES="${gr_audio_oss_INCLUDES}"" ""$with_INCLUDES"
38910         fi
38911         gr_audio_oss_INCLUDES=
38912     fi
38913
38914
38915     if test "x${gr_audio_oss_SWIG_INCLUDES}" != "x"; then
38916         if test "x$with_SWIG_INCLUDES" = "x"; then
38917             with_SWIG_INCLUDES="${gr_audio_oss_SWIG_INCLUDES}"
38918         else
38919             with_SWIG_INCLUDES="${gr_audio_oss_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
38920         fi
38921         gr_audio_oss_SWIG_INCLUDES=
38922     fi
38923
38924
38925     if test "x${gr_audio_oss_PYDIRPATH}" != "x"; then
38926         if test "x$with_PYDIRPATH" = "x"; then
38927             with_PYDIRPATH="${gr_audio_oss_PYDIRPATH}"
38928         else
38929             with_PYDIRPATH="${gr_audio_oss_PYDIRPATH}"":""$with_PYDIRPATH"
38930         fi
38931         gr_audio_oss_PYDIRPATH=
38932     fi
38933
38934
38935     if test "x${gr_audio_oss_SWIGDIRPATH}" != "x"; then
38936         if test "x$with_SWIGDIRPATH" = "x"; then
38937             with_SWIGDIRPATH="${gr_audio_oss_SWIGDIRPATH}"
38938         else
38939             with_SWIGDIRPATH="${gr_audio_oss_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
38940         fi
38941         gr_audio_oss_SWIGDIRPATH=
38942     fi
38943
38944
38945     if test "x${gr_audio_oss_LIBDIRPATH}" != "x"; then
38946         if test "x$with_LIBDIRPATH" = "x"; then
38947             with_LIBDIRPATH="${gr_audio_oss_LIBDIRPATH}"
38948         else
38949             with_LIBDIRPATH="${gr_audio_oss_LIBDIRPATH}"":""$with_LIBDIRPATH"
38950         fi
38951         gr_audio_oss_LIBDIRPATH=
38952     fi
38953
38954             { $as_echo "$as_me:$LINENO: result: Component gr-audio-oss will be included from a pre-installed library and includes." >&5
38955 $as_echo "Component gr-audio-oss will be included from a pre-installed library and includes." >&6; }
38956             gr_audio_oss_with=yes
38957         else
38958             gr_audio_oss_LDFLAG=
38959             if test x$enable_gr_audio_oss != xno; then
38960                         ac_config_commands="$ac_config_commands run_tests_oss"
38961
38962
38963                 build_dirs="$build_dirs gr-audio-oss"
38964                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks; building." >&5
38965 $as_echo "Component gr-audio-oss passed configuration checks; building." >&6; }
38966             else
38967                 passed=no
38968                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks; but not building." >&5
38969 $as_echo "Component gr-audio-oss passed configuration checks; but not building." >&6; }
38970             fi
38971         fi
38972     fi
38973     if test $passed = no; then
38974         skipped_dirs="$skipped_dirs gr-audio-oss"
38975         gr_audio_oss_skipped=yes
38976     else
38977         gr_audio_oss_skipped=no
38978     fi
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990     passed=yes
38991     # Check whether --enable-gr-audio-osx was given.
38992 if test "${enable_gr_audio_osx+set}" = set; then
38993   enableval=$enable_gr_audio_osx;
38994 else
38995
38996         enable_gr_audio_osx=$enable_all_components
38997         if test x$enable_all_components = xno; then
38998             passed=no
38999         fi
39000
39001 fi
39002
39003
39004
39005
39006
39007     if test $passed != no; then
39008         if test $passed = yes; then
39009                         if test x$omnithread_skipped = xyes; then
39010                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-osx requires omnithread, which is not being built or specified via pre-installed files." >&5
39011 $as_echo "Component gr-audio-osx requires omnithread, which is not being built or specified via pre-installed files." >&6; }
39012                 passed=no
39013             fi
39014         else
39015                         if test x$omnithread_with = xno; then
39016                 { { $as_echo "$as_me:$LINENO: error: Component gr-audio-osx requires omnithread to be included as --with-omnithread[=arg]" >&5
39017 $as_echo "$as_me: error: Component gr-audio-osx requires omnithread to be included as --with-omnithread[=arg]" >&2;}
39018    { (exit 1); exit 1; }; }
39019             fi
39020         fi
39021     fi
39022
39023
39024     if test $passed != no; then
39025         if test $passed = yes; then
39026                         if test x$gnuradio_core_skipped = xyes; then
39027                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-osx requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
39028 $as_echo "Component gr-audio-osx requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
39029                 passed=no
39030             fi
39031         else
39032                         if test x$gnuradio_core_with = xno; then
39033                 { { $as_echo "$as_me:$LINENO: error: Component gr-audio-osx requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
39034 $as_echo "$as_me: error: Component gr-audio-osx requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
39035    { (exit 1); exit 1; }; }
39036             fi
39037         fi
39038     fi
39039
39040
39041                     if test $passed = yes; then
39042         case "$host_os" in
39043           darwin*)
39044
39045     audiounitok=yes
39046     case "$host_os" in
39047         darwin*);;
39048         *)
39049            audiounitok=no
39050            { $as_echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
39051 $as_echo "gr-audio-osx requires darwin or MacOS X." >&6; }
39052     esac
39053
39054
39055 for ac_header in AudioUnit/AudioUnit.h
39056 do
39057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39059   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39060 $as_echo_n "checking for $ac_header... " >&6; }
39061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39062   $as_echo_n "(cached) " >&6
39063 fi
39064 ac_res=`eval 'as_val=${'$as_ac_Header'}
39065                  $as_echo "$as_val"'`
39066                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39067 $as_echo "$ac_res" >&6; }
39068 else
39069   # Is the header compilable?
39070 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39071 $as_echo_n "checking $ac_header usability... " >&6; }
39072 cat >conftest.$ac_ext <<_ACEOF
39073 /* confdefs.h.  */
39074 _ACEOF
39075 cat confdefs.h >>conftest.$ac_ext
39076 cat >>conftest.$ac_ext <<_ACEOF
39077 /* end confdefs.h.  */
39078 $ac_includes_default
39079 #include <$ac_header>
39080 _ACEOF
39081 rm -f conftest.$ac_objext
39082 if { (ac_try="$ac_compile"
39083 case "(($ac_try" in
39084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39085   *) ac_try_echo=$ac_try;;
39086 esac
39087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39088 $as_echo "$ac_try_echo") >&5
39089   (eval "$ac_compile") 2>conftest.er1
39090   ac_status=$?
39091   grep -v '^ *+' conftest.er1 >conftest.err
39092   rm -f conftest.er1
39093   cat conftest.err >&5
39094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39095   (exit $ac_status); } && {
39096          test -z "$ac_c_werror_flag" ||
39097          test ! -s conftest.err
39098        } && test -s conftest.$ac_objext; then
39099   ac_header_compiler=yes
39100 else
39101   $as_echo "$as_me: failed program was:" >&5
39102 sed 's/^/| /' conftest.$ac_ext >&5
39103
39104         ac_header_compiler=no
39105 fi
39106
39107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39108 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39109 $as_echo "$ac_header_compiler" >&6; }
39110
39111 # Is the header present?
39112 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39113 $as_echo_n "checking $ac_header presence... " >&6; }
39114 cat >conftest.$ac_ext <<_ACEOF
39115 /* confdefs.h.  */
39116 _ACEOF
39117 cat confdefs.h >>conftest.$ac_ext
39118 cat >>conftest.$ac_ext <<_ACEOF
39119 /* end confdefs.h.  */
39120 #include <$ac_header>
39121 _ACEOF
39122 if { (ac_try="$ac_cpp conftest.$ac_ext"
39123 case "(($ac_try" in
39124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39125   *) ac_try_echo=$ac_try;;
39126 esac
39127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39128 $as_echo "$ac_try_echo") >&5
39129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39130   ac_status=$?
39131   grep -v '^ *+' conftest.er1 >conftest.err
39132   rm -f conftest.er1
39133   cat conftest.err >&5
39134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135   (exit $ac_status); } >/dev/null && {
39136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39137          test ! -s conftest.err
39138        }; then
39139   ac_header_preproc=yes
39140 else
39141   $as_echo "$as_me: failed program was:" >&5
39142 sed 's/^/| /' conftest.$ac_ext >&5
39143
39144   ac_header_preproc=no
39145 fi
39146
39147 rm -f conftest.err conftest.$ac_ext
39148 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39149 $as_echo "$ac_header_preproc" >&6; }
39150
39151 # So?  What about this header?
39152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39153   yes:no: )
39154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39155 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39157 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39158     ac_header_preproc=yes
39159     ;;
39160   no:yes:* )
39161     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39162 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39163     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39164 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39166 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39168 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39170 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39172 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39173
39174     ;;
39175 esac
39176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39177 $as_echo_n "checking for $ac_header... " >&6; }
39178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39179   $as_echo_n "(cached) " >&6
39180 else
39181   eval "$as_ac_Header=\$ac_header_preproc"
39182 fi
39183 ac_res=`eval 'as_val=${'$as_ac_Header'}
39184                  $as_echo "$as_val"'`
39185                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39186 $as_echo "$ac_res" >&6; }
39187
39188 fi
39189 as_val=`eval 'as_val=${'$as_ac_Header'}
39190                  $as_echo "$as_val"'`
39191    if test "x$as_val" = x""yes; then
39192   cat >>confdefs.h <<_ACEOF
39193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39194 _ACEOF
39195
39196 else
39197   audiounitok=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
39198 $as_echo "gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
39199 fi
39200
39201 done
39202
39203
39204
39205 for ac_header in AudioToolbox/AudioToolbox.h
39206 do
39207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39209   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39210 $as_echo_n "checking for $ac_header... " >&6; }
39211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39212   $as_echo_n "(cached) " >&6
39213 fi
39214 ac_res=`eval 'as_val=${'$as_ac_Header'}
39215                  $as_echo "$as_val"'`
39216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39217 $as_echo "$ac_res" >&6; }
39218 else
39219   # Is the header compilable?
39220 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39221 $as_echo_n "checking $ac_header usability... " >&6; }
39222 cat >conftest.$ac_ext <<_ACEOF
39223 /* confdefs.h.  */
39224 _ACEOF
39225 cat confdefs.h >>conftest.$ac_ext
39226 cat >>conftest.$ac_ext <<_ACEOF
39227 /* end confdefs.h.  */
39228 $ac_includes_default
39229 #include <$ac_header>
39230 _ACEOF
39231 rm -f conftest.$ac_objext
39232 if { (ac_try="$ac_compile"
39233 case "(($ac_try" in
39234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39235   *) ac_try_echo=$ac_try;;
39236 esac
39237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39238 $as_echo "$ac_try_echo") >&5
39239   (eval "$ac_compile") 2>conftest.er1
39240   ac_status=$?
39241   grep -v '^ *+' conftest.er1 >conftest.err
39242   rm -f conftest.er1
39243   cat conftest.err >&5
39244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245   (exit $ac_status); } && {
39246          test -z "$ac_c_werror_flag" ||
39247          test ! -s conftest.err
39248        } && test -s conftest.$ac_objext; then
39249   ac_header_compiler=yes
39250 else
39251   $as_echo "$as_me: failed program was:" >&5
39252 sed 's/^/| /' conftest.$ac_ext >&5
39253
39254         ac_header_compiler=no
39255 fi
39256
39257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39259 $as_echo "$ac_header_compiler" >&6; }
39260
39261 # Is the header present?
39262 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39263 $as_echo_n "checking $ac_header presence... " >&6; }
39264 cat >conftest.$ac_ext <<_ACEOF
39265 /* confdefs.h.  */
39266 _ACEOF
39267 cat confdefs.h >>conftest.$ac_ext
39268 cat >>conftest.$ac_ext <<_ACEOF
39269 /* end confdefs.h.  */
39270 #include <$ac_header>
39271 _ACEOF
39272 if { (ac_try="$ac_cpp conftest.$ac_ext"
39273 case "(($ac_try" in
39274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39275   *) ac_try_echo=$ac_try;;
39276 esac
39277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39278 $as_echo "$ac_try_echo") >&5
39279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39280   ac_status=$?
39281   grep -v '^ *+' conftest.er1 >conftest.err
39282   rm -f conftest.er1
39283   cat conftest.err >&5
39284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285   (exit $ac_status); } >/dev/null && {
39286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39287          test ! -s conftest.err
39288        }; then
39289   ac_header_preproc=yes
39290 else
39291   $as_echo "$as_me: failed program was:" >&5
39292 sed 's/^/| /' conftest.$ac_ext >&5
39293
39294   ac_header_preproc=no
39295 fi
39296
39297 rm -f conftest.err conftest.$ac_ext
39298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39299 $as_echo "$ac_header_preproc" >&6; }
39300
39301 # So?  What about this header?
39302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39303   yes:no: )
39304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39305 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39308     ac_header_preproc=yes
39309     ;;
39310   no:yes:* )
39311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39312 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39313     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39314 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39315     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39316 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39318 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39322 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39323
39324     ;;
39325 esac
39326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39327 $as_echo_n "checking for $ac_header... " >&6; }
39328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39329   $as_echo_n "(cached) " >&6
39330 else
39331   eval "$as_ac_Header=\$ac_header_preproc"
39332 fi
39333 ac_res=`eval 'as_val=${'$as_ac_Header'}
39334                  $as_echo "$as_val"'`
39335                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39336 $as_echo "$ac_res" >&6; }
39337
39338 fi
39339 as_val=`eval 'as_val=${'$as_ac_Header'}
39340                  $as_echo "$as_val"'`
39341    if test "x$as_val" = x""yes; then
39342   cat >>confdefs.h <<_ACEOF
39343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39344 _ACEOF
39345
39346 else
39347   audiounitok=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
39348 $as_echo "gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
39349 fi
39350
39351 done
39352
39353
39354     if test $audiounitok = yes; then
39355         :
39356     else
39357         passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
39358 $as_echo "gr-audio-osx requires AudioUnit, not found." >&6; }
39359     fi
39360
39361               ;;
39362           *)
39363               { $as_echo "$as_me:$LINENO: result: gr-audio-osx will build on Mac OS X and Darwin only." >&5
39364 $as_echo "gr-audio-osx will build on Mac OS X and Darwin only." >&6; }
39365               passed=no
39366               ;;
39367         esac
39368     fi
39369
39370     ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
39371
39372
39373
39374
39375     gr_audio_osx_with=no
39376     if test $passed = no; then
39377         if test x$enable_gr_audio_osx = xyes; then
39378             { { $as_echo "$as_me:$LINENO: error: Component gr-audio-osx has errors; stopping." >&5
39379 $as_echo "$as_me: error: Component gr-audio-osx has errors; stopping." >&2;}
39380    { (exit 1); exit 1; }; }
39381         else
39382             { $as_echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
39383 $as_echo "Not building component gr-audio-osx." >&6; }
39384         fi
39385     else
39386         if test $passed = with; then
39387             with_dirs="$with_dirs gr-audio-osx"
39388
39389     if test "x${gr_audio_osx_INCLUDES}" != "x"; then
39390         if test "x$with_INCLUDES" = "x"; then
39391             with_INCLUDES="${gr_audio_osx_INCLUDES}"
39392         else
39393             with_INCLUDES="${gr_audio_osx_INCLUDES}"" ""$with_INCLUDES"
39394         fi
39395         gr_audio_osx_INCLUDES=
39396     fi
39397
39398
39399     if test "x${gr_audio_osx_SWIG_INCLUDES}" != "x"; then
39400         if test "x$with_SWIG_INCLUDES" = "x"; then
39401             with_SWIG_INCLUDES="${gr_audio_osx_SWIG_INCLUDES}"
39402         else
39403             with_SWIG_INCLUDES="${gr_audio_osx_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
39404         fi
39405         gr_audio_osx_SWIG_INCLUDES=
39406     fi
39407
39408
39409     if test "x${gr_audio_osx_PYDIRPATH}" != "x"; then
39410         if test "x$with_PYDIRPATH" = "x"; then
39411             with_PYDIRPATH="${gr_audio_osx_PYDIRPATH}"
39412         else
39413             with_PYDIRPATH="${gr_audio_osx_PYDIRPATH}"":""$with_PYDIRPATH"
39414         fi
39415         gr_audio_osx_PYDIRPATH=
39416     fi
39417
39418
39419     if test "x${gr_audio_osx_SWIGDIRPATH}" != "x"; then
39420         if test "x$with_SWIGDIRPATH" = "x"; then
39421             with_SWIGDIRPATH="${gr_audio_osx_SWIGDIRPATH}"
39422         else
39423             with_SWIGDIRPATH="${gr_audio_osx_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
39424         fi
39425         gr_audio_osx_SWIGDIRPATH=
39426     fi
39427
39428
39429     if test "x${gr_audio_osx_LIBDIRPATH}" != "x"; then
39430         if test "x$with_LIBDIRPATH" = "x"; then
39431             with_LIBDIRPATH="${gr_audio_osx_LIBDIRPATH}"
39432         else
39433             with_LIBDIRPATH="${gr_audio_osx_LIBDIRPATH}"":""$with_LIBDIRPATH"
39434         fi
39435         gr_audio_osx_LIBDIRPATH=
39436     fi
39437
39438             { $as_echo "$as_me:$LINENO: result: Component gr-audio-osx will be included from a pre-installed library and includes." >&5
39439 $as_echo "Component gr-audio-osx will be included from a pre-installed library and includes." >&6; }
39440             gr_audio_osx_with=yes
39441         else
39442             gr_audio_osx_LDFLAG=
39443             if test x$enable_gr_audio_osx != xno; then
39444                         ac_config_commands="$ac_config_commands run_tests_osx"
39445
39446
39447                 build_dirs="$build_dirs gr-audio-osx"
39448                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks; building." >&5
39449 $as_echo "Component gr-audio-osx passed configuration checks; building." >&6; }
39450             else
39451                 passed=no
39452                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks; but not building." >&5
39453 $as_echo "Component gr-audio-osx passed configuration checks; but not building." >&6; }
39454             fi
39455         fi
39456     fi
39457     if test $passed = no; then
39458         skipped_dirs="$skipped_dirs gr-audio-osx"
39459         gr_audio_osx_skipped=yes
39460     else
39461         gr_audio_osx_skipped=no
39462     fi
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474     passed=yes
39475     # Check whether --enable-gr-audio-portaudio was given.
39476 if test "${enable_gr_audio_portaudio+set}" = set; then
39477   enableval=$enable_gr_audio_portaudio;
39478 else
39479
39480         enable_gr_audio_portaudio=$enable_all_components
39481         if test x$enable_all_components = xno; then
39482             passed=no
39483         fi
39484
39485 fi
39486
39487
39488
39489
39490
39491     if test $passed != no; then
39492         if test $passed = yes; then
39493                         if test x$gnuradio_core_skipped = xyes; then
39494                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-portaudio requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
39495 $as_echo "Component gr-audio-portaudio requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
39496                 passed=no
39497             fi
39498         else
39499                         if test x$gnuradio_core_with = xno; then
39500                 { { $as_echo "$as_me:$LINENO: error: Component gr-audio-portaudio requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
39501 $as_echo "$as_me: error: Component gr-audio-portaudio requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
39502    { (exit 1); exit 1; }; }
39503             fi
39504         fi
39505     fi
39506
39507
39508                     if test $passed = yes; then
39509
39510
39511
39512 pkg_failed=no
39513 { $as_echo "$as_me:$LINENO: checking for PORTAUDIO" >&5
39514 $as_echo_n "checking for PORTAUDIO... " >&6; }
39515
39516 if test -n "$PKG_CONFIG"; then
39517     if test -n "$PORTAUDIO_CFLAGS"; then
39518         pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
39519     else
39520         if test -n "$PKG_CONFIG" && \
39521     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\"") >&5
39522   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
39523   ac_status=$?
39524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525   (exit $ac_status); }; then
39526   pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19" 2>/dev/null`
39527 else
39528   pkg_failed=yes
39529 fi
39530     fi
39531 else
39532         pkg_failed=untried
39533 fi
39534
39535 if test x$cross_compiling = xyes
39536 then
39537     if test -n "$PKG_CONFIG"; then
39538     if test -n "$PORTAUDIO_LIBS"; then
39539         pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
39540     else
39541         if test -n "$PKG_CONFIG" && \
39542     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\"") >&5
39543   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
39544   ac_status=$?
39545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546   (exit $ac_status); }; then
39547   pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs --static "portaudio-2.0 >= 19" 2>/dev/null`
39548 else
39549   pkg_failed=yes
39550 fi
39551     fi
39552 else
39553         pkg_failed=untried
39554 fi
39555     _pkg_tmp=
39556   for flag in $pkg_cv_PORTAUDIO_LIBS; do
39557     case $flag in
39558     (-L/lib* | -L/usr/lib* )       ;; # ignore
39559     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
39560     esac
39561   done
39562   pkg_cv_PORTAUDIO_LIBS="$_pkg_tmp"
39563 else
39564   if test -n "$PKG_CONFIG"; then
39565     if test -n "$PORTAUDIO_LIBS"; then
39566         pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
39567     else
39568         if test -n "$PKG_CONFIG" && \
39569     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\"") >&5
39570   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
39571   ac_status=$?
39572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573   (exit $ac_status); }; then
39574   pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs --static "portaudio-2.0 >= 19" 2>/dev/null`
39575 else
39576   pkg_failed=yes
39577 fi
39578     fi
39579 else
39580         pkg_failed=untried
39581 fi
39582 fi
39583
39584 if test -n "$PKG_CONFIG"; then
39585     if test -n "$PORTAUDIO_INCLUDEDIR"; then
39586         pkg_cv_PORTAUDIO_INCLUDEDIR="$PORTAUDIO_INCLUDEDIR"
39587     else
39588         if test -n "$PKG_CONFIG" && \
39589     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\"") >&5
39590   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
39591   ac_status=$?
39592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); }; then
39594   pkg_cv_PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19" 2>/dev/null`
39595 else
39596   pkg_failed=yes
39597 fi
39598     fi
39599 else
39600         pkg_failed=untried
39601 fi
39602
39603
39604
39605
39606 if test $pkg_failed = yes; then
39607
39608 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39609         _pkg_short_errors_supported=yes
39610 else
39611         _pkg_short_errors_supported=no
39612 fi
39613         if test $_pkg_short_errors_supported = yes; then
39614                 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
39615         else
39616                 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
39617         fi
39618         # Put the nasty error message in config.log where it belongs
39619         echo "$PORTAUDIO_PKG_ERRORS" >&5
39620
39621         { $as_echo "$as_me:$LINENO: result: no" >&5
39622 $as_echo "no" >&6; }
39623                 passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
39624 $as_echo "gr-audio-portaudio requires package portaudio, not found." >&6; }
39625 elif test $pkg_failed = untried; then
39626         passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
39627 $as_echo "gr-audio-portaudio requires package portaudio, not found." >&6; }
39628 else
39629         PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
39630         PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
39631         PORTAUDIO_INCLUDEDIR=$pkg_cv_PORTAUDIO_INCLUDEDIR
39632
39633         PORTAUDIO_CPPFLAGS=""
39634         for flag in $PORTAUDIO_CFLAGS; do
39635           case $flag in
39636           -I* | -D* | -U*) PORTAUDIO_CPPFLAGS="$PORTAUDIO_CPPFLAGS $flag" ;;
39637           esac
39638         done
39639         pkg_cv_PORTAUDIO_CPPFLAGS=$PORTAUDIO_CPPFLAGS
39640
39641
39642         { $as_echo "$as_me:$LINENO: result: yes" >&5
39643 $as_echo "yes" >&6; }
39644         :
39645 fi
39646     fi
39647
39648     ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
39649
39650
39651
39652
39653     gr_audio_portaudio_with=no
39654     if test $passed = no; then
39655         if test x$enable_gr_audio_portaudio = xyes; then
39656             { { $as_echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors; stopping." >&5
39657 $as_echo "$as_me: error: Component gr-audio-portaudio has errors; stopping." >&2;}
39658    { (exit 1); exit 1; }; }
39659         else
39660             { $as_echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
39661 $as_echo "Not building component gr-audio-portaudio." >&6; }
39662         fi
39663     else
39664         if test $passed = with; then
39665             with_dirs="$with_dirs gr-audio-portaudio"
39666
39667     if test "x${gr_audio_portaudio_INCLUDES}" != "x"; then
39668         if test "x$with_INCLUDES" = "x"; then
39669             with_INCLUDES="${gr_audio_portaudio_INCLUDES}"
39670         else
39671             with_INCLUDES="${gr_audio_portaudio_INCLUDES}"" ""$with_INCLUDES"
39672         fi
39673         gr_audio_portaudio_INCLUDES=
39674     fi
39675
39676
39677     if test "x${gr_audio_portaudio_SWIG_INCLUDES}" != "x"; then
39678         if test "x$with_SWIG_INCLUDES" = "x"; then
39679             with_SWIG_INCLUDES="${gr_audio_portaudio_SWIG_INCLUDES}"
39680         else
39681             with_SWIG_INCLUDES="${gr_audio_portaudio_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
39682         fi
39683         gr_audio_portaudio_SWIG_INCLUDES=
39684     fi
39685
39686
39687     if test "x${gr_audio_portaudio_PYDIRPATH}" != "x"; then
39688         if test "x$with_PYDIRPATH" = "x"; then
39689             with_PYDIRPATH="${gr_audio_portaudio_PYDIRPATH}"
39690         else
39691             with_PYDIRPATH="${gr_audio_portaudio_PYDIRPATH}"":""$with_PYDIRPATH"
39692         fi
39693         gr_audio_portaudio_PYDIRPATH=
39694     fi
39695
39696
39697     if test "x${gr_audio_portaudio_SWIGDIRPATH}" != "x"; then
39698         if test "x$with_SWIGDIRPATH" = "x"; then
39699             with_SWIGDIRPATH="${gr_audio_portaudio_SWIGDIRPATH}"
39700         else
39701             with_SWIGDIRPATH="${gr_audio_portaudio_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
39702         fi
39703         gr_audio_portaudio_SWIGDIRPATH=
39704     fi
39705
39706
39707     if test "x${gr_audio_portaudio_LIBDIRPATH}" != "x"; then
39708         if test "x$with_LIBDIRPATH" = "x"; then
39709             with_LIBDIRPATH="${gr_audio_portaudio_LIBDIRPATH}"
39710         else
39711             with_LIBDIRPATH="${gr_audio_portaudio_LIBDIRPATH}"":""$with_LIBDIRPATH"
39712         fi
39713         gr_audio_portaudio_LIBDIRPATH=
39714     fi
39715
39716             { $as_echo "$as_me:$LINENO: result: Component gr-audio-portaudio will be included from a pre-installed library and includes." >&5
39717 $as_echo "Component gr-audio-portaudio will be included from a pre-installed library and includes." >&6; }
39718             gr_audio_portaudio_with=yes
39719         else
39720             gr_audio_portaudio_LDFLAG=
39721             if test x$enable_gr_audio_portaudio != xno; then
39722                         ac_config_commands="$ac_config_commands run_tests_portaudio"
39723
39724
39725                 build_dirs="$build_dirs gr-audio-portaudio"
39726                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks; building." >&5
39727 $as_echo "Component gr-audio-portaudio passed configuration checks; building." >&6; }
39728             else
39729                 passed=no
39730                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks; but not building." >&5
39731 $as_echo "Component gr-audio-portaudio passed configuration checks; but not building." >&6; }
39732             fi
39733         fi
39734     fi
39735     if test $passed = no; then
39736         skipped_dirs="$skipped_dirs gr-audio-portaudio"
39737         gr_audio_portaudio_skipped=yes
39738     else
39739         gr_audio_portaudio_skipped=no
39740     fi
39741
39742
39743
39744
39745
39746
39747
39748
39749
39750
39751
39752     passed=yes
39753     # Check whether --enable-gr-audio-windows was given.
39754 if test "${enable_gr_audio_windows+set}" = set; then
39755   enableval=$enable_gr_audio_windows;
39756 else
39757
39758         enable_gr_audio_windows=$enable_all_components
39759         if test x$enable_all_components = xno; then
39760             passed=no
39761         fi
39762
39763 fi
39764
39765
39766
39767
39768
39769     if test $passed != no; then
39770         if test $passed = yes; then
39771                         if test x$gnuradio_core_skipped = xyes; then
39772                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-windows requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
39773 $as_echo "Component gr-audio-windows requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
39774                 passed=no
39775             fi
39776         else
39777                         if test x$gnuradio_core_with = xno; then
39778                 { { $as_echo "$as_me:$LINENO: error: Component gr-audio-windows requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
39779 $as_echo "$as_me: error: Component gr-audio-windows requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
39780    { (exit 1); exit 1; }; }
39781             fi
39782         fi
39783     fi
39784
39785
39786                     if test $passed = yes; then
39787         case "$host_os" in
39788           cygwin*|win*|mingw*)
39789
39790 { $as_echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
39791 $as_echo_n "checking for main in -lwinmm... " >&6; }
39792 if test "${ac_cv_lib_winmm_main+set}" = set; then
39793   $as_echo_n "(cached) " >&6
39794 else
39795   ac_check_lib_save_LIBS=$LIBS
39796 LIBS="-lwinmm  $LIBS"
39797 cat >conftest.$ac_ext <<_ACEOF
39798 /* confdefs.h.  */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h.  */
39803
39804
39805 int
39806 main ()
39807 {
39808 return main ();
39809   ;
39810   return 0;
39811 }
39812 _ACEOF
39813 rm -f conftest.$ac_objext conftest$ac_exeext
39814 if { (ac_try="$ac_link"
39815 case "(($ac_try" in
39816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39817   *) ac_try_echo=$ac_try;;
39818 esac
39819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39820 $as_echo "$ac_try_echo") >&5
39821   (eval "$ac_link") 2>conftest.er1
39822   ac_status=$?
39823   grep -v '^ *+' conftest.er1 >conftest.err
39824   rm -f conftest.er1
39825   cat conftest.err >&5
39826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827   (exit $ac_status); } && {
39828          test -z "$ac_c_werror_flag" ||
39829          test ! -s conftest.err
39830        } && test -s conftest$ac_exeext && {
39831          test "$cross_compiling" = yes ||
39832          $as_test_x conftest$ac_exeext
39833        }; then
39834   ac_cv_lib_winmm_main=yes
39835 else
39836   $as_echo "$as_me: failed program was:" >&5
39837 sed 's/^/| /' conftest.$ac_ext >&5
39838
39839         ac_cv_lib_winmm_main=no
39840 fi
39841
39842 rm -rf conftest.dSYM
39843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39844       conftest$ac_exeext conftest.$ac_ext
39845 LIBS=$ac_check_lib_save_LIBS
39846 fi
39847 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
39848 $as_echo "$ac_cv_lib_winmm_main" >&6; }
39849 if test "x$ac_cv_lib_winmm_main" = x""yes; then
39850   cat >>confdefs.h <<_ACEOF
39851 #define HAVE_LIBWINMM 1
39852 _ACEOF
39853
39854   LIBS="-lwinmm $LIBS"
39855
39856 else
39857   passed=no;{ $as_echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
39858 $as_echo "gr-audio-windows requires library winmm, not found." >&6; }
39859 fi
39860 ac_cv_lib_winmm=ac_cv_lib_winmm_main
39861
39862             ;;
39863           *)
39864             { $as_echo "$as_me:$LINENO: result: gr-audio-windows will build on a Windows Unix environment only." >&5
39865 $as_echo "gr-audio-windows will build on a Windows Unix environment only." >&6; }
39866           passed=no
39867           ;;
39868         esac
39869     fi
39870
39871     ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
39872
39873
39874
39875
39876     gr_audio_windows_with=no
39877     if test $passed = no; then
39878         if test x$enable_gr_audio_windows = xyes; then
39879             { { $as_echo "$as_me:$LINENO: error: Component gr-audio-windows has errors; stopping." >&5
39880 $as_echo "$as_me: error: Component gr-audio-windows has errors; stopping." >&2;}
39881    { (exit 1); exit 1; }; }
39882         else
39883             { $as_echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
39884 $as_echo "Not building component gr-audio-windows." >&6; }
39885         fi
39886     else
39887         if test $passed = with; then
39888             with_dirs="$with_dirs gr-audio-windows"
39889
39890     if test "x${gr_audio_windows_INCLUDES}" != "x"; then
39891         if test "x$with_INCLUDES" = "x"; then
39892             with_INCLUDES="${gr_audio_windows_INCLUDES}"
39893         else
39894             with_INCLUDES="${gr_audio_windows_INCLUDES}"" ""$with_INCLUDES"
39895         fi
39896         gr_audio_windows_INCLUDES=
39897     fi
39898
39899
39900     if test "x${gr_audio_windows_SWIG_INCLUDES}" != "x"; then
39901         if test "x$with_SWIG_INCLUDES" = "x"; then
39902             with_SWIG_INCLUDES="${gr_audio_windows_SWIG_INCLUDES}"
39903         else
39904             with_SWIG_INCLUDES="${gr_audio_windows_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
39905         fi
39906         gr_audio_windows_SWIG_INCLUDES=
39907     fi
39908
39909
39910     if test "x${gr_audio_windows_PYDIRPATH}" != "x"; then
39911         if test "x$with_PYDIRPATH" = "x"; then
39912             with_PYDIRPATH="${gr_audio_windows_PYDIRPATH}"
39913         else
39914             with_PYDIRPATH="${gr_audio_windows_PYDIRPATH}"":""$with_PYDIRPATH"
39915         fi
39916         gr_audio_windows_PYDIRPATH=
39917     fi
39918
39919
39920     if test "x${gr_audio_windows_SWIGDIRPATH}" != "x"; then
39921         if test "x$with_SWIGDIRPATH" = "x"; then
39922             with_SWIGDIRPATH="${gr_audio_windows_SWIGDIRPATH}"
39923         else
39924             with_SWIGDIRPATH="${gr_audio_windows_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
39925         fi
39926         gr_audio_windows_SWIGDIRPATH=
39927     fi
39928
39929
39930     if test "x${gr_audio_windows_LIBDIRPATH}" != "x"; then
39931         if test "x$with_LIBDIRPATH" = "x"; then
39932             with_LIBDIRPATH="${gr_audio_windows_LIBDIRPATH}"
39933         else
39934             with_LIBDIRPATH="${gr_audio_windows_LIBDIRPATH}"":""$with_LIBDIRPATH"
39935         fi
39936         gr_audio_windows_LIBDIRPATH=
39937     fi
39938
39939             { $as_echo "$as_me:$LINENO: result: Component gr-audio-windows will be included from a pre-installed library and includes." >&5
39940 $as_echo "Component gr-audio-windows will be included from a pre-installed library and includes." >&6; }
39941             gr_audio_windows_with=yes
39942         else
39943             gr_audio_windows_LDFLAG=
39944             if test x$enable_gr_audio_windows != xno; then
39945                 WINAUDIO_LIBS=-lwinmm
39946
39947                 ac_config_commands="$ac_config_commands run_tests_audio_windows"
39948
39949
39950                 build_dirs="$build_dirs gr-audio-windows"
39951                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks; building." >&5
39952 $as_echo "Component gr-audio-windows passed configuration checks; building." >&6; }
39953             else
39954                 passed=no
39955                 { $as_echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks; but not building." >&5
39956 $as_echo "Component gr-audio-windows passed configuration checks; but not building." >&6; }
39957             fi
39958         fi
39959     fi
39960     if test $passed = no; then
39961         skipped_dirs="$skipped_dirs gr-audio-windows"
39962         gr_audio_windows_skipped=yes
39963     else
39964         gr_audio_windows_skipped=no
39965     fi
39966
39967
39968
39969
39970
39971
39972
39973
39974
39975
39976
39977     passed=yes
39978     # Check whether --enable-gr-cvsd-vocoder was given.
39979 if test "${enable_gr_cvsd_vocoder+set}" = set; then
39980   enableval=$enable_gr_cvsd_vocoder;
39981 else
39982
39983         enable_gr_cvsd_vocoder=$enable_all_components
39984         if test x$enable_all_components = xno; then
39985             passed=no
39986         fi
39987
39988 fi
39989
39990
39991
39992
39993
39994     if test $passed != no; then
39995         if test $passed = yes; then
39996                         if test x$gnuradio_core_skipped = xyes; then
39997                 { $as_echo "$as_me:$LINENO: result: Component gr-cvsd-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
39998 $as_echo "Component gr-cvsd-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
39999                 passed=no
40000             fi
40001         else
40002                         if test x$gnuradio_core_with = xno; then
40003                 { { $as_echo "$as_me:$LINENO: error: Component gr-cvsd-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
40004 $as_echo "$as_me: error: Component gr-cvsd-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
40005    { (exit 1); exit 1; }; }
40006             fi
40007         fi
40008     fi
40009
40010
40011     ac_config_files="$ac_config_files gr-cvsd-vocoder/Makefile gr-cvsd-vocoder/src/Makefile gr-cvsd-vocoder/src/lib/Makefile gr-cvsd-vocoder/src/python/Makefile gr-cvsd-vocoder/src/python/run_tests"
40012
40013
40014
40015
40016     gr_cvsd_vocoder_with=no
40017     if test $passed = no; then
40018         if test x$enable_gr_cvsd_vocoder = xyes; then
40019             { { $as_echo "$as_me:$LINENO: error: Component gr-cvsd-vocoder has errors; stopping." >&5
40020 $as_echo "$as_me: error: Component gr-cvsd-vocoder has errors; stopping." >&2;}
40021    { (exit 1); exit 1; }; }
40022         else
40023             { $as_echo "$as_me:$LINENO: result: Not building component gr-cvsd-vocoder." >&5
40024 $as_echo "Not building component gr-cvsd-vocoder." >&6; }
40025         fi
40026     else
40027         if test $passed = with; then
40028             with_dirs="$with_dirs gr-cvsd-vocoder"
40029
40030     if test "x${gr_cvsd_vocoder_INCLUDES}" != "x"; then
40031         if test "x$with_INCLUDES" = "x"; then
40032             with_INCLUDES="${gr_cvsd_vocoder_INCLUDES}"
40033         else
40034             with_INCLUDES="${gr_cvsd_vocoder_INCLUDES}"" ""$with_INCLUDES"
40035         fi
40036         gr_cvsd_vocoder_INCLUDES=
40037     fi
40038
40039
40040     if test "x${gr_cvsd_vocoder_SWIG_INCLUDES}" != "x"; then
40041         if test "x$with_SWIG_INCLUDES" = "x"; then
40042             with_SWIG_INCLUDES="${gr_cvsd_vocoder_SWIG_INCLUDES}"
40043         else
40044             with_SWIG_INCLUDES="${gr_cvsd_vocoder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
40045         fi
40046         gr_cvsd_vocoder_SWIG_INCLUDES=
40047     fi
40048
40049
40050     if test "x${gr_cvsd_vocoder_PYDIRPATH}" != "x"; then
40051         if test "x$with_PYDIRPATH" = "x"; then
40052             with_PYDIRPATH="${gr_cvsd_vocoder_PYDIRPATH}"
40053         else
40054             with_PYDIRPATH="${gr_cvsd_vocoder_PYDIRPATH}"":""$with_PYDIRPATH"
40055         fi
40056         gr_cvsd_vocoder_PYDIRPATH=
40057     fi
40058
40059
40060     if test "x${gr_cvsd_vocoder_SWIGDIRPATH}" != "x"; then
40061         if test "x$with_SWIGDIRPATH" = "x"; then
40062             with_SWIGDIRPATH="${gr_cvsd_vocoder_SWIGDIRPATH}"
40063         else
40064             with_SWIGDIRPATH="${gr_cvsd_vocoder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
40065         fi
40066         gr_cvsd_vocoder_SWIGDIRPATH=
40067     fi
40068
40069
40070     if test "x${gr_cvsd_vocoder_LIBDIRPATH}" != "x"; then
40071         if test "x$with_LIBDIRPATH" = "x"; then
40072             with_LIBDIRPATH="${gr_cvsd_vocoder_LIBDIRPATH}"
40073         else
40074             with_LIBDIRPATH="${gr_cvsd_vocoder_LIBDIRPATH}"":""$with_LIBDIRPATH"
40075         fi
40076         gr_cvsd_vocoder_LIBDIRPATH=
40077     fi
40078
40079             { $as_echo "$as_me:$LINENO: result: Component gr-cvsd-vocoder will be included from a pre-installed library and includes." >&5
40080 $as_echo "Component gr-cvsd-vocoder will be included from a pre-installed library and includes." >&6; }
40081             gr_cvsd_vocoder_with=yes
40082         else
40083             gr_cvsd_vocoder_LDFLAG=
40084             if test x$enable_gr_cvsd_vocoder != xno; then
40085                         ac_config_commands="$ac_config_commands run_tests_cvsd"
40086
40087
40088                 build_dirs="$build_dirs gr-cvsd-vocoder"
40089                 { $as_echo "$as_me:$LINENO: result: Component gr-cvsd-vocoder passed configuration checks; building." >&5
40090 $as_echo "Component gr-cvsd-vocoder passed configuration checks; building." >&6; }
40091             else
40092                 passed=no
40093                 { $as_echo "$as_me:$LINENO: result: Component gr-cvsd-vocoder passed configuration checks; but not building." >&5
40094 $as_echo "Component gr-cvsd-vocoder passed configuration checks; but not building." >&6; }
40095             fi
40096         fi
40097     fi
40098     if test $passed = no; then
40099         skipped_dirs="$skipped_dirs gr-cvsd-vocoder"
40100         gr_cvsd_vocoder_skipped=yes
40101     else
40102         gr_cvsd_vocoder_skipped=no
40103     fi
40104
40105
40106
40107
40108
40109
40110
40111
40112
40113
40114
40115     passed=yes
40116     # Check whether --enable-gr-gpio was given.
40117 if test "${enable_gr_gpio+set}" = set; then
40118   enableval=$enable_gr_gpio;
40119 else
40120
40121         enable_gr_gpio=$enable_all_components
40122         if test x$enable_all_components = xno; then
40123             passed=no
40124         fi
40125
40126 fi
40127
40128
40129
40130
40131
40132     if test $passed != no; then
40133         if test $passed = yes; then
40134                         if test x$usrp_skipped = xyes; then
40135                 { $as_echo "$as_me:$LINENO: result: Component gr-gpio requires usrp, which is not being built or specified via pre-installed files." >&5
40136 $as_echo "Component gr-gpio requires usrp, which is not being built or specified via pre-installed files." >&6; }
40137                 passed=no
40138             fi
40139         else
40140                         if test x$usrp_with = xno; then
40141                 { { $as_echo "$as_me:$LINENO: error: Component gr-gpio requires usrp to be included as --with-usrp[=arg]" >&5
40142 $as_echo "$as_me: error: Component gr-gpio requires usrp to be included as --with-usrp[=arg]" >&2;}
40143    { (exit 1); exit 1; }; }
40144             fi
40145         fi
40146     fi
40147
40148
40149     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"
40150
40151
40152
40153
40154     gr_gpio_with=no
40155     if test $passed = no; then
40156         if test x$enable_gr_gpio = xyes; then
40157             { { $as_echo "$as_me:$LINENO: error: Component gr-gpio has errors; stopping." >&5
40158 $as_echo "$as_me: error: Component gr-gpio has errors; stopping." >&2;}
40159    { (exit 1); exit 1; }; }
40160         else
40161             { $as_echo "$as_me:$LINENO: result: Not building component gr-gpio." >&5
40162 $as_echo "Not building component gr-gpio." >&6; }
40163         fi
40164     else
40165         if test $passed = with; then
40166             with_dirs="$with_dirs gr-gpio"
40167
40168     if test "x${gr_gpio_INCLUDES}" != "x"; then
40169         if test "x$with_INCLUDES" = "x"; then
40170             with_INCLUDES="${gr_gpio_INCLUDES}"
40171         else
40172             with_INCLUDES="${gr_gpio_INCLUDES}"" ""$with_INCLUDES"
40173         fi
40174         gr_gpio_INCLUDES=
40175     fi
40176
40177
40178     if test "x${gr_gpio_SWIG_INCLUDES}" != "x"; then
40179         if test "x$with_SWIG_INCLUDES" = "x"; then
40180             with_SWIG_INCLUDES="${gr_gpio_SWIG_INCLUDES}"
40181         else
40182             with_SWIG_INCLUDES="${gr_gpio_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
40183         fi
40184         gr_gpio_SWIG_INCLUDES=
40185     fi
40186
40187
40188     if test "x${gr_gpio_PYDIRPATH}" != "x"; then
40189         if test "x$with_PYDIRPATH" = "x"; then
40190             with_PYDIRPATH="${gr_gpio_PYDIRPATH}"
40191         else
40192             with_PYDIRPATH="${gr_gpio_PYDIRPATH}"":""$with_PYDIRPATH"
40193         fi
40194         gr_gpio_PYDIRPATH=
40195     fi
40196
40197
40198     if test "x${gr_gpio_SWIGDIRPATH}" != "x"; then
40199         if test "x$with_SWIGDIRPATH" = "x"; then
40200             with_SWIGDIRPATH="${gr_gpio_SWIGDIRPATH}"
40201         else
40202             with_SWIGDIRPATH="${gr_gpio_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
40203         fi
40204         gr_gpio_SWIGDIRPATH=
40205     fi
40206
40207
40208     if test "x${gr_gpio_LIBDIRPATH}" != "x"; then
40209         if test "x$with_LIBDIRPATH" = "x"; then
40210             with_LIBDIRPATH="${gr_gpio_LIBDIRPATH}"
40211         else
40212             with_LIBDIRPATH="${gr_gpio_LIBDIRPATH}"":""$with_LIBDIRPATH"
40213         fi
40214         gr_gpio_LIBDIRPATH=
40215     fi
40216
40217             { $as_echo "$as_me:$LINENO: result: Component gr-gpio will be included from a pre-installed library and includes." >&5
40218 $as_echo "Component gr-gpio will be included from a pre-installed library and includes." >&6; }
40219             gr_gpio_with=yes
40220         else
40221             gr_gpio_LDFLAG=
40222             if test x$enable_gr_gpio != xno; then
40223                 :
40224                 build_dirs="$build_dirs gr-gpio"
40225                 { $as_echo "$as_me:$LINENO: result: Component gr-gpio passed configuration checks; building." >&5
40226 $as_echo "Component gr-gpio passed configuration checks; building." >&6; }
40227             else
40228                 passed=no
40229                 { $as_echo "$as_me:$LINENO: result: Component gr-gpio passed configuration checks; but not building." >&5
40230 $as_echo "Component gr-gpio passed configuration checks; but not building." >&6; }
40231             fi
40232         fi
40233     fi
40234     if test $passed = no; then
40235         skipped_dirs="$skipped_dirs gr-gpio"
40236         gr_gpio_skipped=yes
40237     else
40238         gr_gpio_skipped=no
40239     fi
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249
40250
40251     passed=yes
40252     # Check whether --enable-gr-gsm-fr-vocoder was given.
40253 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
40254   enableval=$enable_gr_gsm_fr_vocoder;
40255 else
40256
40257         enable_gr_gsm_fr_vocoder=$enable_all_components
40258         if test x$enable_all_components = xno; then
40259             passed=no
40260         fi
40261
40262 fi
40263
40264
40265
40266
40267
40268     if test $passed != no; then
40269         if test $passed = yes; then
40270                         if test x$gnuradio_core_skipped = xyes; then
40271                 { $as_echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
40272 $as_echo "Component gr-gsm-fr-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
40273                 passed=no
40274             fi
40275         else
40276                         if test x$gnuradio_core_with = xno; then
40277                 { { $as_echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
40278 $as_echo "$as_me: error: Component gr-gsm-fr-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
40279    { (exit 1); exit 1; }; }
40280             fi
40281         fi
40282     fi
40283
40284
40285     ac_config_files="$ac_config_files gr-gsm-fr-vocoder/Makefile 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"
40286
40287
40288
40289
40290     gr_gsm_fr_vocoder_with=no
40291     if test $passed = no; then
40292         if test x$enable_gr_gsm_fr_vocoder = xyes; then
40293             { { $as_echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors; stopping." >&5
40294 $as_echo "$as_me: error: Component gr-gsm-fr-vocoder has errors; stopping." >&2;}
40295    { (exit 1); exit 1; }; }
40296         else
40297             { $as_echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
40298 $as_echo "Not building component gr-gsm-fr-vocoder." >&6; }
40299         fi
40300     else
40301         if test $passed = with; then
40302             with_dirs="$with_dirs gr-gsm-fr-vocoder"
40303
40304     if test "x${gr_gsm_fr_vocoder_INCLUDES}" != "x"; then
40305         if test "x$with_INCLUDES" = "x"; then
40306             with_INCLUDES="${gr_gsm_fr_vocoder_INCLUDES}"
40307         else
40308             with_INCLUDES="${gr_gsm_fr_vocoder_INCLUDES}"" ""$with_INCLUDES"
40309         fi
40310         gr_gsm_fr_vocoder_INCLUDES=
40311     fi
40312
40313
40314     if test "x${gr_gsm_fr_vocoder_SWIG_INCLUDES}" != "x"; then
40315         if test "x$with_SWIG_INCLUDES" = "x"; then
40316             with_SWIG_INCLUDES="${gr_gsm_fr_vocoder_SWIG_INCLUDES}"
40317         else
40318             with_SWIG_INCLUDES="${gr_gsm_fr_vocoder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
40319         fi
40320         gr_gsm_fr_vocoder_SWIG_INCLUDES=
40321     fi
40322
40323
40324     if test "x${gr_gsm_fr_vocoder_PYDIRPATH}" != "x"; then
40325         if test "x$with_PYDIRPATH" = "x"; then
40326             with_PYDIRPATH="${gr_gsm_fr_vocoder_PYDIRPATH}"
40327         else
40328             with_PYDIRPATH="${gr_gsm_fr_vocoder_PYDIRPATH}"":""$with_PYDIRPATH"
40329         fi
40330         gr_gsm_fr_vocoder_PYDIRPATH=
40331     fi
40332
40333
40334     if test "x${gr_gsm_fr_vocoder_SWIGDIRPATH}" != "x"; then
40335         if test "x$with_SWIGDIRPATH" = "x"; then
40336             with_SWIGDIRPATH="${gr_gsm_fr_vocoder_SWIGDIRPATH}"
40337         else
40338             with_SWIGDIRPATH="${gr_gsm_fr_vocoder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
40339         fi
40340         gr_gsm_fr_vocoder_SWIGDIRPATH=
40341     fi
40342
40343
40344     if test "x${gr_gsm_fr_vocoder_LIBDIRPATH}" != "x"; then
40345         if test "x$with_LIBDIRPATH" = "x"; then
40346             with_LIBDIRPATH="${gr_gsm_fr_vocoder_LIBDIRPATH}"
40347         else
40348             with_LIBDIRPATH="${gr_gsm_fr_vocoder_LIBDIRPATH}"":""$with_LIBDIRPATH"
40349         fi
40350         gr_gsm_fr_vocoder_LIBDIRPATH=
40351     fi
40352
40353             { $as_echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder will be included from a pre-installed library and includes." >&5
40354 $as_echo "Component gr-gsm-fr-vocoder will be included from a pre-installed library and includes." >&6; }
40355             gr_gsm_fr_vocoder_with=yes
40356         else
40357             gr_gsm_fr_vocoder_LDFLAG=
40358             if test x$enable_gr_gsm_fr_vocoder != xno; then
40359                         ac_config_commands="$ac_config_commands run_tests_gsm"
40360
40361
40362                 build_dirs="$build_dirs gr-gsm-fr-vocoder"
40363                 { $as_echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks; building." >&5
40364 $as_echo "Component gr-gsm-fr-vocoder passed configuration checks; building." >&6; }
40365             else
40366                 passed=no
40367                 { $as_echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks; but not building." >&5
40368 $as_echo "Component gr-gsm-fr-vocoder passed configuration checks; but not building." >&6; }
40369             fi
40370         fi
40371     fi
40372     if test $passed = no; then
40373         skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
40374         gr_gsm_fr_vocoder_skipped=yes
40375     else
40376         gr_gsm_fr_vocoder_skipped=no
40377     fi
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389     passed=yes
40390     # Check whether --enable-gr-pager was given.
40391 if test "${enable_gr_pager+set}" = set; then
40392   enableval=$enable_gr_pager;
40393 else
40394
40395         enable_gr_pager=$enable_all_components
40396         if test x$enable_all_components = xno; then
40397             passed=no
40398         fi
40399
40400 fi
40401
40402
40403
40404
40405
40406     if test $passed != no; then
40407         if test $passed = yes; then
40408                         if test x$gnuradio_core_skipped = xyes; then
40409                 { $as_echo "$as_me:$LINENO: result: Component gr-pager requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
40410 $as_echo "Component gr-pager requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
40411                 passed=no
40412             fi
40413         else
40414                         if test x$gnuradio_core_with = xno; then
40415                 { { $as_echo "$as_me:$LINENO: error: Component gr-pager requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
40416 $as_echo "$as_me: error: Component gr-pager requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
40417    { (exit 1); exit 1; }; }
40418             fi
40419         fi
40420     fi
40421
40422
40423     ac_config_files="$ac_config_files gr-pager/Makefile gr-pager/src/Makefile gr-pager/src/run_tests"
40424
40425
40426
40427
40428     gr_pager_with=no
40429     if test $passed = no; then
40430         if test x$enable_gr_pager = xyes; then
40431             { { $as_echo "$as_me:$LINENO: error: Component gr-pager has errors; stopping." >&5
40432 $as_echo "$as_me: error: Component gr-pager has errors; stopping." >&2;}
40433    { (exit 1); exit 1; }; }
40434         else
40435             { $as_echo "$as_me:$LINENO: result: Not building component gr-pager." >&5
40436 $as_echo "Not building component gr-pager." >&6; }
40437         fi
40438     else
40439         if test $passed = with; then
40440             with_dirs="$with_dirs gr-pager"
40441
40442     if test "x${gr_pager_INCLUDES}" != "x"; then
40443         if test "x$with_INCLUDES" = "x"; then
40444             with_INCLUDES="${gr_pager_INCLUDES}"
40445         else
40446             with_INCLUDES="${gr_pager_INCLUDES}"" ""$with_INCLUDES"
40447         fi
40448         gr_pager_INCLUDES=
40449     fi
40450
40451
40452     if test "x${gr_pager_SWIG_INCLUDES}" != "x"; then
40453         if test "x$with_SWIG_INCLUDES" = "x"; then
40454             with_SWIG_INCLUDES="${gr_pager_SWIG_INCLUDES}"
40455         else
40456             with_SWIG_INCLUDES="${gr_pager_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
40457         fi
40458         gr_pager_SWIG_INCLUDES=
40459     fi
40460
40461
40462     if test "x${gr_pager_PYDIRPATH}" != "x"; then
40463         if test "x$with_PYDIRPATH" = "x"; then
40464             with_PYDIRPATH="${gr_pager_PYDIRPATH}"
40465         else
40466             with_PYDIRPATH="${gr_pager_PYDIRPATH}"":""$with_PYDIRPATH"
40467         fi
40468         gr_pager_PYDIRPATH=
40469     fi
40470
40471
40472     if test "x${gr_pager_SWIGDIRPATH}" != "x"; then
40473         if test "x$with_SWIGDIRPATH" = "x"; then
40474             with_SWIGDIRPATH="${gr_pager_SWIGDIRPATH}"
40475         else
40476             with_SWIGDIRPATH="${gr_pager_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
40477         fi
40478         gr_pager_SWIGDIRPATH=
40479     fi
40480
40481
40482     if test "x${gr_pager_LIBDIRPATH}" != "x"; then
40483         if test "x$with_LIBDIRPATH" = "x"; then
40484             with_LIBDIRPATH="${gr_pager_LIBDIRPATH}"
40485         else
40486             with_LIBDIRPATH="${gr_pager_LIBDIRPATH}"":""$with_LIBDIRPATH"
40487         fi
40488         gr_pager_LIBDIRPATH=
40489     fi
40490
40491             { $as_echo "$as_me:$LINENO: result: Component gr-pager will be included from a pre-installed library and includes." >&5
40492 $as_echo "Component gr-pager will be included from a pre-installed library and includes." >&6; }
40493             gr_pager_with=yes
40494         else
40495             gr_pager_LDFLAG=
40496             if test x$enable_gr_pager != xno; then
40497                         ac_config_commands="$ac_config_commands run_tests_pager"
40498
40499
40500                 build_dirs="$build_dirs gr-pager"
40501                 { $as_echo "$as_me:$LINENO: result: Component gr-pager passed configuration checks; building." >&5
40502 $as_echo "Component gr-pager passed configuration checks; building." >&6; }
40503             else
40504                 passed=no
40505                 { $as_echo "$as_me:$LINENO: result: Component gr-pager passed configuration checks; but not building." >&5
40506 $as_echo "Component gr-pager passed configuration checks; but not building." >&6; }
40507             fi
40508         fi
40509     fi
40510     if test $passed = no; then
40511         skipped_dirs="$skipped_dirs gr-pager"
40512         gr_pager_skipped=yes
40513     else
40514         gr_pager_skipped=no
40515     fi
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527     passed=yes
40528     # Check whether --enable-gr-radar-mono was given.
40529 if test "${enable_gr_radar_mono+set}" = set; then
40530   enableval=$enable_gr_radar_mono;
40531 else
40532
40533         enable_gr_radar_mono=$enable_all_components
40534         if test x$enable_all_components = xno; then
40535             passed=no
40536         fi
40537
40538 fi
40539
40540
40541
40542
40543
40544     if test $passed != no; then
40545         if test $passed = yes; then
40546                         if test x$usrp_skipped = xyes; then
40547                 { $as_echo "$as_me:$LINENO: result: Component gr-radar-mono requires usrp, which is not being built or specified via pre-installed files." >&5
40548 $as_echo "Component gr-radar-mono requires usrp, which is not being built or specified via pre-installed files." >&6; }
40549                 passed=no
40550             fi
40551         else
40552                         if test x$usrp_with = xno; then
40553                 { { $as_echo "$as_me:$LINENO: error: Component gr-radar-mono requires usrp to be included as --with-usrp[=arg]" >&5
40554 $as_echo "$as_me: error: Component gr-radar-mono requires usrp to be included as --with-usrp[=arg]" >&2;}
40555    { (exit 1); exit 1; }; }
40556             fi
40557         fi
40558     fi
40559
40560
40561     if test $passed != no; then
40562         if test $passed = yes; then
40563                         if test x$gnuradio_core_skipped = xyes; then
40564                 { $as_echo "$as_me:$LINENO: result: Component gr-radar-mono requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
40565 $as_echo "Component gr-radar-mono requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
40566                 passed=no
40567             fi
40568         else
40569                         if test x$gnuradio_core_with = xno; then
40570                 { { $as_echo "$as_me:$LINENO: error: Component gr-radar-mono requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
40571 $as_echo "$as_me: error: Component gr-radar-mono requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
40572    { (exit 1); exit 1; }; }
40573             fi
40574         fi
40575     fi
40576
40577
40578     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"
40579
40580
40581
40582
40583     gr_radar_mono_with=no
40584     if test $passed = no; then
40585         if test x$enable_gr_radar_mono = xyes; then
40586             { { $as_echo "$as_me:$LINENO: error: Component gr-radar-mono has errors; stopping." >&5
40587 $as_echo "$as_me: error: Component gr-radar-mono has errors; stopping." >&2;}
40588    { (exit 1); exit 1; }; }
40589         else
40590             { $as_echo "$as_me:$LINENO: result: Not building component gr-radar-mono." >&5
40591 $as_echo "Not building component gr-radar-mono." >&6; }
40592         fi
40593     else
40594         if test $passed = with; then
40595             with_dirs="$with_dirs gr-radar-mono"
40596
40597     if test "x${gr_radar_mono_INCLUDES}" != "x"; then
40598         if test "x$with_INCLUDES" = "x"; then
40599             with_INCLUDES="${gr_radar_mono_INCLUDES}"
40600         else
40601             with_INCLUDES="${gr_radar_mono_INCLUDES}"" ""$with_INCLUDES"
40602         fi
40603         gr_radar_mono_INCLUDES=
40604     fi
40605
40606
40607     if test "x${gr_radar_mono_SWIG_INCLUDES}" != "x"; then
40608         if test "x$with_SWIG_INCLUDES" = "x"; then
40609             with_SWIG_INCLUDES="${gr_radar_mono_SWIG_INCLUDES}"
40610         else
40611             with_SWIG_INCLUDES="${gr_radar_mono_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
40612         fi
40613         gr_radar_mono_SWIG_INCLUDES=
40614     fi
40615
40616
40617     if test "x${gr_radar_mono_PYDIRPATH}" != "x"; then
40618         if test "x$with_PYDIRPATH" = "x"; then
40619             with_PYDIRPATH="${gr_radar_mono_PYDIRPATH}"
40620         else
40621             with_PYDIRPATH="${gr_radar_mono_PYDIRPATH}"":""$with_PYDIRPATH"
40622         fi
40623         gr_radar_mono_PYDIRPATH=
40624     fi
40625
40626
40627     if test "x${gr_radar_mono_SWIGDIRPATH}" != "x"; then
40628         if test "x$with_SWIGDIRPATH" = "x"; then
40629             with_SWIGDIRPATH="${gr_radar_mono_SWIGDIRPATH}"
40630         else
40631             with_SWIGDIRPATH="${gr_radar_mono_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
40632         fi
40633         gr_radar_mono_SWIGDIRPATH=
40634     fi
40635
40636
40637     if test "x${gr_radar_mono_LIBDIRPATH}" != "x"; then
40638         if test "x$with_LIBDIRPATH" = "x"; then
40639             with_LIBDIRPATH="${gr_radar_mono_LIBDIRPATH}"
40640         else
40641             with_LIBDIRPATH="${gr_radar_mono_LIBDIRPATH}"":""$with_LIBDIRPATH"
40642         fi
40643         gr_radar_mono_LIBDIRPATH=
40644     fi
40645
40646             { $as_echo "$as_me:$LINENO: result: Component gr-radar-mono will be included from a pre-installed library and includes." >&5
40647 $as_echo "Component gr-radar-mono will be included from a pre-installed library and includes." >&6; }
40648             gr_radar_mono_with=yes
40649         else
40650             gr_radar_mono_LDFLAG=
40651             if test x$enable_gr_radar_mono != xno; then
40652                         ac_config_commands="$ac_config_commands run_tests_radar_mono"
40653
40654
40655                 build_dirs="$build_dirs gr-radar-mono"
40656                 { $as_echo "$as_me:$LINENO: result: Component gr-radar-mono passed configuration checks; building." >&5
40657 $as_echo "Component gr-radar-mono passed configuration checks; building." >&6; }
40658             else
40659                 passed=no
40660                 { $as_echo "$as_me:$LINENO: result: Component gr-radar-mono passed configuration checks; but not building." >&5
40661 $as_echo "Component gr-radar-mono passed configuration checks; but not building." >&6; }
40662             fi
40663         fi
40664     fi
40665     if test $passed = no; then
40666         skipped_dirs="$skipped_dirs gr-radar-mono"
40667         gr_radar_mono_skipped=yes
40668     else
40669         gr_radar_mono_skipped=no
40670     fi
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682     passed=yes
40683     # Check whether --enable-gr-radio-astronomy was given.
40684 if test "${enable_gr_radio_astronomy+set}" = set; then
40685   enableval=$enable_gr_radio_astronomy;
40686 else
40687
40688         enable_gr_radio_astronomy=$enable_all_components
40689         if test x$enable_all_components = xno; then
40690             passed=no
40691         fi
40692
40693 fi
40694
40695
40696
40697
40698
40699     if test $passed != no; then
40700         if test $passed = yes; then
40701                         if test x$gnuradio_core_skipped = xyes; then
40702                 { $as_echo "$as_me:$LINENO: result: Component gr-radio-astronomy requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
40703 $as_echo "Component gr-radio-astronomy requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
40704                 passed=no
40705             fi
40706         else
40707                         if test x$gnuradio_core_with = xno; then
40708                 { { $as_echo "$as_me:$LINENO: error: Component gr-radio-astronomy requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
40709 $as_echo "$as_me: error: Component gr-radio-astronomy requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
40710    { (exit 1); exit 1; }; }
40711             fi
40712         fi
40713     fi
40714
40715
40716     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"
40717
40718
40719
40720
40721     gr_radio_astronomy_with=no
40722     if test $passed = no; then
40723         if test x$enable_gr_radio_astronomy = xyes; then
40724             { { $as_echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors; stopping." >&5
40725 $as_echo "$as_me: error: Component gr-radio-astronomy has errors; stopping." >&2;}
40726    { (exit 1); exit 1; }; }
40727         else
40728             { $as_echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
40729 $as_echo "Not building component gr-radio-astronomy." >&6; }
40730         fi
40731     else
40732         if test $passed = with; then
40733             with_dirs="$with_dirs gr-radio-astronomy"
40734
40735     if test "x${gr_radio_astronomy_INCLUDES}" != "x"; then
40736         if test "x$with_INCLUDES" = "x"; then
40737             with_INCLUDES="${gr_radio_astronomy_INCLUDES}"
40738         else
40739             with_INCLUDES="${gr_radio_astronomy_INCLUDES}"" ""$with_INCLUDES"
40740         fi
40741         gr_radio_astronomy_INCLUDES=
40742     fi
40743
40744
40745     if test "x${gr_radio_astronomy_SWIG_INCLUDES}" != "x"; then
40746         if test "x$with_SWIG_INCLUDES" = "x"; then
40747             with_SWIG_INCLUDES="${gr_radio_astronomy_SWIG_INCLUDES}"
40748         else
40749             with_SWIG_INCLUDES="${gr_radio_astronomy_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
40750         fi
40751         gr_radio_astronomy_SWIG_INCLUDES=
40752     fi
40753
40754
40755     if test "x${gr_radio_astronomy_PYDIRPATH}" != "x"; then
40756         if test "x$with_PYDIRPATH" = "x"; then
40757             with_PYDIRPATH="${gr_radio_astronomy_PYDIRPATH}"
40758         else
40759             with_PYDIRPATH="${gr_radio_astronomy_PYDIRPATH}"":""$with_PYDIRPATH"
40760         fi
40761         gr_radio_astronomy_PYDIRPATH=
40762     fi
40763
40764
40765     if test "x${gr_radio_astronomy_SWIGDIRPATH}" != "x"; then
40766         if test "x$with_SWIGDIRPATH" = "x"; then
40767             with_SWIGDIRPATH="${gr_radio_astronomy_SWIGDIRPATH}"
40768         else
40769             with_SWIGDIRPATH="${gr_radio_astronomy_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
40770         fi
40771         gr_radio_astronomy_SWIGDIRPATH=
40772     fi
40773
40774
40775     if test "x${gr_radio_astronomy_LIBDIRPATH}" != "x"; then
40776         if test "x$with_LIBDIRPATH" = "x"; then
40777             with_LIBDIRPATH="${gr_radio_astronomy_LIBDIRPATH}"
40778         else
40779             with_LIBDIRPATH="${gr_radio_astronomy_LIBDIRPATH}"":""$with_LIBDIRPATH"
40780         fi
40781         gr_radio_astronomy_LIBDIRPATH=
40782     fi
40783
40784             { $as_echo "$as_me:$LINENO: result: Component gr-radio-astronomy will be included from a pre-installed library and includes." >&5
40785 $as_echo "Component gr-radio-astronomy will be included from a pre-installed library and includes." >&6; }
40786             gr_radio_astronomy_with=yes
40787         else
40788             gr_radio_astronomy_LDFLAG=
40789             if test x$enable_gr_radio_astronomy != xno; then
40790                         ac_config_commands="$ac_config_commands run_tests_astronomy"
40791
40792
40793                 build_dirs="$build_dirs gr-radio-astronomy"
40794                 { $as_echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks; building." >&5
40795 $as_echo "Component gr-radio-astronomy passed configuration checks; building." >&6; }
40796             else
40797                 passed=no
40798                 { $as_echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks; but not building." >&5
40799 $as_echo "Component gr-radio-astronomy passed configuration checks; but not building." >&6; }
40800             fi
40801         fi
40802     fi
40803     if test $passed = no; then
40804         skipped_dirs="$skipped_dirs gr-radio-astronomy"
40805         gr_radio_astronomy_skipped=yes
40806     else
40807         gr_radio_astronomy_skipped=no
40808     fi
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820     passed=yes
40821     # Check whether --enable-gr-trellis was given.
40822 if test "${enable_gr_trellis+set}" = set; then
40823   enableval=$enable_gr_trellis;
40824 else
40825
40826         enable_gr_trellis=$enable_all_components
40827         if test x$enable_all_components = xno; then
40828             passed=no
40829         fi
40830
40831 fi
40832
40833
40834
40835
40836
40837     if test $passed != no; then
40838         if test $passed = yes; then
40839                         if test x$gnuradio_core_skipped = xyes; then
40840                 { $as_echo "$as_me:$LINENO: result: Component gr-trellis requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
40841 $as_echo "Component gr-trellis requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
40842                 passed=no
40843             fi
40844         else
40845                         if test x$gnuradio_core_with = xno; then
40846                 { { $as_echo "$as_me:$LINENO: error: Component gr-trellis requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
40847 $as_echo "$as_me: error: Component gr-trellis requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
40848    { (exit 1); exit 1; }; }
40849             fi
40850         fi
40851     fi
40852
40853
40854     ac_config_files="$ac_config_files gr-trellis/Makefile 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"
40855
40856
40857
40858
40859     gr_trellis_with=no
40860     if test $passed = no; then
40861         if test x$enable_gr_trellis = xyes; then
40862             { { $as_echo "$as_me:$LINENO: error: Component gr-trellis has errors; stopping." >&5
40863 $as_echo "$as_me: error: Component gr-trellis has errors; stopping." >&2;}
40864    { (exit 1); exit 1; }; }
40865         else
40866             { $as_echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
40867 $as_echo "Not building component gr-trellis." >&6; }
40868         fi
40869     else
40870         if test $passed = with; then
40871             with_dirs="$with_dirs gr-trellis"
40872
40873     if test "x${gr_trellis_INCLUDES}" != "x"; then
40874         if test "x$with_INCLUDES" = "x"; then
40875             with_INCLUDES="${gr_trellis_INCLUDES}"
40876         else
40877             with_INCLUDES="${gr_trellis_INCLUDES}"" ""$with_INCLUDES"
40878         fi
40879         gr_trellis_INCLUDES=
40880     fi
40881
40882
40883     if test "x${gr_trellis_SWIG_INCLUDES}" != "x"; then
40884         if test "x$with_SWIG_INCLUDES" = "x"; then
40885             with_SWIG_INCLUDES="${gr_trellis_SWIG_INCLUDES}"
40886         else
40887             with_SWIG_INCLUDES="${gr_trellis_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
40888         fi
40889         gr_trellis_SWIG_INCLUDES=
40890     fi
40891
40892
40893     if test "x${gr_trellis_PYDIRPATH}" != "x"; then
40894         if test "x$with_PYDIRPATH" = "x"; then
40895             with_PYDIRPATH="${gr_trellis_PYDIRPATH}"
40896         else
40897             with_PYDIRPATH="${gr_trellis_PYDIRPATH}"":""$with_PYDIRPATH"
40898         fi
40899         gr_trellis_PYDIRPATH=
40900     fi
40901
40902
40903     if test "x${gr_trellis_SWIGDIRPATH}" != "x"; then
40904         if test "x$with_SWIGDIRPATH" = "x"; then
40905             with_SWIGDIRPATH="${gr_trellis_SWIGDIRPATH}"
40906         else
40907             with_SWIGDIRPATH="${gr_trellis_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
40908         fi
40909         gr_trellis_SWIGDIRPATH=
40910     fi
40911
40912
40913     if test "x${gr_trellis_LIBDIRPATH}" != "x"; then
40914         if test "x$with_LIBDIRPATH" = "x"; then
40915             with_LIBDIRPATH="${gr_trellis_LIBDIRPATH}"
40916         else
40917             with_LIBDIRPATH="${gr_trellis_LIBDIRPATH}"":""$with_LIBDIRPATH"
40918         fi
40919         gr_trellis_LIBDIRPATH=
40920     fi
40921
40922             { $as_echo "$as_me:$LINENO: result: Component gr-trellis will be included from a pre-installed library and includes." >&5
40923 $as_echo "Component gr-trellis will be included from a pre-installed library and includes." >&6; }
40924             gr_trellis_with=yes
40925         else
40926             gr_trellis_LDFLAG=
40927             if test x$enable_gr_trellis != xno; then
40928                         ac_config_commands="$ac_config_commands run_tests_gr_trellis"
40929
40930
40931                 build_dirs="$build_dirs gr-trellis"
40932                 { $as_echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks; building." >&5
40933 $as_echo "Component gr-trellis passed configuration checks; building." >&6; }
40934             else
40935                 passed=no
40936                 { $as_echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks; but not building." >&5
40937 $as_echo "Component gr-trellis passed configuration checks; but not building." >&6; }
40938             fi
40939         fi
40940     fi
40941     if test $passed = no; then
40942         skipped_dirs="$skipped_dirs gr-trellis"
40943         gr_trellis_skipped=yes
40944     else
40945         gr_trellis_skipped=no
40946     fi
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958     passed=yes
40959     # Check whether --enable-gr-video-sdl was given.
40960 if test "${enable_gr_video_sdl+set}" = set; then
40961   enableval=$enable_gr_video_sdl;
40962 else
40963
40964         enable_gr_video_sdl=$enable_all_components
40965         if test x$enable_all_components = xno; then
40966             passed=no
40967         fi
40968
40969 fi
40970
40971
40972
40973
40974
40975     if test $passed != no; then
40976         if test $passed = yes; then
40977                         if test x$gnuradio_core_skipped = xyes; then
40978                 { $as_echo "$as_me:$LINENO: result: Component gr-video-sdl requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
40979 $as_echo "Component gr-video-sdl requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
40980                 passed=no
40981             fi
40982         else
40983                         if test x$gnuradio_core_with = xno; then
40984                 { { $as_echo "$as_me:$LINENO: error: Component gr-video-sdl requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
40985 $as_echo "$as_me: error: Component gr-video-sdl requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
40986    { (exit 1); exit 1; }; }
40987             fi
40988         fi
40989     fi
40990
40991
40992                     if test $passed = yes; then
40993
40994
40995
40996 pkg_failed=no
40997 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
40998 $as_echo_n "checking for SDL... " >&6; }
40999
41000 if test -n "$PKG_CONFIG"; then
41001     if test -n "$SDL_CFLAGS"; then
41002         pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
41003     else
41004         if test -n "$PKG_CONFIG" && \
41005     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\"") >&5
41006   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
41007   ac_status=$?
41008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41009   (exit $ac_status); }; then
41010   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
41011 else
41012   pkg_failed=yes
41013 fi
41014     fi
41015 else
41016         pkg_failed=untried
41017 fi
41018
41019 if test x$cross_compiling = xyes
41020 then
41021     if test -n "$PKG_CONFIG"; then
41022     if test -n "$SDL_LIBS"; then
41023         pkg_cv_SDL_LIBS="$SDL_LIBS"
41024     else
41025         if test -n "$PKG_CONFIG" && \
41026     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\"") >&5
41027   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
41028   ac_status=$?
41029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030   (exit $ac_status); }; then
41031   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs --static "sdl >= 1.2.0" 2>/dev/null`
41032 else
41033   pkg_failed=yes
41034 fi
41035     fi
41036 else
41037         pkg_failed=untried
41038 fi
41039     _pkg_tmp=
41040   for flag in $pkg_cv_SDL_LIBS; do
41041     case $flag in
41042     (-L/lib* | -L/usr/lib* )       ;; # ignore
41043     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
41044     esac
41045   done
41046   pkg_cv_SDL_LIBS="$_pkg_tmp"
41047 else
41048   if test -n "$PKG_CONFIG"; then
41049     if test -n "$SDL_LIBS"; then
41050         pkg_cv_SDL_LIBS="$SDL_LIBS"
41051     else
41052         if test -n "$PKG_CONFIG" && \
41053     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\"") >&5
41054   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
41055   ac_status=$?
41056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41057   (exit $ac_status); }; then
41058   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs --static "sdl >= 1.2.0" 2>/dev/null`
41059 else
41060   pkg_failed=yes
41061 fi
41062     fi
41063 else
41064         pkg_failed=untried
41065 fi
41066 fi
41067
41068 if test -n "$PKG_CONFIG"; then
41069     if test -n "$SDL_INCLUDEDIR"; then
41070         pkg_cv_SDL_INCLUDEDIR="$SDL_INCLUDEDIR"
41071     else
41072         if test -n "$PKG_CONFIG" && \
41073     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\"") >&5
41074   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
41075   ac_status=$?
41076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077   (exit $ac_status); }; then
41078   pkg_cv_SDL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "sdl >= 1.2.0" 2>/dev/null`
41079 else
41080   pkg_failed=yes
41081 fi
41082     fi
41083 else
41084         pkg_failed=untried
41085 fi
41086
41087
41088
41089
41090 if test $pkg_failed = yes; then
41091
41092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41093         _pkg_short_errors_supported=yes
41094 else
41095         _pkg_short_errors_supported=no
41096 fi
41097         if test $_pkg_short_errors_supported = yes; then
41098                 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= 1.2.0"`
41099         else
41100                 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= 1.2.0"`
41101         fi
41102         # Put the nasty error message in config.log where it belongs
41103         echo "$SDL_PKG_ERRORS" >&5
41104
41105         { $as_echo "$as_me:$LINENO: result: no" >&5
41106 $as_echo "no" >&6; }
41107                 SDL_VERSION=1.2.0
41108
41109 # Check whether --with-sdl-prefix was given.
41110 if test "${with_sdl_prefix+set}" = set; then
41111   withval=$with_sdl_prefix; sdl_prefix="$withval"
41112 else
41113   sdl_prefix=""
41114 fi
41115
41116
41117 # Check whether --with-sdl-exec-prefix was given.
41118 if test "${with_sdl_exec_prefix+set}" = set; then
41119   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
41120 else
41121   sdl_exec_prefix=""
41122 fi
41123
41124 # Check whether --enable-sdltest was given.
41125 if test "${enable_sdltest+set}" = set; then
41126   enableval=$enable_sdltest;
41127 else
41128   enable_sdltest=yes
41129 fi
41130
41131
41132   if test x$sdl_exec_prefix != x ; then
41133      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41134      if test x${SDL_CONFIG+set} != xset ; then
41135         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41136      fi
41137   fi
41138   if test x$sdl_prefix != x ; then
41139      sdl_args="$sdl_args --prefix=$sdl_prefix"
41140      if test x${SDL_CONFIG+set} != xset ; then
41141         SDL_CONFIG=$sdl_prefix/bin/sdl-config
41142      fi
41143   fi
41144
41145
41146   TMP_PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41147   # Extract the first word of "sdl-config", so it can be a program name with args.
41148 set dummy sdl-config; ac_word=$2
41149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41150 $as_echo_n "checking for $ac_word... " >&6; }
41151 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41152   $as_echo_n "(cached) " >&6
41153 else
41154   case $SDL_CONFIG in
41155   [\\/]* | ?:[\\/]*)
41156   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41157   ;;
41158   *)
41159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41160 for as_dir in $TMP_PATH
41161 do
41162   IFS=$as_save_IFS
41163   test -z "$as_dir" && as_dir=.
41164   for ac_exec_ext in '' $ac_executable_extensions; do
41165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41166     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41167     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41168     break 2
41169   fi
41170 done
41171 done
41172 IFS=$as_save_IFS
41173
41174   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41175   ;;
41176 esac
41177 fi
41178 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41179 if test -n "$SDL_CONFIG"; then
41180   { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41181 $as_echo "$SDL_CONFIG" >&6; }
41182 else
41183   { $as_echo "$as_me:$LINENO: result: no" >&5
41184 $as_echo "no" >&6; }
41185 fi
41186
41187
41188   min_sdl_version=$SDL_VERSION
41189   { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41190 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
41191   no_sdl=""
41192   if test "$SDL_CONFIG" = "no" ; then
41193     no_sdl=yes
41194   else
41195     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41196     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41197
41198     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41199            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41200     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41201            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41202     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41203            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41204     if test "x$enable_sdltest" = "xyes" ; then
41205       ac_save_CFLAGS="$CFLAGS"
41206       ac_save_LIBS="$LIBS"
41207       CFLAGS="$CFLAGS $SDL_CFLAGS"
41208       LIBS="$LIBS $SDL_LIBS"
41209       rm -f conf.sdltest
41210       if test "$cross_compiling" = yes; then
41211   echo $ac_n "cross compiling; assumed OK... $ac_c"
41212 else
41213   cat >conftest.$ac_ext <<_ACEOF
41214 /* confdefs.h.  */
41215 _ACEOF
41216 cat confdefs.h >>conftest.$ac_ext
41217 cat >>conftest.$ac_ext <<_ACEOF
41218 /* end confdefs.h.  */
41219
41220 #include <stdio.h>
41221 #include <stdlib.h>
41222 #include <string.h>
41223 #include "SDL.h"
41224
41225 char*
41226 my_strdup (char *str)
41227 {
41228   char *new_str;
41229
41230   if (str)
41231     {
41232       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41233       strcpy (new_str, str);
41234     }
41235   else
41236     new_str = NULL;
41237
41238   return new_str;
41239 }
41240
41241 int main (int argc, char *argv[])
41242 {
41243   int major, minor, micro;
41244   char *tmp_version;
41245
41246   /* This hangs on some systems (?)
41247   system ("touch conf.sdltest");
41248   */
41249   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41250
41251   /* HP/UX 9 (%@#!) writes to sscanf strings */
41252   tmp_version = my_strdup("$min_sdl_version");
41253   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41254      printf("%s, bad version string\n", "$min_sdl_version");
41255      exit(1);
41256    }
41257
41258    if (($sdl_major_version > major) ||
41259       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41260       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41261     {
41262       return 0;
41263     }
41264   else
41265     {
41266       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41267       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41268       printf("*** best to upgrade to the required version.\n");
41269       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41270       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41271       printf("*** config.cache before re-running configure\n");
41272       return 1;
41273     }
41274 }
41275
41276
41277 _ACEOF
41278 rm -f conftest$ac_exeext
41279 if { (ac_try="$ac_link"
41280 case "(($ac_try" in
41281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41282   *) ac_try_echo=$ac_try;;
41283 esac
41284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41285 $as_echo "$ac_try_echo") >&5
41286   (eval "$ac_link") 2>&5
41287   ac_status=$?
41288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41290   { (case "(($ac_try" in
41291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41292   *) ac_try_echo=$ac_try;;
41293 esac
41294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41295 $as_echo "$ac_try_echo") >&5
41296   (eval "$ac_try") 2>&5
41297   ac_status=$?
41298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299   (exit $ac_status); }; }; then
41300   :
41301 else
41302   $as_echo "$as_me: program exited with status $ac_status" >&5
41303 $as_echo "$as_me: failed program was:" >&5
41304 sed 's/^/| /' conftest.$ac_ext >&5
41305
41306 ( exit $ac_status )
41307 no_sdl=yes
41308 fi
41309 rm -rf conftest.dSYM
41310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41311 fi
41312
41313
41314        CFLAGS="$ac_save_CFLAGS"
41315        LIBS="$ac_save_LIBS"
41316      fi
41317   fi
41318   if test "x$no_sdl" = x ; then
41319      { $as_echo "$as_me:$LINENO: result: yes" >&5
41320 $as_echo "yes" >&6; }
41321      :
41322   else
41323      { $as_echo "$as_me:$LINENO: result: no" >&5
41324 $as_echo "no" >&6; }
41325      if test "$SDL_CONFIG" = "no" ; then
41326        echo "*** The sdl-config script installed by SDL could not be found"
41327        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41328        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41329        echo "*** full path to sdl-config."
41330      else
41331        if test -f conf.sdltest ; then
41332         :
41333        else
41334           echo "*** Could not run SDL test program, checking why..."
41335           CFLAGS="$CFLAGS $SDL_CFLAGS"
41336           LIBS="$LIBS $SDL_LIBS"
41337           cat >conftest.$ac_ext <<_ACEOF
41338 /* confdefs.h.  */
41339 _ACEOF
41340 cat confdefs.h >>conftest.$ac_ext
41341 cat >>conftest.$ac_ext <<_ACEOF
41342 /* end confdefs.h.  */
41343
41344 #include <stdio.h>
41345 #include "SDL.h"
41346
41347 int main(int argc, char *argv[])
41348 { return 0; }
41349 #undef  main
41350 #define main K_and_R_C_main
41351
41352 int
41353 main ()
41354 {
41355  return 0;
41356   ;
41357   return 0;
41358 }
41359 _ACEOF
41360 rm -f conftest.$ac_objext conftest$ac_exeext
41361 if { (ac_try="$ac_link"
41362 case "(($ac_try" in
41363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41364   *) ac_try_echo=$ac_try;;
41365 esac
41366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41367 $as_echo "$ac_try_echo") >&5
41368   (eval "$ac_link") 2>conftest.er1
41369   ac_status=$?
41370   grep -v '^ *+' conftest.er1 >conftest.err
41371   rm -f conftest.er1
41372   cat conftest.err >&5
41373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41374   (exit $ac_status); } && {
41375          test -z "$ac_c_werror_flag" ||
41376          test ! -s conftest.err
41377        } && test -s conftest$ac_exeext && {
41378          test "$cross_compiling" = yes ||
41379          $as_test_x conftest$ac_exeext
41380        }; then
41381    echo "*** The test program compiled, but did not run. This usually means"
41382           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41383           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41384           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41385           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41386           echo "*** is required on your system"
41387           echo "***"
41388           echo "*** If you have an old version installed, it is best to remove it, although"
41389           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41390 else
41391   $as_echo "$as_me: failed program was:" >&5
41392 sed 's/^/| /' conftest.$ac_ext >&5
41393
41394          echo "*** The test program failed to compile or link. See the file config.log for the"
41395           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41396           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41397           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41398 fi
41399
41400 rm -rf conftest.dSYM
41401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41402       conftest$ac_exeext conftest.$ac_ext
41403           CFLAGS="$ac_save_CFLAGS"
41404           LIBS="$ac_save_LIBS"
41405        fi
41406      fi
41407      SDL_CFLAGS=""
41408      SDL_LIBS=""
41409
41410              passed=no;{ $as_echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
41411 $as_echo "gr-video-sdl requires library sdl, not found or failed test." >&6; }
41412   fi
41413
41414
41415   rm -f conf.sdltest
41416
41417 elif test $pkg_failed = untried; then
41418         SDL_VERSION=1.2.0
41419
41420 # Check whether --with-sdl-prefix was given.
41421 if test "${with_sdl_prefix+set}" = set; then
41422   withval=$with_sdl_prefix; sdl_prefix="$withval"
41423 else
41424   sdl_prefix=""
41425 fi
41426
41427
41428 # Check whether --with-sdl-exec-prefix was given.
41429 if test "${with_sdl_exec_prefix+set}" = set; then
41430   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
41431 else
41432   sdl_exec_prefix=""
41433 fi
41434
41435 # Check whether --enable-sdltest was given.
41436 if test "${enable_sdltest+set}" = set; then
41437   enableval=$enable_sdltest;
41438 else
41439   enable_sdltest=yes
41440 fi
41441
41442
41443   if test x$sdl_exec_prefix != x ; then
41444      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41445      if test x${SDL_CONFIG+set} != xset ; then
41446         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41447      fi
41448   fi
41449   if test x$sdl_prefix != x ; then
41450      sdl_args="$sdl_args --prefix=$sdl_prefix"
41451      if test x${SDL_CONFIG+set} != xset ; then
41452         SDL_CONFIG=$sdl_prefix/bin/sdl-config
41453      fi
41454   fi
41455
41456
41457   TMP_PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41458   # Extract the first word of "sdl-config", so it can be a program name with args.
41459 set dummy sdl-config; ac_word=$2
41460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41461 $as_echo_n "checking for $ac_word... " >&6; }
41462 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41463   $as_echo_n "(cached) " >&6
41464 else
41465   case $SDL_CONFIG in
41466   [\\/]* | ?:[\\/]*)
41467   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41468   ;;
41469   *)
41470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41471 for as_dir in $TMP_PATH
41472 do
41473   IFS=$as_save_IFS
41474   test -z "$as_dir" && as_dir=.
41475   for ac_exec_ext in '' $ac_executable_extensions; do
41476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41477     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41478     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41479     break 2
41480   fi
41481 done
41482 done
41483 IFS=$as_save_IFS
41484
41485   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41486   ;;
41487 esac
41488 fi
41489 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41490 if test -n "$SDL_CONFIG"; then
41491   { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41492 $as_echo "$SDL_CONFIG" >&6; }
41493 else
41494   { $as_echo "$as_me:$LINENO: result: no" >&5
41495 $as_echo "no" >&6; }
41496 fi
41497
41498
41499   min_sdl_version=$SDL_VERSION
41500   { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41501 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
41502   no_sdl=""
41503   if test "$SDL_CONFIG" = "no" ; then
41504     no_sdl=yes
41505   else
41506     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41507     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41508
41509     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41510            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41511     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41512            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41513     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41514            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41515     if test "x$enable_sdltest" = "xyes" ; then
41516       ac_save_CFLAGS="$CFLAGS"
41517       ac_save_LIBS="$LIBS"
41518       CFLAGS="$CFLAGS $SDL_CFLAGS"
41519       LIBS="$LIBS $SDL_LIBS"
41520       rm -f conf.sdltest
41521       if test "$cross_compiling" = yes; then
41522   echo $ac_n "cross compiling; assumed OK... $ac_c"
41523 else
41524   cat >conftest.$ac_ext <<_ACEOF
41525 /* confdefs.h.  */
41526 _ACEOF
41527 cat confdefs.h >>conftest.$ac_ext
41528 cat >>conftest.$ac_ext <<_ACEOF
41529 /* end confdefs.h.  */
41530
41531 #include <stdio.h>
41532 #include <stdlib.h>
41533 #include <string.h>
41534 #include "SDL.h"
41535
41536 char*
41537 my_strdup (char *str)
41538 {
41539   char *new_str;
41540
41541   if (str)
41542     {
41543       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41544       strcpy (new_str, str);
41545     }
41546   else
41547     new_str = NULL;
41548
41549   return new_str;
41550 }
41551
41552 int main (int argc, char *argv[])
41553 {
41554   int major, minor, micro;
41555   char *tmp_version;
41556
41557   /* This hangs on some systems (?)
41558   system ("touch conf.sdltest");
41559   */
41560   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41561
41562   /* HP/UX 9 (%@#!) writes to sscanf strings */
41563   tmp_version = my_strdup("$min_sdl_version");
41564   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41565      printf("%s, bad version string\n", "$min_sdl_version");
41566      exit(1);
41567    }
41568
41569    if (($sdl_major_version > major) ||
41570       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41571       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41572     {
41573       return 0;
41574     }
41575   else
41576     {
41577       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41578       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41579       printf("*** best to upgrade to the required version.\n");
41580       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41581       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41582       printf("*** config.cache before re-running configure\n");
41583       return 1;
41584     }
41585 }
41586
41587
41588 _ACEOF
41589 rm -f conftest$ac_exeext
41590 if { (ac_try="$ac_link"
41591 case "(($ac_try" in
41592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41593   *) ac_try_echo=$ac_try;;
41594 esac
41595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41596 $as_echo "$ac_try_echo") >&5
41597   (eval "$ac_link") 2>&5
41598   ac_status=$?
41599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41601   { (case "(($ac_try" in
41602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41603   *) ac_try_echo=$ac_try;;
41604 esac
41605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41606 $as_echo "$ac_try_echo") >&5
41607   (eval "$ac_try") 2>&5
41608   ac_status=$?
41609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610   (exit $ac_status); }; }; then
41611   :
41612 else
41613   $as_echo "$as_me: program exited with status $ac_status" >&5
41614 $as_echo "$as_me: failed program was:" >&5
41615 sed 's/^/| /' conftest.$ac_ext >&5
41616
41617 ( exit $ac_status )
41618 no_sdl=yes
41619 fi
41620 rm -rf conftest.dSYM
41621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41622 fi
41623
41624
41625        CFLAGS="$ac_save_CFLAGS"
41626        LIBS="$ac_save_LIBS"
41627      fi
41628   fi
41629   if test "x$no_sdl" = x ; then
41630      { $as_echo "$as_me:$LINENO: result: yes" >&5
41631 $as_echo "yes" >&6; }
41632      :
41633   else
41634      { $as_echo "$as_me:$LINENO: result: no" >&5
41635 $as_echo "no" >&6; }
41636      if test "$SDL_CONFIG" = "no" ; then
41637        echo "*** The sdl-config script installed by SDL could not be found"
41638        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41639        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41640        echo "*** full path to sdl-config."
41641      else
41642        if test -f conf.sdltest ; then
41643         :
41644        else
41645           echo "*** Could not run SDL test program, checking why..."
41646           CFLAGS="$CFLAGS $SDL_CFLAGS"
41647           LIBS="$LIBS $SDL_LIBS"
41648           cat >conftest.$ac_ext <<_ACEOF
41649 /* confdefs.h.  */
41650 _ACEOF
41651 cat confdefs.h >>conftest.$ac_ext
41652 cat >>conftest.$ac_ext <<_ACEOF
41653 /* end confdefs.h.  */
41654
41655 #include <stdio.h>
41656 #include "SDL.h"
41657
41658 int main(int argc, char *argv[])
41659 { return 0; }
41660 #undef  main
41661 #define main K_and_R_C_main
41662
41663 int
41664 main ()
41665 {
41666  return 0;
41667   ;
41668   return 0;
41669 }
41670 _ACEOF
41671 rm -f conftest.$ac_objext conftest$ac_exeext
41672 if { (ac_try="$ac_link"
41673 case "(($ac_try" in
41674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41675   *) ac_try_echo=$ac_try;;
41676 esac
41677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41678 $as_echo "$ac_try_echo") >&5
41679   (eval "$ac_link") 2>conftest.er1
41680   ac_status=$?
41681   grep -v '^ *+' conftest.er1 >conftest.err
41682   rm -f conftest.er1
41683   cat conftest.err >&5
41684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685   (exit $ac_status); } && {
41686          test -z "$ac_c_werror_flag" ||
41687          test ! -s conftest.err
41688        } && test -s conftest$ac_exeext && {
41689          test "$cross_compiling" = yes ||
41690          $as_test_x conftest$ac_exeext
41691        }; then
41692    echo "*** The test program compiled, but did not run. This usually means"
41693           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41694           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41695           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41696           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41697           echo "*** is required on your system"
41698           echo "***"
41699           echo "*** If you have an old version installed, it is best to remove it, although"
41700           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41701 else
41702   $as_echo "$as_me: failed program was:" >&5
41703 sed 's/^/| /' conftest.$ac_ext >&5
41704
41705          echo "*** The test program failed to compile or link. See the file config.log for the"
41706           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41707           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41708           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41709 fi
41710
41711 rm -rf conftest.dSYM
41712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41713       conftest$ac_exeext conftest.$ac_ext
41714           CFLAGS="$ac_save_CFLAGS"
41715           LIBS="$ac_save_LIBS"
41716        fi
41717      fi
41718      SDL_CFLAGS=""
41719      SDL_LIBS=""
41720
41721              passed=no;{ $as_echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
41722 $as_echo "gr-video-sdl requires library sdl, not found or failed test." >&6; }
41723   fi
41724
41725
41726   rm -f conf.sdltest
41727
41728 else
41729         SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
41730         SDL_LIBS=$pkg_cv_SDL_LIBS
41731         SDL_INCLUDEDIR=$pkg_cv_SDL_INCLUDEDIR
41732
41733         SDL_CPPFLAGS=""
41734         for flag in $SDL_CFLAGS; do
41735           case $flag in
41736           -I* | -D* | -U*) SDL_CPPFLAGS="$SDL_CPPFLAGS $flag" ;;
41737           esac
41738         done
41739         pkg_cv_SDL_CPPFLAGS=$SDL_CPPFLAGS
41740
41741
41742         { $as_echo "$as_me:$LINENO: result: yes" >&5
41743 $as_echo "yes" >&6; }
41744         :
41745 fi
41746     fi
41747
41748     ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
41749
41750
41751
41752
41753     gr_video_sdl_with=no
41754     if test $passed = no; then
41755         if test x$enable_gr_video_sdl = xyes; then
41756             { { $as_echo "$as_me:$LINENO: error: Component gr-video-sdl has errors; stopping." >&5
41757 $as_echo "$as_me: error: Component gr-video-sdl has errors; stopping." >&2;}
41758    { (exit 1); exit 1; }; }
41759         else
41760             { $as_echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
41761 $as_echo "Not building component gr-video-sdl." >&6; }
41762         fi
41763     else
41764         if test $passed = with; then
41765             with_dirs="$with_dirs gr-video-sdl"
41766
41767     if test "x${gr_video_sdl_INCLUDES}" != "x"; then
41768         if test "x$with_INCLUDES" = "x"; then
41769             with_INCLUDES="${gr_video_sdl_INCLUDES}"
41770         else
41771             with_INCLUDES="${gr_video_sdl_INCLUDES}"" ""$with_INCLUDES"
41772         fi
41773         gr_video_sdl_INCLUDES=
41774     fi
41775
41776
41777     if test "x${gr_video_sdl_SWIG_INCLUDES}" != "x"; then
41778         if test "x$with_SWIG_INCLUDES" = "x"; then
41779             with_SWIG_INCLUDES="${gr_video_sdl_SWIG_INCLUDES}"
41780         else
41781             with_SWIG_INCLUDES="${gr_video_sdl_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
41782         fi
41783         gr_video_sdl_SWIG_INCLUDES=
41784     fi
41785
41786
41787     if test "x${gr_video_sdl_PYDIRPATH}" != "x"; then
41788         if test "x$with_PYDIRPATH" = "x"; then
41789             with_PYDIRPATH="${gr_video_sdl_PYDIRPATH}"
41790         else
41791             with_PYDIRPATH="${gr_video_sdl_PYDIRPATH}"":""$with_PYDIRPATH"
41792         fi
41793         gr_video_sdl_PYDIRPATH=
41794     fi
41795
41796
41797     if test "x${gr_video_sdl_SWIGDIRPATH}" != "x"; then
41798         if test "x$with_SWIGDIRPATH" = "x"; then
41799             with_SWIGDIRPATH="${gr_video_sdl_SWIGDIRPATH}"
41800         else
41801             with_SWIGDIRPATH="${gr_video_sdl_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
41802         fi
41803         gr_video_sdl_SWIGDIRPATH=
41804     fi
41805
41806
41807     if test "x${gr_video_sdl_LIBDIRPATH}" != "x"; then
41808         if test "x$with_LIBDIRPATH" = "x"; then
41809             with_LIBDIRPATH="${gr_video_sdl_LIBDIRPATH}"
41810         else
41811             with_LIBDIRPATH="${gr_video_sdl_LIBDIRPATH}"":""$with_LIBDIRPATH"
41812         fi
41813         gr_video_sdl_LIBDIRPATH=
41814     fi
41815
41816             { $as_echo "$as_me:$LINENO: result: Component gr-video-sdl will be included from a pre-installed library and includes." >&5
41817 $as_echo "Component gr-video-sdl will be included from a pre-installed library and includes." >&6; }
41818             gr_video_sdl_with=yes
41819         else
41820             gr_video_sdl_LDFLAG=
41821             if test x$enable_gr_video_sdl != xno; then
41822                         ac_config_commands="$ac_config_commands run_tests_sdl"
41823
41824
41825                 build_dirs="$build_dirs gr-video-sdl"
41826                 { $as_echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks; building." >&5
41827 $as_echo "Component gr-video-sdl passed configuration checks; building." >&6; }
41828             else
41829                 passed=no
41830                 { $as_echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks; but not building." >&5
41831 $as_echo "Component gr-video-sdl passed configuration checks; but not building." >&6; }
41832             fi
41833         fi
41834     fi
41835     if test $passed = no; then
41836         skipped_dirs="$skipped_dirs gr-video-sdl"
41837         gr_video_sdl_skipped=yes
41838     else
41839         gr_video_sdl_skipped=no
41840     fi
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852     passed=yes
41853     # Check whether --enable-gr-wxgui was given.
41854 if test "${enable_gr_wxgui+set}" = set; then
41855   enableval=$enable_gr_wxgui;
41856 else
41857
41858         enable_gr_wxgui=$enable_all_components
41859         if test x$enable_all_components = xno; then
41860             passed=no
41861         fi
41862
41863 fi
41864
41865
41866
41867
41868     if test x = x; then
41869         pc_comp_name="gr-wxgui"
41870     else
41871         pc_comp_name=""
41872     fi
41873
41874
41875 # Check whether --with-gr-wxgui was given.
41876 if test "${with_gr_wxgui+set}" = set; then
41877   withval=$with_gr_wxgui; if test "x$withval" != "xyes"; then
41878                     with_gr_wxgui_val=$withval
41879                     with_gr_wxgui=yes
41880                  fi
41881 fi
41882
41883     if test x$with_gr_wxgui = xyes; then
41884         if test x$enable_gr_wxgui = xyes; then
41885             { { $as_echo "$as_me:$LINENO: error: Component gr-wxgui: Cannot use both --enable and --with" >&5
41886 $as_echo "$as_me: error: Component gr-wxgui: Cannot use both --enable and --with" >&2;}
41887    { (exit 1); exit 1; }; }
41888         else
41889
41890         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
41891
41892             l_PKG_CONFIG_PATH=$with_gr_wxgui_val
41893     if test "x$l_PKG_CONFIG_PATH" != "x"; then
41894         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
41895
41896                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
41897             { { $as_echo "$as_me:$LINENO: error: Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&5
41898 $as_echo "$as_me: error: Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." >&2;}
41899    { (exit 1); exit 1; }; }
41900         fi
41901     fi
41902
41903         if test -n "$PKG_CONFIG" && \
41904     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
41905   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
41906   ac_status=$?
41907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908   (exit $ac_status); }; then
41909   passed=with; check1=yes
41910 else
41911
41912         check1=no
41913                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
41914             if test "x$s_PKG_CONFIG_PATH" != "x"; then
41915                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
41916                 if test -n "$PKG_CONFIG" && \
41917     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\"") >&5
41918   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
41919   ac_status=$?
41920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921   (exit $ac_status); }; then
41922   passed=with
41923 else
41924   passed=no
41925 fi
41926             fi
41927         fi
41928         if test $passed != with; then
41929             { { $as_echo "$as_me:$LINENO: error: Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&5
41930 $as_echo "$as_me: error: Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." >&2;}
41931    { (exit 1); exit 1; }; }
41932         fi
41933                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
41934
41935 fi
41936
41937                 gr_wxgui_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
41938     gr_wxgui_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
41939     gr_wxgui_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
41940
41941     if test x$check1 = xyes; then
41942                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
41943             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
41944         fi
41945     fi
41946
41947             :
41948         fi
41949     fi
41950
41951
41952
41953
41954     if test $passed != no; then
41955         if test $passed = yes; then
41956                         if test x$gnuradio_core_skipped = xyes; then
41957                 { $as_echo "$as_me:$LINENO: result: Component gr-wxgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
41958 $as_echo "Component gr-wxgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
41959                 passed=no
41960             fi
41961         else
41962                         if test x$gnuradio_core_with = xno; then
41963                 { { $as_echo "$as_me:$LINENO: error: Component gr-wxgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
41964 $as_echo "$as_me: error: Component gr-wxgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
41965    { (exit 1); exit 1; }; }
41966             fi
41967         fi
41968     fi
41969
41970
41971                     if test $passed = yes; then
41972
41973     { $as_echo "$as_me:$LINENO: checking for Python wxWidgets wrappers >= 2.8" >&5
41974 $as_echo_n "checking for Python wxWidgets wrappers >= 2.8... " >&6; }
41975                 if test "wx.version().split()[0] >= "2.8""; then
41976         python_cmd='
41977 try:
41978     import wx
41979     assert wx.version().split()[0] >= "2.8"
41980 except: exit(1)'
41981                 else
41982         python_cmd='
41983 try: import wx
41984 except: exit(1)'
41985     fi
41986     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
41987         { $as_echo "$as_me:$LINENO: result: no" >&5
41988 $as_echo "no" >&6; }
41989         passed=no
41990     else
41991         { $as_echo "$as_me:$LINENO: result: yes" >&5
41992 $as_echo "yes" >&6; }
41993
41994     fi
41995
41996
41997     { $as_echo "$as_me:$LINENO: checking for Numeric Python extensions" >&5
41998 $as_echo_n "checking for Numeric Python extensions... " >&6; }
41999                 if test ""; then
42000         python_cmd='
42001 try:
42002     import numpy
42003     assert
42004 except: exit(1)'
42005                 else
42006         python_cmd='
42007 try: import numpy
42008 except: exit(1)'
42009     fi
42010     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
42011         { $as_echo "$as_me:$LINENO: result: no" >&5
42012 $as_echo "no" >&6; }
42013         passed=no
42014     else
42015         { $as_echo "$as_me:$LINENO: result: yes" >&5
42016 $as_echo "yes" >&6; }
42017
42018     fi
42019
42020     fi
42021
42022     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"
42023
42024
42025
42026
42027     gr_wxgui_with=no
42028     if test $passed = no; then
42029         if test x$enable_gr_wxgui = xyes; then
42030             { { $as_echo "$as_me:$LINENO: error: Component gr-wxgui has errors; stopping." >&5
42031 $as_echo "$as_me: error: Component gr-wxgui has errors; stopping." >&2;}
42032    { (exit 1); exit 1; }; }
42033         else
42034             { $as_echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
42035 $as_echo "Not building component gr-wxgui." >&6; }
42036         fi
42037     else
42038         if test $passed = with; then
42039             with_dirs="$with_dirs gr-wxgui"
42040
42041     if test "x${gr_wxgui_INCLUDES}" != "x"; then
42042         if test "x$with_INCLUDES" = "x"; then
42043             with_INCLUDES="${gr_wxgui_INCLUDES}"
42044         else
42045             with_INCLUDES="${gr_wxgui_INCLUDES}"" ""$with_INCLUDES"
42046         fi
42047         gr_wxgui_INCLUDES=
42048     fi
42049
42050
42051     if test "x${gr_wxgui_SWIG_INCLUDES}" != "x"; then
42052         if test "x$with_SWIG_INCLUDES" = "x"; then
42053             with_SWIG_INCLUDES="${gr_wxgui_SWIG_INCLUDES}"
42054         else
42055             with_SWIG_INCLUDES="${gr_wxgui_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
42056         fi
42057         gr_wxgui_SWIG_INCLUDES=
42058     fi
42059
42060
42061     if test "x${gr_wxgui_PYDIRPATH}" != "x"; then
42062         if test "x$with_PYDIRPATH" = "x"; then
42063             with_PYDIRPATH="${gr_wxgui_PYDIRPATH}"
42064         else
42065             with_PYDIRPATH="${gr_wxgui_PYDIRPATH}"":""$with_PYDIRPATH"
42066         fi
42067         gr_wxgui_PYDIRPATH=
42068     fi
42069
42070
42071     if test "x${gr_wxgui_SWIGDIRPATH}" != "x"; then
42072         if test "x$with_SWIGDIRPATH" = "x"; then
42073             with_SWIGDIRPATH="${gr_wxgui_SWIGDIRPATH}"
42074         else
42075             with_SWIGDIRPATH="${gr_wxgui_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
42076         fi
42077         gr_wxgui_SWIGDIRPATH=
42078     fi
42079
42080
42081     if test "x${gr_wxgui_LIBDIRPATH}" != "x"; then
42082         if test "x$with_LIBDIRPATH" = "x"; then
42083             with_LIBDIRPATH="${gr_wxgui_LIBDIRPATH}"
42084         else
42085             with_LIBDIRPATH="${gr_wxgui_LIBDIRPATH}"":""$with_LIBDIRPATH"
42086         fi
42087         gr_wxgui_LIBDIRPATH=
42088     fi
42089
42090             { $as_echo "$as_me:$LINENO: result: Component gr-wxgui will be included from a pre-installed library and includes." >&5
42091 $as_echo "Component gr-wxgui will be included from a pre-installed library and includes." >&6; }
42092             gr_wxgui_with=yes
42093         else
42094             gr_wxgui_LDFLAG=
42095             if test x$enable_gr_wxgui != xno; then
42096                 :
42097                 build_dirs="$build_dirs gr-wxgui"
42098                 { $as_echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks; building." >&5
42099 $as_echo "Component gr-wxgui passed configuration checks; building." >&6; }
42100             else
42101                 passed=no
42102                 { $as_echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks; but not building." >&5
42103 $as_echo "Component gr-wxgui passed configuration checks; but not building." >&6; }
42104             fi
42105         fi
42106     fi
42107     if test $passed = no; then
42108         skipped_dirs="$skipped_dirs gr-wxgui"
42109         gr_wxgui_skipped=yes
42110     else
42111         gr_wxgui_skipped=no
42112     fi
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123
42124
42125     passed=yes
42126     # Check whether --enable-gr-qtgui was given.
42127 if test "${enable_gr_qtgui+set}" = set; then
42128   enableval=$enable_gr_qtgui;
42129 else
42130
42131         enable_gr_qtgui=$enable_all_components
42132         if test x$enable_all_components = xno; then
42133             passed=no
42134         fi
42135
42136 fi
42137
42138
42139
42140
42141
42142     if test $passed != no; then
42143         if test $passed = yes; then
42144                         if test x$gnuradio_core_skipped = xyes; then
42145                 { $as_echo "$as_me:$LINENO: result: Component gr-qtgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
42146 $as_echo "Component gr-qtgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
42147                 passed=no
42148             fi
42149         else
42150                         if test x$gnuradio_core_with = xno; then
42151                 { { $as_echo "$as_me:$LINENO: error: Component gr-qtgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
42152 $as_echo "$as_me: error: Component gr-qtgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
42153    { (exit 1); exit 1; }; }
42154             fi
42155         fi
42156     fi
42157
42158
42159
42160
42161     { $as_echo "$as_me:$LINENO: checking for PyQt4 for Qt4" >&5
42162 $as_echo_n "checking for PyQt4 for Qt4... " >&6; }
42163                 if test "\
42164         PyQt4.QtCore.PYQT_VERSION >= 260000"; then
42165         python_cmd='
42166 try:
42167     import PyQt4.QtCore
42168     assert \
42169         PyQt4.QtCore.PYQT_VERSION >= 260000
42170 except: exit(1)'
42171                 else
42172         python_cmd='
42173 try: import PyQt4.QtCore
42174 except: exit(1)'
42175     fi
42176     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
42177         { $as_echo "$as_me:$LINENO: result: no" >&5
42178 $as_echo "no" >&6; }
42179         passed=no
42180     else
42181         { $as_echo "$as_me:$LINENO: result: yes" >&5
42182 $as_echo "yes" >&6; }
42183         \
42184         passed=yes
42185     fi
42186
42187
42188     # Enable this if we want to test for PyQwt, too
42189     #PYTHON_CHECK_MODULE([PyQt4.Qwt5], [PyQwt5 for Qt4], \
42190     #   [passed=yes], [passed=no], \
42191     #   [PyQt4.Qwt5.QWT_VERSION >= 327000])
42192
42193 # Check for:
42194 #       QtOpenGL
42195 #       QtGui
42196 #       QtCore
42197 #       qwt
42198 #       qwtplot3d
42199 #       qt4
42200
42201 # qt4-core, qt4-gui, qwt5-qt4, qwt5-qt4-dev, libqwtplot3d-qt4, libqwtplot3d-qt4-dev, qt4-dev-tools
42202
42203     if test $passed = yes; then
42204
42205
42206
42207 pkg_failed=no
42208 { $as_echo "$as_me:$LINENO: checking for QTCORE" >&5
42209 $as_echo_n "checking for QTCORE... " >&6; }
42210
42211 if test -n "$PKG_CONFIG"; then
42212     if test -n "$QTCORE_CFLAGS"; then
42213         pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
42214     else
42215         if test -n "$PKG_CONFIG" && \
42216     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\"") >&5
42217   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
42218   ac_status=$?
42219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42220   (exit $ac_status); }; then
42221   pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.2" 2>/dev/null`
42222 else
42223   pkg_failed=yes
42224 fi
42225     fi
42226 else
42227         pkg_failed=untried
42228 fi
42229
42230 if test x$cross_compiling = xyes
42231 then
42232     if test -n "$PKG_CONFIG"; then
42233     if test -n "$QTCORE_LIBS"; then
42234         pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
42235     else
42236         if test -n "$PKG_CONFIG" && \
42237     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\"") >&5
42238   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
42239   ac_status=$?
42240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42241   (exit $ac_status); }; then
42242   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs --static "QtCore >= 4.2" 2>/dev/null`
42243 else
42244   pkg_failed=yes
42245 fi
42246     fi
42247 else
42248         pkg_failed=untried
42249 fi
42250     _pkg_tmp=
42251   for flag in $pkg_cv_QTCORE_LIBS; do
42252     case $flag in
42253     (-L/lib* | -L/usr/lib* )       ;; # ignore
42254     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
42255     esac
42256   done
42257   pkg_cv_QTCORE_LIBS="$_pkg_tmp"
42258 else
42259   if test -n "$PKG_CONFIG"; then
42260     if test -n "$QTCORE_LIBS"; then
42261         pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
42262     else
42263         if test -n "$PKG_CONFIG" && \
42264     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\"") >&5
42265   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
42266   ac_status=$?
42267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268   (exit $ac_status); }; then
42269   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs --static "QtCore >= 4.2" 2>/dev/null`
42270 else
42271   pkg_failed=yes
42272 fi
42273     fi
42274 else
42275         pkg_failed=untried
42276 fi
42277 fi
42278
42279 if test -n "$PKG_CONFIG"; then
42280     if test -n "$QTCORE_INCLUDEDIR"; then
42281         pkg_cv_QTCORE_INCLUDEDIR="$QTCORE_INCLUDEDIR"
42282     else
42283         if test -n "$PKG_CONFIG" && \
42284     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\"") >&5
42285   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
42286   ac_status=$?
42287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288   (exit $ac_status); }; then
42289   pkg_cv_QTCORE_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtCore >= 4.2" 2>/dev/null`
42290 else
42291   pkg_failed=yes
42292 fi
42293     fi
42294 else
42295         pkg_failed=untried
42296 fi
42297
42298
42299
42300
42301 if test $pkg_failed = yes; then
42302
42303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42304         _pkg_short_errors_supported=yes
42305 else
42306         _pkg_short_errors_supported=no
42307 fi
42308         if test $_pkg_short_errors_supported = yes; then
42309                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore >= 4.2"`
42310         else
42311                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore >= 4.2"`
42312         fi
42313         # Put the nasty error message in config.log where it belongs
42314         echo "$QTCORE_PKG_ERRORS" >&5
42315
42316         { $as_echo "$as_me:$LINENO: result: no" >&5
42317 $as_echo "no" >&6; }
42318                 passed=no; { $as_echo "$as_me:$LINENO: result: gr-qtgui requires libQtCore >= 4.2." >&5
42319 $as_echo "gr-qtgui requires libQtCore >= 4.2." >&6; }
42320 elif test $pkg_failed = untried; then
42321         passed=no; { $as_echo "$as_me:$LINENO: result: gr-qtgui requires libQtCore >= 4.2." >&5
42322 $as_echo "gr-qtgui requires libQtCore >= 4.2." >&6; }
42323 else
42324         QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
42325         QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
42326         QTCORE_INCLUDEDIR=$pkg_cv_QTCORE_INCLUDEDIR
42327
42328         QTCORE_CPPFLAGS=""
42329         for flag in $QTCORE_CFLAGS; do
42330           case $flag in
42331           -I* | -D* | -U*) QTCORE_CPPFLAGS="$QTCORE_CPPFLAGS $flag" ;;
42332           esac
42333         done
42334         pkg_cv_QTCORE_CPPFLAGS=$QTCORE_CPPFLAGS
42335
42336
42337         { $as_echo "$as_me:$LINENO: result: yes" >&5
42338 $as_echo "yes" >&6; }
42339         :
42340 fi
42341
42342
42343
42344 pkg_failed=no
42345 { $as_echo "$as_me:$LINENO: checking for QTGUI" >&5
42346 $as_echo_n "checking for QTGUI... " >&6; }
42347
42348 if test -n "$PKG_CONFIG"; then
42349     if test -n "$QTGUI_CFLAGS"; then
42350         pkg_cv_QTGUI_CFLAGS="$QTGUI_CFLAGS"
42351     else
42352         if test -n "$PKG_CONFIG" && \
42353     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\"") >&5
42354   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
42355   ac_status=$?
42356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42357   (exit $ac_status); }; then
42358   pkg_cv_QTGUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= 4.2" 2>/dev/null`
42359 else
42360   pkg_failed=yes
42361 fi
42362     fi
42363 else
42364         pkg_failed=untried
42365 fi
42366
42367 if test x$cross_compiling = xyes
42368 then
42369     if test -n "$PKG_CONFIG"; then
42370     if test -n "$QTGUI_LIBS"; then
42371         pkg_cv_QTGUI_LIBS="$QTGUI_LIBS"
42372     else
42373         if test -n "$PKG_CONFIG" && \
42374     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\"") >&5
42375   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
42376   ac_status=$?
42377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42378   (exit $ac_status); }; then
42379   pkg_cv_QTGUI_LIBS=`$PKG_CONFIG --libs --static "QtGui >= 4.2" 2>/dev/null`
42380 else
42381   pkg_failed=yes
42382 fi
42383     fi
42384 else
42385         pkg_failed=untried
42386 fi
42387     _pkg_tmp=
42388   for flag in $pkg_cv_QTGUI_LIBS; do
42389     case $flag in
42390     (-L/lib* | -L/usr/lib* )       ;; # ignore
42391     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
42392     esac
42393   done
42394   pkg_cv_QTGUI_LIBS="$_pkg_tmp"
42395 else
42396   if test -n "$PKG_CONFIG"; then
42397     if test -n "$QTGUI_LIBS"; then
42398         pkg_cv_QTGUI_LIBS="$QTGUI_LIBS"
42399     else
42400         if test -n "$PKG_CONFIG" && \
42401     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\"") >&5
42402   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
42403   ac_status=$?
42404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42405   (exit $ac_status); }; then
42406   pkg_cv_QTGUI_LIBS=`$PKG_CONFIG --libs --static "QtGui >= 4.2" 2>/dev/null`
42407 else
42408   pkg_failed=yes
42409 fi
42410     fi
42411 else
42412         pkg_failed=untried
42413 fi
42414 fi
42415
42416 if test -n "$PKG_CONFIG"; then
42417     if test -n "$QTGUI_INCLUDEDIR"; then
42418         pkg_cv_QTGUI_INCLUDEDIR="$QTGUI_INCLUDEDIR"
42419     else
42420         if test -n "$PKG_CONFIG" && \
42421     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\"") >&5
42422   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
42423   ac_status=$?
42424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425   (exit $ac_status); }; then
42426   pkg_cv_QTGUI_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtGui >= 4.2" 2>/dev/null`
42427 else
42428   pkg_failed=yes
42429 fi
42430     fi
42431 else
42432         pkg_failed=untried
42433 fi
42434
42435
42436
42437
42438 if test $pkg_failed = yes; then
42439
42440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42441         _pkg_short_errors_supported=yes
42442 else
42443         _pkg_short_errors_supported=no
42444 fi
42445         if test $_pkg_short_errors_supported = yes; then
42446                 QTGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui >= 4.2"`
42447         else
42448                 QTGUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui >= 4.2"`
42449         fi
42450         # Put the nasty error message in config.log where it belongs
42451         echo "$QTGUI_PKG_ERRORS" >&5
42452
42453         { $as_echo "$as_me:$LINENO: result: no" >&5
42454 $as_echo "no" >&6; }
42455                 passed=no; { $as_echo "$as_me:$LINENO: result: gr-qtgui requires libQtGui >= 4.2." >&5
42456 $as_echo "gr-qtgui requires libQtGui >= 4.2." >&6; }
42457 elif test $pkg_failed = untried; then
42458         passed=no; { $as_echo "$as_me:$LINENO: result: gr-qtgui requires libQtGui >= 4.2." >&5
42459 $as_echo "gr-qtgui requires libQtGui >= 4.2." >&6; }
42460 else
42461         QTGUI_CFLAGS=$pkg_cv_QTGUI_CFLAGS
42462         QTGUI_LIBS=$pkg_cv_QTGUI_LIBS
42463         QTGUI_INCLUDEDIR=$pkg_cv_QTGUI_INCLUDEDIR
42464
42465         QTGUI_CPPFLAGS=""
42466         for flag in $QTGUI_CFLAGS; do
42467           case $flag in
42468           -I* | -D* | -U*) QTGUI_CPPFLAGS="$QTGUI_CPPFLAGS $flag" ;;
42469           esac
42470         done
42471         pkg_cv_QTGUI_CPPFLAGS=$QTGUI_CPPFLAGS
42472
42473
42474         { $as_echo "$as_me:$LINENO: result: yes" >&5
42475 $as_echo "yes" >&6; }
42476         :
42477 fi
42478
42479
42480
42481 pkg_failed=no
42482 { $as_echo "$as_me:$LINENO: checking for QTOPENGL" >&5
42483 $as_echo_n "checking for QTOPENGL... " >&6; }
42484
42485 if test -n "$PKG_CONFIG"; then
42486     if test -n "$QTOPENGL_CFLAGS"; then
42487         pkg_cv_QTOPENGL_CFLAGS="$QTOPENGL_CFLAGS"
42488     else
42489         if test -n "$PKG_CONFIG" && \
42490     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\"") >&5
42491   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
42492   ac_status=$?
42493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494   (exit $ac_status); }; then
42495   pkg_cv_QTOPENGL_CFLAGS=`$PKG_CONFIG --cflags "QtOpenGL >= 4.2" 2>/dev/null`
42496 else
42497   pkg_failed=yes
42498 fi
42499     fi
42500 else
42501         pkg_failed=untried
42502 fi
42503
42504 if test x$cross_compiling = xyes
42505 then
42506     if test -n "$PKG_CONFIG"; then
42507     if test -n "$QTOPENGL_LIBS"; then
42508         pkg_cv_QTOPENGL_LIBS="$QTOPENGL_LIBS"
42509     else
42510         if test -n "$PKG_CONFIG" && \
42511     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\"") >&5
42512   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
42513   ac_status=$?
42514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515   (exit $ac_status); }; then
42516   pkg_cv_QTOPENGL_LIBS=`$PKG_CONFIG --libs --static "QtOpenGL >= 4.2" 2>/dev/null`
42517 else
42518   pkg_failed=yes
42519 fi
42520     fi
42521 else
42522         pkg_failed=untried
42523 fi
42524     _pkg_tmp=
42525   for flag in $pkg_cv_QTOPENGL_LIBS; do
42526     case $flag in
42527     (-L/lib* | -L/usr/lib* )       ;; # ignore
42528     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
42529     esac
42530   done
42531   pkg_cv_QTOPENGL_LIBS="$_pkg_tmp"
42532 else
42533   if test -n "$PKG_CONFIG"; then
42534     if test -n "$QTOPENGL_LIBS"; then
42535         pkg_cv_QTOPENGL_LIBS="$QTOPENGL_LIBS"
42536     else
42537         if test -n "$PKG_CONFIG" && \
42538     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\"") >&5
42539   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
42540   ac_status=$?
42541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542   (exit $ac_status); }; then
42543   pkg_cv_QTOPENGL_LIBS=`$PKG_CONFIG --libs --static "QtOpenGL >= 4.2" 2>/dev/null`
42544 else
42545   pkg_failed=yes
42546 fi
42547     fi
42548 else
42549         pkg_failed=untried
42550 fi
42551 fi
42552
42553 if test -n "$PKG_CONFIG"; then
42554     if test -n "$QTOPENGL_INCLUDEDIR"; then
42555         pkg_cv_QTOPENGL_INCLUDEDIR="$QTOPENGL_INCLUDEDIR"
42556     else
42557         if test -n "$PKG_CONFIG" && \
42558     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\"") >&5
42559   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
42560   ac_status=$?
42561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562   (exit $ac_status); }; then
42563   pkg_cv_QTOPENGL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtOpenGL >= 4.2" 2>/dev/null`
42564 else
42565   pkg_failed=yes
42566 fi
42567     fi
42568 else
42569         pkg_failed=untried
42570 fi
42571
42572
42573
42574
42575 if test $pkg_failed = yes; then
42576
42577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42578         _pkg_short_errors_supported=yes
42579 else
42580         _pkg_short_errors_supported=no
42581 fi
42582         if test $_pkg_short_errors_supported = yes; then
42583                 QTOPENGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtOpenGL >= 4.2"`
42584         else
42585                 QTOPENGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtOpenGL >= 4.2"`
42586         fi
42587         # Put the nasty error message in config.log where it belongs
42588         echo "$QTOPENGL_PKG_ERRORS" >&5
42589
42590         { $as_echo "$as_me:$LINENO: result: no" >&5
42591 $as_echo "no" >&6; }
42592                 passed=no; { $as_echo "$as_me:$LINENO: result: gr-qtgui requires libQtOpenGL >- 4.2." >&5
42593 $as_echo "gr-qtgui requires libQtOpenGL >- 4.2." >&6; }
42594 elif test $pkg_failed = untried; then
42595         passed=no; { $as_echo "$as_me:$LINENO: result: gr-qtgui requires libQtOpenGL >- 4.2." >&5
42596 $as_echo "gr-qtgui requires libQtOpenGL >- 4.2." >&6; }
42597 else
42598         QTOPENGL_CFLAGS=$pkg_cv_QTOPENGL_CFLAGS
42599         QTOPENGL_LIBS=$pkg_cv_QTOPENGL_LIBS
42600         QTOPENGL_INCLUDEDIR=$pkg_cv_QTOPENGL_INCLUDEDIR
42601
42602         QTOPENGL_CPPFLAGS=""
42603         for flag in $QTOPENGL_CFLAGS; do
42604           case $flag in
42605           -I* | -D* | -U*) QTOPENGL_CPPFLAGS="$QTOPENGL_CPPFLAGS $flag" ;;
42606           esac
42607         done
42608         pkg_cv_QTOPENGL_CPPFLAGS=$QTOPENGL_CPPFLAGS
42609
42610
42611         { $as_echo "$as_me:$LINENO: result: yes" >&5
42612 $as_echo "yes" >&6; }
42613         :
42614 fi
42615
42616
42617         QWT_LIBRARY1=-lqwt-qt4
42618     QWT_LIBRARY2=-lqwt
42619
42620         ac_ext=cpp
42621 ac_cpp='$CXXCPP $CPPFLAGS'
42622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42625
42626     qwt_save_CPPFLAGS="$CPPFLAGS"
42627     qwt_save_LIBS="$LIBS"
42628     libqwt_ok=yes
42629
42630
42631 # Check whether --with-qwt-libdir was given.
42632 if test "${with_qwt_libdir+set}" = set; then
42633   withval=$with_qwt_libdir; qwt_libdir="$withval"
42634 else
42635   qwt_libdir=""
42636 fi
42637
42638
42639
42640 # Check whether --with-qwt-incdir was given.
42641 if test "${with_qwt_incdir+set}" = set; then
42642   withval=$with_qwt_incdir; qwt_incdir="$withval"
42643 else
42644   qwt_incdir=""
42645 fi
42646
42647
42648 # Check whether --with-qwt-lib was given.
42649 if test "${with_qwt_lib+set}" = set; then
42650   withval=$with_qwt_lib; qwt_lib="$withval"
42651 else
42652   qwt_lib=""
42653 fi
42654
42655
42656                 CPPFLAGS="$CPPFLAGS $QTCORE_CFLAGS"
42657
42658         if test "$qwt_incdir" = "" ; then
42659                 if test "${ac_cv_header_qwt_qwt_h+set}" = set; then
42660   { $as_echo "$as_me:$LINENO: checking for qwt/qwt.h" >&5
42661 $as_echo_n "checking for qwt/qwt.h... " >&6; }
42662 if test "${ac_cv_header_qwt_qwt_h+set}" = set; then
42663   $as_echo_n "(cached) " >&6
42664 fi
42665 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwt_qwt_h" >&5
42666 $as_echo "$ac_cv_header_qwt_qwt_h" >&6; }
42667 else
42668   # Is the header compilable?
42669 { $as_echo "$as_me:$LINENO: checking qwt/qwt.h usability" >&5
42670 $as_echo_n "checking qwt/qwt.h usability... " >&6; }
42671 cat >conftest.$ac_ext <<_ACEOF
42672 /* confdefs.h.  */
42673 _ACEOF
42674 cat confdefs.h >>conftest.$ac_ext
42675 cat >>conftest.$ac_ext <<_ACEOF
42676 /* end confdefs.h.  */
42677 $ac_includes_default
42678 #include <qwt/qwt.h>
42679 _ACEOF
42680 rm -f conftest.$ac_objext
42681 if { (ac_try="$ac_compile"
42682 case "(($ac_try" in
42683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42684   *) ac_try_echo=$ac_try;;
42685 esac
42686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42687 $as_echo "$ac_try_echo") >&5
42688   (eval "$ac_compile") 2>conftest.er1
42689   ac_status=$?
42690   grep -v '^ *+' conftest.er1 >conftest.err
42691   rm -f conftest.er1
42692   cat conftest.err >&5
42693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694   (exit $ac_status); } && {
42695          test -z "$ac_cxx_werror_flag" ||
42696          test ! -s conftest.err
42697        } && test -s conftest.$ac_objext; then
42698   ac_header_compiler=yes
42699 else
42700   $as_echo "$as_me: failed program was:" >&5
42701 sed 's/^/| /' conftest.$ac_ext >&5
42702
42703         ac_header_compiler=no
42704 fi
42705
42706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42708 $as_echo "$ac_header_compiler" >&6; }
42709
42710 # Is the header present?
42711 { $as_echo "$as_me:$LINENO: checking qwt/qwt.h presence" >&5
42712 $as_echo_n "checking qwt/qwt.h presence... " >&6; }
42713 cat >conftest.$ac_ext <<_ACEOF
42714 /* confdefs.h.  */
42715 _ACEOF
42716 cat confdefs.h >>conftest.$ac_ext
42717 cat >>conftest.$ac_ext <<_ACEOF
42718 /* end confdefs.h.  */
42719 #include <qwt/qwt.h>
42720 _ACEOF
42721 if { (ac_try="$ac_cpp conftest.$ac_ext"
42722 case "(($ac_try" in
42723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42724   *) ac_try_echo=$ac_try;;
42725 esac
42726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42727 $as_echo "$ac_try_echo") >&5
42728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42729   ac_status=$?
42730   grep -v '^ *+' conftest.er1 >conftest.err
42731   rm -f conftest.er1
42732   cat conftest.err >&5
42733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734   (exit $ac_status); } >/dev/null && {
42735          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42736          test ! -s conftest.err
42737        }; then
42738   ac_header_preproc=yes
42739 else
42740   $as_echo "$as_me: failed program was:" >&5
42741 sed 's/^/| /' conftest.$ac_ext >&5
42742
42743   ac_header_preproc=no
42744 fi
42745
42746 rm -f conftest.err conftest.$ac_ext
42747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42748 $as_echo "$ac_header_preproc" >&6; }
42749
42750 # So?  What about this header?
42751 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42752   yes:no: )
42753     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h: accepted by the compiler, rejected by the preprocessor!" >&5
42754 $as_echo "$as_me: WARNING: qwt/qwt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42755     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h: proceeding with the compiler's result" >&5
42756 $as_echo "$as_me: WARNING: qwt/qwt.h: proceeding with the compiler's result" >&2;}
42757     ac_header_preproc=yes
42758     ;;
42759   no:yes:* )
42760     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h: present but cannot be compiled" >&5
42761 $as_echo "$as_me: WARNING: qwt/qwt.h: present but cannot be compiled" >&2;}
42762     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h:     check for missing prerequisite headers?" >&5
42763 $as_echo "$as_me: WARNING: qwt/qwt.h:     check for missing prerequisite headers?" >&2;}
42764     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h: see the Autoconf documentation" >&5
42765 $as_echo "$as_me: WARNING: qwt/qwt.h: see the Autoconf documentation" >&2;}
42766     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h:     section \"Present But Cannot Be Compiled\"" >&5
42767 $as_echo "$as_me: WARNING: qwt/qwt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42768     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h: proceeding with the preprocessor's result" >&5
42769 $as_echo "$as_me: WARNING: qwt/qwt.h: proceeding with the preprocessor's result" >&2;}
42770     { $as_echo "$as_me:$LINENO: WARNING: qwt/qwt.h: in the future, the compiler will take precedence" >&5
42771 $as_echo "$as_me: WARNING: qwt/qwt.h: in the future, the compiler will take precedence" >&2;}
42772
42773     ;;
42774 esac
42775 { $as_echo "$as_me:$LINENO: checking for qwt/qwt.h" >&5
42776 $as_echo_n "checking for qwt/qwt.h... " >&6; }
42777 if test "${ac_cv_header_qwt_qwt_h+set}" = set; then
42778   $as_echo_n "(cached) " >&6
42779 else
42780   ac_cv_header_qwt_qwt_h=$ac_header_preproc
42781 fi
42782 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwt_qwt_h" >&5
42783 $as_echo "$ac_cv_header_qwt_qwt_h" >&6; }
42784
42785 fi
42786 if test "x$ac_cv_header_qwt_qwt_h" = x""yes; then
42787   qwt_qwt_h=yes
42788 else
42789   qwt_qwt_h=no
42790
42791 fi
42792
42793
42794                 if test "$qwt_qwt_h" = "yes" ; then
42795             QWT_CFLAGS="$QWT_CFLAGS -I/usr/include/qwt"
42796         else
42797                         if test "${ac_cv_header_qwt_qt4_qwt_h+set}" = set; then
42798   { $as_echo "$as_me:$LINENO: checking for qwt-qt4/qwt.h" >&5
42799 $as_echo_n "checking for qwt-qt4/qwt.h... " >&6; }
42800 if test "${ac_cv_header_qwt_qt4_qwt_h+set}" = set; then
42801   $as_echo_n "(cached) " >&6
42802 fi
42803 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwt_qt4_qwt_h" >&5
42804 $as_echo "$ac_cv_header_qwt_qt4_qwt_h" >&6; }
42805 else
42806   # Is the header compilable?
42807 { $as_echo "$as_me:$LINENO: checking qwt-qt4/qwt.h usability" >&5
42808 $as_echo_n "checking qwt-qt4/qwt.h usability... " >&6; }
42809 cat >conftest.$ac_ext <<_ACEOF
42810 /* confdefs.h.  */
42811 _ACEOF
42812 cat confdefs.h >>conftest.$ac_ext
42813 cat >>conftest.$ac_ext <<_ACEOF
42814 /* end confdefs.h.  */
42815 $ac_includes_default
42816 #include <qwt-qt4/qwt.h>
42817 _ACEOF
42818 rm -f conftest.$ac_objext
42819 if { (ac_try="$ac_compile"
42820 case "(($ac_try" in
42821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42822   *) ac_try_echo=$ac_try;;
42823 esac
42824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42825 $as_echo "$ac_try_echo") >&5
42826   (eval "$ac_compile") 2>conftest.er1
42827   ac_status=$?
42828   grep -v '^ *+' conftest.er1 >conftest.err
42829   rm -f conftest.er1
42830   cat conftest.err >&5
42831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42832   (exit $ac_status); } && {
42833          test -z "$ac_cxx_werror_flag" ||
42834          test ! -s conftest.err
42835        } && test -s conftest.$ac_objext; then
42836   ac_header_compiler=yes
42837 else
42838   $as_echo "$as_me: failed program was:" >&5
42839 sed 's/^/| /' conftest.$ac_ext >&5
42840
42841         ac_header_compiler=no
42842 fi
42843
42844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42845 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42846 $as_echo "$ac_header_compiler" >&6; }
42847
42848 # Is the header present?
42849 { $as_echo "$as_me:$LINENO: checking qwt-qt4/qwt.h presence" >&5
42850 $as_echo_n "checking qwt-qt4/qwt.h presence... " >&6; }
42851 cat >conftest.$ac_ext <<_ACEOF
42852 /* confdefs.h.  */
42853 _ACEOF
42854 cat confdefs.h >>conftest.$ac_ext
42855 cat >>conftest.$ac_ext <<_ACEOF
42856 /* end confdefs.h.  */
42857 #include <qwt-qt4/qwt.h>
42858 _ACEOF
42859 if { (ac_try="$ac_cpp conftest.$ac_ext"
42860 case "(($ac_try" in
42861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42862   *) ac_try_echo=$ac_try;;
42863 esac
42864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42865 $as_echo "$ac_try_echo") >&5
42866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42867   ac_status=$?
42868   grep -v '^ *+' conftest.er1 >conftest.err
42869   rm -f conftest.er1
42870   cat conftest.err >&5
42871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42872   (exit $ac_status); } >/dev/null && {
42873          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42874          test ! -s conftest.err
42875        }; then
42876   ac_header_preproc=yes
42877 else
42878   $as_echo "$as_me: failed program was:" >&5
42879 sed 's/^/| /' conftest.$ac_ext >&5
42880
42881   ac_header_preproc=no
42882 fi
42883
42884 rm -f conftest.err conftest.$ac_ext
42885 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42886 $as_echo "$ac_header_preproc" >&6; }
42887
42888 # So?  What about this header?
42889 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42890   yes:no: )
42891     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h: accepted by the compiler, rejected by the preprocessor!" >&5
42892 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42893     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h: proceeding with the compiler's result" >&5
42894 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h: proceeding with the compiler's result" >&2;}
42895     ac_header_preproc=yes
42896     ;;
42897   no:yes:* )
42898     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h: present but cannot be compiled" >&5
42899 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h: present but cannot be compiled" >&2;}
42900     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h:     check for missing prerequisite headers?" >&5
42901 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h:     check for missing prerequisite headers?" >&2;}
42902     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h: see the Autoconf documentation" >&5
42903 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h: see the Autoconf documentation" >&2;}
42904     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h:     section \"Present But Cannot Be Compiled\"" >&5
42905 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42906     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h: proceeding with the preprocessor's result" >&5
42907 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h: proceeding with the preprocessor's result" >&2;}
42908     { $as_echo "$as_me:$LINENO: WARNING: qwt-qt4/qwt.h: in the future, the compiler will take precedence" >&5
42909 $as_echo "$as_me: WARNING: qwt-qt4/qwt.h: in the future, the compiler will take precedence" >&2;}
42910
42911     ;;
42912 esac
42913 { $as_echo "$as_me:$LINENO: checking for qwt-qt4/qwt.h" >&5
42914 $as_echo_n "checking for qwt-qt4/qwt.h... " >&6; }
42915 if test "${ac_cv_header_qwt_qt4_qwt_h+set}" = set; then
42916   $as_echo_n "(cached) " >&6
42917 else
42918   ac_cv_header_qwt_qt4_qwt_h=$ac_header_preproc
42919 fi
42920 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwt_qt4_qwt_h" >&5
42921 $as_echo "$ac_cv_header_qwt_qt4_qwt_h" >&6; }
42922
42923 fi
42924 if test "x$ac_cv_header_qwt_qt4_qwt_h" = x""yes; then
42925   qwt_qt4_qwt_h=yes
42926 else
42927   qwt_qt4_qwt_h=no
42928
42929 fi
42930
42931
42932                         if test "$qwt_qt4_qwt_h" = "yes" ; then
42933                 QWT_CFLAGS="$QWT_CFLAGS -I/usr/include/qwt-qt4"
42934             else
42935                                 libqwt_ok=no
42936             fi
42937         fi
42938     else
42939                 QWT_CFLAGS="$QWT_CFLAGS -I$qwt_incdir"
42940         as_ac_Header=`$as_echo "ac_cv_header_$qwt_incdir/qwt.h" | $as_tr_sh`
42941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42942   { $as_echo "$as_me:$LINENO: checking for $qwt_incdir/qwt.h" >&5
42943 $as_echo_n "checking for $qwt_incdir/qwt.h... " >&6; }
42944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42945   $as_echo_n "(cached) " >&6
42946 fi
42947 ac_res=`eval 'as_val=${'$as_ac_Header'}
42948                  $as_echo "$as_val"'`
42949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42950 $as_echo "$ac_res" >&6; }
42951 else
42952   # Is the header compilable?
42953 { $as_echo "$as_me:$LINENO: checking $qwt_incdir/qwt.h usability" >&5
42954 $as_echo_n "checking $qwt_incdir/qwt.h usability... " >&6; }
42955 cat >conftest.$ac_ext <<_ACEOF
42956 /* confdefs.h.  */
42957 _ACEOF
42958 cat confdefs.h >>conftest.$ac_ext
42959 cat >>conftest.$ac_ext <<_ACEOF
42960 /* end confdefs.h.  */
42961 $ac_includes_default
42962 #include <$qwt_incdir/qwt.h>
42963 _ACEOF
42964 rm -f conftest.$ac_objext
42965 if { (ac_try="$ac_compile"
42966 case "(($ac_try" in
42967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42968   *) ac_try_echo=$ac_try;;
42969 esac
42970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42971 $as_echo "$ac_try_echo") >&5
42972   (eval "$ac_compile") 2>conftest.er1
42973   ac_status=$?
42974   grep -v '^ *+' conftest.er1 >conftest.err
42975   rm -f conftest.er1
42976   cat conftest.err >&5
42977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42978   (exit $ac_status); } && {
42979          test -z "$ac_cxx_werror_flag" ||
42980          test ! -s conftest.err
42981        } && test -s conftest.$ac_objext; then
42982   ac_header_compiler=yes
42983 else
42984   $as_echo "$as_me: failed program was:" >&5
42985 sed 's/^/| /' conftest.$ac_ext >&5
42986
42987         ac_header_compiler=no
42988 fi
42989
42990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42992 $as_echo "$ac_header_compiler" >&6; }
42993
42994 # Is the header present?
42995 { $as_echo "$as_me:$LINENO: checking $qwt_incdir/qwt.h presence" >&5
42996 $as_echo_n "checking $qwt_incdir/qwt.h presence... " >&6; }
42997 cat >conftest.$ac_ext <<_ACEOF
42998 /* confdefs.h.  */
42999 _ACEOF
43000 cat confdefs.h >>conftest.$ac_ext
43001 cat >>conftest.$ac_ext <<_ACEOF
43002 /* end confdefs.h.  */
43003 #include <$qwt_incdir/qwt.h>
43004 _ACEOF
43005 if { (ac_try="$ac_cpp conftest.$ac_ext"
43006 case "(($ac_try" in
43007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43008   *) ac_try_echo=$ac_try;;
43009 esac
43010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43011 $as_echo "$ac_try_echo") >&5
43012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43013   ac_status=$?
43014   grep -v '^ *+' conftest.er1 >conftest.err
43015   rm -f conftest.er1
43016   cat conftest.err >&5
43017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018   (exit $ac_status); } >/dev/null && {
43019          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43020          test ! -s conftest.err
43021        }; then
43022   ac_header_preproc=yes
43023 else
43024   $as_echo "$as_me: failed program was:" >&5
43025 sed 's/^/| /' conftest.$ac_ext >&5
43026
43027   ac_header_preproc=no
43028 fi
43029
43030 rm -f conftest.err conftest.$ac_ext
43031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43032 $as_echo "$ac_header_preproc" >&6; }
43033
43034 # So?  What about this header?
43035 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43036   yes:no: )
43037     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h: accepted by the compiler, rejected by the preprocessor!" >&5
43038 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43039     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h: proceeding with the compiler's result" >&5
43040 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h: proceeding with the compiler's result" >&2;}
43041     ac_header_preproc=yes
43042     ;;
43043   no:yes:* )
43044     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h: present but cannot be compiled" >&5
43045 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h: present but cannot be compiled" >&2;}
43046     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h:     check for missing prerequisite headers?" >&5
43047 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h:     check for missing prerequisite headers?" >&2;}
43048     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h: see the Autoconf documentation" >&5
43049 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h: see the Autoconf documentation" >&2;}
43050     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h:     section \"Present But Cannot Be Compiled\"" >&5
43051 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43052     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h: proceeding with the preprocessor's result" >&5
43053 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h: proceeding with the preprocessor's result" >&2;}
43054     { $as_echo "$as_me:$LINENO: WARNING: $qwt_incdir/qwt.h: in the future, the compiler will take precedence" >&5
43055 $as_echo "$as_me: WARNING: $qwt_incdir/qwt.h: in the future, the compiler will take precedence" >&2;}
43056
43057     ;;
43058 esac
43059 { $as_echo "$as_me:$LINENO: checking for $qwt_incdir/qwt.h" >&5
43060 $as_echo_n "checking for $qwt_incdir/qwt.h... " >&6; }
43061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43062   $as_echo_n "(cached) " >&6
43063 else
43064   eval "$as_ac_Header=\$ac_header_preproc"
43065 fi
43066 ac_res=`eval 'as_val=${'$as_ac_Header'}
43067                  $as_echo "$as_val"'`
43068                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43069 $as_echo "$ac_res" >&6; }
43070
43071 fi
43072 as_val=`eval 'as_val=${'$as_ac_Header'}
43073                  $as_echo "$as_val"'`
43074    if test "x$as_val" = x""yes; then
43075   :
43076 else
43077   libqwt_ok=no
43078 fi
43079
43080
43081     fi
43082
43083         if test "$libqwt_ok" = "yes" ; then
43084
43085
43086                 if test "$qwt_libdir" != "" ; then
43087             QWT_LIBS="-L$qwt_libdir $QWT_LIBS"
43088         fi
43089
43090                 CPPFLAGS="$CPPFLAGS $QWT_CFLAGS"
43091         LIBS="$qwt_save_LIBS $QT_LIBS $QWT_LIBS -lqwt"
43092
43093                 if test "$qwt_lib" != "" ; then
43094             as_ac_Lib=`$as_echo "ac_cv_lib_$qwt_lib''_main" | $as_tr_sh`
43095 { $as_echo "$as_me:$LINENO: checking for main in -l$qwt_lib" >&5
43096 $as_echo_n "checking for main in -l$qwt_lib... " >&6; }
43097 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43098   $as_echo_n "(cached) " >&6
43099 else
43100   ac_check_lib_save_LIBS=$LIBS
43101 LIBS="-l$qwt_lib  $LIBS"
43102 cat >conftest.$ac_ext <<_ACEOF
43103 /* confdefs.h.  */
43104 _ACEOF
43105 cat confdefs.h >>conftest.$ac_ext
43106 cat >>conftest.$ac_ext <<_ACEOF
43107 /* end confdefs.h.  */
43108
43109
43110 int
43111 main ()
43112 {
43113 return main ();
43114   ;
43115   return 0;
43116 }
43117 _ACEOF
43118 rm -f conftest.$ac_objext conftest$ac_exeext
43119 if { (ac_try="$ac_link"
43120 case "(($ac_try" in
43121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43122   *) ac_try_echo=$ac_try;;
43123 esac
43124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43125 $as_echo "$ac_try_echo") >&5
43126   (eval "$ac_link") 2>conftest.er1
43127   ac_status=$?
43128   grep -v '^ *+' conftest.er1 >conftest.err
43129   rm -f conftest.er1
43130   cat conftest.err >&5
43131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132   (exit $ac_status); } && {
43133          test -z "$ac_cxx_werror_flag" ||
43134          test ! -s conftest.err
43135        } && test -s conftest$ac_exeext && {
43136          test "$cross_compiling" = yes ||
43137          $as_test_x conftest$ac_exeext
43138        }; then
43139   eval "$as_ac_Lib=yes"
43140 else
43141   $as_echo "$as_me: failed program was:" >&5
43142 sed 's/^/| /' conftest.$ac_ext >&5
43143
43144         eval "$as_ac_Lib=no"
43145 fi
43146
43147 rm -rf conftest.dSYM
43148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43149       conftest$ac_exeext conftest.$ac_ext
43150 LIBS=$ac_check_lib_save_LIBS
43151 fi
43152 ac_res=`eval 'as_val=${'$as_ac_Lib'}
43153                  $as_echo "$as_val"'`
43154                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43155 $as_echo "$ac_res" >&6; }
43156 as_val=`eval 'as_val=${'$as_ac_Lib'}
43157                  $as_echo "$as_val"'`
43158    if test "x$as_val" = x""yes; then
43159   libqwt_ok=yes
43160 else
43161   libqwt_ok=no
43162 fi
43163
43164
43165         else
43166                         { $as_echo "$as_me:$LINENO: checking for main in -lqwt" >&5
43167 $as_echo_n "checking for main in -lqwt... " >&6; }
43168 if test "${ac_cv_lib_qwt_main+set}" = set; then
43169   $as_echo_n "(cached) " >&6
43170 else
43171   ac_check_lib_save_LIBS=$LIBS
43172 LIBS="-lqwt  $LIBS"
43173 cat >conftest.$ac_ext <<_ACEOF
43174 /* confdefs.h.  */
43175 _ACEOF
43176 cat confdefs.h >>conftest.$ac_ext
43177 cat >>conftest.$ac_ext <<_ACEOF
43178 /* end confdefs.h.  */
43179
43180
43181 int
43182 main ()
43183 {
43184 return main ();
43185   ;
43186   return 0;
43187 }
43188 _ACEOF
43189 rm -f conftest.$ac_objext conftest$ac_exeext
43190 if { (ac_try="$ac_link"
43191 case "(($ac_try" in
43192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43193   *) ac_try_echo=$ac_try;;
43194 esac
43195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43196 $as_echo "$ac_try_echo") >&5
43197   (eval "$ac_link") 2>conftest.er1
43198   ac_status=$?
43199   grep -v '^ *+' conftest.er1 >conftest.err
43200   rm -f conftest.er1
43201   cat conftest.err >&5
43202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43203   (exit $ac_status); } && {
43204          test -z "$ac_cxx_werror_flag" ||
43205          test ! -s conftest.err
43206        } && test -s conftest$ac_exeext && {
43207          test "$cross_compiling" = yes ||
43208          $as_test_x conftest$ac_exeext
43209        }; then
43210   ac_cv_lib_qwt_main=yes
43211 else
43212   $as_echo "$as_me: failed program was:" >&5
43213 sed 's/^/| /' conftest.$ac_ext >&5
43214
43215         ac_cv_lib_qwt_main=no
43216 fi
43217
43218 rm -rf conftest.dSYM
43219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43220       conftest$ac_exeext conftest.$ac_ext
43221 LIBS=$ac_check_lib_save_LIBS
43222 fi
43223 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_qwt_main" >&5
43224 $as_echo "$ac_cv_lib_qwt_main" >&6; }
43225 if test "x$ac_cv_lib_qwt_main" = x""yes; then
43226   libqwt_ok=yes
43227 else
43228   libqwt_ok=no
43229 fi
43230
43231
43232                         if test "$libqwt_ok" = "yes" ; then
43233                 QWT_LIBS="$QWT_LIBS -lqwt"
43234             else
43235                                 LIBS="$qwt_save_LIBS $QT_LIBS $QWT_LIBS -lqwt-qt4"
43236                 { $as_echo "$as_me:$LINENO: checking for main in -lqwt-qt4" >&5
43237 $as_echo_n "checking for main in -lqwt-qt4... " >&6; }
43238 if test "${ac_cv_lib_qwt_qt4_main+set}" = set; then
43239   $as_echo_n "(cached) " >&6
43240 else
43241   ac_check_lib_save_LIBS=$LIBS
43242 LIBS="-lqwt-qt4  $LIBS"
43243 cat >conftest.$ac_ext <<_ACEOF
43244 /* confdefs.h.  */
43245 _ACEOF
43246 cat confdefs.h >>conftest.$ac_ext
43247 cat >>conftest.$ac_ext <<_ACEOF
43248 /* end confdefs.h.  */
43249
43250
43251 int
43252 main ()
43253 {
43254 return main ();
43255   ;
43256   return 0;
43257 }
43258 _ACEOF
43259 rm -f conftest.$ac_objext conftest$ac_exeext
43260 if { (ac_try="$ac_link"
43261 case "(($ac_try" in
43262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43263   *) ac_try_echo=$ac_try;;
43264 esac
43265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43266 $as_echo "$ac_try_echo") >&5
43267   (eval "$ac_link") 2>conftest.er1
43268   ac_status=$?
43269   grep -v '^ *+' conftest.er1 >conftest.err
43270   rm -f conftest.er1
43271   cat conftest.err >&5
43272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43273   (exit $ac_status); } && {
43274          test -z "$ac_cxx_werror_flag" ||
43275          test ! -s conftest.err
43276        } && test -s conftest$ac_exeext && {
43277          test "$cross_compiling" = yes ||
43278          $as_test_x conftest$ac_exeext
43279        }; then
43280   ac_cv_lib_qwt_qt4_main=yes
43281 else
43282   $as_echo "$as_me: failed program was:" >&5
43283 sed 's/^/| /' conftest.$ac_ext >&5
43284
43285         ac_cv_lib_qwt_qt4_main=no
43286 fi
43287
43288 rm -rf conftest.dSYM
43289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43290       conftest$ac_exeext conftest.$ac_ext
43291 LIBS=$ac_check_lib_save_LIBS
43292 fi
43293 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_qwt_qt4_main" >&5
43294 $as_echo "$ac_cv_lib_qwt_qt4_main" >&6; }
43295 if test "x$ac_cv_lib_qwt_qt4_main" = x""yes; then
43296   libqwt_ok=yes
43297 else
43298   libqwt_ok=no
43299 fi
43300
43301                 if test "$libqwt_ok" = "yes" ; then
43302                     QWT_LIBS="$QWT_LIBS -lqwt-qt4"
43303                 else
43304                     { $as_echo "$as_me:$LINENO: result: Could not link to libqwt.so" >&5
43305 $as_echo "Could not link to libqwt.so" >&6; }
43306                 fi
43307             fi
43308         fi
43309     else
43310         { $as_echo "$as_me:$LINENO: result: Could not find qwt headers" >&5
43311 $as_echo "Could not find qwt headers" >&6; }
43312     fi
43313
43314         LIBS="$qwt_save_LIBS"
43315     CPPFLAGS="$qwt_save_CPPFLAGS"
43316     ac_ext=c
43317 ac_cpp='$CPP $CPPFLAGS'
43318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43321
43322
43323         if test "x$libqwt_ok" = "xyes" ; then
43324         :
43325     else
43326         QWT_CFLAGS=""
43327         QWT_LIBDIRS=""
43328         passed=no
43329     fi
43330
43331
43332
43333
43334
43335                 if test "$passed" = "yes"; then
43336
43337
43338         ac_ext=cpp
43339 ac_cpp='$CXXCPP $CPPFLAGS'
43340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43343
43344     qwtplot3d_save_CPPFLAGS="$CPPFLAGS"
43345     qwtplot3d_save_LIBS="$LIBS"
43346     libqwtplot3d_ok=yes
43347
43348
43349 # Check whether --with-qwtplot3d-libdir was given.
43350 if test "${with_qwtplot3d_libdir+set}" = set; then
43351   withval=$with_qwtplot3d_libdir; qwtplot3d_libdir="$withval"
43352 else
43353   qwtplot3d_libdir=""
43354 fi
43355
43356
43357
43358 # Check whether --with-qwtplot3d-incdir was given.
43359 if test "${with_qwtplot3d_incdir+set}" = set; then
43360   withval=$with_qwtplot3d_incdir; qwtplot3d_incdir="$withval"
43361 else
43362   qwtplot3d_incdir=""
43363 fi
43364
43365
43366
43367 # Check whether --with-qwtplot3d-lib was given.
43368 if test "${with_qwtplot3d_lib+set}" = set; then
43369   withval=$with_qwtplot3d_lib; qwtplot3d_lib="$withval"
43370 else
43371   qwtplot3d_lib=""
43372 fi
43373
43374
43375
43376                 CPPFLAGS="$CPPFLAGS $QTCORE_CFLAGS $QTGUI_CFLAGS $QWT_CFLAGS"
43377
43378         if test "$qwtplot3d_incdir" = "" ; then
43379                 if test "${ac_cv_header_qwtplot3d_qwt3d_plot_h+set}" = set; then
43380   { $as_echo "$as_me:$LINENO: checking for qwtplot3d/qwt3d_plot.h" >&5
43381 $as_echo_n "checking for qwtplot3d/qwt3d_plot.h... " >&6; }
43382 if test "${ac_cv_header_qwtplot3d_qwt3d_plot_h+set}" = set; then
43383   $as_echo_n "(cached) " >&6
43384 fi
43385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwtplot3d_qwt3d_plot_h" >&5
43386 $as_echo "$ac_cv_header_qwtplot3d_qwt3d_plot_h" >&6; }
43387 else
43388   # Is the header compilable?
43389 { $as_echo "$as_me:$LINENO: checking qwtplot3d/qwt3d_plot.h usability" >&5
43390 $as_echo_n "checking qwtplot3d/qwt3d_plot.h usability... " >&6; }
43391 cat >conftest.$ac_ext <<_ACEOF
43392 /* confdefs.h.  */
43393 _ACEOF
43394 cat confdefs.h >>conftest.$ac_ext
43395 cat >>conftest.$ac_ext <<_ACEOF
43396 /* end confdefs.h.  */
43397 $ac_includes_default
43398 #include <qwtplot3d/qwt3d_plot.h>
43399 _ACEOF
43400 rm -f conftest.$ac_objext
43401 if { (ac_try="$ac_compile"
43402 case "(($ac_try" in
43403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43404   *) ac_try_echo=$ac_try;;
43405 esac
43406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43407 $as_echo "$ac_try_echo") >&5
43408   (eval "$ac_compile") 2>conftest.er1
43409   ac_status=$?
43410   grep -v '^ *+' conftest.er1 >conftest.err
43411   rm -f conftest.er1
43412   cat conftest.err >&5
43413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43414   (exit $ac_status); } && {
43415          test -z "$ac_cxx_werror_flag" ||
43416          test ! -s conftest.err
43417        } && test -s conftest.$ac_objext; then
43418   ac_header_compiler=yes
43419 else
43420   $as_echo "$as_me: failed program was:" >&5
43421 sed 's/^/| /' conftest.$ac_ext >&5
43422
43423         ac_header_compiler=no
43424 fi
43425
43426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43427 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43428 $as_echo "$ac_header_compiler" >&6; }
43429
43430 # Is the header present?
43431 { $as_echo "$as_me:$LINENO: checking qwtplot3d/qwt3d_plot.h presence" >&5
43432 $as_echo_n "checking qwtplot3d/qwt3d_plot.h presence... " >&6; }
43433 cat >conftest.$ac_ext <<_ACEOF
43434 /* confdefs.h.  */
43435 _ACEOF
43436 cat confdefs.h >>conftest.$ac_ext
43437 cat >>conftest.$ac_ext <<_ACEOF
43438 /* end confdefs.h.  */
43439 #include <qwtplot3d/qwt3d_plot.h>
43440 _ACEOF
43441 if { (ac_try="$ac_cpp conftest.$ac_ext"
43442 case "(($ac_try" in
43443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43444   *) ac_try_echo=$ac_try;;
43445 esac
43446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43447 $as_echo "$ac_try_echo") >&5
43448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43449   ac_status=$?
43450   grep -v '^ *+' conftest.er1 >conftest.err
43451   rm -f conftest.er1
43452   cat conftest.err >&5
43453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43454   (exit $ac_status); } >/dev/null && {
43455          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43456          test ! -s conftest.err
43457        }; then
43458   ac_header_preproc=yes
43459 else
43460   $as_echo "$as_me: failed program was:" >&5
43461 sed 's/^/| /' conftest.$ac_ext >&5
43462
43463   ac_header_preproc=no
43464 fi
43465
43466 rm -f conftest.err conftest.$ac_ext
43467 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43468 $as_echo "$ac_header_preproc" >&6; }
43469
43470 # So?  What about this header?
43471 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43472   yes:no: )
43473     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h: accepted by the compiler, rejected by the preprocessor!" >&5
43474 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43475     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h: proceeding with the compiler's result" >&5
43476 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h: proceeding with the compiler's result" >&2;}
43477     ac_header_preproc=yes
43478     ;;
43479   no:yes:* )
43480     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h: present but cannot be compiled" >&5
43481 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h: present but cannot be compiled" >&2;}
43482     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h:     check for missing prerequisite headers?" >&5
43483 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h:     check for missing prerequisite headers?" >&2;}
43484     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h: see the Autoconf documentation" >&5
43485 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h: see the Autoconf documentation" >&2;}
43486     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h:     section \"Present But Cannot Be Compiled\"" >&5
43487 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43488     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h: proceeding with the preprocessor's result" >&5
43489 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h: proceeding with the preprocessor's result" >&2;}
43490     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d/qwt3d_plot.h: in the future, the compiler will take precedence" >&5
43491 $as_echo "$as_me: WARNING: qwtplot3d/qwt3d_plot.h: in the future, the compiler will take precedence" >&2;}
43492
43493     ;;
43494 esac
43495 { $as_echo "$as_me:$LINENO: checking for qwtplot3d/qwt3d_plot.h" >&5
43496 $as_echo_n "checking for qwtplot3d/qwt3d_plot.h... " >&6; }
43497 if test "${ac_cv_header_qwtplot3d_qwt3d_plot_h+set}" = set; then
43498   $as_echo_n "(cached) " >&6
43499 else
43500   ac_cv_header_qwtplot3d_qwt3d_plot_h=$ac_header_preproc
43501 fi
43502 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwtplot3d_qwt3d_plot_h" >&5
43503 $as_echo "$ac_cv_header_qwtplot3d_qwt3d_plot_h" >&6; }
43504
43505 fi
43506 if test "x$ac_cv_header_qwtplot3d_qwt3d_plot_h" = x""yes; then
43507   qwtplot3d_qwtplot3d_h=yes
43508 else
43509   qwtplot3d_qwtplot3d_h=no
43510
43511 fi
43512
43513
43514                 if test "$qwtplot3d_qwtplot3d_h" = "yes" ; then
43515             QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I/usr/include/qwtplot3d"
43516         else
43517                         if test "${ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h+set}" = set; then
43518   { $as_echo "$as_me:$LINENO: checking for qwtplot3d-qt4/qwt3d_plot.h" >&5
43519 $as_echo_n "checking for qwtplot3d-qt4/qwt3d_plot.h... " >&6; }
43520 if test "${ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h+set}" = set; then
43521   $as_echo_n "(cached) " >&6
43522 fi
43523 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" >&5
43524 $as_echo "$ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" >&6; }
43525 else
43526   # Is the header compilable?
43527 { $as_echo "$as_me:$LINENO: checking qwtplot3d-qt4/qwt3d_plot.h usability" >&5
43528 $as_echo_n "checking qwtplot3d-qt4/qwt3d_plot.h usability... " >&6; }
43529 cat >conftest.$ac_ext <<_ACEOF
43530 /* confdefs.h.  */
43531 _ACEOF
43532 cat confdefs.h >>conftest.$ac_ext
43533 cat >>conftest.$ac_ext <<_ACEOF
43534 /* end confdefs.h.  */
43535 $ac_includes_default
43536 #include <qwtplot3d-qt4/qwt3d_plot.h>
43537 _ACEOF
43538 rm -f conftest.$ac_objext
43539 if { (ac_try="$ac_compile"
43540 case "(($ac_try" in
43541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43542   *) ac_try_echo=$ac_try;;
43543 esac
43544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43545 $as_echo "$ac_try_echo") >&5
43546   (eval "$ac_compile") 2>conftest.er1
43547   ac_status=$?
43548   grep -v '^ *+' conftest.er1 >conftest.err
43549   rm -f conftest.er1
43550   cat conftest.err >&5
43551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43552   (exit $ac_status); } && {
43553          test -z "$ac_cxx_werror_flag" ||
43554          test ! -s conftest.err
43555        } && test -s conftest.$ac_objext; then
43556   ac_header_compiler=yes
43557 else
43558   $as_echo "$as_me: failed program was:" >&5
43559 sed 's/^/| /' conftest.$ac_ext >&5
43560
43561         ac_header_compiler=no
43562 fi
43563
43564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43566 $as_echo "$ac_header_compiler" >&6; }
43567
43568 # Is the header present?
43569 { $as_echo "$as_me:$LINENO: checking qwtplot3d-qt4/qwt3d_plot.h presence" >&5
43570 $as_echo_n "checking qwtplot3d-qt4/qwt3d_plot.h presence... " >&6; }
43571 cat >conftest.$ac_ext <<_ACEOF
43572 /* confdefs.h.  */
43573 _ACEOF
43574 cat confdefs.h >>conftest.$ac_ext
43575 cat >>conftest.$ac_ext <<_ACEOF
43576 /* end confdefs.h.  */
43577 #include <qwtplot3d-qt4/qwt3d_plot.h>
43578 _ACEOF
43579 if { (ac_try="$ac_cpp conftest.$ac_ext"
43580 case "(($ac_try" in
43581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43582   *) ac_try_echo=$ac_try;;
43583 esac
43584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43585 $as_echo "$ac_try_echo") >&5
43586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43587   ac_status=$?
43588   grep -v '^ *+' conftest.er1 >conftest.err
43589   rm -f conftest.er1
43590   cat conftest.err >&5
43591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43592   (exit $ac_status); } >/dev/null && {
43593          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43594          test ! -s conftest.err
43595        }; then
43596   ac_header_preproc=yes
43597 else
43598   $as_echo "$as_me: failed program was:" >&5
43599 sed 's/^/| /' conftest.$ac_ext >&5
43600
43601   ac_header_preproc=no
43602 fi
43603
43604 rm -f conftest.err conftest.$ac_ext
43605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43606 $as_echo "$ac_header_preproc" >&6; }
43607
43608 # So?  What about this header?
43609 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43610   yes:no: )
43611     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h: accepted by the compiler, rejected by the preprocessor!" >&5
43612 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43613     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h: proceeding with the compiler's result" >&5
43614 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h: proceeding with the compiler's result" >&2;}
43615     ac_header_preproc=yes
43616     ;;
43617   no:yes:* )
43618     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h: present but cannot be compiled" >&5
43619 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h: present but cannot be compiled" >&2;}
43620     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h:     check for missing prerequisite headers?" >&5
43621 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h:     check for missing prerequisite headers?" >&2;}
43622     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h: see the Autoconf documentation" >&5
43623 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h: see the Autoconf documentation" >&2;}
43624     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h:     section \"Present But Cannot Be Compiled\"" >&5
43625 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43626     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h: proceeding with the preprocessor's result" >&5
43627 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h: proceeding with the preprocessor's result" >&2;}
43628     { $as_echo "$as_me:$LINENO: WARNING: qwtplot3d-qt4/qwt3d_plot.h: in the future, the compiler will take precedence" >&5
43629 $as_echo "$as_me: WARNING: qwtplot3d-qt4/qwt3d_plot.h: in the future, the compiler will take precedence" >&2;}
43630
43631     ;;
43632 esac
43633 { $as_echo "$as_me:$LINENO: checking for qwtplot3d-qt4/qwt3d_plot.h" >&5
43634 $as_echo_n "checking for qwtplot3d-qt4/qwt3d_plot.h... " >&6; }
43635 if test "${ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h+set}" = set; then
43636   $as_echo_n "(cached) " >&6
43637 else
43638   ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h=$ac_header_preproc
43639 fi
43640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" >&5
43641 $as_echo "$ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" >&6; }
43642
43643 fi
43644 if test "x$ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" = x""yes; then
43645   qwtplot3d_qt4_qwtplot3d_h=yes
43646 else
43647   qwtplot3d_qt4_qwtplot3d_h=no
43648
43649 fi
43650
43651
43652                         if test "$qwtplot3d_qt4_qwtplot3d_h" = "yes" ; then
43653                 QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I/usr/include/qwtplot3d-qt4"
43654             else
43655                                 libqwtplot3d_ok=no
43656             fi
43657         fi
43658     else
43659                 QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I$qwtplot3d_incdir"
43660         as_ac_Header=`$as_echo "ac_cv_header_$qwtplot3d_incdir/qwt3d_plot.h" | $as_tr_sh`
43661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43662   { $as_echo "$as_me:$LINENO: checking for $qwtplot3d_incdir/qwt3d_plot.h" >&5
43663 $as_echo_n "checking for $qwtplot3d_incdir/qwt3d_plot.h... " >&6; }
43664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43665   $as_echo_n "(cached) " >&6
43666 fi
43667 ac_res=`eval 'as_val=${'$as_ac_Header'}
43668                  $as_echo "$as_val"'`
43669                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43670 $as_echo "$ac_res" >&6; }
43671 else
43672   # Is the header compilable?
43673 { $as_echo "$as_me:$LINENO: checking $qwtplot3d_incdir/qwt3d_plot.h usability" >&5
43674 $as_echo_n "checking $qwtplot3d_incdir/qwt3d_plot.h usability... " >&6; }
43675 cat >conftest.$ac_ext <<_ACEOF
43676 /* confdefs.h.  */
43677 _ACEOF
43678 cat confdefs.h >>conftest.$ac_ext
43679 cat >>conftest.$ac_ext <<_ACEOF
43680 /* end confdefs.h.  */
43681 $ac_includes_default
43682 #include <$qwtplot3d_incdir/qwt3d_plot.h>
43683 _ACEOF
43684 rm -f conftest.$ac_objext
43685 if { (ac_try="$ac_compile"
43686 case "(($ac_try" in
43687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43688   *) ac_try_echo=$ac_try;;
43689 esac
43690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43691 $as_echo "$ac_try_echo") >&5
43692   (eval "$ac_compile") 2>conftest.er1
43693   ac_status=$?
43694   grep -v '^ *+' conftest.er1 >conftest.err
43695   rm -f conftest.er1
43696   cat conftest.err >&5
43697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43698   (exit $ac_status); } && {
43699          test -z "$ac_cxx_werror_flag" ||
43700          test ! -s conftest.err
43701        } && test -s conftest.$ac_objext; then
43702   ac_header_compiler=yes
43703 else
43704   $as_echo "$as_me: failed program was:" >&5
43705 sed 's/^/| /' conftest.$ac_ext >&5
43706
43707         ac_header_compiler=no
43708 fi
43709
43710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43712 $as_echo "$ac_header_compiler" >&6; }
43713
43714 # Is the header present?
43715 { $as_echo "$as_me:$LINENO: checking $qwtplot3d_incdir/qwt3d_plot.h presence" >&5
43716 $as_echo_n "checking $qwtplot3d_incdir/qwt3d_plot.h presence... " >&6; }
43717 cat >conftest.$ac_ext <<_ACEOF
43718 /* confdefs.h.  */
43719 _ACEOF
43720 cat confdefs.h >>conftest.$ac_ext
43721 cat >>conftest.$ac_ext <<_ACEOF
43722 /* end confdefs.h.  */
43723 #include <$qwtplot3d_incdir/qwt3d_plot.h>
43724 _ACEOF
43725 if { (ac_try="$ac_cpp conftest.$ac_ext"
43726 case "(($ac_try" in
43727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43728   *) ac_try_echo=$ac_try;;
43729 esac
43730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43731 $as_echo "$ac_try_echo") >&5
43732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43733   ac_status=$?
43734   grep -v '^ *+' conftest.er1 >conftest.err
43735   rm -f conftest.er1
43736   cat conftest.err >&5
43737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738   (exit $ac_status); } >/dev/null && {
43739          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43740          test ! -s conftest.err
43741        }; then
43742   ac_header_preproc=yes
43743 else
43744   $as_echo "$as_me: failed program was:" >&5
43745 sed 's/^/| /' conftest.$ac_ext >&5
43746
43747   ac_header_preproc=no
43748 fi
43749
43750 rm -f conftest.err conftest.$ac_ext
43751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43752 $as_echo "$ac_header_preproc" >&6; }
43753
43754 # So?  What about this header?
43755 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43756   yes:no: )
43757     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: accepted by the compiler, rejected by the preprocessor!" >&5
43758 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43759     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: proceeding with the compiler's result" >&5
43760 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: proceeding with the compiler's result" >&2;}
43761     ac_header_preproc=yes
43762     ;;
43763   no:yes:* )
43764     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: present but cannot be compiled" >&5
43765 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: present but cannot be compiled" >&2;}
43766     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h:     check for missing prerequisite headers?" >&5
43767 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h:     check for missing prerequisite headers?" >&2;}
43768     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: see the Autoconf documentation" >&5
43769 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: see the Autoconf documentation" >&2;}
43770     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h:     section \"Present But Cannot Be Compiled\"" >&5
43771 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43772     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: proceeding with the preprocessor's result" >&5
43773 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: proceeding with the preprocessor's result" >&2;}
43774     { $as_echo "$as_me:$LINENO: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: in the future, the compiler will take precedence" >&5
43775 $as_echo "$as_me: WARNING: $qwtplot3d_incdir/qwt3d_plot.h: in the future, the compiler will take precedence" >&2;}
43776
43777     ;;
43778 esac
43779 { $as_echo "$as_me:$LINENO: checking for $qwtplot3d_incdir/qwt3d_plot.h" >&5
43780 $as_echo_n "checking for $qwtplot3d_incdir/qwt3d_plot.h... " >&6; }
43781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43782   $as_echo_n "(cached) " >&6
43783 else
43784   eval "$as_ac_Header=\$ac_header_preproc"
43785 fi
43786 ac_res=`eval 'as_val=${'$as_ac_Header'}
43787                  $as_echo "$as_val"'`
43788                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43789 $as_echo "$ac_res" >&6; }
43790
43791 fi
43792 as_val=`eval 'as_val=${'$as_ac_Header'}
43793                  $as_echo "$as_val"'`
43794    if test "x$as_val" = x""yes; then
43795   :
43796 else
43797   libqwtplot3d_ok=no
43798 fi
43799
43800
43801     fi
43802
43803         if test "$libqwtplot3d_ok" = "yes" ; then
43804
43805
43806                 if test "$qwtplot3d_libdir" != "" ; then
43807             QWTPLOT3D_LIBS="-L$qwtplot3d_libdir $QWTPLOT3D_LIBS"
43808         fi
43809
43810                 CPPFLAGS="$CPPFLAGS $QWTPLOT3D_CFLAGS"
43811         LIBS="$qwtplot3d_save_LIBS $QT_LIBS $QWTPLOT3D_LIBS -lqwtplot3d-qt4"
43812
43813                 if test "$qwtplot3d_lib" != "" ; then
43814             as_ac_Lib=`$as_echo "ac_cv_lib_$qwtplot3d_lib''_main" | $as_tr_sh`
43815 { $as_echo "$as_me:$LINENO: checking for main in -l$qwtplot3d_lib" >&5
43816 $as_echo_n "checking for main in -l$qwtplot3d_lib... " >&6; }
43817 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43818   $as_echo_n "(cached) " >&6
43819 else
43820   ac_check_lib_save_LIBS=$LIBS
43821 LIBS="-l$qwtplot3d_lib  $LIBS"
43822 cat >conftest.$ac_ext <<_ACEOF
43823 /* confdefs.h.  */
43824 _ACEOF
43825 cat confdefs.h >>conftest.$ac_ext
43826 cat >>conftest.$ac_ext <<_ACEOF
43827 /* end confdefs.h.  */
43828
43829
43830 int
43831 main ()
43832 {
43833 return main ();
43834   ;
43835   return 0;
43836 }
43837 _ACEOF
43838 rm -f conftest.$ac_objext conftest$ac_exeext
43839 if { (ac_try="$ac_link"
43840 case "(($ac_try" in
43841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43842   *) ac_try_echo=$ac_try;;
43843 esac
43844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43845 $as_echo "$ac_try_echo") >&5
43846   (eval "$ac_link") 2>conftest.er1
43847   ac_status=$?
43848   grep -v '^ *+' conftest.er1 >conftest.err
43849   rm -f conftest.er1
43850   cat conftest.err >&5
43851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43852   (exit $ac_status); } && {
43853          test -z "$ac_cxx_werror_flag" ||
43854          test ! -s conftest.err
43855        } && test -s conftest$ac_exeext && {
43856          test "$cross_compiling" = yes ||
43857          $as_test_x conftest$ac_exeext
43858        }; then
43859   eval "$as_ac_Lib=yes"
43860 else
43861   $as_echo "$as_me: failed program was:" >&5
43862 sed 's/^/| /' conftest.$ac_ext >&5
43863
43864         eval "$as_ac_Lib=no"
43865 fi
43866
43867 rm -rf conftest.dSYM
43868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43869       conftest$ac_exeext conftest.$ac_ext
43870 LIBS=$ac_check_lib_save_LIBS
43871 fi
43872 ac_res=`eval 'as_val=${'$as_ac_Lib'}
43873                  $as_echo "$as_val"'`
43874                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43875 $as_echo "$ac_res" >&6; }
43876 as_val=`eval 'as_val=${'$as_ac_Lib'}
43877                  $as_echo "$as_val"'`
43878    if test "x$as_val" = x""yes; then
43879   libqwtplot3d_ok=yes
43880 else
43881   libqwtplot3d_ok=no
43882 fi
43883
43884
43885         else
43886                         { $as_echo "$as_me:$LINENO: checking for main in -lqwtplot3d-qt4" >&5
43887 $as_echo_n "checking for main in -lqwtplot3d-qt4... " >&6; }
43888 if test "${ac_cv_lib_qwtplot3d_qt4_main+set}" = set; then
43889   $as_echo_n "(cached) " >&6
43890 else
43891   ac_check_lib_save_LIBS=$LIBS
43892 LIBS="-lqwtplot3d-qt4  $LIBS"
43893 cat >conftest.$ac_ext <<_ACEOF
43894 /* confdefs.h.  */
43895 _ACEOF
43896 cat confdefs.h >>conftest.$ac_ext
43897 cat >>conftest.$ac_ext <<_ACEOF
43898 /* end confdefs.h.  */
43899
43900
43901 int
43902 main ()
43903 {
43904 return main ();
43905   ;
43906   return 0;
43907 }
43908 _ACEOF
43909 rm -f conftest.$ac_objext conftest$ac_exeext
43910 if { (ac_try="$ac_link"
43911 case "(($ac_try" in
43912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43913   *) ac_try_echo=$ac_try;;
43914 esac
43915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43916 $as_echo "$ac_try_echo") >&5
43917   (eval "$ac_link") 2>conftest.er1
43918   ac_status=$?
43919   grep -v '^ *+' conftest.er1 >conftest.err
43920   rm -f conftest.er1
43921   cat conftest.err >&5
43922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923   (exit $ac_status); } && {
43924          test -z "$ac_cxx_werror_flag" ||
43925          test ! -s conftest.err
43926        } && test -s conftest$ac_exeext && {
43927          test "$cross_compiling" = yes ||
43928          $as_test_x conftest$ac_exeext
43929        }; then
43930   ac_cv_lib_qwtplot3d_qt4_main=yes
43931 else
43932   $as_echo "$as_me: failed program was:" >&5
43933 sed 's/^/| /' conftest.$ac_ext >&5
43934
43935         ac_cv_lib_qwtplot3d_qt4_main=no
43936 fi
43937
43938 rm -rf conftest.dSYM
43939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43940       conftest$ac_exeext conftest.$ac_ext
43941 LIBS=$ac_check_lib_save_LIBS
43942 fi
43943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_qwtplot3d_qt4_main" >&5
43944 $as_echo "$ac_cv_lib_qwtplot3d_qt4_main" >&6; }
43945 if test "x$ac_cv_lib_qwtplot3d_qt4_main" = x""yes; then
43946   libqwtplot3d_ok=yes
43947 else
43948   libqwtplot3d_ok=no
43949 fi
43950
43951
43952                         if test "$libqwtplot3d_ok" = "yes" ; then
43953                 QWTPLOT3D_LIBS="$QWTPLOT3D_LIBS -lqwtplot3d-qt4"
43954             else
43955                                 LIBS="$qwtplot3d_save_LIBS $QT_LIBS $QWTPLOT3D_LIBS -lqwtplot3d"
43956                 { $as_echo "$as_me:$LINENO: checking for main in -lqwtplot3d" >&5
43957 $as_echo_n "checking for main in -lqwtplot3d... " >&6; }
43958 if test "${ac_cv_lib_qwtplot3d_main+set}" = set; then
43959   $as_echo_n "(cached) " >&6
43960 else
43961   ac_check_lib_save_LIBS=$LIBS
43962 LIBS="-lqwtplot3d  $LIBS"
43963 cat >conftest.$ac_ext <<_ACEOF
43964 /* confdefs.h.  */
43965 _ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h.  */
43969
43970
43971 int
43972 main ()
43973 {
43974 return main ();
43975   ;
43976   return 0;
43977 }
43978 _ACEOF
43979 rm -f conftest.$ac_objext conftest$ac_exeext
43980 if { (ac_try="$ac_link"
43981 case "(($ac_try" in
43982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43983   *) ac_try_echo=$ac_try;;
43984 esac
43985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43986 $as_echo "$ac_try_echo") >&5
43987   (eval "$ac_link") 2>conftest.er1
43988   ac_status=$?
43989   grep -v '^ *+' conftest.er1 >conftest.err
43990   rm -f conftest.er1
43991   cat conftest.err >&5
43992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43993   (exit $ac_status); } && {
43994          test -z "$ac_cxx_werror_flag" ||
43995          test ! -s conftest.err
43996        } && test -s conftest$ac_exeext && {
43997          test "$cross_compiling" = yes ||
43998          $as_test_x conftest$ac_exeext
43999        }; then
44000   ac_cv_lib_qwtplot3d_main=yes
44001 else
44002   $as_echo "$as_me: failed program was:" >&5
44003 sed 's/^/| /' conftest.$ac_ext >&5
44004
44005         ac_cv_lib_qwtplot3d_main=no
44006 fi
44007
44008 rm -rf conftest.dSYM
44009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44010       conftest$ac_exeext conftest.$ac_ext
44011 LIBS=$ac_check_lib_save_LIBS
44012 fi
44013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_qwtplot3d_main" >&5
44014 $as_echo "$ac_cv_lib_qwtplot3d_main" >&6; }
44015 if test "x$ac_cv_lib_qwtplot3d_main" = x""yes; then
44016   libqwtplot3d_ok=yes
44017 else
44018   libqwtplot3d_ok=no
44019 fi
44020
44021                 if test "$libqwtplot3d_ok" = "yes" ; then
44022                     QWTPLOT3D_LIBS="$QWTPLOT3D_LIBS -lqwtplot3d"
44023                 else
44024                     { $as_echo "$as_me:$LINENO: result: Could not link to libqwtplot3d.so" >&5
44025 $as_echo "Could not link to libqwtplot3d.so" >&6; }
44026                 fi
44027             fi
44028         fi
44029     else
44030         { $as_echo "$as_me:$LINENO: result: Could not find qwtplot3d headers" >&5
44031 $as_echo "Could not find qwtplot3d headers" >&6; }
44032     fi
44033
44034         LIBS="$qwtplot3d_save_LIBS"
44035     CPPFLAGS="$qwtplot3d_save_CPPFLAGS"
44036     ac_ext=c
44037 ac_cpp='$CPP $CPPFLAGS'
44038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44041
44042
44043         if test "x$libqwtplot3d_ok" = "xyes" ; then
44044         :
44045     else
44046         QWTPLOT3D_CFLAGS=""
44047         QWTPLOT3D_LIBDIRS=""
44048         passed=no
44049     fi
44050
44051
44052
44053
44054         fi
44055
44056                         QT_INCLUDES="$QWT_CFLAGS $QWTPLOT3D_CFLAGS $QTCORE_CFLAGS $QTGUI_CFLAGS"
44057         QT_LIBS="$QWT_LIBS $QWTPLOT3D_LIBS $QTOPENGL_LIBS"
44058
44059                                 for i in $QWT_CFLAGS $QWTPLOT3D_CFLAGS; do
44060             QMAKE_INCLUDES="$QMAKE_INCLUDES ${i##-I}"
44061         done
44062
44063         QT_MOC_EXEC=`pkg-config --variable=moc_location QtCore`
44064         QT_UIC_EXEC=`pkg-config --variable=uic_location QtCore`
44065
44066
44067
44068
44069
44070
44071     fi
44072
44073     if test "$passed" = "no"; then
44074          if false; then
44075   BUILD_QT_TRUE=
44076   BUILD_QT_FALSE='#'
44077 else
44078   BUILD_QT_TRUE='#'
44079   BUILD_QT_FALSE=
44080 fi
44081
44082     else
44083          if true; then
44084   BUILD_QT_TRUE=
44085   BUILD_QT_FALSE='#'
44086 else
44087   BUILD_QT_TRUE='#'
44088   BUILD_QT_FALSE=
44089 fi
44090
44091     fi
44092
44093     ac_config_files="$ac_config_files gr-qtgui/Makefile gr-qtgui/src/Makefile gr-qtgui/src/lib/Makefile gr-qtgui/src/python/Makefile"
44094
44095
44096
44097
44098     gr_qtgui_with=no
44099     if test $passed = no; then
44100         if test x$enable_gr_qtgui = xyes; then
44101             { { $as_echo "$as_me:$LINENO: error: Component gr-qtgui has errors; stopping." >&5
44102 $as_echo "$as_me: error: Component gr-qtgui has errors; stopping." >&2;}
44103    { (exit 1); exit 1; }; }
44104         else
44105             { $as_echo "$as_me:$LINENO: result: Not building component gr-qtgui." >&5
44106 $as_echo "Not building component gr-qtgui." >&6; }
44107         fi
44108     else
44109         if test $passed = with; then
44110             with_dirs="$with_dirs gr-qtgui"
44111
44112     if test "x${gr_qtgui_INCLUDES}" != "x"; then
44113         if test "x$with_INCLUDES" = "x"; then
44114             with_INCLUDES="${gr_qtgui_INCLUDES}"
44115         else
44116             with_INCLUDES="${gr_qtgui_INCLUDES}"" ""$with_INCLUDES"
44117         fi
44118         gr_qtgui_INCLUDES=
44119     fi
44120
44121
44122     if test "x${gr_qtgui_SWIG_INCLUDES}" != "x"; then
44123         if test "x$with_SWIG_INCLUDES" = "x"; then
44124             with_SWIG_INCLUDES="${gr_qtgui_SWIG_INCLUDES}"
44125         else
44126             with_SWIG_INCLUDES="${gr_qtgui_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
44127         fi
44128         gr_qtgui_SWIG_INCLUDES=
44129     fi
44130
44131
44132     if test "x${gr_qtgui_PYDIRPATH}" != "x"; then
44133         if test "x$with_PYDIRPATH" = "x"; then
44134             with_PYDIRPATH="${gr_qtgui_PYDIRPATH}"
44135         else
44136             with_PYDIRPATH="${gr_qtgui_PYDIRPATH}"":""$with_PYDIRPATH"
44137         fi
44138         gr_qtgui_PYDIRPATH=
44139     fi
44140
44141
44142     if test "x${gr_qtgui_SWIGDIRPATH}" != "x"; then
44143         if test "x$with_SWIGDIRPATH" = "x"; then
44144             with_SWIGDIRPATH="${gr_qtgui_SWIGDIRPATH}"
44145         else
44146             with_SWIGDIRPATH="${gr_qtgui_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
44147         fi
44148         gr_qtgui_SWIGDIRPATH=
44149     fi
44150
44151
44152     if test "x${gr_qtgui_LIBDIRPATH}" != "x"; then
44153         if test "x$with_LIBDIRPATH" = "x"; then
44154             with_LIBDIRPATH="${gr_qtgui_LIBDIRPATH}"
44155         else
44156             with_LIBDIRPATH="${gr_qtgui_LIBDIRPATH}"":""$with_LIBDIRPATH"
44157         fi
44158         gr_qtgui_LIBDIRPATH=
44159     fi
44160
44161             { $as_echo "$as_me:$LINENO: result: Component gr-qtgui will be included from a pre-installed library and includes." >&5
44162 $as_echo "Component gr-qtgui will be included from a pre-installed library and includes." >&6; }
44163             gr_qtgui_with=yes
44164         else
44165             gr_qtgui_LDFLAG=
44166             if test x$enable_gr_qtgui != xno; then
44167                 :
44168                 build_dirs="$build_dirs gr-qtgui"
44169                 { $as_echo "$as_me:$LINENO: result: Component gr-qtgui passed configuration checks; building." >&5
44170 $as_echo "Component gr-qtgui passed configuration checks; building." >&6; }
44171             else
44172                 passed=no
44173                 { $as_echo "$as_me:$LINENO: result: Component gr-qtgui passed configuration checks; but not building." >&5
44174 $as_echo "Component gr-qtgui passed configuration checks; but not building." >&6; }
44175             fi
44176         fi
44177     fi
44178     if test $passed = no; then
44179         skipped_dirs="$skipped_dirs gr-qtgui"
44180         gr_qtgui_skipped=yes
44181     else
44182         gr_qtgui_skipped=no
44183     fi
44184
44185
44186
44187
44188
44189
44190
44191
44192
44193
44194
44195     passed=yes
44196     # Check whether --enable-gr-sounder was given.
44197 if test "${enable_gr_sounder+set}" = set; then
44198   enableval=$enable_gr_sounder;
44199 else
44200
44201         enable_gr_sounder=$enable_all_components
44202         if test x$enable_all_components = xno; then
44203             passed=no
44204         fi
44205
44206 fi
44207
44208
44209
44210
44211
44212     if test $passed != no; then
44213         if test $passed = yes; then
44214                         if test x$usrp_skipped = xyes; then
44215                 { $as_echo "$as_me:$LINENO: result: Component gr-sounder requires usrp, which is not being built or specified via pre-installed files." >&5
44216 $as_echo "Component gr-sounder requires usrp, which is not being built or specified via pre-installed files." >&6; }
44217                 passed=no
44218             fi
44219         else
44220                         if test x$usrp_with = xno; then
44221                 { { $as_echo "$as_me:$LINENO: error: Component gr-sounder requires usrp to be included as --with-usrp[=arg]" >&5
44222 $as_echo "$as_me: error: Component gr-sounder requires usrp to be included as --with-usrp[=arg]" >&2;}
44223    { (exit 1); exit 1; }; }
44224             fi
44225         fi
44226     fi
44227
44228
44229     if test $passed != no; then
44230         if test $passed = yes; then
44231                         if test x$gnuradio_core_skipped = xyes; then
44232                 { $as_echo "$as_me:$LINENO: result: Component gr-sounder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
44233 $as_echo "Component gr-sounder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
44234                 passed=no
44235             fi
44236         else
44237                         if test x$gnuradio_core_with = xno; then
44238                 { { $as_echo "$as_me:$LINENO: error: Component gr-sounder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
44239 $as_echo "$as_me: error: Component gr-sounder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
44240    { (exit 1); exit 1; }; }
44241             fi
44242         fi
44243     fi
44244
44245
44246     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"
44247
44248
44249
44250
44251     gr_sounder_with=no
44252     if test $passed = no; then
44253         if test x$enable_gr_sounder = xyes; then
44254             { { $as_echo "$as_me:$LINENO: error: Component gr-sounder has errors; stopping." >&5
44255 $as_echo "$as_me: error: Component gr-sounder has errors; stopping." >&2;}
44256    { (exit 1); exit 1; }; }
44257         else
44258             { $as_echo "$as_me:$LINENO: result: Not building component gr-sounder." >&5
44259 $as_echo "Not building component gr-sounder." >&6; }
44260         fi
44261     else
44262         if test $passed = with; then
44263             with_dirs="$with_dirs gr-sounder"
44264
44265     if test "x${gr_sounder_INCLUDES}" != "x"; then
44266         if test "x$with_INCLUDES" = "x"; then
44267             with_INCLUDES="${gr_sounder_INCLUDES}"
44268         else
44269             with_INCLUDES="${gr_sounder_INCLUDES}"" ""$with_INCLUDES"
44270         fi
44271         gr_sounder_INCLUDES=
44272     fi
44273
44274
44275     if test "x${gr_sounder_SWIG_INCLUDES}" != "x"; then
44276         if test "x$with_SWIG_INCLUDES" = "x"; then
44277             with_SWIG_INCLUDES="${gr_sounder_SWIG_INCLUDES}"
44278         else
44279             with_SWIG_INCLUDES="${gr_sounder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
44280         fi
44281         gr_sounder_SWIG_INCLUDES=
44282     fi
44283
44284
44285     if test "x${gr_sounder_PYDIRPATH}" != "x"; then
44286         if test "x$with_PYDIRPATH" = "x"; then
44287             with_PYDIRPATH="${gr_sounder_PYDIRPATH}"
44288         else
44289             with_PYDIRPATH="${gr_sounder_PYDIRPATH}"":""$with_PYDIRPATH"
44290         fi
44291         gr_sounder_PYDIRPATH=
44292     fi
44293
44294
44295     if test "x${gr_sounder_SWIGDIRPATH}" != "x"; then
44296         if test "x$with_SWIGDIRPATH" = "x"; then
44297             with_SWIGDIRPATH="${gr_sounder_SWIGDIRPATH}"
44298         else
44299             with_SWIGDIRPATH="${gr_sounder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
44300         fi
44301         gr_sounder_SWIGDIRPATH=
44302     fi
44303
44304
44305     if test "x${gr_sounder_LIBDIRPATH}" != "x"; then
44306         if test "x$with_LIBDIRPATH" = "x"; then
44307             with_LIBDIRPATH="${gr_sounder_LIBDIRPATH}"
44308         else
44309             with_LIBDIRPATH="${gr_sounder_LIBDIRPATH}"":""$with_LIBDIRPATH"
44310         fi
44311         gr_sounder_LIBDIRPATH=
44312     fi
44313
44314             { $as_echo "$as_me:$LINENO: result: Component gr-sounder will be included from a pre-installed library and includes." >&5
44315 $as_echo "Component gr-sounder will be included from a pre-installed library and includes." >&6; }
44316             gr_sounder_with=yes
44317         else
44318             gr_sounder_LDFLAG=
44319             if test x$enable_gr_sounder != xno; then
44320                         ac_config_commands="$ac_config_commands run_tests_sounder"
44321
44322
44323                 build_dirs="$build_dirs gr-sounder"
44324                 { $as_echo "$as_me:$LINENO: result: Component gr-sounder passed configuration checks; building." >&5
44325 $as_echo "Component gr-sounder passed configuration checks; building." >&6; }
44326             else
44327                 passed=no
44328                 { $as_echo "$as_me:$LINENO: result: Component gr-sounder passed configuration checks; but not building." >&5
44329 $as_echo "Component gr-sounder passed configuration checks; but not building." >&6; }
44330             fi
44331         fi
44332     fi
44333     if test $passed = no; then
44334         skipped_dirs="$skipped_dirs gr-sounder"
44335         gr_sounder_skipped=yes
44336     else
44337         gr_sounder_skipped=no
44338     fi
44339
44340
44341
44342
44343
44344
44345
44346
44347
44348
44349     passed=yes
44350     # Check whether --enable-gr-utils was given.
44351 if test "${enable_gr_utils+set}" = set; then
44352   enableval=$enable_gr_utils;
44353 else
44354
44355         enable_gr_utils=$enable_all_components
44356         if test x$enable_all_components = xno; then
44357             passed=no
44358         fi
44359
44360 fi
44361
44362
44363
44364
44365
44366     if test $passed != no; then
44367         if test $passed = yes; then
44368                         if test x$gnuradio_core_skipped = xyes; then
44369                 { $as_echo "$as_me:$LINENO: result: Component gr-utils requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
44370 $as_echo "Component gr-utils requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
44371                 passed=no
44372             fi
44373         else
44374                         if test x$gnuradio_core_with = xno; then
44375                 { { $as_echo "$as_me:$LINENO: error: Component gr-utils requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
44376 $as_echo "$as_me: error: Component gr-utils requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
44377    { (exit 1); exit 1; }; }
44378             fi
44379         fi
44380     fi
44381
44382
44383     if test $passed != no; then
44384         if test $passed = yes; then
44385                         if test x$usrp_skipped = xyes; then
44386                 { $as_echo "$as_me:$LINENO: result: Component gr-utils requires usrp, which is not being built or specified via pre-installed files." >&5
44387 $as_echo "Component gr-utils requires usrp, which is not being built or specified via pre-installed files." >&6; }
44388                 passed=no
44389             fi
44390         else
44391                         if test x$usrp_with = xno; then
44392                 { { $as_echo "$as_me:$LINENO: error: Component gr-utils requires usrp to be included as --with-usrp[=arg]" >&5
44393 $as_echo "$as_me: error: Component gr-utils requires usrp to be included as --with-usrp[=arg]" >&2;}
44394    { (exit 1); exit 1; }; }
44395             fi
44396         fi
44397     fi
44398
44399
44400     if test $passed != no; then
44401         if test $passed = yes; then
44402                         if test x$gr_wxgui_skipped = xyes; then
44403                 { $as_echo "$as_me:$LINENO: result: Component gr-utils requires gr-wxgui, which is not being built or specified via pre-installed files." >&5
44404 $as_echo "Component gr-utils requires gr-wxgui, which is not being built or specified via pre-installed files." >&6; }
44405                 passed=no
44406             fi
44407         else
44408                         if test x$gr_wxgui_with = xno; then
44409                 { { $as_echo "$as_me:$LINENO: error: Component gr-utils requires gr-wxgui to be included as --with-gr-wxgui[=arg]" >&5
44410 $as_echo "$as_me: error: Component gr-utils requires gr-wxgui to be included as --with-gr-wxgui[=arg]" >&2;}
44411    { (exit 1); exit 1; }; }
44412             fi
44413         fi
44414     fi
44415
44416
44417     ac_config_files="$ac_config_files gr-utils/Makefile gr-utils/src/Makefile gr-utils/src/lib/Makefile gr-utils/src/python/Makefile"
44418
44419
44420
44421
44422     gr_utils_with=no
44423     if test $passed = no; then
44424         if test x$enable_gr_utils = xyes; then
44425             { { $as_echo "$as_me:$LINENO: error: Component gr-utils has errors; stopping." >&5
44426 $as_echo "$as_me: error: Component gr-utils has errors; stopping." >&2;}
44427    { (exit 1); exit 1; }; }
44428         else
44429             { $as_echo "$as_me:$LINENO: result: Not building component gr-utils." >&5
44430 $as_echo "Not building component gr-utils." >&6; }
44431         fi
44432     else
44433         if test $passed = with; then
44434             with_dirs="$with_dirs gr-utils"
44435
44436     if test "x${gr_utils_INCLUDES}" != "x"; then
44437         if test "x$with_INCLUDES" = "x"; then
44438             with_INCLUDES="${gr_utils_INCLUDES}"
44439         else
44440             with_INCLUDES="${gr_utils_INCLUDES}"" ""$with_INCLUDES"
44441         fi
44442         gr_utils_INCLUDES=
44443     fi
44444
44445
44446     if test "x${gr_utils_SWIG_INCLUDES}" != "x"; then
44447         if test "x$with_SWIG_INCLUDES" = "x"; then
44448             with_SWIG_INCLUDES="${gr_utils_SWIG_INCLUDES}"
44449         else
44450             with_SWIG_INCLUDES="${gr_utils_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
44451         fi
44452         gr_utils_SWIG_INCLUDES=
44453     fi
44454
44455
44456     if test "x${gr_utils_PYDIRPATH}" != "x"; then
44457         if test "x$with_PYDIRPATH" = "x"; then
44458             with_PYDIRPATH="${gr_utils_PYDIRPATH}"
44459         else
44460             with_PYDIRPATH="${gr_utils_PYDIRPATH}"":""$with_PYDIRPATH"
44461         fi
44462         gr_utils_PYDIRPATH=
44463     fi
44464
44465
44466     if test "x${gr_utils_SWIGDIRPATH}" != "x"; then
44467         if test "x$with_SWIGDIRPATH" = "x"; then
44468             with_SWIGDIRPATH="${gr_utils_SWIGDIRPATH}"
44469         else
44470             with_SWIGDIRPATH="${gr_utils_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
44471         fi
44472         gr_utils_SWIGDIRPATH=
44473     fi
44474
44475
44476     if test "x${gr_utils_LIBDIRPATH}" != "x"; then
44477         if test "x$with_LIBDIRPATH" = "x"; then
44478             with_LIBDIRPATH="${gr_utils_LIBDIRPATH}"
44479         else
44480             with_LIBDIRPATH="${gr_utils_LIBDIRPATH}"":""$with_LIBDIRPATH"
44481         fi
44482         gr_utils_LIBDIRPATH=
44483     fi
44484
44485             { $as_echo "$as_me:$LINENO: result: Component gr-utils will be included from a pre-installed library and includes." >&5
44486 $as_echo "Component gr-utils will be included from a pre-installed library and includes." >&6; }
44487             gr_utils_with=yes
44488         else
44489             gr_utils_LDFLAG=
44490             if test x$enable_gr_utils != xno; then
44491                 :
44492                 build_dirs="$build_dirs gr-utils"
44493                 { $as_echo "$as_me:$LINENO: result: Component gr-utils passed configuration checks; building." >&5
44494 $as_echo "Component gr-utils passed configuration checks; building." >&6; }
44495             else
44496                 passed=no
44497                 { $as_echo "$as_me:$LINENO: result: Component gr-utils passed configuration checks; but not building." >&5
44498 $as_echo "Component gr-utils passed configuration checks; but not building." >&6; }
44499             fi
44500         fi
44501     fi
44502     if test $passed = no; then
44503         skipped_dirs="$skipped_dirs gr-utils"
44504         gr_utils_skipped=yes
44505     else
44506         gr_utils_skipped=no
44507     fi
44508
44509
44510
44511
44512
44513
44514
44515
44516
44517
44518     passed=yes
44519     # Check whether --enable-gnuradio-examples was given.
44520 if test "${enable_gnuradio_examples+set}" = set; then
44521   enableval=$enable_gnuradio_examples;
44522 else
44523
44524         enable_gnuradio_examples=$enable_all_components
44525         if test x$enable_all_components = xno; then
44526             passed=no
44527         fi
44528
44529 fi
44530
44531
44532
44533
44534
44535     if test $passed != no; then
44536         if test $passed = yes; then
44537                         if test x$gnuradio_core_skipped = xyes; then
44538                 { $as_echo "$as_me:$LINENO: result: Component gnuradio-examples requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
44539 $as_echo "Component gnuradio-examples requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
44540                 passed=no
44541             fi
44542         else
44543                         if test x$gnuradio_core_with = xno; then
44544                 { { $as_echo "$as_me:$LINENO: error: Component gnuradio-examples requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&5
44545 $as_echo "$as_me: error: Component gnuradio-examples requires gnuradio-core to be included as --with-gnuradio-core[=arg]" >&2;}
44546    { (exit 1); exit 1; }; }
44547             fi
44548         fi
44549     fi
44550
44551
44552     ac_config_files="$ac_config_files gnuradio-examples/Makefile gnuradio-examples/c++/Makefile gnuradio-examples/python/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/usrp/Makefile gnuradio-examples/python/usrp2/Makefile"
44553
44554
44555
44556
44557     gnuradio_examples_with=no
44558     if test $passed = no; then
44559         if test x$enable_gnuradio_examples = xyes; then
44560             { { $as_echo "$as_me:$LINENO: error: Component gnuradio-examples has errors; stopping." >&5
44561 $as_echo "$as_me: error: Component gnuradio-examples has errors; stopping." >&2;}
44562    { (exit 1); exit 1; }; }
44563         else
44564             { $as_echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
44565 $as_echo "Not building component gnuradio-examples." >&6; }
44566         fi
44567     else
44568         if test $passed = with; then
44569             with_dirs="$with_dirs gnuradio-examples"
44570
44571     if test "x${gnuradio_examples_INCLUDES}" != "x"; then
44572         if test "x$with_INCLUDES" = "x"; then
44573             with_INCLUDES="${gnuradio_examples_INCLUDES}"
44574         else
44575             with_INCLUDES="${gnuradio_examples_INCLUDES}"" ""$with_INCLUDES"
44576         fi
44577         gnuradio_examples_INCLUDES=
44578     fi
44579
44580
44581     if test "x${gnuradio_examples_SWIG_INCLUDES}" != "x"; then
44582         if test "x$with_SWIG_INCLUDES" = "x"; then
44583             with_SWIG_INCLUDES="${gnuradio_examples_SWIG_INCLUDES}"
44584         else
44585             with_SWIG_INCLUDES="${gnuradio_examples_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
44586         fi
44587         gnuradio_examples_SWIG_INCLUDES=
44588     fi
44589
44590
44591     if test "x${gnuradio_examples_PYDIRPATH}" != "x"; then
44592         if test "x$with_PYDIRPATH" = "x"; then
44593             with_PYDIRPATH="${gnuradio_examples_PYDIRPATH}"
44594         else
44595             with_PYDIRPATH="${gnuradio_examples_PYDIRPATH}"":""$with_PYDIRPATH"
44596         fi
44597         gnuradio_examples_PYDIRPATH=
44598     fi
44599
44600
44601     if test "x${gnuradio_examples_SWIGDIRPATH}" != "x"; then
44602         if test "x$with_SWIGDIRPATH" = "x"; then
44603             with_SWIGDIRPATH="${gnuradio_examples_SWIGDIRPATH}"
44604         else
44605             with_SWIGDIRPATH="${gnuradio_examples_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
44606         fi
44607         gnuradio_examples_SWIGDIRPATH=
44608     fi
44609
44610
44611     if test "x${gnuradio_examples_LIBDIRPATH}" != "x"; then
44612         if test "x$with_LIBDIRPATH" = "x"; then
44613             with_LIBDIRPATH="${gnuradio_examples_LIBDIRPATH}"
44614         else
44615             with_LIBDIRPATH="${gnuradio_examples_LIBDIRPATH}"":""$with_LIBDIRPATH"
44616         fi
44617         gnuradio_examples_LIBDIRPATH=
44618     fi
44619
44620             { $as_echo "$as_me:$LINENO: result: Component gnuradio-examples will be included from a pre-installed library and includes." >&5
44621 $as_echo "Component gnuradio-examples will be included from a pre-installed library and includes." >&6; }
44622             gnuradio_examples_with=yes
44623         else
44624             gnuradio_examples_LDFLAG=
44625             if test x$enable_gnuradio_examples != xno; then
44626                 :
44627                 build_dirs="$build_dirs gnuradio-examples"
44628                 { $as_echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks; building." >&5
44629 $as_echo "Component gnuradio-examples passed configuration checks; building." >&6; }
44630             else
44631                 passed=no
44632                 { $as_echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks; but not building." >&5
44633 $as_echo "Component gnuradio-examples passed configuration checks; but not building." >&6; }
44634             fi
44635         fi
44636     fi
44637     if test $passed = no; then
44638         skipped_dirs="$skipped_dirs gnuradio-examples"
44639         gnuradio_examples_skipped=yes
44640     else
44641         gnuradio_examples_skipped=no
44642     fi
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653     passed=yes
44654     # Check whether --enable-grc was given.
44655 if test "${enable_grc+set}" = set; then
44656   enableval=$enable_grc;
44657 else
44658
44659         enable_grc=$enable_all_components
44660         if test x$enable_all_components = xno; then
44661             passed=no
44662         fi
44663
44664 fi
44665
44666
44667
44668
44669
44670     if test $passed != no; then
44671         if test $passed = yes; then
44672                         if test x$gr_wxgui_skipped = xyes; then
44673                 { $as_echo "$as_me:$LINENO: result: Component grc requires gr-wxgui, which is not being built or specified via pre-installed files." >&5
44674 $as_echo "Component grc requires gr-wxgui, which is not being built or specified via pre-installed files." >&6; }
44675                 passed=no
44676             fi
44677         else
44678                         if test x$gr_wxgui_with = xno; then
44679                 { { $as_echo "$as_me:$LINENO: error: Component grc requires gr-wxgui to be included as --with-gr-wxgui[=arg]" >&5
44680 $as_echo "$as_me: error: Component grc requires gr-wxgui to be included as --with-gr-wxgui[=arg]" >&2;}
44681    { (exit 1); exit 1; }; }
44682             fi
44683         fi
44684     fi
44685
44686
44687     # Extract the first word of "xdg-mime", so it can be a program name with args.
44688 set dummy xdg-mime; ac_word=$2
44689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44690 $as_echo_n "checking for $ac_word... " >&6; }
44691 if test "${ac_cv_prog_XDG_UTILS+set}" = set; then
44692   $as_echo_n "(cached) " >&6
44693 else
44694   if test -n "$XDG_UTILS"; then
44695   ac_cv_prog_XDG_UTILS="$XDG_UTILS" # Let the user override the test.
44696 else
44697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44698 for as_dir in $PATH
44699 do
44700   IFS=$as_save_IFS
44701   test -z "$as_dir" && as_dir=.
44702   for ac_exec_ext in '' $ac_executable_extensions; do
44703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44704     ac_cv_prog_XDG_UTILS="true"
44705     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44706     break 2
44707   fi
44708 done
44709 done
44710 IFS=$as_save_IFS
44711
44712   test -z "$ac_cv_prog_XDG_UTILS" && ac_cv_prog_XDG_UTILS="false"
44713 fi
44714 fi
44715 XDG_UTILS=$ac_cv_prog_XDG_UTILS
44716 if test -n "$XDG_UTILS"; then
44717   { $as_echo "$as_me:$LINENO: result: $XDG_UTILS" >&5
44718 $as_echo "$XDG_UTILS" >&6; }
44719 else
44720   { $as_echo "$as_me:$LINENO: result: no" >&5
44721 $as_echo "no" >&6; }
44722 fi
44723
44724
44725      if $XDG_UTILS; then
44726   XDG_UTILS_TRUE=
44727   XDG_UTILS_FALSE='#'
44728 else
44729   XDG_UTILS_TRUE='#'
44730   XDG_UTILS_FALSE=
44731 fi
44732
44733
44734                 if test $passed = yes; then
44735
44736     { $as_echo "$as_me:$LINENO: checking for Python >= 2.5" >&5
44737 $as_echo_n "checking for Python >= 2.5... " >&6; }
44738                 if test "sys.version.split()[0] >= "2.5""; then
44739         python_cmd='
44740 try:
44741     import sys
44742     assert sys.version.split()[0] >= "2.5"
44743 except: exit(1)'
44744                 else
44745         python_cmd='
44746 try: import sys
44747 except: exit(1)'
44748     fi
44749     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
44750         { $as_echo "$as_me:$LINENO: result: no" >&5
44751 $as_echo "no" >&6; }
44752         passed=no
44753     else
44754         { $as_echo "$as_me:$LINENO: result: yes" >&5
44755 $as_echo "yes" >&6; }
44756
44757     fi
44758
44759
44760     { $as_echo "$as_me:$LINENO: checking for Python Cheetah templates >= 2.0.0" >&5
44761 $as_echo_n "checking for Python Cheetah templates >= 2.0.0... " >&6; }
44762                 if test "Cheetah.Version >= "2.0.0""; then
44763         python_cmd='
44764 try:
44765     import Cheetah
44766     assert Cheetah.Version >= "2.0.0"
44767 except: exit(1)'
44768                 else
44769         python_cmd='
44770 try: import Cheetah
44771 except: exit(1)'
44772     fi
44773     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
44774         { $as_echo "$as_me:$LINENO: result: no" >&5
44775 $as_echo "no" >&6; }
44776         passed=no
44777     else
44778         { $as_echo "$as_me:$LINENO: result: yes" >&5
44779 $as_echo "yes" >&6; }
44780
44781     fi
44782
44783
44784     { $as_echo "$as_me:$LINENO: checking for Python lxml wrappers >= 2.0.0" >&5
44785 $as_echo_n "checking for Python lxml wrappers >= 2.0.0... " >&6; }
44786                 if test "lxml.etree.LXML_VERSION >= (2, 0, 0, 0)"; then
44787         python_cmd='
44788 try:
44789     import lxml.etree
44790     assert lxml.etree.LXML_VERSION >= (2, 0, 0, 0)
44791 except: exit(1)'
44792                 else
44793         python_cmd='
44794 try: import lxml.etree
44795 except: exit(1)'
44796     fi
44797     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
44798         { $as_echo "$as_me:$LINENO: result: no" >&5
44799 $as_echo "no" >&6; }
44800         passed=no
44801     else
44802         { $as_echo "$as_me:$LINENO: result: yes" >&5
44803 $as_echo "yes" >&6; }
44804
44805     fi
44806
44807
44808     { $as_echo "$as_me:$LINENO: checking for Python gtk wrappers >= 2.10.0" >&5
44809 $as_echo_n "checking for Python gtk wrappers >= 2.10.0... " >&6; }
44810                 if test "gtk.pygtk_version >= (2, 10, 0)"; then
44811         python_cmd='
44812 try:
44813     import gtk
44814     assert gtk.pygtk_version >= (2, 10, 0)
44815 except: exit(1)'
44816                 else
44817         python_cmd='
44818 try: import gtk
44819 except: exit(1)'
44820     fi
44821     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
44822         { $as_echo "$as_me:$LINENO: result: no" >&5
44823 $as_echo "no" >&6; }
44824         passed=no
44825     else
44826         { $as_echo "$as_me:$LINENO: result: yes" >&5
44827 $as_echo "yes" >&6; }
44828
44829     fi
44830
44831     fi
44832
44833                     if test `${PYTHON} -c "import sys; print sys.platform"` = 'darwin'; then
44834         PYTHONW=pythonw
44835     else
44836         PYTHONW=python
44837     fi
44838
44839
44840     ac_config_files="$ac_config_files grc/Makefile grc/base/Makefile grc/blocks/Makefile grc/examples/Makefile grc/freedesktop/Makefile grc/grc_gnuradio/Makefile grc/gui/Makefile grc/python/Makefile grc/scripts/Makefile"
44841
44842
44843
44844
44845     grc_with=no
44846     if test $passed = no; then
44847         if test x$enable_grc = xyes; then
44848             { { $as_echo "$as_me:$LINENO: error: Component grc has errors; stopping." >&5
44849 $as_echo "$as_me: error: Component grc has errors; stopping." >&2;}
44850    { (exit 1); exit 1; }; }
44851         else
44852             { $as_echo "$as_me:$LINENO: result: Not building component grc." >&5
44853 $as_echo "Not building component grc." >&6; }
44854         fi
44855     else
44856         if test $passed = with; then
44857             with_dirs="$with_dirs grc"
44858
44859     if test "x${grc_INCLUDES}" != "x"; then
44860         if test "x$with_INCLUDES" = "x"; then
44861             with_INCLUDES="${grc_INCLUDES}"
44862         else
44863             with_INCLUDES="${grc_INCLUDES}"" ""$with_INCLUDES"
44864         fi
44865         grc_INCLUDES=
44866     fi
44867
44868
44869     if test "x${grc_SWIG_INCLUDES}" != "x"; then
44870         if test "x$with_SWIG_INCLUDES" = "x"; then
44871             with_SWIG_INCLUDES="${grc_SWIG_INCLUDES}"
44872         else
44873             with_SWIG_INCLUDES="${grc_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
44874         fi
44875         grc_SWIG_INCLUDES=
44876     fi
44877
44878
44879     if test "x${grc_PYDIRPATH}" != "x"; then
44880         if test "x$with_PYDIRPATH" = "x"; then
44881             with_PYDIRPATH="${grc_PYDIRPATH}"
44882         else
44883             with_PYDIRPATH="${grc_PYDIRPATH}"":""$with_PYDIRPATH"
44884         fi
44885         grc_PYDIRPATH=
44886     fi
44887
44888
44889     if test "x${grc_SWIGDIRPATH}" != "x"; then
44890         if test "x$with_SWIGDIRPATH" = "x"; then
44891             with_SWIGDIRPATH="${grc_SWIGDIRPATH}"
44892         else
44893             with_SWIGDIRPATH="${grc_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
44894         fi
44895         grc_SWIGDIRPATH=
44896     fi
44897
44898
44899     if test "x${grc_LIBDIRPATH}" != "x"; then
44900         if test "x$with_LIBDIRPATH" = "x"; then
44901             with_LIBDIRPATH="${grc_LIBDIRPATH}"
44902         else
44903             with_LIBDIRPATH="${grc_LIBDIRPATH}"":""$with_LIBDIRPATH"
44904         fi
44905         grc_LIBDIRPATH=
44906     fi
44907
44908             { $as_echo "$as_me:$LINENO: result: Component grc will be included from a pre-installed library and includes." >&5
44909 $as_echo "Component grc will be included from a pre-installed library and includes." >&6; }
44910             grc_with=yes
44911         else
44912             grc_LDFLAG=
44913             if test x$enable_grc != xno; then
44914                 :
44915                 build_dirs="$build_dirs grc"
44916                 { $as_echo "$as_me:$LINENO: result: Component grc passed configuration checks; building." >&5
44917 $as_echo "Component grc passed configuration checks; building." >&6; }
44918             else
44919                 passed=no
44920                 { $as_echo "$as_me:$LINENO: result: Component grc passed configuration checks; but not building." >&5
44921 $as_echo "Component grc passed configuration checks; but not building." >&6; }
44922             fi
44923         fi
44924     fi
44925     if test $passed = no; then
44926         skipped_dirs="$skipped_dirs grc"
44927         grc_skipped=yes
44928     else
44929         grc_skipped=no
44930     fi
44931
44932
44933
44934
44935
44936
44937
44938
44939
44940
44941
44942     passed=yes
44943     # Check whether --enable-docs was given.
44944 if test "${enable_docs+set}" = set; then
44945   enableval=$enable_docs;
44946 else
44947
44948         enable_docs=$enable_all_components
44949         if test x$enable_all_components = xno; then
44950             passed=no
44951         fi
44952
44953 fi
44954
44955
44956
44957
44958     ac_config_files="$ac_config_files docs/Makefile docs/doxygen/Doxyfile docs/doxygen/Makefile docs/doxygen/other/Makefile docs/doxygen/xml-swig/Makefile"
44959
44960
44961
44962
44963     docs_with=no
44964     if test $passed = no; then
44965         if test x$enable_docs = xyes; then
44966             { { $as_echo "$as_me:$LINENO: error: Component docs has errors; stopping." >&5
44967 $as_echo "$as_me: error: Component docs has errors; stopping." >&2;}
44968    { (exit 1); exit 1; }; }
44969         else
44970             { $as_echo "$as_me:$LINENO: result: Not building component docs." >&5
44971 $as_echo "Not building component docs." >&6; }
44972         fi
44973     else
44974         if test $passed = with; then
44975             with_dirs="$with_dirs docs"
44976
44977     if test "x${docs_INCLUDES}" != "x"; then
44978         if test "x$with_INCLUDES" = "x"; then
44979             with_INCLUDES="${docs_INCLUDES}"
44980         else
44981             with_INCLUDES="${docs_INCLUDES}"" ""$with_INCLUDES"
44982         fi
44983         docs_INCLUDES=
44984     fi
44985
44986
44987     if test "x${docs_SWIG_INCLUDES}" != "x"; then
44988         if test "x$with_SWIG_INCLUDES" = "x"; then
44989             with_SWIG_INCLUDES="${docs_SWIG_INCLUDES}"
44990         else
44991             with_SWIG_INCLUDES="${docs_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
44992         fi
44993         docs_SWIG_INCLUDES=
44994     fi
44995
44996
44997     if test "x${docs_PYDIRPATH}" != "x"; then
44998         if test "x$with_PYDIRPATH" = "x"; then
44999             with_PYDIRPATH="${docs_PYDIRPATH}"
45000         else
45001             with_PYDIRPATH="${docs_PYDIRPATH}"":""$with_PYDIRPATH"
45002         fi
45003         docs_PYDIRPATH=
45004     fi
45005
45006
45007     if test "x${docs_SWIGDIRPATH}" != "x"; then
45008         if test "x$with_SWIGDIRPATH" = "x"; then
45009             with_SWIGDIRPATH="${docs_SWIGDIRPATH}"
45010         else
45011             with_SWIGDIRPATH="${docs_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
45012         fi
45013         docs_SWIGDIRPATH=
45014     fi
45015
45016
45017     if test "x${docs_LIBDIRPATH}" != "x"; then
45018         if test "x$with_LIBDIRPATH" = "x"; then
45019             with_LIBDIRPATH="${docs_LIBDIRPATH}"
45020         else
45021             with_LIBDIRPATH="${docs_LIBDIRPATH}"":""$with_LIBDIRPATH"
45022         fi
45023         docs_LIBDIRPATH=
45024     fi
45025
45026             { $as_echo "$as_me:$LINENO: result: Component docs will be included from a pre-installed library and includes." >&5
45027 $as_echo "Component docs will be included from a pre-installed library and includes." >&6; }
45028             docs_with=yes
45029         else
45030             docs_LDFLAG=
45031             if test x$enable_docs != xno; then
45032                 :
45033                 build_dirs="$build_dirs docs"
45034                 { $as_echo "$as_me:$LINENO: result: Component docs passed configuration checks; building." >&5
45035 $as_echo "Component docs passed configuration checks; building." >&6; }
45036             else
45037                 passed=no
45038                 { $as_echo "$as_me:$LINENO: result: Component docs passed configuration checks; but not building." >&5
45039 $as_echo "Component docs passed configuration checks; but not building." >&6; }
45040             fi
45041         fi
45042     fi
45043     if test $passed = no; then
45044         skipped_dirs="$skipped_dirs docs"
45045         docs_skipped=yes
45046     else
45047         docs_skipped=no
45048     fi
45049
45050
45051
45052
45053
45054
45055
45056
45057
45058 # Each component is now either to be built, was skipped, will be
45059 # included from pre-installed libraries and includes, or failed
45060 # dependencies.
45061 build_dirs=$build_dirs
45062
45063 skipped_dirs=$skipped_dirs
45064
45065 with_dirs=$with_dirs
45066
45067
45068 # fix for older autotools that don't define these by default
45069
45070
45071
45072
45073 # 'with' variables - the pre-installed libraries, includes, and paths
45074 # - must always come last in the lists, so they require special
45075 # treatment.
45076
45077
45078
45079
45080
45081
45082 # Local files tweaked by AC
45083 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
45084
45085
45086 ac_config_commands="$ac_config_commands run_tests_build"
45087
45088
45089 cat >confcache <<\_ACEOF
45090 # This file is a shell script that caches the results of configure
45091 # tests run on this system so they can be shared between configure
45092 # scripts and configure runs, see configure's option --config-cache.
45093 # It is not useful on other systems.  If it contains results you don't
45094 # want to keep, you may remove or edit it.
45095 #
45096 # config.status only pays attention to the cache file if you give it
45097 # the --recheck option to rerun configure.
45098 #
45099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45101 # following values.
45102
45103 _ACEOF
45104
45105 # The following way of writing the cache mishandles newlines in values,
45106 # but we know of no workaround that is simple, portable, and efficient.
45107 # So, we kill variables containing newlines.
45108 # Ultrix sh set writes to stderr and can't be redirected directly,
45109 # and sets the high bit in the cache file unless we assign to the vars.
45110 (
45111   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45112     eval ac_val=\$$ac_var
45113     case $ac_val in #(
45114     *${as_nl}*)
45115       case $ac_var in #(
45116       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45117 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45118       esac
45119       case $ac_var in #(
45120       _ | IFS | as_nl) ;; #(
45121       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45122       *) $as_unset $ac_var ;;
45123       esac ;;
45124     esac
45125   done
45126
45127   (set) 2>&1 |
45128     case $as_nl`(ac_space=' '; set) 2>&1` in #(
45129     *${as_nl}ac_space=\ *)
45130       # `set' does not quote correctly, so add quotes (double-quote
45131       # substitution turns \\\\ into \\, and sed turns \\ into \).
45132       sed -n \
45133         "s/'/'\\\\''/g;
45134           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45135       ;; #(
45136     *)
45137       # `set' quotes correctly as required by POSIX, so do not add quotes.
45138       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45139       ;;
45140     esac |
45141     sort
45142 ) |
45143   sed '
45144      /^ac_cv_env_/b end
45145      t clear
45146      :clear
45147      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45148      t end
45149      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45150      :end' >>confcache
45151 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45152   if test -w "$cache_file"; then
45153     test "x$cache_file" != "x/dev/null" &&
45154       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45155 $as_echo "$as_me: updating cache $cache_file" >&6;}
45156     cat confcache >$cache_file
45157   else
45158     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45159 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45160   fi
45161 fi
45162 rm -f confcache
45163
45164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45165 # Let make expand exec_prefix.
45166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45167
45168 DEFS=-DHAVE_CONFIG_H
45169
45170 ac_libobjs=
45171 ac_ltlibobjs=
45172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45173   # 1. Remove the extension, and $U if already installed.
45174   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45175   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45176   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45177   #    will be set to the directory where LIBOBJS objects are built.
45178   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45179   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45180 done
45181 LIBOBJS=$ac_libobjs
45182
45183 LTLIBOBJS=$ac_ltlibobjs
45184
45185
45186 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45187   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45188 Usually this means the macro was only invoked conditionally." >&5
45189 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
45190 Usually this means the macro was only invoked conditionally." >&2;}
45191    { (exit 1); exit 1; }; }
45192 fi
45193 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45194   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45195 Usually this means the macro was only invoked conditionally." >&5
45196 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45197 Usually this means the macro was only invoked conditionally." >&2;}
45198    { (exit 1); exit 1; }; }
45199 fi
45200 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
45201   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
45202 Usually this means the macro was only invoked conditionally." >&5
45203 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
45204 Usually this means the macro was only invoked conditionally." >&2;}
45205    { (exit 1); exit 1; }; }
45206 fi
45207 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
45208   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
45209 Usually this means the macro was only invoked conditionally." >&5
45210 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
45211 Usually this means the macro was only invoked conditionally." >&2;}
45212    { (exit 1); exit 1; }; }
45213 fi
45214 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
45215   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
45216 Usually this means the macro was only invoked conditionally." >&5
45217 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
45218 Usually this means the macro was only invoked conditionally." >&2;}
45219    { (exit 1); exit 1; }; }
45220 fi
45221 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
45222   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
45223 Usually this means the macro was only invoked conditionally." >&5
45224 $as_echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
45225 Usually this means the macro was only invoked conditionally." >&2;}
45226    { (exit 1); exit 1; }; }
45227 fi
45228 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
45229   { { $as_echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
45230 Usually this means the macro was only invoked conditionally." >&5
45231 $as_echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
45232 Usually this means the macro was only invoked conditionally." >&2;}
45233    { (exit 1); exit 1; }; }
45234 fi
45235 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
45236   { { $as_echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
45237 Usually this means the macro was only invoked conditionally." >&5
45238 $as_echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
45239 Usually this means the macro was only invoked conditionally." >&2;}
45240    { (exit 1); exit 1; }; }
45241 fi
45242 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
45243   { { $as_echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
45244 Usually this means the macro was only invoked conditionally." >&5
45245 $as_echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
45246 Usually this means the macro was only invoked conditionally." >&2;}
45247    { (exit 1); exit 1; }; }
45248 fi
45249
45250 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
45251   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
45252 Usually this means the macro was only invoked conditionally." >&5
45253 $as_echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
45254 Usually this means the macro was only invoked conditionally." >&2;}
45255    { (exit 1); exit 1; }; }
45256 fi
45257 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
45258   { { $as_echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
45259 Usually this means the macro was only invoked conditionally." >&5
45260 $as_echo "$as_me: error: conditional \"DOC\" was never defined.
45261 Usually this means the macro was only invoked conditionally." >&2;}
45262    { (exit 1); exit 1; }; }
45263 fi
45264 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
45265   { { $as_echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
45266 Usually this means the macro was only invoked conditionally." >&5
45267 $as_echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
45268 Usually this means the macro was only invoked conditionally." >&2;}
45269    { (exit 1); exit 1; }; }
45270 fi
45271 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
45272   { { $as_echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
45273 Usually this means the macro was only invoked conditionally." >&5
45274 $as_echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
45275 Usually this means the macro was only invoked conditionally." >&2;}
45276    { (exit 1); exit 1; }; }
45277 fi
45278 if test -z "${MD_CPU_powerpc_TRUE}" && test -z "${MD_CPU_powerpc_FALSE}"; then
45279   { { $as_echo "$as_me:$LINENO: error: conditional \"MD_CPU_powerpc\" was never defined.
45280 Usually this means the macro was only invoked conditionally." >&5
45281 $as_echo "$as_me: error: conditional \"MD_CPU_powerpc\" was never defined.
45282 Usually this means the macro was only invoked conditionally." >&2;}
45283    { (exit 1); exit 1; }; }
45284 fi
45285 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
45286   { { $as_echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
45287 Usually this means the macro was only invoked conditionally." >&5
45288 $as_echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
45289 Usually this means the macro was only invoked conditionally." >&2;}
45290    { (exit 1); exit 1; }; }
45291 fi
45292 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
45293   { { $as_echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
45294 Usually this means the macro was only invoked conditionally." >&5
45295 $as_echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
45296 Usually this means the macro was only invoked conditionally." >&2;}
45297    { (exit 1); exit 1; }; }
45298 fi
45299 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
45300   { { $as_echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
45301 Usually this means the macro was only invoked conditionally." >&5
45302 $as_echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
45303 Usually this means the macro was only invoked conditionally." >&2;}
45304    { (exit 1); exit 1; }; }
45305 fi
45306 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
45307   { { $as_echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
45308 Usually this means the macro was only invoked conditionally." >&5
45309 $as_echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
45310 Usually this means the macro was only invoked conditionally." >&2;}
45311    { (exit 1); exit 1; }; }
45312 fi
45313 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
45314   { { $as_echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
45315 Usually this means the macro was only invoked conditionally." >&5
45316 $as_echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
45317 Usually this means the macro was only invoked conditionally." >&2;}
45318    { (exit 1); exit 1; }; }
45319 fi
45320 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
45321   { { $as_echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
45322 Usually this means the macro was only invoked conditionally." >&5
45323 $as_echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
45324 Usually this means the macro was only invoked conditionally." >&2;}
45325    { (exit 1); exit 1; }; }
45326 fi
45327
45328 if test -z "${BUILD_QT_TRUE}" && test -z "${BUILD_QT_FALSE}"; then
45329   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_QT\" was never defined.
45330 Usually this means the macro was only invoked conditionally." >&5
45331 $as_echo "$as_me: error: conditional \"BUILD_QT\" was never defined.
45332 Usually this means the macro was only invoked conditionally." >&2;}
45333    { (exit 1); exit 1; }; }
45334 fi
45335 if test -z "${BUILD_QT_TRUE}" && test -z "${BUILD_QT_FALSE}"; then
45336   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_QT\" was never defined.
45337 Usually this means the macro was only invoked conditionally." >&5
45338 $as_echo "$as_me: error: conditional \"BUILD_QT\" was never defined.
45339 Usually this means the macro was only invoked conditionally." >&2;}
45340    { (exit 1); exit 1; }; }
45341 fi
45342 if test -z "${XDG_UTILS_TRUE}" && test -z "${XDG_UTILS_FALSE}"; then
45343   { { $as_echo "$as_me:$LINENO: error: conditional \"XDG_UTILS\" was never defined.
45344 Usually this means the macro was only invoked conditionally." >&5
45345 $as_echo "$as_me: error: conditional \"XDG_UTILS\" was never defined.
45346 Usually this means the macro was only invoked conditionally." >&2;}
45347    { (exit 1); exit 1; }; }
45348 fi
45349
45350 : ${CONFIG_STATUS=./config.status}
45351 ac_write_fail=0
45352 ac_clean_files_save=$ac_clean_files
45353 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45354 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45355 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45356 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45357 #! $SHELL
45358 # Generated by $as_me.
45359 # Run this file to recreate the current configuration.
45360 # Compiler output produced by configure, useful for debugging
45361 # configure, is in config.log if it exists.
45362
45363 debug=false
45364 ac_cs_recheck=false
45365 ac_cs_silent=false
45366 SHELL=\${CONFIG_SHELL-$SHELL}
45367 _ACEOF
45368
45369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45370 ## --------------------- ##
45371 ## M4sh Initialization.  ##
45372 ## --------------------- ##
45373
45374 # Be more Bourne compatible
45375 DUALCASE=1; export DUALCASE # for MKS sh
45376 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45377   emulate sh
45378   NULLCMD=:
45379   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45380   # is contrary to our usage.  Disable this feature.
45381   alias -g '${1+"$@"}'='"$@"'
45382   setopt NO_GLOB_SUBST
45383 else
45384   case `(set -o) 2>/dev/null` in
45385   *posix*) set -o posix ;;
45386 esac
45387
45388 fi
45389
45390
45391
45392
45393 # PATH needs CR
45394 # Avoid depending upon Character Ranges.
45395 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45396 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45397 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45398 as_cr_digits='0123456789'
45399 as_cr_alnum=$as_cr_Letters$as_cr_digits
45400
45401 as_nl='
45402 '
45403 export as_nl
45404 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45405 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45408 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45409   as_echo='printf %s\n'
45410   as_echo_n='printf %s'
45411 else
45412   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45413     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45414     as_echo_n='/usr/ucb/echo -n'
45415   else
45416     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45417     as_echo_n_body='eval
45418       arg=$1;
45419       case $arg in
45420       *"$as_nl"*)
45421         expr "X$arg" : "X\\(.*\\)$as_nl";
45422         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45423       esac;
45424       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45425     '
45426     export as_echo_n_body
45427     as_echo_n='sh -c $as_echo_n_body as_echo'
45428   fi
45429   export as_echo_body
45430   as_echo='sh -c $as_echo_body as_echo'
45431 fi
45432
45433 # The user is always right.
45434 if test "${PATH_SEPARATOR+set}" != set; then
45435   PATH_SEPARATOR=:
45436   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45437     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45438       PATH_SEPARATOR=';'
45439   }
45440 fi
45441
45442 # Support unset when possible.
45443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45444   as_unset=unset
45445 else
45446   as_unset=false
45447 fi
45448
45449
45450 # IFS
45451 # We need space, tab and new line, in precisely that order.  Quoting is
45452 # there to prevent editors from complaining about space-tab.
45453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45454 # splitting by setting IFS to empty value.)
45455 IFS=" ""        $as_nl"
45456
45457 # Find who we are.  Look in the path if we contain no directory separator.
45458 case $0 in
45459   *[\\/]* ) as_myself=$0 ;;
45460   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45461 for as_dir in $PATH
45462 do
45463   IFS=$as_save_IFS
45464   test -z "$as_dir" && as_dir=.
45465   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45466 done
45467 IFS=$as_save_IFS
45468
45469      ;;
45470 esac
45471 # We did not find ourselves, most probably we were run as `sh COMMAND'
45472 # in which case we are not to be found in the path.
45473 if test "x$as_myself" = x; then
45474   as_myself=$0
45475 fi
45476 if test ! -f "$as_myself"; then
45477   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45478   { (exit 1); exit 1; }
45479 fi
45480
45481 # Work around bugs in pre-3.0 UWIN ksh.
45482 for as_var in ENV MAIL MAILPATH
45483 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45484 done
45485 PS1='$ '
45486 PS2='> '
45487 PS4='+ '
45488
45489 # NLS nuisances.
45490 LC_ALL=C
45491 export LC_ALL
45492 LANGUAGE=C
45493 export LANGUAGE
45494
45495 # Required to use basename.
45496 if expr a : '\(a\)' >/dev/null 2>&1 &&
45497    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45498   as_expr=expr
45499 else
45500   as_expr=false
45501 fi
45502
45503 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45504   as_basename=basename
45505 else
45506   as_basename=false
45507 fi
45508
45509
45510 # Name of the executable.
45511 as_me=`$as_basename -- "$0" ||
45512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45513          X"$0" : 'X\(//\)$' \| \
45514          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45515 $as_echo X/"$0" |
45516     sed '/^.*\/\([^/][^/]*\)\/*$/{
45517             s//\1/
45518             q
45519           }
45520           /^X\/\(\/\/\)$/{
45521             s//\1/
45522             q
45523           }
45524           /^X\/\(\/\).*/{
45525             s//\1/
45526             q
45527           }
45528           s/.*/./; q'`
45529
45530 # CDPATH.
45531 $as_unset CDPATH
45532
45533
45534
45535   as_lineno_1=$LINENO
45536   as_lineno_2=$LINENO
45537   test "x$as_lineno_1" != "x$as_lineno_2" &&
45538   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
45539
45540   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45541   # uniformly replaced by the line number.  The first 'sed' inserts a
45542   # line-number line after each line using $LINENO; the second 'sed'
45543   # does the real work.  The second script uses 'N' to pair each
45544   # line-number line with the line containing $LINENO, and appends
45545   # trailing '-' during substitution so that $LINENO is not a special
45546   # case at line end.
45547   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45548   # scripts with optimization help from Paolo Bonzini.  Blame Lee
45549   # E. McMahon (1931-1989) for sed's syntax.  :-)
45550   sed -n '
45551     p
45552     /[$]LINENO/=
45553   ' <$as_myself |
45554     sed '
45555       s/[$]LINENO.*/&-/
45556       t lineno
45557       b
45558       :lineno
45559       N
45560       :loop
45561       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45562       t loop
45563       s/-\n.*//
45564     ' >$as_me.lineno &&
45565   chmod +x "$as_me.lineno" ||
45566     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
45567    { (exit 1); exit 1; }; }
45568
45569   # Don't try to exec as it changes $[0], causing all sort of problems
45570   # (the dirname of $[0] is not the place where we might find the
45571   # original and so on.  Autoconf is especially sensitive to this).
45572   . "./$as_me.lineno"
45573   # Exit status is that of the last command.
45574   exit
45575 }
45576
45577
45578 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45579   as_dirname=dirname
45580 else
45581   as_dirname=false
45582 fi
45583
45584 ECHO_C= ECHO_N= ECHO_T=
45585 case `echo -n x` in
45586 -n*)
45587   case `echo 'x\c'` in
45588   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45589   *)   ECHO_C='\c';;
45590   esac;;
45591 *)
45592   ECHO_N='-n';;
45593 esac
45594 if expr a : '\(a\)' >/dev/null 2>&1 &&
45595    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45596   as_expr=expr
45597 else
45598   as_expr=false
45599 fi
45600
45601 rm -f conf$$ conf$$.exe conf$$.file
45602 if test -d conf$$.dir; then
45603   rm -f conf$$.dir/conf$$.file
45604 else
45605   rm -f conf$$.dir
45606   mkdir conf$$.dir 2>/dev/null
45607 fi
45608 if (echo >conf$$.file) 2>/dev/null; then
45609   if ln -s conf$$.file conf$$ 2>/dev/null; then
45610     as_ln_s='ln -s'
45611     # ... but there are two gotchas:
45612     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45613     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45614     # In both cases, we have to default to `cp -p'.
45615     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45616       as_ln_s='cp -p'
45617   elif ln conf$$.file conf$$ 2>/dev/null; then
45618     as_ln_s=ln
45619   else
45620     as_ln_s='cp -p'
45621   fi
45622 else
45623   as_ln_s='cp -p'
45624 fi
45625 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45626 rmdir conf$$.dir 2>/dev/null
45627
45628 if mkdir -p . 2>/dev/null; then
45629   as_mkdir_p=:
45630 else
45631   test -d ./-p && rmdir ./-p
45632   as_mkdir_p=false
45633 fi
45634
45635 if test -x / >/dev/null 2>&1; then
45636   as_test_x='test -x'
45637 else
45638   if ls -dL / >/dev/null 2>&1; then
45639     as_ls_L_option=L
45640   else
45641     as_ls_L_option=
45642   fi
45643   as_test_x='
45644     eval sh -c '\''
45645       if test -d "$1"; then
45646         test -d "$1/.";
45647       else
45648         case $1 in
45649         -*)set "./$1";;
45650         esac;
45651         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
45652         ???[sx]*):;;*)false;;esac;fi
45653     '\'' sh
45654   '
45655 fi
45656 as_executable_p=$as_test_x
45657
45658 # Sed expression to map a string onto a valid CPP name.
45659 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45660
45661 # Sed expression to map a string onto a valid variable name.
45662 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45663
45664
45665 exec 6>&1
45666
45667 # Save the log message, to keep $[0] and so on meaningful, and to
45668 # report actual input values of CONFIG_FILES etc. instead of their
45669 # values after options handling.
45670 ac_log="
45671 This file was extended by $as_me, which was
45672 generated by GNU Autoconf 2.63.  Invocation command line was
45673
45674   CONFIG_FILES    = $CONFIG_FILES
45675   CONFIG_HEADERS  = $CONFIG_HEADERS
45676   CONFIG_LINKS    = $CONFIG_LINKS
45677   CONFIG_COMMANDS = $CONFIG_COMMANDS
45678   $ $0 $@
45679
45680 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45681 "
45682
45683 _ACEOF
45684
45685 case $ac_config_files in *"
45686 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45687 esac
45688
45689 case $ac_config_headers in *"
45690 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45691 esac
45692
45693
45694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45695 # Files that config.status was made for.
45696 config_files="$ac_config_files"
45697 config_headers="$ac_config_headers"
45698 config_commands="$ac_config_commands"
45699
45700 _ACEOF
45701
45702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45703 ac_cs_usage="\
45704 \`$as_me' instantiates files from templates according to the
45705 current configuration.
45706
45707 Usage: $0 [OPTION]... [FILE]...
45708
45709   -h, --help       print this help, then exit
45710   -V, --version    print version number and configuration settings, then exit
45711   -q, --quiet, --silent
45712                    do not print progress messages
45713   -d, --debug      don't remove temporary files
45714       --recheck    update $as_me by reconfiguring in the same conditions
45715       --file=FILE[:TEMPLATE]
45716                    instantiate the configuration file FILE
45717       --header=FILE[:TEMPLATE]
45718                    instantiate the configuration header FILE
45719
45720 Configuration files:
45721 $config_files
45722
45723 Configuration headers:
45724 $config_headers
45725
45726 Configuration commands:
45727 $config_commands
45728
45729 Report bugs to <bug-autoconf@gnu.org>."
45730
45731 _ACEOF
45732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45733 ac_cs_version="\\
45734 config.status
45735 configured by $0, generated by GNU Autoconf 2.63,
45736   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45737
45738 Copyright (C) 2008 Free Software Foundation, Inc.
45739 This config.status script is free software; the Free Software Foundation
45740 gives unlimited permission to copy, distribute and modify it."
45741
45742 ac_pwd='$ac_pwd'
45743 srcdir='$srcdir'
45744 INSTALL='$INSTALL'
45745 MKDIR_P='$MKDIR_P'
45746 AWK='$AWK'
45747 test -n "\$AWK" || AWK=awk
45748 _ACEOF
45749
45750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45751 # The default lists apply if the user does not specify any file.
45752 ac_need_defaults=:
45753 while test $# != 0
45754 do
45755   case $1 in
45756   --*=*)
45757     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45758     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45759     ac_shift=:
45760     ;;
45761   *)
45762     ac_option=$1
45763     ac_optarg=$2
45764     ac_shift=shift
45765     ;;
45766   esac
45767
45768   case $ac_option in
45769   # Handling of the options.
45770   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45771     ac_cs_recheck=: ;;
45772   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45773     $as_echo "$ac_cs_version"; exit ;;
45774   --debug | --debu | --deb | --de | --d | -d )
45775     debug=: ;;
45776   --file | --fil | --fi | --f )
45777     $ac_shift
45778     case $ac_optarg in
45779     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45780     esac
45781     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
45782     ac_need_defaults=false;;
45783   --header | --heade | --head | --hea )
45784     $ac_shift
45785     case $ac_optarg in
45786     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45787     esac
45788     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
45789     ac_need_defaults=false;;
45790   --he | --h)
45791     # Conflict between --help and --header
45792     { $as_echo "$as_me: error: ambiguous option: $1
45793 Try \`$0 --help' for more information." >&2
45794    { (exit 1); exit 1; }; };;
45795   --help | --hel | -h )
45796     $as_echo "$ac_cs_usage"; exit ;;
45797   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45798   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45799     ac_cs_silent=: ;;
45800
45801   # This is an error.
45802   -*) { $as_echo "$as_me: error: unrecognized option: $1
45803 Try \`$0 --help' for more information." >&2
45804    { (exit 1); exit 1; }; } ;;
45805
45806   *) ac_config_targets="$ac_config_targets $1"
45807      ac_need_defaults=false ;;
45808
45809   esac
45810   shift
45811 done
45812
45813 ac_configure_extra_args=
45814
45815 if $ac_cs_silent; then
45816   exec 6>/dev/null
45817   ac_configure_extra_args="$ac_configure_extra_args --silent"
45818 fi
45819
45820 _ACEOF
45821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45822 if \$ac_cs_recheck; then
45823   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45824   shift
45825   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45826   CONFIG_SHELL='$SHELL'
45827   export CONFIG_SHELL
45828   exec "\$@"
45829 fi
45830
45831 _ACEOF
45832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45833 exec 5>>config.log
45834 {
45835   echo
45836   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45837 ## Running $as_me. ##
45838 _ASBOX
45839   $as_echo "$ac_log"
45840 } >&5
45841
45842 _ACEOF
45843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45844 #
45845 # INIT-COMMANDS
45846 #
45847 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45848
45849
45850 # The HP-UX ksh and POSIX shell print the target directory to stdout
45851 # if CDPATH is set.
45852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45853
45854 sed_quote_subst='$sed_quote_subst'
45855 double_quote_subst='$double_quote_subst'
45856 delay_variable_subst='$delay_variable_subst'
45857 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
45858 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
45859 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
45860 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
45861 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
45862 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
45863 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
45864 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
45865 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
45866 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
45867 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
45868 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
45869 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
45870 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
45871 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
45872 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
45873 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
45874 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
45875 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
45876 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
45877 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
45878 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
45879 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
45880 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
45881 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
45882 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
45883 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
45884 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
45885 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
45886 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
45887 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45888 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
45889 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
45890 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
45891 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45892 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
45893 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
45894 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45895 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45896 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45897 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
45898 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45899 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
45900 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
45901 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
45902 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
45903 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"`'
45904 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"`'
45905 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
45906 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
45907 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
45908 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
45909 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
45910 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
45911 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
45912 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
45913 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
45914 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
45915 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
45916 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
45917 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
45918 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
45919 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
45920 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
45921 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45922 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45923 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
45924 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
45925 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45926 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45927 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
45928 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45929 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45930 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45931 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45932 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45933 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45934 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
45935 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45936 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45937 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45938 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
45939 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
45940 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
45941 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
45942 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
45943 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45944 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
45945 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
45946 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
45947 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
45948 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
45949 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45950 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45951 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45952 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45953 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
45954 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
45955 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
45956 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
45957 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
45958 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45959 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45960 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
45961 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45962 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
45963 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45964 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45965 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45966 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45967 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
45968 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
45969 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45970 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45971 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
45972 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
45973 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
45974 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
45975 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
45976 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
45977 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
45978 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45979 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45980 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
45981 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
45982 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
45983 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45984 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
45985 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45986 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
45987 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45988 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
45989 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45990 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
45991 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45992 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
45993 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45994 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
45995 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45996 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
45997 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45998 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
45999 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46000 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
46001 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46002 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
46003 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46004 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
46005 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46006 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
46007 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46008 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
46009 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46010 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
46011 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46012 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46013 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46014 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46015 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46016 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46017 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46018 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46019 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46020 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46021 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46022 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46023 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46024 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
46025 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46026 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
46027 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46028 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
46029 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46030 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
46031 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46032 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
46033 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46034 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
46035 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46036 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
46037 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46038 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
46039 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46040 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
46041 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46042 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
46043 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46044 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
46045 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46046 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
46047 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46048 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
46049 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46050 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
46051 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46052 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
46053 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46054 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46055 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46056 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
46057 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46058 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
46059 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46060 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
46061 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46062 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
46063 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46064 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
46065 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46066 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
46067 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46068 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
46069 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46070 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
46071 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46072 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
46073 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46074 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
46075 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46076 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
46077
46078 LTCC='$LTCC'
46079 LTCFLAGS='$LTCFLAGS'
46080 compiler='$compiler_DEFAULT'
46081
46082 # Quote evaled strings.
46083 for var in SED \
46084 GREP \
46085 EGREP \
46086 FGREP \
46087 LD \
46088 NM \
46089 LN_S \
46090 lt_SP2NL \
46091 lt_NL2SP \
46092 reload_flag \
46093 deplibs_check_method \
46094 file_magic_cmd \
46095 AR \
46096 AR_FLAGS \
46097 STRIP \
46098 RANLIB \
46099 CC \
46100 CFLAGS \
46101 compiler \
46102 lt_cv_sys_global_symbol_pipe \
46103 lt_cv_sys_global_symbol_to_cdecl \
46104 lt_cv_sys_global_symbol_to_c_name_address \
46105 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46106 SHELL \
46107 ECHO \
46108 lt_prog_compiler_no_builtin_flag \
46109 lt_prog_compiler_wl \
46110 lt_prog_compiler_pic \
46111 lt_prog_compiler_static \
46112 lt_cv_prog_compiler_c_o \
46113 need_locks \
46114 DSYMUTIL \
46115 NMEDIT \
46116 LIPO \
46117 OTOOL \
46118 OTOOL64 \
46119 shrext_cmds \
46120 export_dynamic_flag_spec \
46121 whole_archive_flag_spec \
46122 compiler_needs_object \
46123 with_gnu_ld \
46124 allow_undefined_flag \
46125 no_undefined_flag \
46126 hardcode_libdir_flag_spec \
46127 hardcode_libdir_flag_spec_ld \
46128 hardcode_libdir_separator \
46129 fix_srcfile_path \
46130 exclude_expsyms \
46131 include_expsyms \
46132 file_list_spec \
46133 variables_saved_for_relink \
46134 libname_spec \
46135 library_names_spec \
46136 soname_spec \
46137 finish_eval \
46138 old_striplib \
46139 striplib \
46140 compiler_lib_search_dirs \
46141 predep_objects \
46142 postdep_objects \
46143 predeps \
46144 postdeps \
46145 compiler_lib_search_path \
46146 LD_CXX \
46147 LD_F77 \
46148 compiler_CXX \
46149 compiler_F77 \
46150 lt_prog_compiler_no_builtin_flag_CXX \
46151 lt_prog_compiler_no_builtin_flag_F77 \
46152 lt_prog_compiler_wl_CXX \
46153 lt_prog_compiler_wl_F77 \
46154 lt_prog_compiler_pic_CXX \
46155 lt_prog_compiler_pic_F77 \
46156 lt_prog_compiler_static_CXX \
46157 lt_prog_compiler_static_F77 \
46158 lt_cv_prog_compiler_c_o_CXX \
46159 lt_cv_prog_compiler_c_o_F77 \
46160 export_dynamic_flag_spec_CXX \
46161 export_dynamic_flag_spec_F77 \
46162 whole_archive_flag_spec_CXX \
46163 whole_archive_flag_spec_F77 \
46164 compiler_needs_object_CXX \
46165 compiler_needs_object_F77 \
46166 with_gnu_ld_CXX \
46167 with_gnu_ld_F77 \
46168 allow_undefined_flag_CXX \
46169 allow_undefined_flag_F77 \
46170 no_undefined_flag_CXX \
46171 no_undefined_flag_F77 \
46172 hardcode_libdir_flag_spec_CXX \
46173 hardcode_libdir_flag_spec_F77 \
46174 hardcode_libdir_flag_spec_ld_CXX \
46175 hardcode_libdir_flag_spec_ld_F77 \
46176 hardcode_libdir_separator_CXX \
46177 hardcode_libdir_separator_F77 \
46178 fix_srcfile_path_CXX \
46179 fix_srcfile_path_F77 \
46180 exclude_expsyms_CXX \
46181 exclude_expsyms_F77 \
46182 include_expsyms_CXX \
46183 include_expsyms_F77 \
46184 file_list_spec_CXX \
46185 file_list_spec_F77 \
46186 compiler_lib_search_dirs_CXX \
46187 compiler_lib_search_dirs_F77 \
46188 predep_objects_CXX \
46189 predep_objects_F77 \
46190 postdep_objects_CXX \
46191 postdep_objects_F77 \
46192 predeps_CXX \
46193 predeps_F77 \
46194 postdeps_CXX \
46195 postdeps_F77 \
46196 compiler_lib_search_path_CXX \
46197 compiler_lib_search_path_F77; do
46198     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46199     *[\\\\\\\`\\"\\\$]*)
46200       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46201       ;;
46202     *)
46203       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46204       ;;
46205     esac
46206 done
46207
46208 # Double-quote double-evaled strings.
46209 for var in reload_cmds \
46210 old_postinstall_cmds \
46211 old_postuninstall_cmds \
46212 old_archive_cmds \
46213 extract_expsyms_cmds \
46214 old_archive_from_new_cmds \
46215 old_archive_from_expsyms_cmds \
46216 archive_cmds \
46217 archive_expsym_cmds \
46218 module_cmds \
46219 module_expsym_cmds \
46220 export_symbols_cmds \
46221 prelink_cmds \
46222 postinstall_cmds \
46223 postuninstall_cmds \
46224 finish_cmds \
46225 sys_lib_search_path_spec \
46226 sys_lib_dlsearch_path_spec \
46227 old_archive_cmds_CXX \
46228 old_archive_cmds_F77 \
46229 old_archive_from_new_cmds_CXX \
46230 old_archive_from_new_cmds_F77 \
46231 old_archive_from_expsyms_cmds_CXX \
46232 old_archive_from_expsyms_cmds_F77 \
46233 archive_cmds_CXX \
46234 archive_cmds_F77 \
46235 archive_expsym_cmds_CXX \
46236 archive_expsym_cmds_F77 \
46237 module_cmds_CXX \
46238 module_cmds_F77 \
46239 module_expsym_cmds_CXX \
46240 module_expsym_cmds_F77 \
46241 export_symbols_cmds_CXX \
46242 export_symbols_cmds_F77 \
46243 prelink_cmds_CXX \
46244 prelink_cmds_F77; do
46245     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46246     *[\\\\\\\`\\"\\\$]*)
46247       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46248       ;;
46249     *)
46250       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46251       ;;
46252     esac
46253 done
46254
46255 # Fix-up fallback echo if it was mangled by the above quoting rules.
46256 case \$lt_ECHO in
46257 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46258   ;;
46259 esac
46260
46261 ac_aux_dir='$ac_aux_dir'
46262 xsi_shell='$xsi_shell'
46263 lt_shell_append='$lt_shell_append'
46264
46265 # See if we are running on zsh, and set the options which allow our
46266 # commands through without removal of \ escapes INIT.
46267 if test -n "\${ZSH_VERSION+set}" ; then
46268    setopt NO_GLOB_SUBST
46269 fi
46270
46271
46272     PACKAGE='$PACKAGE'
46273     VERSION='$VERSION'
46274     TIMESTAMP='$TIMESTAMP'
46275     RM='$RM'
46276     ofile='$ofile'
46277
46278
46279
46280
46281
46282
46283
46284
46285 _ACEOF
46286
46287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46288
46289 # Handling of arguments.
46290 for ac_config_target in $ac_config_targets
46291 do
46292   case $ac_config_target in
46293     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
46294     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46295     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46296     "gruel/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/Makefile" ;;
46297     "gruel/gruel.pc") CONFIG_FILES="$CONFIG_FILES gruel/gruel.pc" ;;
46298     "gruel/src/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/Makefile" ;;
46299     "gruel/src/include/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/include/Makefile" ;;
46300     "gruel/src/include/gruel/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/include/gruel/Makefile" ;;
46301     "gruel/src/include/gruel/inet.h") CONFIG_FILES="$CONFIG_FILES gruel/src/include/gruel/inet.h" ;;
46302     "gruel/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/lib/Makefile" ;;
46303     "omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES omnithread/Makefile" ;;
46304     "omnithread/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES omnithread/gnuradio/Makefile" ;;
46305     "omnithread/gnuradio-omnithread.pc") CONFIG_FILES="$CONFIG_FILES omnithread/gnuradio-omnithread.pc" ;;
46306     "gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/Makefile" ;;
46307     "gcell/gcell.pc") CONFIG_FILES="$CONFIG_FILES gcell/gcell.pc" ;;
46308     "gcell/gcell_spu.pc") CONFIG_FILES="$CONFIG_FILES gcell/gcell_spu.pc" ;;
46309     "gcell/include/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/Makefile" ;;
46310     "gcell/include/gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/gcell/Makefile" ;;
46311     "gcell/include/gcell/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/gcell/spu/Makefile" ;;
46312     "gcell/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/Makefile" ;;
46313     "gcell/lib/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/spu/Makefile" ;;
46314     "gcell/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/general/Makefile" ;;
46315     "gcell/lib/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/wrapper/Makefile" ;;
46316     "gcell/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/runtime/Makefile" ;;
46317     "gcell/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/apps/Makefile" ;;
46318     "gcell/apps/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/apps/spu/Makefile" ;;
46319     "gcell/ibm/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/ibm/Makefile" ;;
46320     "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
46321     "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
46322     "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
46323     "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
46324     "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
46325     "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
46326     "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
46327     "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
46328     "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
46329     "gnuradio-core/src/lib/gengen/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/gengen/Makefile" ;;
46330     "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
46331     "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
46332     "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
46333     "gnuradio-core/src/lib/viterbi/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/viterbi/Makefile" ;;
46334     "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
46335     "gnuradio-core/src/lib/hier/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/hier/Makefile" ;;
46336     "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
46337     "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
46338     "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
46339     "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
46340     "gnuradio-core/src/python/gnuradio/blks2/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks2/Makefile" ;;
46341     "gnuradio-core/src/python/gnuradio/blks2impl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks2impl/Makefile" ;;
46342     "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
46343     "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
46344     "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
46345     "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
46346     "gnuradio-core/src/python/gnuradio/vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/vocoder/Makefile" ;;
46347     "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
46348     "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
46349     "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
46350     "pmt/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/Makefile" ;;
46351     "pmt/pmt.pc") CONFIG_FILES="$CONFIG_FILES pmt/pmt.pc" ;;
46352     "pmt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/doc/Makefile" ;;
46353     "pmt/src/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/Makefile" ;;
46354     "pmt/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/lib/Makefile" ;;
46355     "pmt/src/scheme/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/scheme/Makefile" ;;
46356     "pmt/src/scheme/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/scheme/gnuradio/Makefile" ;;
46357     "mblock/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/Makefile" ;;
46358     "mblock/mblock.pc") CONFIG_FILES="$CONFIG_FILES mblock/mblock.pc" ;;
46359     "mblock/doc/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/doc/Makefile" ;;
46360     "mblock/src/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/Makefile" ;;
46361     "mblock/src/include/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/include/Makefile" ;;
46362     "mblock/src/include/mblock/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/include/mblock/Makefile" ;;
46363     "mblock/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/lib/Makefile" ;;
46364     "mblock/src/scheme/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/scheme/Makefile" ;;
46365     "mblock/src/scheme/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/scheme/gnuradio/Makefile" ;;
46366     "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
46367     "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
46368     "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
46369     "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
46370     "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
46371     "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
46372     "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
46373     "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
46374     "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
46375     "usrp/host/lib/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/legacy/Makefile" ;;
46376     "usrp/host/lib/legacy/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/legacy/std_paths.h" ;;
46377     "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
46378     "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
46379     "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
46380     "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
46381     "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
46382     "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
46383     "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
46384     "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
46385     "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
46386     "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
46387     "usrp/fpga/rbf/rev2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/rev2/Makefile" ;;
46388     "usrp/fpga/rbf/rev4/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/rev4/Makefile" ;;
46389     "usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/Makefile" ;;
46390     "usrp2/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/Makefile" ;;
46391     "usrp2/host/usrp2.pc") CONFIG_FILES="$CONFIG_FILES usrp2/host/usrp2.pc" ;;
46392     "usrp2/host/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/include/Makefile" ;;
46393     "usrp2/host/include/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/include/usrp2/Makefile" ;;
46394     "usrp2/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/lib/Makefile" ;;
46395     "usrp2/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/apps/Makefile" ;;
46396     "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
46397     "gr-usrp/gnuradio-usrp.pc") CONFIG_FILES="$CONFIG_FILES gr-usrp/gnuradio-usrp.pc" ;;
46398     "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
46399     "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
46400     "gr-usrp/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/apps/Makefile" ;;
46401     "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
46402     "gr-usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp2/Makefile" ;;
46403     "gr-usrp2/gnuradio-usrp2.pc") CONFIG_FILES="$CONFIG_FILES gr-usrp2/gnuradio-usrp2.pc" ;;
46404     "gr-usrp2/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp2/src/Makefile" ;;
46405     "gr-usrp2/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp2/src/run_tests" ;;
46406     "run_tests_usrp2") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp2" ;;
46407     "gr-gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/Makefile" ;;
46408     "gr-gcell/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/Makefile" ;;
46409     "gr-gcell/src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/examples/Makefile" ;;
46410     "gr-gcell/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/run_tests" ;;
46411     "run_tests_gcell") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gcell" ;;
46412     "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
46413     "gr-audio-alsa/gr-audio-alsa.pc") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/gr-audio-alsa.pc" ;;
46414     "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
46415     "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
46416     "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
46417     "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
46418     "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
46419     "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
46420     "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
46421     "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
46422     "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
46423     "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
46424     "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
46425     "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
46426     "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
46427     "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
46428     "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
46429     "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
46430     "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
46431     "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
46432     "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
46433     "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
46434     "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
46435     "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
46436     "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
46437     "gr-cvsd-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/Makefile" ;;
46438     "gr-cvsd-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/Makefile" ;;
46439     "gr-cvsd-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/lib/Makefile" ;;
46440     "gr-cvsd-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/python/Makefile" ;;
46441     "gr-cvsd-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/python/run_tests" ;;
46442     "run_tests_cvsd") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_cvsd" ;;
46443     "gr-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/Makefile" ;;
46444     "gr-gpio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/Makefile" ;;
46445     "gr-gpio/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/Makefile" ;;
46446     "gr-gpio/src/fpga/include/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/include/Makefile" ;;
46447     "gr-gpio/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/top/Makefile" ;;
46448     "gr-gpio/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/lib/Makefile" ;;
46449     "gr-gpio/src/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/rbf/Makefile" ;;
46450     "gr-gpio/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/python/Makefile" ;;
46451     "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
46452     "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
46453     "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
46454     "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
46455     "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
46456     "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
46457     "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
46458     "gr-pager/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/Makefile" ;;
46459     "gr-pager/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/src/Makefile" ;;
46460     "gr-pager/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-pager/src/run_tests" ;;
46461     "run_tests_pager") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_pager" ;;
46462     "gr-radar-mono/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/Makefile" ;;
46463     "gr-radar-mono/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/doc/Makefile" ;;
46464     "gr-radar-mono/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/Makefile" ;;
46465     "gr-radar-mono/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/Makefile" ;;
46466     "gr-radar-mono/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/top/Makefile" ;;
46467     "gr-radar-mono/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/lib/Makefile" ;;
46468     "gr-radar-mono/src/fpga/models/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/models/Makefile" ;;
46469     "gr-radar-mono/src/fpga/tb/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/tb/Makefile" ;;
46470     "gr-radar-mono/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/lib/Makefile" ;;
46471     "gr-radar-mono/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/python/Makefile" ;;
46472     "gr-radar-mono/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/python/run_tests" ;;
46473     "run_tests_radar_mono") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_radar_mono" ;;
46474     "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
46475     "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
46476     "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
46477     "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
46478     "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
46479     "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
46480     "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
46481     "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
46482     "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
46483     "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
46484     "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
46485     "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
46486     "gr-trellis/src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/examples/Makefile" ;;
46487     "gr-trellis/src/examples/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/examples/fsm_files/Makefile" ;;
46488     "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
46489     "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
46490     "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
46491     "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
46492     "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
46493     "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
46494     "gr-wxgui/gr-wxgui.pc") CONFIG_FILES="$CONFIG_FILES gr-wxgui/gr-wxgui.pc" ;;
46495     "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
46496     "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
46497     "gr-wxgui/src/python/plotter/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/plotter/Makefile" ;;
46498     "gr-qtgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/Makefile" ;;
46499     "gr-qtgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/Makefile" ;;
46500     "gr-qtgui/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/lib/Makefile" ;;
46501     "gr-qtgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/python/Makefile" ;;
46502     "gr-sounder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/Makefile" ;;
46503     "gr-sounder/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/doc/Makefile" ;;
46504     "gr-sounder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/Makefile" ;;
46505     "gr-sounder/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/Makefile" ;;
46506     "gr-sounder/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/top/Makefile" ;;
46507     "gr-sounder/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/lib/Makefile" ;;
46508     "gr-sounder/src/fpga/tb/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/tb/Makefile" ;;
46509     "gr-sounder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/lib/Makefile" ;;
46510     "gr-sounder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/python/Makefile" ;;
46511     "gr-sounder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/python/run_tests" ;;
46512     "run_tests_sounder") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sounder" ;;
46513     "gr-utils/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/Makefile" ;;
46514     "gr-utils/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/Makefile" ;;
46515     "gr-utils/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/lib/Makefile" ;;
46516     "gr-utils/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/python/Makefile" ;;
46517     "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
46518     "gnuradio-examples/c++/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/c++/Makefile" ;;
46519     "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
46520     "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
46521     "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
46522     "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
46523     "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
46524     "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
46525     "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
46526     "gnuradio-examples/python/digital-bert/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital-bert/Makefile" ;;
46527     "gnuradio-examples/python/mp-sched/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/mp-sched/Makefile" ;;
46528     "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
46529     "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
46530     "gnuradio-examples/python/network/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/network/Makefile" ;;
46531     "gnuradio-examples/python/ofdm/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/ofdm/Makefile" ;;
46532     "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
46533     "gnuradio-examples/python/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp2/Makefile" ;;
46534     "grc/Makefile") CONFIG_FILES="$CONFIG_FILES grc/Makefile" ;;
46535     "grc/base/Makefile") CONFIG_FILES="$CONFIG_FILES grc/base/Makefile" ;;
46536     "grc/blocks/Makefile") CONFIG_FILES="$CONFIG_FILES grc/blocks/Makefile" ;;
46537     "grc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES grc/examples/Makefile" ;;
46538     "grc/freedesktop/Makefile") CONFIG_FILES="$CONFIG_FILES grc/freedesktop/Makefile" ;;
46539     "grc/grc_gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES grc/grc_gnuradio/Makefile" ;;
46540     "grc/gui/Makefile") CONFIG_FILES="$CONFIG_FILES grc/gui/Makefile" ;;
46541     "grc/python/Makefile") CONFIG_FILES="$CONFIG_FILES grc/python/Makefile" ;;
46542     "grc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES grc/scripts/Makefile" ;;
46543     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46544     "docs/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Doxyfile" ;;
46545     "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
46546     "docs/doxygen/other/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/other/Makefile" ;;
46547     "docs/doxygen/xml-swig/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/xml-swig/Makefile" ;;
46548     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46549     "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
46550     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
46551     "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
46552
46553   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46554 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46555    { (exit 1); exit 1; }; };;
46556   esac
46557 done
46558
46559
46560 # If the user did not use the arguments to specify the items to instantiate,
46561 # then the envvar interface is used.  Set only those that are not.
46562 # We use the long form for the default assignment because of an extremely
46563 # bizarre bug on SunOS 4.1.3.
46564 if $ac_need_defaults; then
46565   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46566   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46567   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46568 fi
46569
46570 # Have a temporary directory for convenience.  Make it in the build tree
46571 # simply because there is no reason against having it here, and in addition,
46572 # creating and moving files from /tmp can sometimes cause problems.
46573 # Hook for its removal unless debugging.
46574 # Note that there is a small window in which the directory will not be cleaned:
46575 # after its creation but before its name has been assigned to `$tmp'.
46576 $debug ||
46577 {
46578   tmp=
46579   trap 'exit_status=$?
46580   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
46581 ' 0
46582   trap '{ (exit 1); exit 1; }' 1 2 13 15
46583 }
46584 # Create a (secure) tmp directory for tmp files.
46585
46586 {
46587   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46588   test -n "$tmp" && test -d "$tmp"
46589 }  ||
46590 {
46591   tmp=./conf$$-$RANDOM
46592   (umask 077 && mkdir "$tmp")
46593 } ||
46594 {
46595    $as_echo "$as_me: cannot create a temporary directory in ." >&2
46596    { (exit 1); exit 1; }
46597 }
46598
46599 # Set up the scripts for CONFIG_FILES section.
46600 # No need to generate them if there are no CONFIG_FILES.
46601 # This happens for instance with `./config.status config.h'.
46602 if test -n "$CONFIG_FILES"; then
46603
46604
46605 ac_cr='\r'
46606 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46607 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46608   ac_cs_awk_cr='\\r'
46609 else
46610   ac_cs_awk_cr=$ac_cr
46611 fi
46612
46613 echo 'BEGIN {' >"$tmp/subs1.awk" &&
46614 _ACEOF
46615
46616
46617 {
46618   echo "cat >conf$$subs.awk <<_ACEOF" &&
46619   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46620   echo "_ACEOF"
46621 } >conf$$subs.sh ||
46622   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46623 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46624    { (exit 1); exit 1; }; }
46625 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
46626 ac_delim='%!_!# '
46627 for ac_last_try in false false false false false :; do
46628   . ./conf$$subs.sh ||
46629     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46630 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46631    { (exit 1); exit 1; }; }
46632
46633   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46634   if test $ac_delim_n = $ac_delim_num; then
46635     break
46636   elif $ac_last_try; then
46637     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46638 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46639    { (exit 1); exit 1; }; }
46640   else
46641     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46642   fi
46643 done
46644 rm -f conf$$subs.sh
46645
46646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46647 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
46648 _ACEOF
46649 sed -n '
46650 h
46651 s/^/S["/; s/!.*/"]=/
46652 p
46653 g
46654 s/^[^!]*!//
46655 :repl
46656 t repl
46657 s/'"$ac_delim"'$//
46658 t delim
46659 :nl
46660 h
46661 s/\(.\{148\}\).*/\1/
46662 t more1
46663 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46664 p
46665 n
46666 b repl
46667 :more1
46668 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46669 p
46670 g
46671 s/.\{148\}//
46672 t nl
46673 :delim
46674 h
46675 s/\(.\{148\}\).*/\1/
46676 t more2
46677 s/["\\]/\\&/g; s/^/"/; s/$/"/
46678 p
46679 b
46680 :more2
46681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46682 p
46683 g
46684 s/.\{148\}//
46685 t delim
46686 ' <conf$$subs.awk | sed '
46687 /^[^""]/{
46688   N
46689   s/\n//
46690 }
46691 ' >>$CONFIG_STATUS || ac_write_fail=1
46692 rm -f conf$$subs.awk
46693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46694 _ACAWK
46695 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
46696   for (key in S) S_is_set[key] = 1
46697   FS = "\a"
46698
46699 }
46700 {
46701   line = $ 0
46702   nfields = split(line, field, "@")
46703   substed = 0
46704   len = length(field[1])
46705   for (i = 2; i < nfields; i++) {
46706     key = field[i]
46707     keylen = length(key)
46708     if (S_is_set[key]) {
46709       value = S[key]
46710       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46711       len += length(value) + length(field[++i])
46712       substed = 1
46713     } else
46714       len += 1 + keylen
46715   }
46716
46717   print line
46718 }
46719
46720 _ACAWK
46721 _ACEOF
46722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46723 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46724   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46725 else
46726   cat
46727 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
46728   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
46729 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
46730    { (exit 1); exit 1; }; }
46731 _ACEOF
46732
46733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46735 # trailing colons and then remove the whole line if VPATH becomes empty
46736 # (actually we leave an empty line to preserve line numbers).
46737 if test "x$srcdir" = x.; then
46738   ac_vpsub='/^[  ]*VPATH[        ]*=/{
46739 s/:*\$(srcdir):*/:/
46740 s/:*\${srcdir}:*/:/
46741 s/:*@srcdir@:*/:/
46742 s/^\([^=]*=[     ]*\):*/\1/
46743 s/:*$//
46744 s/^[^=]*=[       ]*$//
46745 }'
46746 fi
46747
46748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46749 fi # test -n "$CONFIG_FILES"
46750
46751 # Set up the scripts for CONFIG_HEADERS section.
46752 # No need to generate them if there are no CONFIG_HEADERS.
46753 # This happens for instance with `./config.status Makefile'.
46754 if test -n "$CONFIG_HEADERS"; then
46755 cat >"$tmp/defines.awk" <<\_ACAWK ||
46756 BEGIN {
46757 _ACEOF
46758
46759 # Transform confdefs.h into an awk script `defines.awk', embedded as
46760 # here-document in config.status, that substitutes the proper values into
46761 # config.h.in to produce config.h.
46762
46763 # Create a delimiter string that does not exist in confdefs.h, to ease
46764 # handling of long lines.
46765 ac_delim='%!_!# '
46766 for ac_last_try in false false :; do
46767   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
46768   if test -z "$ac_t"; then
46769     break
46770   elif $ac_last_try; then
46771     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
46772 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
46773    { (exit 1); exit 1; }; }
46774   else
46775     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46776   fi
46777 done
46778
46779 # For the awk script, D is an array of macro values keyed by name,
46780 # likewise P contains macro parameters if any.  Preserve backslash
46781 # newline sequences.
46782
46783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46784 sed -n '
46785 s/.\{148\}/&'"$ac_delim"'/g
46786 t rset
46787 :rset
46788 s/^[     ]*#[    ]*define[       ][      ]*/ /
46789 t def
46790 d
46791 :def
46792 s/\\$//
46793 t bsnl
46794 s/["\\]/\\&/g
46795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46796 D["\1"]=" \3"/p
46797 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
46798 d
46799 :bsnl
46800 s/["\\]/\\&/g
46801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46802 D["\1"]=" \3\\\\\\n"\\/p
46803 t cont
46804 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46805 t cont
46806 d
46807 :cont
46808 n
46809 s/.\{148\}/&'"$ac_delim"'/g
46810 t clear
46811 :clear
46812 s/\\$//
46813 t bsnlc
46814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46815 d
46816 :bsnlc
46817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46818 b cont
46819 ' <confdefs.h | sed '
46820 s/'"$ac_delim"'/"\\\
46821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46822
46823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46824   for (key in D) D_is_set[key] = 1
46825   FS = "\a"
46826 }
46827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46828   line = \$ 0
46829   split(line, arg, " ")
46830   if (arg[1] == "#") {
46831     defundef = arg[2]
46832     mac1 = arg[3]
46833   } else {
46834     defundef = substr(arg[1], 2)
46835     mac1 = arg[2]
46836   }
46837   split(mac1, mac2, "(") #)
46838   macro = mac2[1]
46839   prefix = substr(line, 1, index(line, defundef) - 1)
46840   if (D_is_set[macro]) {
46841     # Preserve the white space surrounding the "#".
46842     print prefix "define", macro P[macro] D[macro]
46843     next
46844   } else {
46845     # Replace #undef with comments.  This is necessary, for example,
46846     # in the case of _POSIX_SOURCE, which is predefined and required
46847     # on some systems where configure will not decide to define it.
46848     if (defundef == "undef") {
46849       print "/*", prefix defundef, macro, "*/"
46850       next
46851     }
46852   }
46853 }
46854 { print }
46855 _ACAWK
46856 _ACEOF
46857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46858   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
46859 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
46860    { (exit 1); exit 1; }; }
46861 fi # test -n "$CONFIG_HEADERS"
46862
46863
46864 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
46865 shift
46866 for ac_tag
46867 do
46868   case $ac_tag in
46869   :[FHLC]) ac_mode=$ac_tag; continue;;
46870   esac
46871   case $ac_mode$ac_tag in
46872   :[FHL]*:*);;
46873   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
46874 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
46875    { (exit 1); exit 1; }; };;
46876   :[FH]-) ac_tag=-:-;;
46877   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46878   esac
46879   ac_save_IFS=$IFS
46880   IFS=:
46881   set x $ac_tag
46882   IFS=$ac_save_IFS
46883   shift
46884   ac_file=$1
46885   shift
46886
46887   case $ac_mode in
46888   :L) ac_source=$1;;
46889   :[FH])
46890     ac_file_inputs=
46891     for ac_f
46892     do
46893       case $ac_f in
46894       -) ac_f="$tmp/stdin";;
46895       *) # Look for the file first in the build tree, then in the source tree
46896          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46897          # because $ac_f cannot contain `:'.
46898          test -f "$ac_f" ||
46899            case $ac_f in
46900            [\\/$]*) false;;
46901            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46902            esac ||
46903            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46904 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46905    { (exit 1); exit 1; }; };;
46906       esac
46907       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46908       ac_file_inputs="$ac_file_inputs '$ac_f'"
46909     done
46910
46911     # Let's still pretend it is `configure' which instantiates (i.e., don't
46912     # use $as_me), people would be surprised to read:
46913     #    /* config.h.  Generated by config.status.  */
46914     configure_input='Generated from '`
46915           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46916         `' by configure.'
46917     if test x"$ac_file" != x-; then
46918       configure_input="$ac_file.  $configure_input"
46919       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
46920 $as_echo "$as_me: creating $ac_file" >&6;}
46921     fi
46922     # Neutralize special characters interpreted by sed in replacement strings.
46923     case $configure_input in #(
46924     *\&* | *\|* | *\\* )
46925        ac_sed_conf_input=`$as_echo "$configure_input" |
46926        sed 's/[\\\\&|]/\\\\&/g'`;; #(
46927     *) ac_sed_conf_input=$configure_input;;
46928     esac
46929
46930     case $ac_tag in
46931     *:-:* | *:-) cat >"$tmp/stdin" \
46932       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
46933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
46934    { (exit 1); exit 1; }; } ;;
46935     esac
46936     ;;
46937   esac
46938
46939   ac_dir=`$as_dirname -- "$ac_file" ||
46940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46941          X"$ac_file" : 'X\(//\)[^/]' \| \
46942          X"$ac_file" : 'X\(//\)$' \| \
46943          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46944 $as_echo X"$ac_file" |
46945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46946             s//\1/
46947             q
46948           }
46949           /^X\(\/\/\)[^/].*/{
46950             s//\1/
46951             q
46952           }
46953           /^X\(\/\/\)$/{
46954             s//\1/
46955             q
46956           }
46957           /^X\(\/\).*/{
46958             s//\1/
46959             q
46960           }
46961           s/.*/./; q'`
46962   { as_dir="$ac_dir"
46963   case $as_dir in #(
46964   -*) as_dir=./$as_dir;;
46965   esac
46966   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46967     as_dirs=
46968     while :; do
46969       case $as_dir in #(
46970       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
46971       *) as_qdir=$as_dir;;
46972       esac
46973       as_dirs="'$as_qdir' $as_dirs"
46974       as_dir=`$as_dirname -- "$as_dir" ||
46975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46976          X"$as_dir" : 'X\(//\)[^/]' \| \
46977          X"$as_dir" : 'X\(//\)$' \| \
46978          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46979 $as_echo X"$as_dir" |
46980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46981             s//\1/
46982             q
46983           }
46984           /^X\(\/\/\)[^/].*/{
46985             s//\1/
46986             q
46987           }
46988           /^X\(\/\/\)$/{
46989             s//\1/
46990             q
46991           }
46992           /^X\(\/\).*/{
46993             s//\1/
46994             q
46995           }
46996           s/.*/./; q'`
46997       test -d "$as_dir" && break
46998     done
46999     test -z "$as_dirs" || eval "mkdir $as_dirs"
47000   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47001 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47002    { (exit 1); exit 1; }; }; }
47003   ac_builddir=.
47004
47005 case "$ac_dir" in
47006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47007 *)
47008   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47009   # A ".." for each directory in $ac_dir_suffix.
47010   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47011   case $ac_top_builddir_sub in
47012   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47013   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47014   esac ;;
47015 esac
47016 ac_abs_top_builddir=$ac_pwd
47017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47018 # for backward compatibility:
47019 ac_top_builddir=$ac_top_build_prefix
47020
47021 case $srcdir in
47022   .)  # We are building in place.
47023     ac_srcdir=.
47024     ac_top_srcdir=$ac_top_builddir_sub
47025     ac_abs_top_srcdir=$ac_pwd ;;
47026   [\\/]* | ?:[\\/]* )  # Absolute name.
47027     ac_srcdir=$srcdir$ac_dir_suffix;
47028     ac_top_srcdir=$srcdir
47029     ac_abs_top_srcdir=$srcdir ;;
47030   *) # Relative name.
47031     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47032     ac_top_srcdir=$ac_top_build_prefix$srcdir
47033     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47034 esac
47035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47036
47037
47038   case $ac_mode in
47039   :F)
47040   #
47041   # CONFIG_FILE
47042   #
47043
47044   case $INSTALL in
47045   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47046   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47047   esac
47048   ac_MKDIR_P=$MKDIR_P
47049   case $MKDIR_P in
47050   [\\/$]* | ?:[\\/]* ) ;;
47051   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47052   esac
47053 _ACEOF
47054
47055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47056 # If the template does not know about datarootdir, expand it.
47057 # FIXME: This hack should be removed a few years after 2.60.
47058 ac_datarootdir_hack=; ac_datarootdir_seen=
47059
47060 ac_sed_dataroot='
47061 /datarootdir/ {
47062   p
47063   q
47064 }
47065 /@datadir@/p
47066 /@docdir@/p
47067 /@infodir@/p
47068 /@localedir@/p
47069 /@mandir@/p
47070 '
47071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47072 *datarootdir*) ac_datarootdir_seen=yes;;
47073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47074   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47075 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47076 _ACEOF
47077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47078   ac_datarootdir_hack='
47079   s&@datadir@&$datadir&g
47080   s&@docdir@&$docdir&g
47081   s&@infodir@&$infodir&g
47082   s&@localedir@&$localedir&g
47083   s&@mandir@&$mandir&g
47084     s&\\\${datarootdir}&$datarootdir&g' ;;
47085 esac
47086 _ACEOF
47087
47088 # Neutralize VPATH when `$srcdir' = `.'.
47089 # Shell code in configure.ac might set extrasub.
47090 # FIXME: do we really want to maintain this feature?
47091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47092 ac_sed_extra="$ac_vpsub
47093 $extrasub
47094 _ACEOF
47095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47096 :t
47097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47098 s|@configure_input@|$ac_sed_conf_input|;t t
47099 s&@top_builddir@&$ac_top_builddir_sub&;t t
47100 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47101 s&@srcdir@&$ac_srcdir&;t t
47102 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47103 s&@top_srcdir@&$ac_top_srcdir&;t t
47104 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47105 s&@builddir@&$ac_builddir&;t t
47106 s&@abs_builddir@&$ac_abs_builddir&;t t
47107 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47108 s&@INSTALL@&$ac_INSTALL&;t t
47109 s&@MKDIR_P@&$ac_MKDIR_P&;t t
47110 $ac_datarootdir_hack
47111 "
47112 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
47113   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47114 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47115    { (exit 1); exit 1; }; }
47116
47117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47118   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47119   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47120   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47121 which seems to be undefined.  Please make sure it is defined." >&5
47122 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47123 which seems to be undefined.  Please make sure it is defined." >&2;}
47124
47125   rm -f "$tmp/stdin"
47126   case $ac_file in
47127   -) cat "$tmp/out" && rm -f "$tmp/out";;
47128   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47129   esac \
47130   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47131 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47132    { (exit 1); exit 1; }; }
47133  ;;
47134   :H)
47135   #
47136   # CONFIG_HEADER
47137   #
47138   if test x"$ac_file" != x-; then
47139     {
47140       $as_echo "/* $configure_input  */" \
47141       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47142     } >"$tmp/config.h" \
47143       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47144 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47145    { (exit 1); exit 1; }; }
47146     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47147       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47148 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47149     else
47150       rm -f "$ac_file"
47151       mv "$tmp/config.h" "$ac_file" \
47152         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47153 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47154    { (exit 1); exit 1; }; }
47155     fi
47156   else
47157     $as_echo "/* $configure_input  */" \
47158       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47159       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47160 $as_echo "$as_me: error: could not create -" >&2;}
47161    { (exit 1); exit 1; }; }
47162   fi
47163 # Compute "$ac_file"'s index in $config_headers.
47164 _am_arg="$ac_file"
47165 _am_stamp_count=1
47166 for _am_header in $config_headers :; do
47167   case $_am_header in
47168     $_am_arg | $_am_arg:* )
47169       break ;;
47170     * )
47171       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47172   esac
47173 done
47174 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47175 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47176          X"$_am_arg" : 'X\(//\)[^/]' \| \
47177          X"$_am_arg" : 'X\(//\)$' \| \
47178          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47179 $as_echo X"$_am_arg" |
47180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47181             s//\1/
47182             q
47183           }
47184           /^X\(\/\/\)[^/].*/{
47185             s//\1/
47186             q
47187           }
47188           /^X\(\/\/\)$/{
47189             s//\1/
47190             q
47191           }
47192           /^X\(\/\).*/{
47193             s//\1/
47194             q
47195           }
47196           s/.*/./; q'`/stamp-h$_am_stamp_count
47197  ;;
47198
47199   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47200 $as_echo "$as_me: executing $ac_file commands" >&6;}
47201  ;;
47202   esac
47203
47204
47205   case $ac_file$ac_mode in
47206     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47207   # Autoconf 2.62 quotes --file arguments for eval, but not when files
47208   # are listed without --file.  Let's play safe and only enable the eval
47209   # if we detect the quoting.
47210   case $CONFIG_FILES in
47211   *\'*) eval set x "$CONFIG_FILES" ;;
47212   *)   set x $CONFIG_FILES ;;
47213   esac
47214   shift
47215   for mf
47216   do
47217     # Strip MF so we end up with the name of the file.
47218     mf=`echo "$mf" | sed -e 's/:.*$//'`
47219     # Check whether this is an Automake generated Makefile or not.
47220     # We used to match only the files named `Makefile.in', but
47221     # some people rename them; so instead we look at the file content.
47222     # Grep'ing the first line is not enough: some people post-process
47223     # each Makefile.in and add a new line on top of each file to say so.
47224     # Grep'ing the whole file is not good either: AIX grep has a line
47225     # limit of 2048, but all sed's we know have understand at least 4000.
47226     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
47227       dirpart=`$as_dirname -- "$mf" ||
47228 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47229          X"$mf" : 'X\(//\)[^/]' \| \
47230          X"$mf" : 'X\(//\)$' \| \
47231          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47232 $as_echo X"$mf" |
47233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47234             s//\1/
47235             q
47236           }
47237           /^X\(\/\/\)[^/].*/{
47238             s//\1/
47239             q
47240           }
47241           /^X\(\/\/\)$/{
47242             s//\1/
47243             q
47244           }
47245           /^X\(\/\).*/{
47246             s//\1/
47247             q
47248           }
47249           s/.*/./; q'`
47250     else
47251       continue
47252     fi
47253     # Extract the definition of DEPDIR, am__include, and am__quote
47254     # from the Makefile without running `make'.
47255     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
47256     test -z "$DEPDIR" && continue
47257     am__include=`sed -n 's/^am__include = //p' < "$mf"`
47258     test -z "am__include" && continue
47259     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
47260     # When using ansi2knr, U may be empty or an underscore; expand it
47261     U=`sed -n 's/^U = //p' < "$mf"`
47262     # Find all dependency output files, they are included files with
47263     # $(DEPDIR) in their names.  We invoke sed twice because it is the
47264     # simplest approach to changing $(DEPDIR) to its actual value in the
47265     # expansion.
47266     for file in `sed -n "
47267       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
47268          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
47269       # Make sure the directory exists.
47270       test -f "$dirpart/$file" && continue
47271       fdir=`$as_dirname -- "$file" ||
47272 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47273          X"$file" : 'X\(//\)[^/]' \| \
47274          X"$file" : 'X\(//\)$' \| \
47275          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
47276 $as_echo X"$file" |
47277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47278             s//\1/
47279             q
47280           }
47281           /^X\(\/\/\)[^/].*/{
47282             s//\1/
47283             q
47284           }
47285           /^X\(\/\/\)$/{
47286             s//\1/
47287             q
47288           }
47289           /^X\(\/\).*/{
47290             s//\1/
47291             q
47292           }
47293           s/.*/./; q'`
47294       { as_dir=$dirpart/$fdir
47295   case $as_dir in #(
47296   -*) as_dir=./$as_dir;;
47297   esac
47298   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47299     as_dirs=
47300     while :; do
47301       case $as_dir in #(
47302       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47303       *) as_qdir=$as_dir;;
47304       esac
47305       as_dirs="'$as_qdir' $as_dirs"
47306       as_dir=`$as_dirname -- "$as_dir" ||
47307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47308          X"$as_dir" : 'X\(//\)[^/]' \| \
47309          X"$as_dir" : 'X\(//\)$' \| \
47310          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47311 $as_echo X"$as_dir" |
47312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47313             s//\1/
47314             q
47315           }
47316           /^X\(\/\/\)[^/].*/{
47317             s//\1/
47318             q
47319           }
47320           /^X\(\/\/\)$/{
47321             s//\1/
47322             q
47323           }
47324           /^X\(\/\).*/{
47325             s//\1/
47326             q
47327           }
47328           s/.*/./; q'`
47329       test -d "$as_dir" && break
47330     done
47331     test -z "$as_dirs" || eval "mkdir $as_dirs"
47332   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47333 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47334    { (exit 1); exit 1; }; }; }
47335       # echo "creating $dirpart/$file"
47336       echo '# dummy' > "$dirpart/$file"
47337     done
47338   done
47339 }
47340  ;;
47341     "libtool":C)
47342
47343     # See if we are running on zsh, and set the options which allow our
47344     # commands through without removal of \ escapes.
47345     if test -n "${ZSH_VERSION+set}" ; then
47346       setopt NO_GLOB_SUBST
47347     fi
47348
47349     cfgfile="${ofile}T"
47350     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47351     $RM "$cfgfile"
47352
47353     cat <<_LT_EOF >> "$cfgfile"
47354 #! $SHELL
47355
47356 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47357 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47360 #
47361 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47362 #                 2006, 2007, 2008 Free Software Foundation, Inc.
47363 #   Written by Gordon Matzigkeit, 1996
47364 #
47365 #   This file is part of GNU Libtool.
47366 #
47367 # GNU Libtool is free software; you can redistribute it and/or
47368 # modify it under the terms of the GNU General Public License as
47369 # published by the Free Software Foundation; either version 2 of
47370 # the License, or (at your option) any later version.
47371 #
47372 # As a special exception to the GNU General Public License,
47373 # if you distribute this file as part of a program or library that
47374 # is built using GNU Libtool, you may include this file under the
47375 # same distribution terms that you use for the rest of that program.
47376 #
47377 # GNU Libtool is distributed in the hope that it will be useful,
47378 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47380 # GNU General Public License for more details.
47381 #
47382 # You should have received a copy of the GNU General Public License
47383 # along with GNU Libtool; see the file COPYING.  If not, a copy
47384 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47385 # obtained by writing to the Free Software Foundation, Inc.,
47386 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47387
47388
47389 # The names of the tagged configurations supported by this script.
47390 available_tags="CXX F77 "
47391
47392 # ### BEGIN LIBTOOL CONFIG
47393
47394 # Assembler program.
47395 AS=$AS
47396
47397 # DLL creation program.
47398 DLLTOOL=$DLLTOOL
47399
47400 # Object dumper program.
47401 OBJDUMP=$OBJDUMP
47402
47403 # Whether or not to build shared libraries.
47404 build_libtool_libs=$enable_shared
47405
47406 # Whether or not to build static libraries.
47407 build_old_libs=$enable_static
47408
47409 # Which release of libtool.m4 was used?
47410 macro_version=$macro_version
47411 macro_revision=$macro_revision
47412
47413 # What type of objects to build.
47414 pic_mode=$pic_mode
47415
47416 # Whether or not to optimize for fast installation.
47417 fast_install=$enable_fast_install
47418
47419 # The host system.
47420 host_alias=$host_alias
47421 host=$host
47422 host_os=$host_os
47423
47424 # The build system.
47425 build_alias=$build_alias
47426 build=$build
47427 build_os=$build_os
47428
47429 # A sed program that does not truncate output.
47430 SED=$lt_SED
47431
47432 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47433 Xsed="\$SED -e 1s/^X//"
47434
47435 # A grep program that handles long lines.
47436 GREP=$lt_GREP
47437
47438 # An ERE matcher.
47439 EGREP=$lt_EGREP
47440
47441 # A literal string matcher.
47442 FGREP=$lt_FGREP
47443
47444 # A BSD- or MS-compatible name lister.
47445 NM=$lt_NM
47446
47447 # Whether we need soft or hard links.
47448 LN_S=$lt_LN_S
47449
47450 # What is the maximum length of a command?
47451 max_cmd_len=$max_cmd_len
47452
47453 # Object file suffix (normally "o").
47454 objext=$ac_objext
47455
47456 # Executable file suffix (normally "").
47457 exeext=$exeext
47458
47459 # whether the shell understands "unset".
47460 lt_unset=$lt_unset
47461
47462 # turn spaces into newlines.
47463 SP2NL=$lt_lt_SP2NL
47464
47465 # turn newlines into spaces.
47466 NL2SP=$lt_lt_NL2SP
47467
47468 # How to create reloadable object files.
47469 reload_flag=$lt_reload_flag
47470 reload_cmds=$lt_reload_cmds
47471
47472 # Method to check whether dependent libraries are shared objects.
47473 deplibs_check_method=$lt_deplibs_check_method
47474
47475 # Command to use when deplibs_check_method == "file_magic".
47476 file_magic_cmd=$lt_file_magic_cmd
47477
47478 # The archiver.
47479 AR=$lt_AR
47480 AR_FLAGS=$lt_AR_FLAGS
47481
47482 # A symbol stripping program.
47483 STRIP=$lt_STRIP
47484
47485 # Commands used to install an old-style archive.
47486 RANLIB=$lt_RANLIB
47487 old_postinstall_cmds=$lt_old_postinstall_cmds
47488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47489
47490 # A C compiler.
47491 LTCC=$lt_CC
47492
47493 # LTCC compiler flags.
47494 LTCFLAGS=$lt_CFLAGS
47495
47496 # Take the output of nm and produce a listing of raw symbols and C names.
47497 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47498
47499 # Transform the output of nm in a proper C declaration.
47500 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47501
47502 # Transform the output of nm in a C name address pair.
47503 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47504
47505 # Transform the output of nm in a C name address pair when lib prefix is needed.
47506 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47507
47508 # The name of the directory that contains temporary libtool files.
47509 objdir=$objdir
47510
47511 # Shell to use when invoking shell scripts.
47512 SHELL=$lt_SHELL
47513
47514 # An echo program that does not interpret backslashes.
47515 ECHO=$lt_ECHO
47516
47517 # Used to examine libraries when file_magic_cmd begins with "file".
47518 MAGIC_CMD=$MAGIC_CMD
47519
47520 # Must we lock files when doing compilation?
47521 need_locks=$lt_need_locks
47522
47523 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47524 DSYMUTIL=$lt_DSYMUTIL
47525
47526 # Tool to change global to local symbols on Mac OS X.
47527 NMEDIT=$lt_NMEDIT
47528
47529 # Tool to manipulate fat objects and archives on Mac OS X.
47530 LIPO=$lt_LIPO
47531
47532 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47533 OTOOL=$lt_OTOOL
47534
47535 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47536 OTOOL64=$lt_OTOOL64
47537
47538 # Old archive suffix (normally "a").
47539 libext=$libext
47540
47541 # Shared library suffix (normally ".so").
47542 shrext_cmds=$lt_shrext_cmds
47543
47544 # The commands to extract the exported symbol list from a shared archive.
47545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47546
47547 # Variables whose values should be saved in libtool wrapper scripts and
47548 # restored at link time.
47549 variables_saved_for_relink=$lt_variables_saved_for_relink
47550
47551 # Do we need the "lib" prefix for modules?
47552 need_lib_prefix=$need_lib_prefix
47553
47554 # Do we need a version for libraries?
47555 need_version=$need_version
47556
47557 # Library versioning type.
47558 version_type=$version_type
47559
47560 # Shared library runtime path variable.
47561 runpath_var=$runpath_var
47562
47563 # Shared library path variable.
47564 shlibpath_var=$shlibpath_var
47565
47566 # Is shlibpath searched before the hard-coded library search path?
47567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47568
47569 # Format of library name prefix.
47570 libname_spec=$lt_libname_spec
47571
47572 # List of archive names.  First name is the real one, the rest are links.
47573 # The last name is the one that the linker finds with -lNAME
47574 library_names_spec=$lt_library_names_spec
47575
47576 # The coded name of the library, if different from the real name.
47577 soname_spec=$lt_soname_spec
47578
47579 # Command to use after installation of a shared archive.
47580 postinstall_cmds=$lt_postinstall_cmds
47581
47582 # Command to use after uninstallation of a shared archive.
47583 postuninstall_cmds=$lt_postuninstall_cmds
47584
47585 # Commands used to finish a libtool library installation in a directory.
47586 finish_cmds=$lt_finish_cmds
47587
47588 # As "finish_cmds", except a single script fragment to be evaled but
47589 # not shown.
47590 finish_eval=$lt_finish_eval
47591
47592 # Whether we should hardcode library paths into libraries.
47593 hardcode_into_libs=$hardcode_into_libs
47594
47595 # Compile-time system search path for libraries.
47596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47597
47598 # Run-time system search path for libraries.
47599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47600
47601 # Whether dlopen is supported.
47602 dlopen_support=$enable_dlopen
47603
47604 # Whether dlopen of programs is supported.
47605 dlopen_self=$enable_dlopen_self
47606
47607 # Whether dlopen of statically linked programs is supported.
47608 dlopen_self_static=$enable_dlopen_self_static
47609
47610 # Commands to strip libraries.
47611 old_striplib=$lt_old_striplib
47612 striplib=$lt_striplib
47613
47614
47615 # The linker used to build libraries.
47616 LD=$lt_LD
47617
47618 # Commands used to build an old-style archive.
47619 old_archive_cmds=$lt_old_archive_cmds
47620
47621 # A language specific compiler.
47622 CC=$lt_compiler
47623
47624 # Is the compiler the GNU compiler?
47625 with_gcc=$GCC
47626
47627 # Compiler flag to turn off builtin functions.
47628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47629
47630 # How to pass a linker flag through the compiler.
47631 wl=$lt_lt_prog_compiler_wl
47632
47633 # Additional compiler flags for building library objects.
47634 pic_flag=$lt_lt_prog_compiler_pic
47635
47636 # Compiler flag to prevent dynamic linking.
47637 link_static_flag=$lt_lt_prog_compiler_static
47638
47639 # Does compiler simultaneously support -c and -o options?
47640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47641
47642 # Whether or not to add -lc for building shared libraries.
47643 build_libtool_need_lc=$archive_cmds_need_lc
47644
47645 # Whether or not to disallow shared libs when runtime libs are static.
47646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47647
47648 # Compiler flag to allow reflexive dlopens.
47649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47650
47651 # Compiler flag to generate shared objects directly from archives.
47652 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47653
47654 # Whether the compiler copes with passing no objects directly.
47655 compiler_needs_object=$lt_compiler_needs_object
47656
47657 # Create an old-style archive from a shared archive.
47658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47659
47660 # Create a temporary old-style archive to link instead of a shared archive.
47661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47662
47663 # Commands used to build a shared archive.
47664 archive_cmds=$lt_archive_cmds
47665 archive_expsym_cmds=$lt_archive_expsym_cmds
47666
47667 # Commands used to build a loadable module if different from building
47668 # a shared archive.
47669 module_cmds=$lt_module_cmds
47670 module_expsym_cmds=$lt_module_expsym_cmds
47671
47672 # Whether we are building with GNU ld or not.
47673 with_gnu_ld=$lt_with_gnu_ld
47674
47675 # Flag that allows shared libraries with undefined symbols to be built.
47676 allow_undefined_flag=$lt_allow_undefined_flag
47677
47678 # Flag that enforces no undefined symbols.
47679 no_undefined_flag=$lt_no_undefined_flag
47680
47681 # Flag to hardcode \$libdir into a binary during linking.
47682 # This must work even if \$libdir does not exist
47683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47684
47685 # If ld is used when linking, flag to hardcode \$libdir into a binary
47686 # during linking.  This must work even if \$libdir does not exist.
47687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47688
47689 # Whether we need a single "-rpath" flag with a separated argument.
47690 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47691
47692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47693 # DIR into the resulting binary.
47694 hardcode_direct=$hardcode_direct
47695
47696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47697 # DIR into the resulting binary and the resulting library dependency is
47698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47699 # library is relocated.
47700 hardcode_direct_absolute=$hardcode_direct_absolute
47701
47702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47703 # into the resulting binary.
47704 hardcode_minus_L=$hardcode_minus_L
47705
47706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47707 # into the resulting binary.
47708 hardcode_shlibpath_var=$hardcode_shlibpath_var
47709
47710 # Set to "yes" if building a shared library automatically hardcodes DIR
47711 # into the library and all subsequent libraries and executables linked
47712 # against it.
47713 hardcode_automatic=$hardcode_automatic
47714
47715 # Set to yes if linker adds runtime paths of dependent libraries
47716 # to runtime path list.
47717 inherit_rpath=$inherit_rpath
47718
47719 # Whether libtool must link a program against all its dependency libraries.
47720 link_all_deplibs=$link_all_deplibs
47721
47722 # Fix the shell variable \$srcfile for the compiler.
47723 fix_srcfile_path=$lt_fix_srcfile_path
47724
47725 # Set to "yes" if exported symbols are required.
47726 always_export_symbols=$always_export_symbols
47727
47728 # The commands to list exported symbols.
47729 export_symbols_cmds=$lt_export_symbols_cmds
47730
47731 # Symbols that should not be listed in the preloaded symbols.
47732 exclude_expsyms=$lt_exclude_expsyms
47733
47734 # Symbols that must always be exported.
47735 include_expsyms=$lt_include_expsyms
47736
47737 # Commands necessary for linking programs (against libraries) with templates.
47738 prelink_cmds=$lt_prelink_cmds
47739
47740 # Specify filename containing input files.
47741 file_list_spec=$lt_file_list_spec
47742
47743 # How to hardcode a shared library path into an executable.
47744 hardcode_action=$hardcode_action
47745
47746 # The directories searched by this compiler when creating a shared library.
47747 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
47748
47749 # Dependencies to place before and after the objects being linked to
47750 # create a shared library.
47751 predep_objects=$lt_predep_objects
47752 postdep_objects=$lt_postdep_objects
47753 predeps=$lt_predeps
47754 postdeps=$lt_postdeps
47755
47756 # The library search path used internally by the compiler when linking
47757 # a shared library.
47758 compiler_lib_search_path=$lt_compiler_lib_search_path
47759
47760 # ### END LIBTOOL CONFIG
47761
47762 _LT_EOF
47763
47764   case $host_os in
47765   aix3*)
47766     cat <<\_LT_EOF >> "$cfgfile"
47767 # AIX sometimes has problems with the GCC collect2 program.  For some
47768 # reason, if we set the COLLECT_NAMES environment variable, the problems
47769 # vanish in a puff of smoke.
47770 if test "X${COLLECT_NAMES+set}" != Xset; then
47771   COLLECT_NAMES=
47772   export COLLECT_NAMES
47773 fi
47774 _LT_EOF
47775     ;;
47776   esac
47777
47778
47779 ltmain="$ac_aux_dir/ltmain.sh"
47780
47781
47782   # We use sed instead of cat because bash on DJGPP gets confused if
47783   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47784   # text mode, it properly converts lines to CR/LF.  This bash problem
47785   # is reportedly fixed, but why not run on old versions too?
47786   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47787     || (rm -f "$cfgfile"; exit 1)
47788
47789   case $xsi_shell in
47790   yes)
47791     cat << \_LT_EOF >> "$cfgfile"
47792
47793 # func_dirname file append nondir_replacement
47794 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47795 # otherwise set result to NONDIR_REPLACEMENT.
47796 func_dirname ()
47797 {
47798   case ${1} in
47799     */*) func_dirname_result="${1%/*}${2}" ;;
47800     *  ) func_dirname_result="${3}" ;;
47801   esac
47802 }
47803
47804 # func_basename file
47805 func_basename ()
47806 {
47807   func_basename_result="${1##*/}"
47808 }
47809
47810 # func_dirname_and_basename file append nondir_replacement
47811 # perform func_basename and func_dirname in a single function
47812 # call:
47813 #   dirname:  Compute the dirname of FILE.  If nonempty,
47814 #             add APPEND to the result, otherwise set result
47815 #             to NONDIR_REPLACEMENT.
47816 #             value returned in "$func_dirname_result"
47817 #   basename: Compute filename of FILE.
47818 #             value retuned in "$func_basename_result"
47819 # Implementation must be kept synchronized with func_dirname
47820 # and func_basename. For efficiency, we do not delegate to
47821 # those functions but instead duplicate the functionality here.
47822 func_dirname_and_basename ()
47823 {
47824   case ${1} in
47825     */*) func_dirname_result="${1%/*}${2}" ;;
47826     *  ) func_dirname_result="${3}" ;;
47827   esac
47828   func_basename_result="${1##*/}"
47829 }
47830
47831 # func_stripname prefix suffix name
47832 # strip PREFIX and SUFFIX off of NAME.
47833 # PREFIX and SUFFIX must not contain globbing or regex special
47834 # characters, hashes, percent signs, but SUFFIX may contain a leading
47835 # dot (in which case that matches only a dot).
47836 func_stripname ()
47837 {
47838   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47839   # positional parameters, so assign one to ordinary parameter first.
47840   func_stripname_result=${3}
47841   func_stripname_result=${func_stripname_result#"${1}"}
47842   func_stripname_result=${func_stripname_result%"${2}"}
47843 }
47844
47845 # func_opt_split
47846 func_opt_split ()
47847 {
47848   func_opt_split_opt=${1%%=*}
47849   func_opt_split_arg=${1#*=}
47850 }
47851
47852 # func_lo2o object
47853 func_lo2o ()
47854 {
47855   case ${1} in
47856     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47857     *)    func_lo2o_result=${1} ;;
47858   esac
47859 }
47860
47861 # func_xform libobj-or-source
47862 func_xform ()
47863 {
47864   func_xform_result=${1%.*}.lo
47865 }
47866
47867 # func_arith arithmetic-term...
47868 func_arith ()
47869 {
47870   func_arith_result=$(( $* ))
47871 }
47872
47873 # func_len string
47874 # STRING may not start with a hyphen.
47875 func_len ()
47876 {
47877   func_len_result=${#1}
47878 }
47879
47880 _LT_EOF
47881     ;;
47882   *) # Bourne compatible functions.
47883     cat << \_LT_EOF >> "$cfgfile"
47884
47885 # func_dirname file append nondir_replacement
47886 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47887 # otherwise set result to NONDIR_REPLACEMENT.
47888 func_dirname ()
47889 {
47890   # Extract subdirectory from the argument.
47891   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47892   if test "X$func_dirname_result" = "X${1}"; then
47893     func_dirname_result="${3}"
47894   else
47895     func_dirname_result="$func_dirname_result${2}"
47896   fi
47897 }
47898
47899 # func_basename file
47900 func_basename ()
47901 {
47902   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47903 }
47904
47905
47906 # func_stripname prefix suffix name
47907 # strip PREFIX and SUFFIX off of NAME.
47908 # PREFIX and SUFFIX must not contain globbing or regex special
47909 # characters, hashes, percent signs, but SUFFIX may contain a leading
47910 # dot (in which case that matches only a dot).
47911 # func_strip_suffix prefix name
47912 func_stripname ()
47913 {
47914   case ${2} in
47915     .*) func_stripname_result=`$ECHO "X${3}" \
47916            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47917     *)  func_stripname_result=`$ECHO "X${3}" \
47918            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47919   esac
47920 }
47921
47922 # sed scripts:
47923 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47924 my_sed_long_arg='1s/^-[^=]*=//'
47925
47926 # func_opt_split
47927 func_opt_split ()
47928 {
47929   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47930   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47931 }
47932
47933 # func_lo2o object
47934 func_lo2o ()
47935 {
47936   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47937 }
47938
47939 # func_xform libobj-or-source
47940 func_xform ()
47941 {
47942   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47943 }
47944
47945 # func_arith arithmetic-term...
47946 func_arith ()
47947 {
47948   func_arith_result=`expr "$@"`
47949 }
47950
47951 # func_len string
47952 # STRING may not start with a hyphen.
47953 func_len ()
47954 {
47955   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47956 }
47957
47958 _LT_EOF
47959 esac
47960
47961 case $lt_shell_append in
47962   yes)
47963     cat << \_LT_EOF >> "$cfgfile"
47964
47965 # func_append var value
47966 # Append VALUE to the end of shell variable VAR.
47967 func_append ()
47968 {
47969   eval "$1+=\$2"
47970 }
47971 _LT_EOF
47972     ;;
47973   *)
47974     cat << \_LT_EOF >> "$cfgfile"
47975
47976 # func_append var value
47977 # Append VALUE to the end of shell variable VAR.
47978 func_append ()
47979 {
47980   eval "$1=\$$1\$2"
47981 }
47982
47983 _LT_EOF
47984     ;;
47985   esac
47986
47987
47988   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
47989     || (rm -f "$cfgfile"; exit 1)
47990
47991   mv -f "$cfgfile" "$ofile" ||
47992     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47993   chmod +x "$ofile"
47994
47995
47996     cat <<_LT_EOF >> "$ofile"
47997
47998 # ### BEGIN LIBTOOL TAG CONFIG: CXX
47999
48000 # The linker used to build libraries.
48001 LD=$lt_LD_CXX
48002
48003 # Commands used to build an old-style archive.
48004 old_archive_cmds=$lt_old_archive_cmds_CXX
48005
48006 # A language specific compiler.
48007 CC=$lt_compiler_CXX
48008
48009 # Is the compiler the GNU compiler?
48010 with_gcc=$GCC_CXX
48011
48012 # Compiler flag to turn off builtin functions.
48013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48014
48015 # How to pass a linker flag through the compiler.
48016 wl=$lt_lt_prog_compiler_wl_CXX
48017
48018 # Additional compiler flags for building library objects.
48019 pic_flag=$lt_lt_prog_compiler_pic_CXX
48020
48021 # Compiler flag to prevent dynamic linking.
48022 link_static_flag=$lt_lt_prog_compiler_static_CXX
48023
48024 # Does compiler simultaneously support -c and -o options?
48025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48026
48027 # Whether or not to add -lc for building shared libraries.
48028 build_libtool_need_lc=$archive_cmds_need_lc_CXX
48029
48030 # Whether or not to disallow shared libs when runtime libs are static.
48031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48032
48033 # Compiler flag to allow reflexive dlopens.
48034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48035
48036 # Compiler flag to generate shared objects directly from archives.
48037 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48038
48039 # Whether the compiler copes with passing no objects directly.
48040 compiler_needs_object=$lt_compiler_needs_object_CXX
48041
48042 # Create an old-style archive from a shared archive.
48043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48044
48045 # Create a temporary old-style archive to link instead of a shared archive.
48046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48047
48048 # Commands used to build a shared archive.
48049 archive_cmds=$lt_archive_cmds_CXX
48050 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48051
48052 # Commands used to build a loadable module if different from building
48053 # a shared archive.
48054 module_cmds=$lt_module_cmds_CXX
48055 module_expsym_cmds=$lt_module_expsym_cmds_CXX
48056
48057 # Whether we are building with GNU ld or not.
48058 with_gnu_ld=$lt_with_gnu_ld_CXX
48059
48060 # Flag that allows shared libraries with undefined symbols to be built.
48061 allow_undefined_flag=$lt_allow_undefined_flag_CXX
48062
48063 # Flag that enforces no undefined symbols.
48064 no_undefined_flag=$lt_no_undefined_flag_CXX
48065
48066 # Flag to hardcode \$libdir into a binary during linking.
48067 # This must work even if \$libdir does not exist
48068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48069
48070 # If ld is used when linking, flag to hardcode \$libdir into a binary
48071 # during linking.  This must work even if \$libdir does not exist.
48072 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48073
48074 # Whether we need a single "-rpath" flag with a separated argument.
48075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48076
48077 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48078 # DIR into the resulting binary.
48079 hardcode_direct=$hardcode_direct_CXX
48080
48081 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48082 # DIR into the resulting binary and the resulting library dependency is
48083 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48084 # library is relocated.
48085 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48086
48087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48088 # into the resulting binary.
48089 hardcode_minus_L=$hardcode_minus_L_CXX
48090
48091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48092 # into the resulting binary.
48093 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48094
48095 # Set to "yes" if building a shared library automatically hardcodes DIR
48096 # into the library and all subsequent libraries and executables linked
48097 # against it.
48098 hardcode_automatic=$hardcode_automatic_CXX
48099
48100 # Set to yes if linker adds runtime paths of dependent libraries
48101 # to runtime path list.
48102 inherit_rpath=$inherit_rpath_CXX
48103
48104 # Whether libtool must link a program against all its dependency libraries.
48105 link_all_deplibs=$link_all_deplibs_CXX
48106
48107 # Fix the shell variable \$srcfile for the compiler.
48108 fix_srcfile_path=$lt_fix_srcfile_path_CXX
48109
48110 # Set to "yes" if exported symbols are required.
48111 always_export_symbols=$always_export_symbols_CXX
48112
48113 # The commands to list exported symbols.
48114 export_symbols_cmds=$lt_export_symbols_cmds_CXX
48115
48116 # Symbols that should not be listed in the preloaded symbols.
48117 exclude_expsyms=$lt_exclude_expsyms_CXX
48118
48119 # Symbols that must always be exported.
48120 include_expsyms=$lt_include_expsyms_CXX
48121
48122 # Commands necessary for linking programs (against libraries) with templates.
48123 prelink_cmds=$lt_prelink_cmds_CXX
48124
48125 # Specify filename containing input files.
48126 file_list_spec=$lt_file_list_spec_CXX
48127
48128 # How to hardcode a shared library path into an executable.
48129 hardcode_action=$hardcode_action_CXX
48130
48131 # The directories searched by this compiler when creating a shared library.
48132 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48133
48134 # Dependencies to place before and after the objects being linked to
48135 # create a shared library.
48136 predep_objects=$lt_predep_objects_CXX
48137 postdep_objects=$lt_postdep_objects_CXX
48138 predeps=$lt_predeps_CXX
48139 postdeps=$lt_postdeps_CXX
48140
48141 # The library search path used internally by the compiler when linking
48142 # a shared library.
48143 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48144
48145 # ### END LIBTOOL TAG CONFIG: CXX
48146 _LT_EOF
48147
48148
48149     cat <<_LT_EOF >> "$ofile"
48150
48151 # ### BEGIN LIBTOOL TAG CONFIG: F77
48152
48153 # The linker used to build libraries.
48154 LD=$lt_LD_F77
48155
48156 # Commands used to build an old-style archive.
48157 old_archive_cmds=$lt_old_archive_cmds_F77
48158
48159 # A language specific compiler.
48160 CC=$lt_compiler_F77
48161
48162 # Is the compiler the GNU compiler?
48163 with_gcc=$GCC_F77
48164
48165 # Compiler flag to turn off builtin functions.
48166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
48167
48168 # How to pass a linker flag through the compiler.
48169 wl=$lt_lt_prog_compiler_wl_F77
48170
48171 # Additional compiler flags for building library objects.
48172 pic_flag=$lt_lt_prog_compiler_pic_F77
48173
48174 # Compiler flag to prevent dynamic linking.
48175 link_static_flag=$lt_lt_prog_compiler_static_F77
48176
48177 # Does compiler simultaneously support -c and -o options?
48178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
48179
48180 # Whether or not to add -lc for building shared libraries.
48181 build_libtool_need_lc=$archive_cmds_need_lc_F77
48182
48183 # Whether or not to disallow shared libs when runtime libs are static.
48184 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
48185
48186 # Compiler flag to allow reflexive dlopens.
48187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
48188
48189 # Compiler flag to generate shared objects directly from archives.
48190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
48191
48192 # Whether the compiler copes with passing no objects directly.
48193 compiler_needs_object=$lt_compiler_needs_object_F77
48194
48195 # Create an old-style archive from a shared archive.
48196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
48197
48198 # Create a temporary old-style archive to link instead of a shared archive.
48199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
48200
48201 # Commands used to build a shared archive.
48202 archive_cmds=$lt_archive_cmds_F77
48203 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
48204
48205 # Commands used to build a loadable module if different from building
48206 # a shared archive.
48207 module_cmds=$lt_module_cmds_F77
48208 module_expsym_cmds=$lt_module_expsym_cmds_F77
48209
48210 # Whether we are building with GNU ld or not.
48211 with_gnu_ld=$lt_with_gnu_ld_F77
48212
48213 # Flag that allows shared libraries with undefined symbols to be built.
48214 allow_undefined_flag=$lt_allow_undefined_flag_F77
48215
48216 # Flag that enforces no undefined symbols.
48217 no_undefined_flag=$lt_no_undefined_flag_F77
48218
48219 # Flag to hardcode \$libdir into a binary during linking.
48220 # This must work even if \$libdir does not exist
48221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
48222
48223 # If ld is used when linking, flag to hardcode \$libdir into a binary
48224 # during linking.  This must work even if \$libdir does not exist.
48225 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
48226
48227 # Whether we need a single "-rpath" flag with a separated argument.
48228 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
48229
48230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48231 # DIR into the resulting binary.
48232 hardcode_direct=$hardcode_direct_F77
48233
48234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48235 # DIR into the resulting binary and the resulting library dependency is
48236 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48237 # library is relocated.
48238 hardcode_direct_absolute=$hardcode_direct_absolute_F77
48239
48240 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48241 # into the resulting binary.
48242 hardcode_minus_L=$hardcode_minus_L_F77
48243
48244 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48245 # into the resulting binary.
48246 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
48247
48248 # Set to "yes" if building a shared library automatically hardcodes DIR
48249 # into the library and all subsequent libraries and executables linked
48250 # against it.
48251 hardcode_automatic=$hardcode_automatic_F77
48252
48253 # Set to yes if linker adds runtime paths of dependent libraries
48254 # to runtime path list.
48255 inherit_rpath=$inherit_rpath_F77
48256
48257 # Whether libtool must link a program against all its dependency libraries.
48258 link_all_deplibs=$link_all_deplibs_F77
48259
48260 # Fix the shell variable \$srcfile for the compiler.
48261 fix_srcfile_path=$lt_fix_srcfile_path_F77
48262
48263 # Set to "yes" if exported symbols are required.
48264 always_export_symbols=$always_export_symbols_F77
48265
48266 # The commands to list exported symbols.
48267 export_symbols_cmds=$lt_export_symbols_cmds_F77
48268
48269 # Symbols that should not be listed in the preloaded symbols.
48270 exclude_expsyms=$lt_exclude_expsyms_F77
48271
48272 # Symbols that must always be exported.
48273 include_expsyms=$lt_include_expsyms_F77
48274
48275 # Commands necessary for linking programs (against libraries) with templates.
48276 prelink_cmds=$lt_prelink_cmds_F77
48277
48278 # Specify filename containing input files.
48279 file_list_spec=$lt_file_list_spec_F77
48280
48281 # How to hardcode a shared library path into an executable.
48282 hardcode_action=$hardcode_action_F77
48283
48284 # The directories searched by this compiler when creating a shared library.
48285 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
48286
48287 # Dependencies to place before and after the objects being linked to
48288 # create a shared library.
48289 predep_objects=$lt_predep_objects_F77
48290 postdep_objects=$lt_postdep_objects_F77
48291 predeps=$lt_predeps_F77
48292 postdeps=$lt_postdeps_F77
48293
48294 # The library search path used internally by the compiler when linking
48295 # a shared library.
48296 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
48297
48298 # ### END LIBTOOL TAG CONFIG: F77
48299 _LT_EOF
48300
48301  ;;
48302     "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
48303     "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
48304     "run_tests_usrp2":C) chmod +x gr-usrp2/src/run_tests ;;
48305     "run_tests_gcell":C) chmod +x gr-gcell/src/run_tests ;;
48306     "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
48307     "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
48308     "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
48309     "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
48310     "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
48311     "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
48312     "run_tests_cvsd":C) chmod +x gr-cvsd-vocoder/src/python/run_tests ;;
48313     "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
48314     "run_tests_pager":C) chmod +x gr-pager/src/run_tests ;;
48315     "run_tests_radar_mono":C) chmod +x gr-radar-mono/src/python/run_tests ;;
48316     "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
48317     "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
48318     "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
48319     "run_tests_sounder":C) chmod +x gr-sounder/src/python/run_tests ;;
48320     "run_tests_build":C) chmod +x run_tests.sh ;;
48321
48322   esac
48323 done # for ac_tag
48324
48325
48326 { (exit 0); exit 0; }
48327 _ACEOF
48328 chmod +x $CONFIG_STATUS
48329 ac_clean_files=$ac_clean_files_save
48330
48331 test $ac_write_fail = 0 ||
48332   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48333 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48334    { (exit 1); exit 1; }; }
48335
48336
48337 # configure is writing to config.log, and then calls config.status.
48338 # config.status does its own redirection, appending to config.log.
48339 # Unfortunately, on DOS this fails, as config.log is still kept open
48340 # by configure, so config.status won't be able to write to it; its
48341 # output is simply discarded.  So we exec the FD to /dev/null,
48342 # effectively closing config.log, so it can be properly (re)opened and
48343 # appended to by config.status.  When coming back to configure, we
48344 # need to make the FD available again.
48345 if test "$no_create" != yes; then
48346   ac_cs_success=:
48347   ac_config_status_args=
48348   test "$silent" = yes &&
48349     ac_config_status_args="$ac_config_status_args --quiet"
48350   exec 5>/dev/null
48351   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48352   exec 5>>config.log
48353   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48354   # would make configure fail if this is the last instruction.
48355   $ac_cs_success || { (exit 1); exit 1; }
48356 fi
48357
48358 #
48359 # CONFIG_SUBDIRS section.
48360 #
48361 if test "$no_recursion" != yes; then
48362
48363   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
48364   # so they do not pile up.
48365   ac_sub_configure_args=
48366   ac_prev=
48367   eval "set x $ac_configure_args"
48368   shift
48369   for ac_arg
48370   do
48371     if test -n "$ac_prev"; then
48372       ac_prev=
48373       continue
48374     fi
48375     case $ac_arg in
48376     -cache-file | --cache-file | --cache-fil | --cache-fi \
48377     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48378       ac_prev=cache_file ;;
48379     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48380     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48381     | --c=*)
48382       ;;
48383     --config-cache | -C)
48384       ;;
48385     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48386       ac_prev=srcdir ;;
48387     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48388       ;;
48389     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48390       ac_prev=prefix ;;
48391     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48392       ;;
48393     --disable-option-checking)
48394       ;;
48395     *)
48396       case $ac_arg in
48397       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
48398       esac
48399       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
48400     esac
48401   done
48402
48403   # Always prepend --prefix to ensure using the same prefix
48404   # in subdir configurations.
48405   ac_arg="--prefix=$prefix"
48406   case $ac_arg in
48407   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
48408   esac
48409   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
48410
48411   # Pass --silent
48412   if test "$silent" = yes; then
48413     ac_sub_configure_args="--silent $ac_sub_configure_args"
48414   fi
48415
48416   # Always prepend --disable-option-checking to silence warnings, since
48417   # different subdirs can have different --enable and --with options.
48418   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
48419
48420   ac_popdir=`pwd`
48421   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48422
48423     # Do not complain, so a configure script can configure whichever
48424     # parts of a large source tree are present.
48425     test -d "$srcdir/$ac_dir" || continue
48426
48427     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
48428     $as_echo "$as_me:$LINENO: $ac_msg" >&5
48429     $as_echo "$ac_msg" >&6
48430     { as_dir="$ac_dir"
48431   case $as_dir in #(
48432   -*) as_dir=./$as_dir;;
48433   esac
48434   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48435     as_dirs=
48436     while :; do
48437       case $as_dir in #(
48438       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48439       *) as_qdir=$as_dir;;
48440       esac
48441       as_dirs="'$as_qdir' $as_dirs"
48442       as_dir=`$as_dirname -- "$as_dir" ||
48443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48444          X"$as_dir" : 'X\(//\)[^/]' \| \
48445          X"$as_dir" : 'X\(//\)$' \| \
48446          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48447 $as_echo X"$as_dir" |
48448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48449             s//\1/
48450             q
48451           }
48452           /^X\(\/\/\)[^/].*/{
48453             s//\1/
48454             q
48455           }
48456           /^X\(\/\/\)$/{
48457             s//\1/
48458             q
48459           }
48460           /^X\(\/\).*/{
48461             s//\1/
48462             q
48463           }
48464           s/.*/./; q'`
48465       test -d "$as_dir" && break
48466     done
48467     test -z "$as_dirs" || eval "mkdir $as_dirs"
48468   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48469 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48470    { (exit 1); exit 1; }; }; }
48471     ac_builddir=.
48472
48473 case "$ac_dir" in
48474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48475 *)
48476   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48477   # A ".." for each directory in $ac_dir_suffix.
48478   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48479   case $ac_top_builddir_sub in
48480   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48481   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48482   esac ;;
48483 esac
48484 ac_abs_top_builddir=$ac_pwd
48485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
48486 # for backward compatibility:
48487 ac_top_builddir=$ac_top_build_prefix
48488
48489 case $srcdir in
48490   .)  # We are building in place.
48491     ac_srcdir=.
48492     ac_top_srcdir=$ac_top_builddir_sub
48493     ac_abs_top_srcdir=$ac_pwd ;;
48494   [\\/]* | ?:[\\/]* )  # Absolute name.
48495     ac_srcdir=$srcdir$ac_dir_suffix;
48496     ac_top_srcdir=$srcdir
48497     ac_abs_top_srcdir=$srcdir ;;
48498   *) # Relative name.
48499     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48500     ac_top_srcdir=$ac_top_build_prefix$srcdir
48501     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48502 esac
48503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48504
48505
48506     cd "$ac_dir"
48507
48508     # Check for guested configure; otherwise get Cygnus style configure.
48509     if test -f "$ac_srcdir/configure.gnu"; then
48510       ac_sub_configure=$ac_srcdir/configure.gnu
48511     elif test -f "$ac_srcdir/configure"; then
48512       ac_sub_configure=$ac_srcdir/configure
48513     elif test -f "$ac_srcdir/configure.in"; then
48514       # This should be Cygnus configure.
48515       ac_sub_configure=$ac_aux_dir/configure
48516     else
48517       { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48519       ac_sub_configure=
48520     fi
48521
48522     # The recursion is here.
48523     if test -n "$ac_sub_configure"; then
48524       # Make the cache file name correct relative to the subdirectory.
48525       case $cache_file in
48526       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48527       *) # Relative name.
48528         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
48529       esac
48530
48531       { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48532 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48533       # The eval makes quoting arguments work.
48534       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
48535            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
48536         { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
48537 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48538    { (exit 1); exit 1; }; }
48539     fi
48540
48541     cd "$ac_popdir"
48542   done
48543 fi
48544 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48545   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48546 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48547 fi
48548
48549
48550 echo
48551 echo "*********************************************************************"
48552 echo The following GNU Radio components have been successfully configured:
48553 echo
48554 for dir in $build_dirs
48555 do
48556     echo $dir
48557 done
48558 echo
48559 echo You my now run the 'make' command to build these components.
48560 echo
48561 if test "$skipped_dirs" != ""; then
48562     echo "*********************************************************************"
48563     echo The following components were skipped either because you asked not
48564     echo to build them or they didn\'t pass configuration checks:
48565     echo
48566     for dir in $skipped_dirs
48567     do
48568         echo $dir
48569     done
48570     echo
48571     echo These components will not be built.
48572     echo
48573 fi
48574 if test "$with_dirs" != ""; then
48575     echo "*********************************************************************"
48576     echo The following components will be included from pre-installed
48577     echo libraries and includes:
48578     echo
48579     for dir in $with_dirs
48580     do
48581         echo $dir
48582     done
48583     echo
48584     echo These components will not be built.
48585     echo
48586 fi