nothing interesting
[monky] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Conky 1.8.5_pre2390.
4 #
5 # Report bugs to <brenden1@users.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='Conky'
730 PACKAGE_TARNAME='conky'
731 PACKAGE_VERSION='1.8.5_pre2390'
732 PACKAGE_STRING='Conky 1.8.5_pre2390'
733 PACKAGE_BUGREPORT='brenden1@users.sourceforge.net'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 AMTAR
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 CFLAGS
828 CC
829 LDFLAGS
830 CPPFLAGS
831 ac_ct_CC
832 EXEEXT
833 OBJEXT
834 DEPDIR
835 am__include
836 am__quote
837 AMDEP_TRUE
838 AMDEP_FALSE
839 AMDEPBACKSLASH
840 CCDEPMODE
841 am__fastdepCC_TRUE
842 am__fastdepCC_FALSE
843 SED
844 build
845 build_cpu
846 build_vendor
847 build_os
848 host
849 host_cpu
850 host_vendor
851 host_os
852 GREP
853 EGREP
854 LN_S
855 ECHO
856 AR
857 RANLIB
858 DSYMUTIL
859 NMEDIT
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 HAVE_PKGCONFIG
873 PKG_CONFIG
874 BUILD_LINUX_TRUE
875 BUILD_LINUX_FALSE
876 BUILD_FREEBSD_TRUE
877 BUILD_FREEBSD_FALSE
878 BUILD_OPENBSD_TRUE
879 BUILD_OPENBSD_FALSE
880 BUILD_DATE
881 BUILD_ARCH
882 BUILD_CONFIG_OUTPUT_TRUE
883 BUILD_CONFIG_OUTPUT_FALSE
884 BUILD_NCURSES_TRUE
885 BUILD_NCURSES_FALSE
886 BUILD_AUDACIOUS_TRUE
887 BUILD_AUDACIOUS_FALSE
888 Audacious_CFLAGS
889 Audacious_LIBS
890 BUILD_BMPX_TRUE
891 BUILD_BMPX_FALSE
892 BMPx_CFLAGS
893 BMPx_LIBS
894 BUILD_IBM_TRUE
895 BUILD_IBM_FALSE
896 BUILD_HDDTEMP_TRUE
897 BUILD_HDDTEMP_FALSE
898 BUILD_APCUPSD_TRUE
899 BUILD_APCUPSD_FALSE
900 BUILD_MATH_TRUE
901 BUILD_MATH_FALSE
902 BUILD_MPD_TRUE
903 BUILD_MPD_FALSE
904 BUILD_MOC_TRUE
905 BUILD_MOC_FALSE
906 BUILD_XMMS2_TRUE
907 BUILD_XMMS2_FALSE
908 XMMS2_CFLAGS
909 XMMS2_LIBS
910 BUILD_EVE_TRUE
911 BUILD_EVE_FALSE
912 BUILD_RSS_TRUE
913 BUILD_RSS_FALSE
914 BUILD_WEATHER_TRUE
915 BUILD_WEATHER_FALSE
916 BUILD_XOAP_TRUE
917 BUILD_XOAP_FALSE
918 BUILD_X11_TRUE
919 BUILD_X11_FALSE
920 X11_CFLAGS
921 X11_LIBS
922 XMKMF
923 X_CFLAGS
924 X_PRE_LIBS
925 X_LIBS
926 X_EXTRA_LIBS
927 Imlib2_CFLAGS
928 Imlib2_LIBS
929 BUILD_IMLIB2_TRUE
930 BUILD_IMLIB2_FALSE
931 BUILD_LUA_TRUE
932 BUILD_LUA_FALSE
933 LUA_CFLAGS
934 LUA_LIBS
935 LUA51_CFLAGS
936 LUA51_LIBS
937 cairo_CFLAGS
938 cairo_LIBS
939 cairo_xlib_CFLAGS
940 cairo_xlib_LIBS
941 toluapp
942 tolua_LIBS
943 tolua_CFLAGS
944 BUILD_LUA_CAIRO_TRUE
945 BUILD_LUA_CAIRO_FALSE
946 BUILD_LUA_IMLIB2_TRUE
947 BUILD_LUA_IMLIB2_FALSE
948 BUILD_WLAN_TRUE
949 BUILD_WLAN_FALSE
950 BUILD_PORT_MONITORS_TRUE
951 BUILD_PORT_MONITORS_FALSE
952 LIBICONV
953 LTLIBICONV
954 BUILD_ICONV_TRUE
955 BUILD_ICONV_FALSE
956 Xext_CFLAGS
957 Xext_LIBS
958 XDamage_CFLAGS
959 XDamage_LIBS
960 Xft_CFLAGS
961 Xft_LIBS
962 BUILD_NVIDIA_TRUE
963 BUILD_NVIDIA_FALSE
964 GLib2_CFLAGS
965 GLib2_LIBS
966 libcurl_CFLAGS
967 libcurl_LIBS
968 BUILD_CURL_TRUE
969 BUILD_CURL_FALSE
970 libxml2_CFLAGS
971 libxml2_LIBS
972 db2x_xsltproc_cmd
973 db2x_manxml_cmd
974 xsltproc_cmd
975 HAVE_DOCSTUFF_TRUE
976 HAVE_DOCSTUFF_FALSE
977 conky_CFLAGS
978 conky_LIBS
979 LIBOBJS
980 LTLIBOBJS'
981 ac_subst_files=''
982       ac_precious_vars='build_alias
983 host_alias
984 target_alias
985 CC
986 CFLAGS
987 LDFLAGS
988 LIBS
989 CPPFLAGS
990 CPP
991 CXX
992 CXXFLAGS
993 CCC
994 CXXCPP
995 F77
996 FFLAGS
997 PKG_CONFIG
998 Audacious_CFLAGS
999 Audacious_LIBS
1000 BMPx_CFLAGS
1001 BMPx_LIBS
1002 XMMS2_CFLAGS
1003 XMMS2_LIBS
1004 X11_CFLAGS
1005 X11_LIBS
1006 XMKMF
1007 Imlib2_CFLAGS
1008 Imlib2_LIBS
1009 LUA_CFLAGS
1010 LUA_LIBS
1011 LUA51_CFLAGS
1012 LUA51_LIBS
1013 cairo_CFLAGS
1014 cairo_LIBS
1015 cairo_xlib_CFLAGS
1016 cairo_xlib_LIBS
1017 Xext_CFLAGS
1018 Xext_LIBS
1019 XDamage_CFLAGS
1020 XDamage_LIBS
1021 Xft_CFLAGS
1022 Xft_LIBS
1023 GLib2_CFLAGS
1024 GLib2_LIBS
1025 libcurl_CFLAGS
1026 libcurl_LIBS
1027 libxml2_CFLAGS
1028 libxml2_LIBS'
1029
1030
1031 # Initialize some variables set by options.
1032 ac_init_help=
1033 ac_init_version=false
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1037 exec_prefix=NONE
1038 no_create=
1039 no_recursion=
1040 prefix=NONE
1041 program_prefix=NONE
1042 program_suffix=NONE
1043 program_transform_name=s,x,x,
1044 silent=
1045 site=
1046 srcdir=
1047 verbose=
1048 x_includes=NONE
1049 x_libraries=NONE
1050
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1068 infodir='${datarootdir}/info'
1069 htmldir='${docdir}'
1070 dvidir='${docdir}'
1071 pdfdir='${docdir}'
1072 psdir='${docdir}'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1076
1077 ac_prev=
1078 ac_dashdash=
1079 for ac_option
1080 do
1081   # If the previous option needs an argument, assign it.
1082   if test -n "$ac_prev"; then
1083     eval $ac_prev=\$ac_option
1084     ac_prev=
1085     continue
1086   fi
1087
1088   case $ac_option in
1089   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1090   *)    ac_optarg=yes ;;
1091   esac
1092
1093   # Accept the important Cygnus configure options, so we can diagnose typos.
1094
1095   case $ac_dashdash$ac_option in
1096   --)
1097     ac_dashdash=yes ;;
1098
1099   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1100     ac_prev=bindir ;;
1101   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1102     bindir=$ac_optarg ;;
1103
1104   -build | --build | --buil | --bui | --bu)
1105     ac_prev=build_alias ;;
1106   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1107     build_alias=$ac_optarg ;;
1108
1109   -cache-file | --cache-file | --cache-fil | --cache-fi \
1110   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1111     ac_prev=cache_file ;;
1112   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1113   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1114     cache_file=$ac_optarg ;;
1115
1116   --config-cache | -C)
1117     cache_file=config.cache ;;
1118
1119   -datadir | --datadir | --datadi | --datad)
1120     ac_prev=datadir ;;
1121   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1122     datadir=$ac_optarg ;;
1123
1124   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1125   | --dataroo | --dataro | --datar)
1126     ac_prev=datarootdir ;;
1127   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1128   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1129     datarootdir=$ac_optarg ;;
1130
1131   -disable-* | --disable-*)
1132     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1136    { (exit 1); exit 1; }; }
1137     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1138     eval enable_$ac_feature=no ;;
1139
1140   -docdir | --docdir | --docdi | --doc | --do)
1141     ac_prev=docdir ;;
1142   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1143     docdir=$ac_optarg ;;
1144
1145   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1146     ac_prev=dvidir ;;
1147   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1148     dvidir=$ac_optarg ;;
1149
1150   -enable-* | --enable-*)
1151     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1157     eval enable_$ac_feature=\$ac_optarg ;;
1158
1159   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161   | --exec | --exe | --ex)
1162     ac_prev=exec_prefix ;;
1163   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165   | --exec=* | --exe=* | --ex=*)
1166     exec_prefix=$ac_optarg ;;
1167
1168   -gas | --gas | --ga | --g)
1169     # Obsolete; use --with-gas.
1170     with_gas=yes ;;
1171
1172   -help | --help | --hel | --he | -h)
1173     ac_init_help=long ;;
1174   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175     ac_init_help=recursive ;;
1176   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177     ac_init_help=short ;;
1178
1179   -host | --host | --hos | --ho)
1180     ac_prev=host_alias ;;
1181   -host=* | --host=* | --hos=* | --ho=*)
1182     host_alias=$ac_optarg ;;
1183
1184   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1185     ac_prev=htmldir ;;
1186   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1187   | --ht=*)
1188     htmldir=$ac_optarg ;;
1189
1190   -includedir | --includedir | --includedi | --included | --include \
1191   | --includ | --inclu | --incl | --inc)
1192     ac_prev=includedir ;;
1193   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194   | --includ=* | --inclu=* | --incl=* | --inc=*)
1195     includedir=$ac_optarg ;;
1196
1197   -infodir | --infodir | --infodi | --infod | --info | --inf)
1198     ac_prev=infodir ;;
1199   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200     infodir=$ac_optarg ;;
1201
1202   -libdir | --libdir | --libdi | --libd)
1203     ac_prev=libdir ;;
1204   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205     libdir=$ac_optarg ;;
1206
1207   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208   | --libexe | --libex | --libe)
1209     ac_prev=libexecdir ;;
1210   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211   | --libexe=* | --libex=* | --libe=*)
1212     libexecdir=$ac_optarg ;;
1213
1214   -localedir | --localedir | --localedi | --localed | --locale)
1215     ac_prev=localedir ;;
1216   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217     localedir=$ac_optarg ;;
1218
1219   -localstatedir | --localstatedir | --localstatedi | --localstated \
1220   | --localstate | --localstat | --localsta | --localst | --locals)
1221     ac_prev=localstatedir ;;
1222   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224     localstatedir=$ac_optarg ;;
1225
1226   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1227     ac_prev=mandir ;;
1228   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229     mandir=$ac_optarg ;;
1230
1231   -nfp | --nfp | --nf)
1232     # Obsolete; use --without-fp.
1233     with_fp=no ;;
1234
1235   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236   | --no-cr | --no-c | -n)
1237     no_create=yes ;;
1238
1239   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1241     no_recursion=yes ;;
1242
1243   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245   | --oldin | --oldi | --old | --ol | --o)
1246     ac_prev=oldincludedir ;;
1247   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250     oldincludedir=$ac_optarg ;;
1251
1252   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1253     ac_prev=prefix ;;
1254   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255     prefix=$ac_optarg ;;
1256
1257   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258   | --program-pre | --program-pr | --program-p)
1259     ac_prev=program_prefix ;;
1260   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262     program_prefix=$ac_optarg ;;
1263
1264   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265   | --program-suf | --program-su | --program-s)
1266     ac_prev=program_suffix ;;
1267   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269     program_suffix=$ac_optarg ;;
1270
1271   -program-transform-name | --program-transform-name \
1272   | --program-transform-nam | --program-transform-na \
1273   | --program-transform-n | --program-transform- \
1274   | --program-transform | --program-transfor \
1275   | --program-transfo | --program-transf \
1276   | --program-trans | --program-tran \
1277   | --progr-tra | --program-tr | --program-t)
1278     ac_prev=program_transform_name ;;
1279   -program-transform-name=* | --program-transform-name=* \
1280   | --program-transform-nam=* | --program-transform-na=* \
1281   | --program-transform-n=* | --program-transform-=* \
1282   | --program-transform=* | --program-transfor=* \
1283   | --program-transfo=* | --program-transf=* \
1284   | --program-trans=* | --program-tran=* \
1285   | --progr-tra=* | --program-tr=* | --program-t=*)
1286     program_transform_name=$ac_optarg ;;
1287
1288   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1289     ac_prev=pdfdir ;;
1290   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291     pdfdir=$ac_optarg ;;
1292
1293   -psdir | --psdir | --psdi | --psd | --ps)
1294     ac_prev=psdir ;;
1295   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1296     psdir=$ac_optarg ;;
1297
1298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299   | -silent | --silent | --silen | --sile | --sil)
1300     silent=yes ;;
1301
1302   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1303     ac_prev=sbindir ;;
1304   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1305   | --sbi=* | --sb=*)
1306     sbindir=$ac_optarg ;;
1307
1308   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1309   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1310   | --sharedst | --shareds | --shared | --share | --shar \
1311   | --sha | --sh)
1312     ac_prev=sharedstatedir ;;
1313   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1314   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1315   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1316   | --sha=* | --sh=*)
1317     sharedstatedir=$ac_optarg ;;
1318
1319   -site | --site | --sit)
1320     ac_prev=site ;;
1321   -site=* | --site=* | --sit=*)
1322     site=$ac_optarg ;;
1323
1324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1325     ac_prev=srcdir ;;
1326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1327     srcdir=$ac_optarg ;;
1328
1329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1330   | --syscon | --sysco | --sysc | --sys | --sy)
1331     ac_prev=sysconfdir ;;
1332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1334     sysconfdir=$ac_optarg ;;
1335
1336   -target | --target | --targe | --targ | --tar | --ta | --t)
1337     ac_prev=target_alias ;;
1338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1339     target_alias=$ac_optarg ;;
1340
1341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1342     verbose=yes ;;
1343
1344   -version | --version | --versio | --versi | --vers | -V)
1345     ac_init_version=: ;;
1346
1347   -with-* | --with-*)
1348     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1349     # Reject names that are not valid shell variable names.
1350     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351       { echo "$as_me: error: invalid package name: $ac_package" >&2
1352    { (exit 1); exit 1; }; }
1353     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1354     eval with_$ac_package=\$ac_optarg ;;
1355
1356   -without-* | --without-*)
1357     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360       { echo "$as_me: error: invalid package name: $ac_package" >&2
1361    { (exit 1); exit 1; }; }
1362     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1363     eval with_$ac_package=no ;;
1364
1365   --x)
1366     # Obsolete; use --with-x.
1367     with_x=yes ;;
1368
1369   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1370   | --x-incl | --x-inc | --x-in | --x-i)
1371     ac_prev=x_includes ;;
1372   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1373   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1374     x_includes=$ac_optarg ;;
1375
1376   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1377   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1378     ac_prev=x_libraries ;;
1379   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1380   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1381     x_libraries=$ac_optarg ;;
1382
1383   -*) { echo "$as_me: error: unrecognized option: $ac_option
1384 Try \`$0 --help' for more information." >&2
1385    { (exit 1); exit 1; }; }
1386     ;;
1387
1388   *=*)
1389     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390     # Reject names that are not valid shell variable names.
1391     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1392       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1393    { (exit 1); exit 1; }; }
1394     eval $ac_envvar=\$ac_optarg
1395     export $ac_envvar ;;
1396
1397   *)
1398     # FIXME: should be removed in autoconf 3.0.
1399     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1403     ;;
1404
1405   esac
1406 done
1407
1408 if test -n "$ac_prev"; then
1409   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1410   { echo "$as_me: error: missing argument to $ac_option" >&2
1411    { (exit 1); exit 1; }; }
1412 fi
1413
1414 # Be sure to have absolute directory names.
1415 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416                 datadir sysconfdir sharedstatedir localstatedir includedir \
1417                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418                 libdir localedir mandir
1419 do
1420   eval ac_val=\$$ac_var
1421   case $ac_val in
1422     [\\/$]* | ?:[\\/]* )  continue;;
1423     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424   esac
1425   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1426    { (exit 1); exit 1; }; }
1427 done
1428
1429 # There might be people who depend on the old broken behavior: `$host'
1430 # used to hold the argument of --host etc.
1431 # FIXME: To remove some day.
1432 build=$build_alias
1433 host=$host_alias
1434 target=$target_alias
1435
1436 # FIXME: To remove some day.
1437 if test "x$host_alias" != x; then
1438   if test "x$build_alias" = x; then
1439     cross_compiling=maybe
1440     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1441     If a cross compiler is detected then cross compile mode will be used." >&2
1442   elif test "x$build_alias" != "x$host_alias"; then
1443     cross_compiling=yes
1444   fi
1445 fi
1446
1447 ac_tool_prefix=
1448 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449
1450 test "$silent" = yes && exec 6>/dev/null
1451
1452
1453 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1454 ac_ls_di=`ls -di .` &&
1455 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1456   { echo "$as_me: error: Working directory cannot be determined" >&2
1457    { (exit 1); exit 1; }; }
1458 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1459   { echo "$as_me: error: pwd does not report name of working directory" >&2
1460    { (exit 1); exit 1; }; }
1461
1462
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465   ac_srcdir_defaulted=yes
1466   # Try the directory containing this script, then the parent directory.
1467   ac_confdir=`$as_dirname -- "$0" ||
1468 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469          X"$0" : 'X\(//\)[^/]' \| \
1470          X"$0" : 'X\(//\)$' \| \
1471          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1472 echo X"$0" |
1473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474             s//\1/
1475             q
1476           }
1477           /^X\(\/\/\)[^/].*/{
1478             s//\1/
1479             q
1480           }
1481           /^X\(\/\/\)$/{
1482             s//\1/
1483             q
1484           }
1485           /^X\(\/\).*/{
1486             s//\1/
1487             q
1488           }
1489           s/.*/./; q'`
1490   srcdir=$ac_confdir
1491   if test ! -r "$srcdir/$ac_unique_file"; then
1492     srcdir=..
1493   fi
1494 else
1495   ac_srcdir_defaulted=no
1496 fi
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1500    { (exit 1); exit 1; }; }
1501 fi
1502 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503 ac_abs_confdir=`(
1504         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1505    { (exit 1); exit 1; }; }
1506         pwd)`
1507 # When building in place, set srcdir=.
1508 if test "$ac_abs_confdir" = "$ac_pwd"; then
1509   srcdir=.
1510 fi
1511 # Remove unnecessary trailing slashes from srcdir.
1512 # Double slashes in file names in object file debugging info
1513 # mess up M-x gdb in Emacs.
1514 case $srcdir in
1515 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516 esac
1517 for ac_var in $ac_precious_vars; do
1518   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519   eval ac_env_${ac_var}_value=\$${ac_var}
1520   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1522 done
1523
1524 #
1525 # Report the --help message.
1526 #
1527 if test "$ac_init_help" = "long"; then
1528   # Omit some internal or obsolete options to make the list less imposing.
1529   # This message is too long to be a string in the A/UX 3.1 sh.
1530   cat <<_ACEOF
1531 \`configure' configures Conky 1.8.5_pre2390 to adapt to many kinds of systems.
1532
1533 Usage: $0 [OPTION]... [VAR=VALUE]...
1534
1535 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536 VAR=VALUE.  See below for descriptions of some of the useful variables.
1537
1538 Defaults for the options are specified in brackets.
1539
1540 Configuration:
1541   -h, --help              display this help and exit
1542       --help=short        display options specific to this package
1543       --help=recursive    display the short help of all the included packages
1544   -V, --version           display version information and exit
1545   -q, --quiet, --silent   do not print \`checking...' messages
1546       --cache-file=FILE   cache test results in FILE [disabled]
1547   -C, --config-cache      alias for \`--cache-file=config.cache'
1548   -n, --no-create         do not create output files
1549       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1550
1551 Installation directories:
1552   --prefix=PREFIX         install architecture-independent files in PREFIX
1553                           [$ac_default_prefix]
1554   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1555                           [PREFIX]
1556
1557 By default, \`make install' will install all the files in
1558 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1559 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560 for instance \`--prefix=\$HOME'.
1561
1562 For better control, use the options below.
1563
1564 Fine tuning of the installation directories:
1565   --bindir=DIR           user executables [EPREFIX/bin]
1566   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1567   --libexecdir=DIR       program executables [EPREFIX/libexec]
1568   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1569   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1570   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1571   --libdir=DIR           object code libraries [EPREFIX/lib]
1572   --includedir=DIR       C header files [PREFIX/include]
1573   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1574   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1575   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1576   --infodir=DIR          info documentation [DATAROOTDIR/info]
1577   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1578   --mandir=DIR           man documentation [DATAROOTDIR/man]
1579   --docdir=DIR           documentation root [DATAROOTDIR/doc/conky]
1580   --htmldir=DIR          html documentation [DOCDIR]
1581   --dvidir=DIR           dvi documentation [DOCDIR]
1582   --pdfdir=DIR           pdf documentation [DOCDIR]
1583   --psdir=DIR            ps documentation [DOCDIR]
1584 _ACEOF
1585
1586   cat <<\_ACEOF
1587
1588 Program names:
1589   --program-prefix=PREFIX            prepend PREFIX to installed program names
1590   --program-suffix=SUFFIX            append SUFFIX to installed program names
1591   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1592
1593 X features:
1594   --x-includes=DIR    X include files are in DIR
1595   --x-libraries=DIR   X library files are in DIR
1596
1597 System types:
1598   --build=BUILD     configure for building on BUILD [guessed]
1599   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1600 _ACEOF
1601 fi
1602
1603 if test -n "$ac_init_help"; then
1604   case $ac_init_help in
1605      short | recursive ) echo "Configuration of Conky 1.8.5_pre2390:";;
1606    esac
1607   cat <<\_ACEOF
1608
1609 Optional Features:
1610   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1611   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1612   --disable-dependency-tracking  speeds up one-time build
1613   --enable-dependency-tracking   do not reject slow dependency extractors
1614   --enable-shared[=PKGS]  build shared libraries [default=yes]
1615   --enable-static[=PKGS]  build static libraries [default=yes]
1616   --enable-fast-install[=PKGS]
1617                           optimize for fast installation [default=yes]
1618   --disable-libtool-lock  avoid locking (might break parallel builds)
1619   --disable-config-output disable if you do not want conky to output a default
1620                           config (with -C) [default=yes]
1621   --disable-own-window    disable if you do not want support for creating own
1622                           window [default=yes]
1623   --disable-ncurses       disable if you do not want ncurses support in conky
1624                           [default=yes]
1625   --enable-audacious=yes|no|legacy
1626                           enable audacious player support [default=no]
1627   --enable-bmpx           enable if you want BMPx support [default=no]
1628   --enable-ibm            enable if you want support for IBM/Lenovo notebooks
1629                           @<:default=no]
1630   --disable-hddtemp       disable if you do not want hddtemp support
1631                           [default=yes]
1632   --disable-apcupsd       disable if you do not want apcupsd support
1633                           [default=yes]
1634   --enable-iostats        enable if you want support for per-task I/O
1635                           statistics [default=yes]
1636   --disable-math          disable if you do not want math support
1637                           [default=yes]
1638   --disable-mpd           disable if you do not want MPD support [default=yes]
1639   --disable-moc           disable if you do not want MOC support [default=yes]
1640   --enable-xmms2          enable if you want XMMS2 support [default=no]
1641   --enable-curl           enable if you want curl support [default=no]
1642   --enable-eve            Eve-Online skill monitor [default=no]
1643   --enable-rss            enable if you want rss support [default=no]
1644   --enable-weather-metar  enable if you want METAR weather support
1645                           [default=no]
1646   --enable-weather-xoap   enable if you want XOAP weather support (also
1647                           enables METAR) [default=no]
1648   --disable-x11           disable if you do not want X11 support [default=yes]
1649   --disable-argb          disable if you do not want a argb visual
1650                           [default=yes]
1651   --enable-imlib2         enable if you want Imlib2 support [default=no]
1652   --enable-lua-imlib2     enable if you want Lua Imlib2 bindings for Conky
1653                           [default=no]
1654   --enable-lua            enable if you want Lua scripting support
1655                           [default=yes]
1656   --enable-lua-cairo      enable if you want Lua Cairo bindings for Conky
1657                           [default=no]
1658   --enable-wlan           enable if you want wireless support [default=no]
1659   --disable-portmon       disable if you do not want tcp (ip4) port monitoring
1660                           [default=yes]
1661   --disable-rpath         do not hardcode runtime library paths
1662   --disable-double-buffer disable for no Xdbe double-buffering support
1663                           [default=yes]
1664   --disable-xdamage       disable if you do not want Xdamage support
1665                           [default=yes]
1666   --disable-xft           disable if you do not want to use Xft [default=yes]
1667   --enable-nvidia         enable if you want nvidia support [default=no]
1668   --disable-alsa          disable if you do not want ALSA support
1669                           [default=yes]
1670   --enable-debug          compile with debug symbols [default=no]
1671   --enable-testing        use strict compiler flags for testing [default=no]
1672   --enable-profiling      specify compiler flags for use with gprof and gcov
1673                           [default=no]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1679   --with-pic              try to use only PIC/non-PIC objects [default=use
1680                           both]
1681   --with-tags[=TAGS]      include additional configurations [automatic]
1682   --with-x                use the X Window System
1683   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1684   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1685   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1686
1687 Some influential environment variables:
1688   CC          C compiler command
1689   CFLAGS      C compiler flags
1690   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1691               nonstandard directory <lib dir>
1692   LIBS        libraries to pass to the linker, e.g. -l<library>
1693   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1694               you have headers in a nonstandard directory <include dir>
1695   CPP         C preprocessor
1696   CXX         C++ compiler command
1697   CXXFLAGS    C++ compiler flags
1698   CXXCPP      C++ preprocessor
1699   F77         Fortran 77 compiler command
1700   FFLAGS      Fortran 77 compiler flags
1701   PKG_CONFIG  path to pkg-config utility
1702   Audacious_CFLAGS
1703               C compiler flags for Audacious, overriding pkg-config
1704   Audacious_LIBS
1705               linker flags for Audacious, overriding pkg-config
1706   BMPx_CFLAGS C compiler flags for BMPx, overriding pkg-config
1707   BMPx_LIBS   linker flags for BMPx, overriding pkg-config
1708   XMMS2_CFLAGS
1709               C compiler flags for XMMS2, overriding pkg-config
1710   XMMS2_LIBS  linker flags for XMMS2, overriding pkg-config
1711   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1712   X11_LIBS    linker flags for X11, overriding pkg-config
1713   XMKMF       Path to xmkmf, Makefile generator for X Window System
1714   Imlib2_CFLAGS
1715               C compiler flags for Imlib2, overriding pkg-config
1716   Imlib2_LIBS linker flags for Imlib2, overriding pkg-config
1717   LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1718   LUA_LIBS    linker flags for LUA, overriding pkg-config
1719   LUA51_CFLAGS
1720               C compiler flags for LUA51, overriding pkg-config
1721   LUA51_LIBS  linker flags for LUA51, overriding pkg-config
1722   cairo_CFLAGS
1723               C compiler flags for cairo, overriding pkg-config
1724   cairo_LIBS  linker flags for cairo, overriding pkg-config
1725   cairo_xlib_CFLAGS
1726               C compiler flags for cairo_xlib, overriding pkg-config
1727   cairo_xlib_LIBS
1728               linker flags for cairo_xlib, overriding pkg-config
1729   Xext_CFLAGS C compiler flags for Xext, overriding pkg-config
1730   Xext_LIBS   linker flags for Xext, overriding pkg-config
1731   XDamage_CFLAGS
1732               C compiler flags for XDamage, overriding pkg-config
1733   XDamage_LIBS
1734               linker flags for XDamage, overriding pkg-config
1735   Xft_CFLAGS  C compiler flags for Xft, overriding pkg-config
1736   Xft_LIBS    linker flags for Xft, overriding pkg-config
1737   GLib2_CFLAGS
1738               C compiler flags for GLib2, overriding pkg-config
1739   GLib2_LIBS  linker flags for GLib2, overriding pkg-config
1740   libcurl_CFLAGS
1741               C compiler flags for libcurl, overriding pkg-config
1742   libcurl_LIBS
1743               linker flags for libcurl, overriding pkg-config
1744   libxml2_CFLAGS
1745               C compiler flags for libxml2, overriding pkg-config
1746   libxml2_LIBS
1747               linker flags for libxml2, overriding pkg-config
1748
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1751
1752 Report bugs to <brenden1@users.sourceforge.net>.
1753 _ACEOF
1754 ac_status=$?
1755 fi
1756
1757 if test "$ac_init_help" = "recursive"; then
1758   # If there are subdirs, report their specific --help.
1759   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760     test -d "$ac_dir" || continue
1761     ac_builddir=.
1762
1763 case "$ac_dir" in
1764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 *)
1766   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1767   # A ".." for each directory in $ac_dir_suffix.
1768   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1769   case $ac_top_builddir_sub in
1770   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1771   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1772   esac ;;
1773 esac
1774 ac_abs_top_builddir=$ac_pwd
1775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1776 # for backward compatibility:
1777 ac_top_builddir=$ac_top_build_prefix
1778
1779 case $srcdir in
1780   .)  # We are building in place.
1781     ac_srcdir=.
1782     ac_top_srcdir=$ac_top_builddir_sub
1783     ac_abs_top_srcdir=$ac_pwd ;;
1784   [\\/]* | ?:[\\/]* )  # Absolute name.
1785     ac_srcdir=$srcdir$ac_dir_suffix;
1786     ac_top_srcdir=$srcdir
1787     ac_abs_top_srcdir=$srcdir ;;
1788   *) # Relative name.
1789     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1790     ac_top_srcdir=$ac_top_build_prefix$srcdir
1791     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1792 esac
1793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1794
1795     cd "$ac_dir" || { ac_status=$?; continue; }
1796     # Check for guested configure.
1797     if test -f "$ac_srcdir/configure.gnu"; then
1798       echo &&
1799       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1800     elif test -f "$ac_srcdir/configure"; then
1801       echo &&
1802       $SHELL "$ac_srcdir/configure" --help=recursive
1803     else
1804       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1805     fi || ac_status=$?
1806     cd "$ac_pwd" || { ac_status=$?; break; }
1807   done
1808 fi
1809
1810 test -n "$ac_init_help" && exit $ac_status
1811 if $ac_init_version; then
1812   cat <<\_ACEOF
1813 Conky configure 1.8.5_pre2390
1814 generated by GNU Autoconf 2.61
1815
1816 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1817 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1818 This configure script is free software; the Free Software Foundation
1819 gives unlimited permission to copy, distribute and modify it.
1820 _ACEOF
1821   exit
1822 fi
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1826
1827 It was created by Conky $as_me 1.8.5_pre2390, which was
1828 generated by GNU Autoconf 2.61.  Invocation command line was
1829
1830   $ $0 $@
1831
1832 _ACEOF
1833 exec 5>>config.log
1834 {
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1839
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1848
1849 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1850 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1853 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1854 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1855 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1856
1857 _ASUNAME
1858
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864   echo "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891   for ac_arg
1892   do
1893     case $ac_arg in
1894     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896     | -silent | --silent | --silen | --sile | --sil)
1897       continue ;;
1898     *\'*)
1899       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900     esac
1901     case $ac_pass in
1902     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1903     2)
1904       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1905       if test $ac_must_keep_next = true; then
1906         ac_must_keep_next=false # Got value, back to normal.
1907       else
1908         case $ac_arg in
1909           *=* | --config-cache | -C | -disable-* | --disable-* \
1910           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912           | -with-* | --with-* | -without-* | --without-* | --x)
1913             case "$ac_configure_args0 " in
1914               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915             esac
1916             ;;
1917           -* ) ac_must_keep_next=true ;;
1918         esac
1919       fi
1920       ac_configure_args="$ac_configure_args '$ac_arg'"
1921       ;;
1922     esac
1923   done
1924 done
1925 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1926 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log.  We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934   # Save into config.log some information that might help in debugging.
1935   {
1936     echo
1937
1938     cat <<\_ASBOX
1939 ## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##
1942 _ASBOX
1943     echo
1944     # The following way of writing the cache mishandles newlines in values,
1945 (
1946   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947     eval ac_val=\$$ac_var
1948     case $ac_val in #(
1949     *${as_nl}*)
1950       case $ac_var in #(
1951       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1952 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1953       esac
1954       case $ac_var in #(
1955       _ | IFS | as_nl) ;; #(
1956       *) $as_unset $ac_var ;;
1957       esac ;;
1958     esac
1959   done
1960   (set) 2>&1 |
1961     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962     *${as_nl}ac_space=\ *)
1963       sed -n \
1964         "s/'\''/'\''\\\\'\'''\''/g;
1965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1966       ;; #(
1967     *)
1968       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969       ;;
1970     esac |
1971     sort
1972 )
1973     echo
1974
1975     cat <<\_ASBOX
1976 ## ----------------- ##
1977 ## Output variables. ##
1978 ## ----------------- ##
1979 _ASBOX
1980     echo
1981     for ac_var in $ac_subst_vars
1982     do
1983       eval ac_val=\$$ac_var
1984       case $ac_val in
1985       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986       esac
1987       echo "$ac_var='\''$ac_val'\''"
1988     done | sort
1989     echo
1990
1991     if test -n "$ac_subst_files"; then
1992       cat <<\_ASBOX
1993 ## ------------------- ##
1994 ## File substitutions. ##
1995 ## ------------------- ##
1996 _ASBOX
1997       echo
1998       for ac_var in $ac_subst_files
1999       do
2000         eval ac_val=\$$ac_var
2001         case $ac_val in
2002         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003         esac
2004         echo "$ac_var='\''$ac_val'\''"
2005       done | sort
2006       echo
2007     fi
2008
2009     if test -s confdefs.h; then
2010       cat <<\_ASBOX
2011 ## ----------- ##
2012 ## confdefs.h. ##
2013 ## ----------- ##
2014 _ASBOX
2015       echo
2016       cat confdefs.h
2017       echo
2018     fi
2019     test "$ac_signal" != 0 &&
2020       echo "$as_me: caught signal $ac_signal"
2021     echo "$as_me: exit $exit_status"
2022   } >&5
2023   rm -f core *.core core.conftest.* &&
2024     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025     exit $exit_status
2026 ' 0
2027 for ac_signal in 1 2 13 15; do
2028   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2029 done
2030 ac_signal=0
2031
2032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033 rm -f -r conftest* confdefs.h
2034
2035 # Predefined preprocessor variables.
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_NAME "$PACKAGE_NAME"
2039 _ACEOF
2040
2041
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2044 _ACEOF
2045
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2049 _ACEOF
2050
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2055
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2059 _ACEOF
2060
2061
2062 # Let the site file select an alternate cache file if it wants to.
2063 # Prefer explicitly selected file to automatically selected ones.
2064 if test -n "$CONFIG_SITE"; then
2065   set x "$CONFIG_SITE"
2066 elif test "x$prefix" != xNONE; then
2067   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2068 else
2069   set x "$ac_default_prefix/share/config.site" \
2070         "$ac_default_prefix/etc/config.site"
2071 fi
2072 shift
2073 for ac_site_file
2074 do
2075   if test -r "$ac_site_file"; then
2076     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2077 echo "$as_me: loading site script $ac_site_file" >&6;}
2078     sed 's/^/| /' "$ac_site_file" >&5
2079     . "$ac_site_file"
2080   fi
2081 done
2082
2083 if test -r "$cache_file"; then
2084   # Some versions of bash will fail to source /dev/null (special
2085   # files actually), so we avoid doing that.
2086   if test -f "$cache_file"; then
2087     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2088 echo "$as_me: loading cache $cache_file" >&6;}
2089     case $cache_file in
2090       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2091       *)                      . "./$cache_file";;
2092     esac
2093   fi
2094 else
2095   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2096 echo "$as_me: creating cache $cache_file" >&6;}
2097   >$cache_file
2098 fi
2099
2100 # Check that the precious variables saved in the cache have kept the same
2101 # value.
2102 ac_cache_corrupted=false
2103 for ac_var in $ac_precious_vars; do
2104   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2105   eval ac_new_set=\$ac_env_${ac_var}_set
2106   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2107   eval ac_new_val=\$ac_env_${ac_var}_value
2108   case $ac_old_set,$ac_new_set in
2109     set,)
2110       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2111 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2112       ac_cache_corrupted=: ;;
2113     ,set)
2114       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2115 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2116       ac_cache_corrupted=: ;;
2117     ,);;
2118     *)
2119       if test "x$ac_old_val" != "x$ac_new_val"; then
2120         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2121 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2122         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2123 echo "$as_me:   former value:  $ac_old_val" >&2;}
2124         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2125 echo "$as_me:   current value: $ac_new_val" >&2;}
2126         ac_cache_corrupted=:
2127       fi;;
2128   esac
2129   # Pass precious variables to config.status.
2130   if test "$ac_new_set" = set; then
2131     case $ac_new_val in
2132     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133     *) ac_arg=$ac_var=$ac_new_val ;;
2134     esac
2135     case " $ac_configure_args " in
2136       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2137       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2138     esac
2139   fi
2140 done
2141 if $ac_cache_corrupted; then
2142   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2143 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2145 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2146    { (exit 1); exit 1; }; }
2147 fi
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179
2180
2181 am__api_version="1.8"
2182 ac_aux_dir=
2183 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2184   if test -f "$ac_dir/install-sh"; then
2185     ac_aux_dir=$ac_dir
2186     ac_install_sh="$ac_aux_dir/install-sh -c"
2187     break
2188   elif test -f "$ac_dir/install.sh"; then
2189     ac_aux_dir=$ac_dir
2190     ac_install_sh="$ac_aux_dir/install.sh -c"
2191     break
2192   elif test -f "$ac_dir/shtool"; then
2193     ac_aux_dir=$ac_dir
2194     ac_install_sh="$ac_aux_dir/shtool install -c"
2195     break
2196   fi
2197 done
2198 if test -z "$ac_aux_dir"; then
2199   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2200 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2201    { (exit 1); exit 1; }; }
2202 fi
2203
2204 # These three variables are undocumented and unsupported,
2205 # and are intended to be withdrawn in a future Autoconf release.
2206 # They can cause serious problems if a builder's source tree is in a directory
2207 # whose full name contains unusual characters.
2208 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2209 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2210 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2211
2212
2213 # Find a good install program.  We prefer a C program (faster),
2214 # so one script is as good as another.  But avoid the broken or
2215 # incompatible versions:
2216 # SysV /etc/install, /usr/sbin/install
2217 # SunOS /usr/etc/install
2218 # IRIX /sbin/install
2219 # AIX /bin/install
2220 # AmigaOS /C/install, which installs bootblocks on floppy discs
2221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2224 # OS/2's system install, which has a completely different semantic
2225 # ./install, which can be erroneously created by make from ./install.sh.
2226 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2227 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2228 if test -z "$INSTALL"; then
2229 if test "${ac_cv_path_install+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235   IFS=$as_save_IFS
2236   test -z "$as_dir" && as_dir=.
2237   # Account for people who put trailing slashes in PATH elements.
2238 case $as_dir/ in
2239   ./ | .// | /cC/* | \
2240   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2241   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2242   /usr/ucb/* ) ;;
2243   *)
2244     # OSF1 and SCO ODT 3.0 have their own names for install.
2245     # Don't use installbsd from OSF since it installs stuff as root
2246     # by default.
2247     for ac_prog in ginstall scoinst install; do
2248       for ac_exec_ext in '' $ac_executable_extensions; do
2249         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2250           if test $ac_prog = install &&
2251             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252             # AIX install.  It has an incompatible calling convention.
2253             :
2254           elif test $ac_prog = install &&
2255             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256             # program-specific install script used by HP pwplus--don't use.
2257             :
2258           else
2259             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2260             break 3
2261           fi
2262         fi
2263       done
2264     done
2265     ;;
2266 esac
2267 done
2268 IFS=$as_save_IFS
2269
2270
2271 fi
2272   if test "${ac_cv_path_install+set}" = set; then
2273     INSTALL=$ac_cv_path_install
2274   else
2275     # As a last resort, use the slow shell script.  Don't cache a
2276     # value for INSTALL within a source directory, because that will
2277     # break other packages using the cache if that directory is
2278     # removed, or if the value is a relative name.
2279     INSTALL=$ac_install_sh
2280   fi
2281 fi
2282 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2283 echo "${ECHO_T}$INSTALL" >&6; }
2284
2285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2286 # It thinks the first close brace ends the variable substitution.
2287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2288
2289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2290
2291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2292
2293 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2294 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2295 # Just in case
2296 sleep 1
2297 echo timestamp > conftest.file
2298 # Do `set' in a subshell so we don't clobber the current shell's
2299 # arguments.  Must try -L first in case configure is actually a
2300 # symlink; some systems play weird games with the mod time of symlinks
2301 # (eg FreeBSD returns the mod time of the symlink's containing
2302 # directory).
2303 if (
2304    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2305    if test "$*" = "X"; then
2306       # -L didn't work.
2307       set X `ls -t $srcdir/configure conftest.file`
2308    fi
2309    rm -f conftest.file
2310    if test "$*" != "X $srcdir/configure conftest.file" \
2311       && test "$*" != "X conftest.file $srcdir/configure"; then
2312
2313       # If neither matched, then we have a broken ls.  This can happen
2314       # if, for instance, CONFIG_SHELL is bash and it inherits a
2315       # broken ls alias from the environment.  This has actually
2316       # happened.  Such a system could not be considered "sane".
2317       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2318 alias in your environment" >&5
2319 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2320 alias in your environment" >&2;}
2321    { (exit 1); exit 1; }; }
2322    fi
2323
2324    test "$2" = conftest.file
2325    )
2326 then
2327    # Ok.
2328    :
2329 else
2330    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2331 Check your system clock" >&5
2332 echo "$as_me: error: newly created file is older than distributed files!
2333 Check your system clock" >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336 { echo "$as_me:$LINENO: result: yes" >&5
2337 echo "${ECHO_T}yes" >&6; }
2338 test "$program_prefix" != NONE &&
2339   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2340 # Use a double $ so make ignores it.
2341 test "$program_suffix" != NONE &&
2342   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2343 # Double any \ or $.  echo might interpret backslashes.
2344 # By default was `s,x,x', remove it if useless.
2345 cat <<\_ACEOF >conftest.sed
2346 s/[\\$]/&&/g;s/;s,x,x,$//
2347 _ACEOF
2348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2349 rm -f conftest.sed
2350
2351 # expand $ac_aux_dir to an absolute path
2352 am_aux_dir=`cd $ac_aux_dir && pwd`
2353
2354 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2355 # Use eval to expand $SHELL
2356 if eval "$MISSING --run true"; then
2357   am_missing_run="$MISSING --run "
2358 else
2359   am_missing_run=
2360   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2361 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2362 fi
2363
2364 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2365   # Keeping the `.' argument allows $(mkdir_p) to be used without
2366   # argument.  Indeed, we sometimes output rules like
2367   #   $(mkdir_p) $(somedir)
2368   # where $(somedir) is conditionally defined.
2369   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2370   # expensive solution, as it forces Make to start a sub-shell.)
2371   mkdir_p='mkdir -p -- .'
2372 else
2373   # On NextStep and OpenStep, the `mkdir' command does not
2374   # recognize any option.  It will interpret all options as
2375   # directories to create, and then abort because `.' already
2376   # exists.
2377   for d in ./-p ./--version;
2378   do
2379     test -d $d && rmdir $d
2380   done
2381   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2382   if test -f "$ac_aux_dir/mkinstalldirs"; then
2383     mkdir_p='$(mkinstalldirs)'
2384   else
2385     mkdir_p='$(install_sh) -d'
2386   fi
2387 fi
2388
2389 for ac_prog in gawk mawk nawk awk
2390 do
2391   # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_AWK+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   if test -n "$AWK"; then
2399   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404   IFS=$as_save_IFS
2405   test -z "$as_dir" && as_dir=.
2406   for ac_exec_ext in '' $ac_executable_extensions; do
2407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408     ac_cv_prog_AWK="$ac_prog"
2409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410     break 2
2411   fi
2412 done
2413 done
2414 IFS=$as_save_IFS
2415
2416 fi
2417 fi
2418 AWK=$ac_cv_prog_AWK
2419 if test -n "$AWK"; then
2420   { echo "$as_me:$LINENO: result: $AWK" >&5
2421 echo "${ECHO_T}$AWK" >&6; }
2422 else
2423   { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2425 fi
2426
2427
2428   test -n "$AWK" && break
2429 done
2430
2431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   cat >conftest.make <<\_ACEOF
2438 SHELL = /bin/sh
2439 all:
2440         @echo '@@@%%%=$(MAKE)=@@@%%%'
2441 _ACEOF
2442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2444   *@@@%%%=?*=@@@%%%*)
2445     eval ac_cv_prog_make_${ac_make}_set=yes;;
2446   *)
2447     eval ac_cv_prog_make_${ac_make}_set=no;;
2448 esac
2449 rm -f conftest.make
2450 fi
2451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2452   { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2454   SET_MAKE=
2455 else
2456   { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458   SET_MAKE="MAKE=${MAKE-make}"
2459 fi
2460
2461 rm -rf .tst 2>/dev/null
2462 mkdir .tst 2>/dev/null
2463 if test -d .tst; then
2464   am__leading_dot=.
2465 else
2466   am__leading_dot=_
2467 fi
2468 rmdir .tst 2>/dev/null
2469
2470 # test to see if srcdir already configured
2471 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2472    test -f $srcdir/config.status; then
2473   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2474 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2475    { (exit 1); exit 1; }; }
2476 fi
2477
2478 # test whether we have cygpath
2479 if test -z "$CYGPATH_W"; then
2480   if (cygpath --version) >/dev/null 2>/dev/null; then
2481     CYGPATH_W='cygpath -w'
2482   else
2483     CYGPATH_W=echo
2484   fi
2485 fi
2486
2487
2488 # Define the identity of the package.
2489  PACKAGE=conky
2490  VERSION=1.8.5_pre2390
2491
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE "$PACKAGE"
2495 _ACEOF
2496
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define VERSION "$VERSION"
2500 _ACEOF
2501
2502 # Some tools Automake needs.
2503
2504 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2505
2506
2507 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2508
2509
2510 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2511
2512
2513 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2514
2515
2516 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2517
2518
2519 AMTAR=${AMTAR-"${am_missing_run}tar"}
2520
2521 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2522
2523 # Installed binaries are usually stripped using `strip' when the user
2524 # run `make install-strip'.  However `strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the `STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528   if test -n "$ac_tool_prefix"; then
2529   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_STRIP+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   if test -n "$STRIP"; then
2537   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544   for ac_exec_ext in '' $ac_executable_extensions; do
2545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548     break 2
2549   fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558   { echo "$as_me:$LINENO: result: $STRIP" >&5
2559 echo "${ECHO_T}$STRIP" >&6; }
2560 else
2561   { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2563 fi
2564
2565
2566 fi
2567 if test -z "$ac_cv_prog_STRIP"; then
2568   ac_ct_STRIP=$STRIP
2569   # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   if test -n "$ac_ct_STRIP"; then
2577   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_exec_ext in '' $ac_executable_extensions; do
2585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586     ac_cv_prog_ac_ct_STRIP="strip"
2587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2599 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2600 else
2601   { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2603 fi
2604
2605   if test "x$ac_ct_STRIP" = x; then
2606     STRIP=":"
2607   else
2608     case $cross_compiling:$ac_tool_warned in
2609 yes:)
2610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet.  If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&5
2613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2614 whose name does not start with the host triplet.  If you think this
2615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618     STRIP=$ac_ct_STRIP
2619   fi
2620 else
2621   STRIP="$ac_cv_prog_STRIP"
2622 fi
2623
2624 fi
2625 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2626
2627 # We need awk for the "check" target.  The system "awk" is bad on
2628 # some platforms.
2629
2630
2631
2632 ac_config_headers="$ac_config_headers src/config.h"
2633
2634
2635
2636 if test x"$CFLAGS" = x""; then
2637   CFLAGS=
2638
2639 fi
2640
2641
2642 cat >>confdefs.h <<\_ACEOF
2643 #define _GNU_SOURCE
2644 _ACEOF
2645
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   if test -n "$CC"; then
2661   ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668   for ac_exec_ext in '' $ac_executable_extensions; do
2669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672     break 2
2673   fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 CC=$ac_cv_prog_CC
2681 if test -n "$CC"; then
2682   { echo "$as_me:$LINENO: result: $CC" >&5
2683 echo "${ECHO_T}$CC" >&6; }
2684 else
2685   { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2687 fi
2688
2689
2690 fi
2691 if test -z "$ac_cv_prog_CC"; then
2692   ac_ct_CC=$CC
2693   # Extract the first word of "gcc", so it can be a program name with args.
2694 set dummy gcc; ac_word=$2
2695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   if test -n "$ac_ct_CC"; then
2701   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for ac_exec_ext in '' $ac_executable_extensions; do
2709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710     ac_cv_prog_ac_ct_CC="gcc"
2711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721 if test -n "$ac_ct_CC"; then
2722   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2723 echo "${ECHO_T}$ac_ct_CC" >&6; }
2724 else
2725   { echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6; }
2727 fi
2728
2729   if test "x$ac_ct_CC" = x; then
2730     CC=""
2731   else
2732     case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2735 whose name does not start with the host triplet.  If you think this
2736 configuration is useful to you, please write to autoconf@gnu.org." >&5
2737 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2738 whose name does not start with the host triplet.  If you think this
2739 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2740 ac_tool_warned=yes ;;
2741 esac
2742     CC=$ac_ct_CC
2743   fi
2744 else
2745   CC="$ac_cv_prog_CC"
2746 fi
2747
2748 if test -z "$CC"; then
2749           if test -n "$ac_tool_prefix"; then
2750     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}cc; ac_word=$2
2752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   if test -n "$CC"; then
2758   ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765   for ac_exec_ext in '' $ac_executable_extensions; do
2766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767     ac_cv_prog_CC="${ac_tool_prefix}cc"
2768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779   { echo "$as_me:$LINENO: result: $CC" >&5
2780 echo "${ECHO_T}$CC" >&6; }
2781 else
2782   { echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6; }
2784 fi
2785
2786
2787   fi
2788 fi
2789 if test -z "$CC"; then
2790   # Extract the first word of "cc", so it can be a program name with args.
2791 set dummy cc; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CC+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   if test -n "$CC"; then
2798   ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800   ac_prog_rejected=no
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806   for ac_exec_ext in '' $ac_executable_extensions; do
2807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2809        ac_prog_rejected=yes
2810        continue
2811      fi
2812     ac_cv_prog_CC="cc"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 if test $ac_prog_rejected = yes; then
2821   # We found a bogon in the path, so make sure we never use it.
2822   set dummy $ac_cv_prog_CC
2823   shift
2824   if test $# != 0; then
2825     # We chose a different compiler from the bogus one.
2826     # However, it has the same basename, so the bogon will be chosen
2827     # first if we set CC to just the basename; use the full file name.
2828     shift
2829     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2830   fi
2831 fi
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836   { echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6; }
2838 else
2839   { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2841 fi
2842
2843
2844 fi
2845 if test -z "$CC"; then
2846   if test -n "$ac_tool_prefix"; then
2847   for ac_prog in cl.exe
2848   do
2849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$CC"; then
2857   ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878   { echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6; }
2880 else
2881   { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885
2886     test -n "$CC" && break
2887   done
2888 fi
2889 if test -z "$CC"; then
2890   ac_ct_CC=$CC
2891   for ac_prog in cl.exe
2892 do
2893   # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   if test -n "$ac_ct_CC"; then
2901   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908   for ac_exec_ext in '' $ac_executable_extensions; do
2909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910     ac_cv_prog_ac_ct_CC="$ac_prog"
2911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912     break 2
2913   fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2923 echo "${ECHO_T}$ac_ct_CC" >&6; }
2924 else
2925   { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2927 fi
2928
2929
2930   test -n "$ac_ct_CC" && break
2931 done
2932
2933   if test "x$ac_ct_CC" = x; then
2934     CC=""
2935   else
2936     case $cross_compiling:$ac_tool_warned in
2937 yes:)
2938 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2939 whose name does not start with the host triplet.  If you think this
2940 configuration is useful to you, please write to autoconf@gnu.org." >&5
2941 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2942 whose name does not start with the host triplet.  If you think this
2943 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2944 ac_tool_warned=yes ;;
2945 esac
2946     CC=$ac_ct_CC
2947   fi
2948 fi
2949
2950 fi
2951
2952
2953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: no acceptable C compiler found in \$PATH
2956 See \`config.log' for more details." >&2;}
2957    { (exit 1); exit 1; }; }
2958
2959 # Provide some information about the compiler.
2960 echo "$as_me:$LINENO: checking for C compiler version" >&5
2961 ac_compiler=`set X $ac_compile; echo $2`
2962 { (ac_try="$ac_compiler --version >&5"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_compiler --version >&5") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }
2972 { (ac_try="$ac_compiler -v >&5"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compiler -v >&5") 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }
2982 { (ac_try="$ac_compiler -V >&5"
2983 case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988   (eval "$ac_compiler -V >&5") 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }
2992
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999
3000 int
3001 main ()
3002 {
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 ac_clean_files_save=$ac_clean_files
3009 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3010 # Try to create an executable without -o first, disregard a.out.
3011 # It will help us diagnose broken compilers, and finding out an intuition
3012 # of exeext.
3013 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3014 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3015 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3016 #
3017 # List of possible output files, starting from the most likely.
3018 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3019 # only as a last resort.  b.out is created by i960 compilers.
3020 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3021 #
3022 # The IRIX 6 linker writes into existing files which may not be
3023 # executable, retaining their permissions.  Remove them first so a
3024 # subsequent execution test works.
3025 ac_rmfiles=
3026 for ac_file in $ac_files
3027 do
3028   case $ac_file in
3029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3030     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031   esac
3032 done
3033 rm -f $ac_rmfiles
3034
3035 if { (ac_try="$ac_link_default"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_link_default") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; then
3045   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3046 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3047 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3048 # so that the user can short-circuit this test for compilers unknown to
3049 # Autoconf.
3050 for ac_file in $ac_files ''
3051 do
3052   test -f "$ac_file" || continue
3053   case $ac_file in
3054     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3055         ;;
3056     [ab].out )
3057         # We found the default executable, but exeext='' is most
3058         # certainly right.
3059         break;;
3060     *.* )
3061         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3062         then :; else
3063            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064         fi
3065         # We set ac_cv_exeext here because the later test for it is not
3066         # safe: cross compilers may not add the suffix if given an `-o'
3067         # argument, so we may need to know it at that point already.
3068         # Even if this section looks crufty: it has the advantage of
3069         # actually working.
3070         break;;
3071     * )
3072         break;;
3073   esac
3074 done
3075 test "$ac_cv_exeext" = no && ac_cv_exeext=
3076
3077 else
3078   ac_file=''
3079 fi
3080
3081 { echo "$as_me:$LINENO: result: $ac_file" >&5
3082 echo "${ECHO_T}$ac_file" >&6; }
3083 if test -z "$ac_file"; then
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091    { (exit 77); exit 77; }; }
3092 fi
3093
3094 ac_exeext=$ac_cv_exeext
3095
3096 # Check that the compiler produces executables we can run.  If not, either
3097 # the compiler is broken, or we cross compile.
3098 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3099 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3101 # If not cross compiling, check that we can run a simple program.
3102 if test "$cross_compiling" != yes; then
3103   if { ac_try='./$ac_file'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113     cross_compiling=no
3114   else
3115     if test "$cross_compiling" = maybe; then
3116         cross_compiling=yes
3117     else
3118         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3119 If you meant to cross compile, use \`--host'.
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: cannot run C compiled programs.
3122 If you meant to cross compile, use \`--host'.
3123 See \`config.log' for more details." >&2;}
3124    { (exit 1); exit 1; }; }
3125     fi
3126   fi
3127 fi
3128 { echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6; }
3130
3131 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3132 ac_clean_files=$ac_clean_files_save
3133 # Check that the compiler produces executables we can run.  If not, either
3134 # the compiler is broken, or we cross compile.
3135 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3137 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3138 echo "${ECHO_T}$cross_compiling" >&6; }
3139
3140 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3142 if { (ac_try="$ac_link"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_link") 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; then
3152   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3153 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3154 # work properly (i.e., refer to `conftest.exe'), while it won't with
3155 # `rm'.
3156 for ac_file in conftest.exe conftest conftest.*; do
3157   test -f "$ac_file" || continue
3158   case $ac_file in
3159     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3160     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161           break;;
3162     * ) break;;
3163   esac
3164 done
3165 else
3166   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170    { (exit 1); exit 1; }; }
3171 fi
3172
3173 rm -f conftest$ac_cv_exeext
3174 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3176
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3182 if test "${ac_cv_objext+set}" = set; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compile") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; then
3211   for ac_file in conftest.o conftest.obj conftest.*; do
3212   test -f "$ac_file" || continue;
3213   case $ac_file in
3214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3215     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3216        break;;
3217   esac
3218 done
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3224 See \`config.log' for more details." >&5
3225 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&2;}
3227    { (exit 1); exit 1; }; }
3228 fi
3229
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 fi
3232 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3233 echo "${ECHO_T}$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3235 ac_objext=$OBJEXT
3236 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3237 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3238 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h.  */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251 #ifndef __GNUC__
3252        choke me
3253 #endif
3254
3255   ;
3256   return 0;
3257 }
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3261 case "(($ac_try" in
3262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263   *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266   (eval "$ac_compile") 2>conftest.er1
3267   ac_status=$?
3268   grep -v '^ *+' conftest.er1 >conftest.err
3269   rm -f conftest.er1
3270   cat conftest.err >&5
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); } && {
3273          test -z "$ac_c_werror_flag" ||
3274          test ! -s conftest.err
3275        } && test -s conftest.$ac_objext; then
3276   ac_compiler_gnu=yes
3277 else
3278   echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281         ac_compiler_gnu=no
3282 fi
3283
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3286
3287 fi
3288 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3289 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3290 GCC=`test $ac_compiler_gnu = yes && echo yes`
3291 ac_test_CFLAGS=${CFLAGS+set}
3292 ac_save_CFLAGS=$CFLAGS
3293 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3294 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3295 if test "${ac_cv_prog_cc_g+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   ac_save_c_werror_flag=$ac_c_werror_flag
3299    ac_c_werror_flag=yes
3300    ac_cv_prog_cc_g=no
3301    CFLAGS="-g"
3302    cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308
3309 int
3310 main ()
3311 {
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324   (eval "$ac_compile") 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } && {
3331          test -z "$ac_c_werror_flag" ||
3332          test ! -s conftest.err
3333        } && test -s conftest.$ac_objext; then
3334   ac_cv_prog_cc_g=yes
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339         CFLAGS=""
3340       cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346
3347 int
3348 main ()
3349 {
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362   (eval "$ac_compile") 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } && {
3369          test -z "$ac_c_werror_flag" ||
3370          test ! -s conftest.err
3371        } && test -s conftest.$ac_objext; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377         ac_c_werror_flag=$ac_save_c_werror_flag
3378          CFLAGS="-g"
3379          cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_compile") 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } && {
3408          test -z "$ac_c_werror_flag" ||
3409          test ! -s conftest.err
3410        } && test -s conftest.$ac_objext; then
3411   ac_cv_prog_cc_g=yes
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417 fi
3418
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 fi
3421
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426    ac_c_werror_flag=$ac_save_c_werror_flag
3427 fi
3428 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3430 if test "$ac_test_CFLAGS" = set; then
3431   CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433   if test "$GCC" = yes; then
3434     CFLAGS="-g -O2"
3435   else
3436     CFLAGS="-g"
3437   fi
3438 else
3439   if test "$GCC" = yes; then
3440     CFLAGS="-O2"
3441   else
3442     CFLAGS=
3443   fi
3444 fi
3445 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3446 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_cc_c89+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   ac_cv_prog_cc_c89=no
3451 ac_save_CC=$CC
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 #include <stdarg.h>
3459 #include <stdio.h>
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3466      char **p;
3467      int i;
3468 {
3469   return p[i];
3470 }
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3472 {
3473   char *s;
3474   va_list v;
3475   va_start (v,p);
3476   s = g (p, va_arg (v,int));
3477   va_end (v);
3478   return s;
3479 }
3480
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3482    function prototypes and stuff, but not '\xHH' hex character constants.
3483    These don't provoke an error unfortunately, instead are silently treated
3484    as 'x'.  The following induces an error, until -std is added to get
3485    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3486    array size at least.  It's necessary to write '\x00'==0 to get something
3487    that's true only with -std.  */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491    inside strings and character constants.  */
3492 #define FOO(x) 'x'
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 int argc;
3500 char **argv;
3501 int
3502 main ()
3503 {
3504 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 do
3512   CC="$ac_save_CC $ac_arg"
3513   rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520   (eval "$ac_compile") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } && {
3527          test -z "$ac_c_werror_flag" ||
3528          test ! -s conftest.err
3529        } && test -s conftest.$ac_objext; then
3530   ac_cv_prog_cc_c89=$ac_arg
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535
3536 fi
3537
3538 rm -f core conftest.err conftest.$ac_objext
3539   test "x$ac_cv_prog_cc_c89" != "xno" && break
3540 done
3541 rm -f conftest.$ac_ext
3542 CC=$ac_save_CC
3543
3544 fi
3545 # AC_CACHE_VAL
3546 case "x$ac_cv_prog_cc_c89" in
3547   x)
3548     { echo "$as_me:$LINENO: result: none needed" >&5
3549 echo "${ECHO_T}none needed" >&6; } ;;
3550   xno)
3551     { echo "$as_me:$LINENO: result: unsupported" >&5
3552 echo "${ECHO_T}unsupported" >&6; } ;;
3553   *)
3554     CC="$CC $ac_cv_prog_cc_c89"
3555     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3556 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3557 esac
3558
3559
3560 ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 DEPDIR="${am__leading_dot}deps"
3566
3567 ac_config_commands="$ac_config_commands depfiles"
3568
3569
3570 am_make=${MAKE-make}
3571 cat > confinc << 'END'
3572 am__doit:
3573         @echo done
3574 .PHONY: am__doit
3575 END
3576 # If we don't find an include directive, just comment out the code.
3577 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3578 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3579 am__include="#"
3580 am__quote=
3581 _am_result=none
3582 # First try GNU make style include.
3583 echo "include confinc" > confmf
3584 # We grep out `Entering directory' and `Leaving directory'
3585 # messages which can occur if `w' ends up in MAKEFLAGS.
3586 # In particular we don't look at `^make:' because GNU make might
3587 # be invoked under some other name (usually "gmake"), in which
3588 # case it prints its new name instead of `make'.
3589 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3590    am__include=include
3591    am__quote=
3592    _am_result=GNU
3593 fi
3594 # Now try BSD make style include.
3595 if test "$am__include" = "#"; then
3596    echo '.include "confinc"' > confmf
3597    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3598       am__include=.include
3599       am__quote="\""
3600       _am_result=BSD
3601    fi
3602 fi
3603
3604
3605 { echo "$as_me:$LINENO: result: $_am_result" >&5
3606 echo "${ECHO_T}$_am_result" >&6; }
3607 rm -f confinc confmf
3608
3609 # Check whether --enable-dependency-tracking was given.
3610 if test "${enable_dependency_tracking+set}" = set; then
3611   enableval=$enable_dependency_tracking;
3612 fi
3613
3614 if test "x$enable_dependency_tracking" != xno; then
3615   am_depcomp="$ac_aux_dir/depcomp"
3616   AMDEPBACKSLASH='\'
3617 fi
3618
3619
3620 if test "x$enable_dependency_tracking" != xno; then
3621   AMDEP_TRUE=
3622   AMDEP_FALSE='#'
3623 else
3624   AMDEP_TRUE='#'
3625   AMDEP_FALSE=
3626 fi
3627
3628
3629
3630
3631 depcc="$CC"   am_compiler_list=
3632
3633 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3634 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3635 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3639   # We make a subdir and do the tests there.  Otherwise we can end up
3640   # making bogus files that we don't know about and never remove.  For
3641   # instance it was reported that on HP-UX the gcc test will end up
3642   # making a dummy file named `D' -- because `-MD' means `put the output
3643   # in D'.
3644   mkdir conftest.dir
3645   # Copy depcomp to subdir because otherwise we won't find it if we're
3646   # using a relative directory.
3647   cp "$am_depcomp" conftest.dir
3648   cd conftest.dir
3649   # We will build objects and dependencies in a subdirectory because
3650   # it helps to detect inapplicable dependency modes.  For instance
3651   # both Tru64's cc and ICC support -MD to output dependencies as a
3652   # side effect of compilation, but ICC will put the dependencies in
3653   # the current directory while Tru64 will put them in the object
3654   # directory.
3655   mkdir sub
3656
3657   am_cv_CC_dependencies_compiler_type=none
3658   if test "$am_compiler_list" = ""; then
3659      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3660   fi
3661   for depmode in $am_compiler_list; do
3662     # Setup a source with many dependencies, because some compilers
3663     # like to wrap large dependency lists on column 80 (with \), and
3664     # we should not choose a depcomp mode which is confused by this.
3665     #
3666     # We need to recreate these files for each test, as the compiler may
3667     # overwrite some of them when testing with obscure command lines.
3668     # This happens at least with the AIX C compiler.
3669     : > sub/conftest.c
3670     for i in 1 2 3 4 5 6; do
3671       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673       # Solaris 8's {/usr,}/bin/sh.
3674       touch sub/conftst$i.h
3675     done
3676     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3677
3678     case $depmode in
3679     nosideeffect)
3680       # after this tag, mechanisms are not by side-effect, so they'll
3681       # only be used when explicitly requested
3682       if test "x$enable_dependency_tracking" = xyes; then
3683         continue
3684       else
3685         break
3686       fi
3687       ;;
3688     none) break ;;
3689     esac
3690     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3691     # mode.  It turns out that the SunPro C++ compiler does not properly
3692     # handle `-M -o', and we need to detect this.
3693     if depmode=$depmode \
3694        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3695        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3696        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3697          >/dev/null 2>conftest.err &&
3698        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3699        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3700        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3701       # icc doesn't choke on unknown options, it will just issue warnings
3702       # or remarks (even with -Werror).  So we grep stderr for any message
3703       # that says an option was ignored or not supported.
3704       # When given -MP, icc 7.0 and 7.1 complain thusly:
3705       #   icc: Command line warning: ignoring option '-M'; no argument required
3706       # The diagnosis changed in icc 8.0:
3707       #   icc: Command line remark: option '-MP' not supported
3708       if (grep 'ignoring option' conftest.err ||
3709           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3710         am_cv_CC_dependencies_compiler_type=$depmode
3711         break
3712       fi
3713     fi
3714   done
3715
3716   cd ..
3717   rm -rf conftest.dir
3718 else
3719   am_cv_CC_dependencies_compiler_type=none
3720 fi
3721
3722 fi
3723 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3724 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3725 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3726
3727
3728
3729 if
3730   test "x$enable_dependency_tracking" != xno \
3731   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3732   am__fastdepCC_TRUE=
3733   am__fastdepCC_FALSE='#'
3734 else
3735   am__fastdepCC_TRUE='#'
3736   am__fastdepCC_FALSE=
3737 fi
3738
3739
3740 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3741 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3742 if test "${lt_cv_path_SED+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   # Loop through the user's path and test for sed and gsed.
3746 # Then use that list of sed's as ones to test for truncation.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752   for lt_ac_prog in sed gsed; do
3753     for ac_exec_ext in '' $ac_executable_extensions; do
3754       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3755         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3756       fi
3757     done
3758   done
3759 done
3760 IFS=$as_save_IFS
3761 lt_ac_max=0
3762 lt_ac_count=0
3763 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3764 # along with /bin/sed that truncates output.
3765 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3766   test ! -f $lt_ac_sed && continue
3767   cat /dev/null > conftest.in
3768   lt_ac_count=0
3769   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3770   # Check for GNU sed and select it if it is found.
3771   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3772     lt_cv_path_SED=$lt_ac_sed
3773     break
3774   fi
3775   while true; do
3776     cat conftest.in conftest.in >conftest.tmp
3777     mv conftest.tmp conftest.in
3778     cp conftest.in conftest.nl
3779     echo >>conftest.nl
3780     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3781     cmp -s conftest.out conftest.nl || break
3782     # 10000 chars as input seems more than enough
3783     test $lt_ac_count -gt 10 && break
3784     lt_ac_count=`expr $lt_ac_count + 1`
3785     if test $lt_ac_count -gt $lt_ac_max; then
3786       lt_ac_max=$lt_ac_count
3787       lt_cv_path_SED=$lt_ac_sed
3788     fi
3789   done
3790 done
3791
3792 fi
3793
3794 SED=$lt_cv_path_SED
3795
3796 { echo "$as_me:$LINENO: result: $SED" >&5
3797 echo "${ECHO_T}$SED" >&6; }
3798
3799 # Make sure we can run config.sub.
3800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3801   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3802 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3803    { (exit 1); exit 1; }; }
3804
3805 { echo "$as_me:$LINENO: checking build system type" >&5
3806 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3807 if test "${ac_cv_build+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   ac_build_alias=$build_alias
3811 test "x$ac_build_alias" = x &&
3812   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3813 test "x$ac_build_alias" = x &&
3814   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3815 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3816    { (exit 1); exit 1; }; }
3817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3818   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3819 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3820    { (exit 1); exit 1; }; }
3821
3822 fi
3823 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3824 echo "${ECHO_T}$ac_cv_build" >&6; }
3825 case $ac_cv_build in
3826 *-*-*) ;;
3827 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3828 echo "$as_me: error: invalid value of canonical build" >&2;}
3829    { (exit 1); exit 1; }; };;
3830 esac
3831 build=$ac_cv_build
3832 ac_save_IFS=$IFS; IFS='-'
3833 set x $ac_cv_build
3834 shift
3835 build_cpu=$1
3836 build_vendor=$2
3837 shift; shift
3838 # Remember, the first character of IFS is used to create $*,
3839 # except with old shells:
3840 build_os=$*
3841 IFS=$ac_save_IFS
3842 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3843
3844
3845 { echo "$as_me:$LINENO: checking host system type" >&5
3846 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3847 if test "${ac_cv_host+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if test "x$host_alias" = x; then
3851   ac_cv_host=$ac_cv_build
3852 else
3853   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3854     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3855 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3856    { (exit 1); exit 1; }; }
3857 fi
3858
3859 fi
3860 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3861 echo "${ECHO_T}$ac_cv_host" >&6; }
3862 case $ac_cv_host in
3863 *-*-*) ;;
3864 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3865 echo "$as_me: error: invalid value of canonical host" >&2;}
3866    { (exit 1); exit 1; }; };;
3867 esac
3868 host=$ac_cv_host
3869 ac_save_IFS=$IFS; IFS='-'
3870 set x $ac_cv_host
3871 shift
3872 host_cpu=$1
3873 host_vendor=$2
3874 shift; shift
3875 # Remember, the first character of IFS is used to create $*,
3876 # except with old shells:
3877 host_os=$*
3878 IFS=$ac_save_IFS
3879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3880
3881
3882 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3883 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3884 if test "${ac_cv_path_GREP+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   # Extract the first word of "grep ggrep" to use in msg output
3888 if test -z "$GREP"; then
3889 set dummy grep ggrep; ac_prog_name=$2
3890 if test "${ac_cv_path_GREP+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   ac_path_GREP_found=false
3894 # Loop through the user's path and test for each of PROGNAME-LIST
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for ac_prog in grep ggrep; do
3901   for ac_exec_ext in '' $ac_executable_extensions; do
3902     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3903     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3904     # Check for GNU ac_path_GREP and select it if it is found.
3905   # Check for GNU $ac_path_GREP
3906 case `"$ac_path_GREP" --version 2>&1` in
3907 *GNU*)
3908   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3909 *)
3910   ac_count=0
3911   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3912   while :
3913   do
3914     cat "conftest.in" "conftest.in" >"conftest.tmp"
3915     mv "conftest.tmp" "conftest.in"
3916     cp "conftest.in" "conftest.nl"
3917     echo 'GREP' >> "conftest.nl"
3918     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3919     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3920     ac_count=`expr $ac_count + 1`
3921     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3922       # Best one so far, save it but keep looking for a better one
3923       ac_cv_path_GREP="$ac_path_GREP"
3924       ac_path_GREP_max=$ac_count
3925     fi
3926     # 10*(2^10) chars as input seems more than enough
3927     test $ac_count -gt 10 && break
3928   done
3929   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3930 esac
3931
3932
3933     $ac_path_GREP_found && break 3
3934   done
3935 done
3936
3937 done
3938 IFS=$as_save_IFS
3939
3940
3941 fi
3942
3943 GREP="$ac_cv_path_GREP"
3944 if test -z "$GREP"; then
3945   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3946 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3947    { (exit 1); exit 1; }; }
3948 fi
3949
3950 else
3951   ac_cv_path_GREP=$GREP
3952 fi
3953
3954
3955 fi
3956 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3957 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3958  GREP="$ac_cv_path_GREP"
3959
3960
3961 { echo "$as_me:$LINENO: checking for egrep" >&5
3962 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_EGREP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3967    then ac_cv_path_EGREP="$GREP -E"
3968    else
3969      # Extract the first word of "egrep" to use in msg output
3970 if test -z "$EGREP"; then
3971 set dummy egrep; ac_prog_name=$2
3972 if test "${ac_cv_path_EGREP+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   ac_path_EGREP_found=false
3976 # Loop through the user's path and test for each of PROGNAME-LIST
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 do
3980   IFS=$as_save_IFS
3981   test -z "$as_dir" && as_dir=.
3982   for ac_prog in egrep; do
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3985     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3986     # Check for GNU ac_path_EGREP and select it if it is found.
3987   # Check for GNU $ac_path_EGREP
3988 case `"$ac_path_EGREP" --version 2>&1` in
3989 *GNU*)
3990   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3991 *)
3992   ac_count=0
3993   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994   while :
3995   do
3996     cat "conftest.in" "conftest.in" >"conftest.tmp"
3997     mv "conftest.tmp" "conftest.in"
3998     cp "conftest.in" "conftest.nl"
3999     echo 'EGREP' >> "conftest.nl"
4000     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002     ac_count=`expr $ac_count + 1`
4003     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4004       # Best one so far, save it but keep looking for a better one
4005       ac_cv_path_EGREP="$ac_path_EGREP"
4006       ac_path_EGREP_max=$ac_count
4007     fi
4008     # 10*(2^10) chars as input seems more than enough
4009     test $ac_count -gt 10 && break
4010   done
4011   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 esac
4013
4014
4015     $ac_path_EGREP_found && break 3
4016   done
4017 done
4018
4019 done
4020 IFS=$as_save_IFS
4021
4022
4023 fi
4024
4025 EGREP="$ac_cv_path_EGREP"
4026 if test -z "$EGREP"; then
4027   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4028 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4029    { (exit 1); exit 1; }; }
4030 fi
4031
4032 else
4033   ac_cv_path_EGREP=$EGREP
4034 fi
4035
4036
4037    fi
4038 fi
4039 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4040 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4041  EGREP="$ac_cv_path_EGREP"
4042
4043
4044
4045 # Check whether --with-gnu-ld was given.
4046 if test "${with_gnu_ld+set}" = set; then
4047   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4048 else
4049   with_gnu_ld=no
4050 fi
4051
4052 ac_prog=ld
4053 if test "$GCC" = yes; then
4054   # Check if gcc -print-prog-name=ld gives a path.
4055   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4056 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4057   case $host in
4058   *-*-mingw*)
4059     # gcc leaves a trailing carriage return which upsets mingw
4060     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4061   *)
4062     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4063   esac
4064   case $ac_prog in
4065     # Accept absolute paths.
4066     [\\/]* | ?:[\\/]*)
4067       re_direlt='/[^/][^/]*/\.\./'
4068       # Canonicalize the pathname of ld
4069       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4070       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4071         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4072       done
4073       test -z "$LD" && LD="$ac_prog"
4074       ;;
4075   "")
4076     # If it fails, then pretend we aren't using GCC.
4077     ac_prog=ld
4078     ;;
4079   *)
4080     # If it is relative, then search for the first ld in PATH.
4081     with_gnu_ld=unknown
4082     ;;
4083   esac
4084 elif test "$with_gnu_ld" = yes; then
4085   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4086 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4087 else
4088   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4090 fi
4091 if test "${lt_cv_path_LD+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   if test -z "$LD"; then
4095   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4096   for ac_dir in $PATH; do
4097     IFS="$lt_save_ifs"
4098     test -z "$ac_dir" && ac_dir=.
4099     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4100       lt_cv_path_LD="$ac_dir/$ac_prog"
4101       # Check to see if the program is GNU ld.  I'd rather use --version,
4102       # but apparently some variants of GNU ld only accept -v.
4103       # Break only if it was the GNU/non-GNU ld that we prefer.
4104       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4105       *GNU* | *'with BFD'*)
4106         test "$with_gnu_ld" != no && break
4107         ;;
4108       *)
4109         test "$with_gnu_ld" != yes && break
4110         ;;
4111       esac
4112     fi
4113   done
4114   IFS="$lt_save_ifs"
4115 else
4116   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4117 fi
4118 fi
4119
4120 LD="$lt_cv_path_LD"
4121 if test -n "$LD"; then
4122   { echo "$as_me:$LINENO: result: $LD" >&5
4123 echo "${ECHO_T}$LD" >&6; }
4124 else
4125   { echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6; }
4127 fi
4128 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4129 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4130    { (exit 1); exit 1; }; }
4131 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4132 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4133 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4137 case `$LD -v 2>&1 </dev/null` in
4138 *GNU* | *'with BFD'*)
4139   lt_cv_prog_gnu_ld=yes
4140   ;;
4141 *)
4142   lt_cv_prog_gnu_ld=no
4143   ;;
4144 esac
4145 fi
4146 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4147 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4148 with_gnu_ld=$lt_cv_prog_gnu_ld
4149
4150
4151 # Find a good install program.  We prefer a C program (faster),
4152 # so one script is as good as another.  But avoid the broken or
4153 # incompatible versions:
4154 # SysV /etc/install, /usr/sbin/install
4155 # SunOS /usr/etc/install
4156 # IRIX /sbin/install
4157 # AIX /bin/install
4158 # AmigaOS /C/install, which installs bootblocks on floppy discs
4159 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4160 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4161 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4162 # OS/2's system install, which has a completely different semantic
4163 # ./install, which can be erroneously created by make from ./install.sh.
4164 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4165 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4166 if test -z "$INSTALL"; then
4167 if test "${ac_cv_path_install+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   # Account for people who put trailing slashes in PATH elements.
4176 case $as_dir/ in
4177   ./ | .// | /cC/* | \
4178   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4179   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4180   /usr/ucb/* ) ;;
4181   *)
4182     # OSF1 and SCO ODT 3.0 have their own names for install.
4183     # Don't use installbsd from OSF since it installs stuff as root
4184     # by default.
4185     for ac_prog in ginstall scoinst install; do
4186       for ac_exec_ext in '' $ac_executable_extensions; do
4187         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4188           if test $ac_prog = install &&
4189             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4190             # AIX install.  It has an incompatible calling convention.
4191             :
4192           elif test $ac_prog = install &&
4193             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4194             # program-specific install script used by HP pwplus--don't use.
4195             :
4196           else
4197             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4198             break 3
4199           fi
4200         fi
4201       done
4202     done
4203     ;;
4204 esac
4205 done
4206 IFS=$as_save_IFS
4207
4208
4209 fi
4210   if test "${ac_cv_path_install+set}" = set; then
4211     INSTALL=$ac_cv_path_install
4212   else
4213     # As a last resort, use the slow shell script.  Don't cache a
4214     # value for INSTALL within a source directory, because that will
4215     # break other packages using the cache if that directory is
4216     # removed, or if the value is a relative name.
4217     INSTALL=$ac_install_sh
4218   fi
4219 fi
4220 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4221 echo "${ECHO_T}$INSTALL" >&6; }
4222
4223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4224 # It thinks the first close brace ends the variable substitution.
4225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4226
4227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4228
4229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4230
4231 # Check whether --enable-shared was given.
4232 if test "${enable_shared+set}" = set; then
4233   enableval=$enable_shared; p=${PACKAGE-default}
4234     case $enableval in
4235     yes) enable_shared=yes ;;
4236     no) enable_shared=no ;;
4237     *)
4238       enable_shared=no
4239       # Look at the argument we got.  We use all the common list separators.
4240       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4241       for pkg in $enableval; do
4242         IFS="$lt_save_ifs"
4243         if test "X$pkg" = "X$p"; then
4244           enable_shared=yes
4245         fi
4246       done
4247       IFS="$lt_save_ifs"
4248       ;;
4249     esac
4250 else
4251   enable_shared=yes
4252 fi
4253
4254
4255 # Check whether --enable-static was given.
4256 if test "${enable_static+set}" = set; then
4257   enableval=$enable_static; p=${PACKAGE-default}
4258     case $enableval in
4259     yes) enable_static=yes ;;
4260     no) enable_static=no ;;
4261     *)
4262      enable_static=no
4263       # Look at the argument we got.  We use all the common list separators.
4264       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4265       for pkg in $enableval; do
4266         IFS="$lt_save_ifs"
4267         if test "X$pkg" = "X$p"; then
4268           enable_static=yes
4269         fi
4270       done
4271       IFS="$lt_save_ifs"
4272       ;;
4273     esac
4274 else
4275   enable_static=yes
4276 fi
4277
4278
4279 # Check whether --enable-fast-install was given.
4280 if test "${enable_fast_install+set}" = set; then
4281   enableval=$enable_fast_install; p=${PACKAGE-default}
4282     case $enableval in
4283     yes) enable_fast_install=yes ;;
4284     no) enable_fast_install=no ;;
4285     *)
4286       enable_fast_install=no
4287       # Look at the argument we got.  We use all the common list separators.
4288       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4289       for pkg in $enableval; do
4290         IFS="$lt_save_ifs"
4291         if test "X$pkg" = "X$p"; then
4292           enable_fast_install=yes
4293         fi
4294       done
4295       IFS="$lt_save_ifs"
4296       ;;
4297     esac
4298 else
4299   enable_fast_install=yes
4300 fi
4301
4302
4303 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4304 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4305 if test "${lt_cv_ld_reload_flag+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   lt_cv_ld_reload_flag='-r'
4309 fi
4310 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4311 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4312 reload_flag=$lt_cv_ld_reload_flag
4313 case $reload_flag in
4314 "" | " "*) ;;
4315 *) reload_flag=" $reload_flag" ;;
4316 esac
4317 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4318 case $host_os in
4319   darwin*)
4320     if test "$GCC" = yes; then
4321       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4322     else
4323       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4324     fi
4325     ;;
4326 esac
4327
4328 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4329 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4330 if test "${lt_cv_path_NM+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   if test -n "$NM"; then
4334   # Let the user override the test.
4335   lt_cv_path_NM="$NM"
4336 else
4337   lt_nm_to_check="${ac_tool_prefix}nm"
4338   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4339     lt_nm_to_check="$lt_nm_to_check nm"
4340   fi
4341   for lt_tmp_nm in $lt_nm_to_check; do
4342     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4343     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4344       IFS="$lt_save_ifs"
4345       test -z "$ac_dir" && ac_dir=.
4346       tmp_nm="$ac_dir/$lt_tmp_nm"
4347       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4348         # Check to see if the nm accepts a BSD-compat flag.
4349         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4350         #   nm: unknown option "B" ignored
4351         # Tru64's nm complains that /dev/null is an invalid object file
4352         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4353         */dev/null* | *'Invalid file or object type'*)
4354           lt_cv_path_NM="$tmp_nm -B"
4355           break
4356           ;;
4357         *)
4358           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4359           */dev/null*)
4360             lt_cv_path_NM="$tmp_nm -p"
4361             break
4362             ;;
4363           *)
4364             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4365             continue # so that we can try to find one that supports BSD flags
4366             ;;
4367           esac
4368           ;;
4369         esac
4370       fi
4371     done
4372     IFS="$lt_save_ifs"
4373   done
4374   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4375 fi
4376 fi
4377 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4378 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4379 NM="$lt_cv_path_NM"
4380
4381 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4383 LN_S=$as_ln_s
4384 if test "$LN_S" = "ln -s"; then
4385   { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4387 else
4388   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4389 echo "${ECHO_T}no, using $LN_S" >&6; }
4390 fi
4391
4392 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4393 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4394 if test "${lt_cv_deplibs_check_method+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   lt_cv_file_magic_cmd='$MAGIC_CMD'
4398 lt_cv_file_magic_test_file=
4399 lt_cv_deplibs_check_method='unknown'
4400 # Need to set the preceding variable on all platforms that support
4401 # interlibrary dependencies.
4402 # 'none' -- dependencies not supported.
4403 # `unknown' -- same as none, but documents that we really don't know.
4404 # 'pass_all' -- all dependencies passed with no checks.
4405 # 'test_compile' -- check by making test program.
4406 # 'file_magic [[regex]]' -- check by looking for files in library path
4407 # which responds to the $file_magic_cmd with a given extended regex.
4408 # If you have `file' or equivalent on your system and you're not sure
4409 # whether `pass_all' will *always* work, you probably want this one.
4410
4411 case $host_os in
4412 aix[4-9]*)
4413   lt_cv_deplibs_check_method=pass_all
4414   ;;
4415
4416 beos*)
4417   lt_cv_deplibs_check_method=pass_all
4418   ;;
4419
4420 bsdi[45]*)
4421   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4422   lt_cv_file_magic_cmd='/usr/bin/file -L'
4423   lt_cv_file_magic_test_file=/shlib/libc.so
4424   ;;
4425
4426 cygwin*)
4427   # func_win32_libid is a shell function defined in ltmain.sh
4428   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4429   lt_cv_file_magic_cmd='func_win32_libid'
4430   ;;
4431
4432 mingw* | pw32*)
4433   # Base MSYS/MinGW do not provide the 'file' command needed by
4434   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4435   # unless we find 'file', for example because we are cross-compiling.
4436   if ( file / ) >/dev/null 2>&1; then
4437     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4438     lt_cv_file_magic_cmd='func_win32_libid'
4439   else
4440     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4441     lt_cv_file_magic_cmd='$OBJDUMP -f'
4442   fi
4443   ;;
4444
4445 darwin* | rhapsody*)
4446   lt_cv_deplibs_check_method=pass_all
4447   ;;
4448
4449 freebsd* | dragonfly*)
4450   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4451     case $host_cpu in
4452     i*86 )
4453       # Not sure whether the presence of OpenBSD here was a mistake.
4454       # Let's accept both of them until this is cleared up.
4455       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4456       lt_cv_file_magic_cmd=/usr/bin/file
4457       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4458       ;;
4459     esac
4460   else
4461     lt_cv_deplibs_check_method=pass_all
4462   fi
4463   ;;
4464
4465 gnu*)
4466   lt_cv_deplibs_check_method=pass_all
4467   ;;
4468
4469 hpux10.20* | hpux11*)
4470   lt_cv_file_magic_cmd=/usr/bin/file
4471   case $host_cpu in
4472   ia64*)
4473     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4474     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4475     ;;
4476   hppa*64*)
4477     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]'
4478     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4479     ;;
4480   *)
4481     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4482     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4483     ;;
4484   esac
4485   ;;
4486
4487 interix[3-9]*)
4488   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4489   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4490   ;;
4491
4492 irix5* | irix6* | nonstopux*)
4493   case $LD in
4494   *-32|*"-32 ") libmagic=32-bit;;
4495   *-n32|*"-n32 ") libmagic=N32;;
4496   *-64|*"-64 ") libmagic=64-bit;;
4497   *) libmagic=never-match;;
4498   esac
4499   lt_cv_deplibs_check_method=pass_all
4500   ;;
4501
4502 # This must be Linux ELF.
4503 linux* | k*bsd*-gnu)
4504   lt_cv_deplibs_check_method=pass_all
4505   ;;
4506
4507 netbsd*)
4508   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4509     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4510   else
4511     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4512   fi
4513   ;;
4514
4515 newos6*)
4516   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4517   lt_cv_file_magic_cmd=/usr/bin/file
4518   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4519   ;;
4520
4521 nto-qnx*)
4522   lt_cv_deplibs_check_method=unknown
4523   ;;
4524
4525 openbsd*)
4526   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4527     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4528   else
4529     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4530   fi
4531   ;;
4532
4533 osf3* | osf4* | osf5*)
4534   lt_cv_deplibs_check_method=pass_all
4535   ;;
4536
4537 rdos*)
4538   lt_cv_deplibs_check_method=pass_all
4539   ;;
4540
4541 solaris*)
4542   lt_cv_deplibs_check_method=pass_all
4543   ;;
4544
4545 sysv4 | sysv4.3*)
4546   case $host_vendor in
4547   motorola)
4548     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]'
4549     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4550     ;;
4551   ncr)
4552     lt_cv_deplibs_check_method=pass_all
4553     ;;
4554   sequent)
4555     lt_cv_file_magic_cmd='/bin/file'
4556     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4557     ;;
4558   sni)
4559     lt_cv_file_magic_cmd='/bin/file'
4560     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4561     lt_cv_file_magic_test_file=/lib/libc.so
4562     ;;
4563   siemens)
4564     lt_cv_deplibs_check_method=pass_all
4565     ;;
4566   pc)
4567     lt_cv_deplibs_check_method=pass_all
4568     ;;
4569   esac
4570   ;;
4571
4572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4573   lt_cv_deplibs_check_method=pass_all
4574   ;;
4575 esac
4576
4577 fi
4578 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4579 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4580 file_magic_cmd=$lt_cv_file_magic_cmd
4581 deplibs_check_method=$lt_cv_deplibs_check_method
4582 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4583
4584
4585
4586
4587 # If no C compiler was specified, use CC.
4588 LTCC=${LTCC-"$CC"}
4589
4590 # If no C compiler flags were specified, use CFLAGS.
4591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4592
4593 # Allow CC to be a program name with arguments.
4594 compiler=$CC
4595
4596
4597 # Check whether --enable-libtool-lock was given.
4598 if test "${enable_libtool_lock+set}" = set; then
4599   enableval=$enable_libtool_lock;
4600 fi
4601
4602 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4603
4604 # Some flags need to be propagated to the compiler or linker for good
4605 # libtool support.
4606 case $host in
4607 ia64-*-hpux*)
4608   # Find out which ABI we are using.
4609   echo 'int i;' > conftest.$ac_ext
4610   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; then
4615     case `/usr/bin/file conftest.$ac_objext` in
4616     *ELF-32*)
4617       HPUX_IA64_MODE="32"
4618       ;;
4619     *ELF-64*)
4620       HPUX_IA64_MODE="64"
4621       ;;
4622     esac
4623   fi
4624   rm -rf conftest*
4625   ;;
4626 *-*-irix6*)
4627   # Find out which ABI we are using.
4628   echo '#line 4628 "configure"' > conftest.$ac_ext
4629   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630   (eval $ac_compile) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; then
4634    if test "$lt_cv_prog_gnu_ld" = yes; then
4635     case `/usr/bin/file conftest.$ac_objext` in
4636     *32-bit*)
4637       LD="${LD-ld} -melf32bsmip"
4638       ;;
4639     *N32*)
4640       LD="${LD-ld} -melf32bmipn32"
4641       ;;
4642     *64-bit*)
4643       LD="${LD-ld} -melf64bmip"
4644       ;;
4645     esac
4646    else
4647     case `/usr/bin/file conftest.$ac_objext` in
4648     *32-bit*)
4649       LD="${LD-ld} -32"
4650       ;;
4651     *N32*)
4652       LD="${LD-ld} -n32"
4653       ;;
4654     *64-bit*)
4655       LD="${LD-ld} -64"
4656       ;;
4657     esac
4658    fi
4659   fi
4660   rm -rf conftest*
4661   ;;
4662
4663 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4664 s390*-*linux*|sparc*-*linux*)
4665   # Find out which ABI we are using.
4666   echo 'int i;' > conftest.$ac_ext
4667   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668   (eval $ac_compile) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; then
4672     case `/usr/bin/file conftest.o` in
4673     *32-bit*)
4674       case $host in
4675         x86_64-*kfreebsd*-gnu)
4676           LD="${LD-ld} -m elf_i386_fbsd"
4677           ;;
4678         x86_64-*linux*)
4679           LD="${LD-ld} -m elf_i386"
4680           ;;
4681         ppc64-*linux*|powerpc64-*linux*)
4682           LD="${LD-ld} -m elf32ppclinux"
4683           ;;
4684         s390x-*linux*)
4685           LD="${LD-ld} -m elf_s390"
4686           ;;
4687         sparc64-*linux*)
4688           LD="${LD-ld} -m elf32_sparc"
4689           ;;
4690       esac
4691       ;;
4692     *64-bit*)
4693       case $host in
4694         x86_64-*kfreebsd*-gnu)
4695           LD="${LD-ld} -m elf_x86_64_fbsd"
4696           ;;
4697         x86_64-*linux*)
4698           LD="${LD-ld} -m elf_x86_64"
4699           ;;
4700         ppc*-*linux*|powerpc*-*linux*)
4701           LD="${LD-ld} -m elf64ppc"
4702           ;;
4703         s390*-*linux*)
4704           LD="${LD-ld} -m elf64_s390"
4705           ;;
4706         sparc*-*linux*)
4707           LD="${LD-ld} -m elf64_sparc"
4708           ;;
4709       esac
4710       ;;
4711     esac
4712   fi
4713   rm -rf conftest*
4714   ;;
4715
4716 *-*-sco3.2v5*)
4717   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4718   SAVE_CFLAGS="$CFLAGS"
4719   CFLAGS="$CFLAGS -belf"
4720   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4721 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4722 if test "${lt_cv_cc_needs_belf+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731      cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737
4738 int
4739 main ()
4740 {
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_link") 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } && {
4760          test -z "$ac_c_werror_flag" ||
4761          test ! -s conftest.err
4762        } && test -s conftest$ac_exeext &&
4763        $as_test_x conftest$ac_exeext; then
4764   lt_cv_cc_needs_belf=yes
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769         lt_cv_cc_needs_belf=no
4770 fi
4771
4772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4773       conftest$ac_exeext conftest.$ac_ext
4774      ac_ext=c
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779
4780 fi
4781 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4782 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4783   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4784     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4785     CFLAGS="$SAVE_CFLAGS"
4786   fi
4787   ;;
4788 sparc*-*solaris*)
4789   # Find out which ABI we are using.
4790   echo 'int i;' > conftest.$ac_ext
4791   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792   (eval $ac_compile) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; then
4796     case `/usr/bin/file conftest.o` in
4797     *64-bit*)
4798       case $lt_cv_prog_gnu_ld in
4799       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4800       *)
4801         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4802           LD="${LD-ld} -64"
4803         fi
4804         ;;
4805       esac
4806       ;;
4807     esac
4808   fi
4809   rm -rf conftest*
4810   ;;
4811
4812
4813 esac
4814
4815 need_locks="$enable_libtool_lock"
4816
4817
4818 ac_ext=c
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4824 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4825 # On Suns, sometimes $CPP names a directory.
4826 if test -n "$CPP" && test -d "$CPP"; then
4827   CPP=
4828 fi
4829 if test -z "$CPP"; then
4830   if test "${ac_cv_prog_CPP+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833       # Double quotes because CPP needs to be expanded
4834     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4835     do
4836       ac_preproc_ok=false
4837 for ac_c_preproc_warn_flag in '' yes
4838 do
4839   # Use a header file that comes with gcc, so configuring glibc
4840   # with a fresh cross-compiler works.
4841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4842   # <limits.h> exists even on freestanding compilers.
4843   # On the NeXT, cc -E runs the code through the compiler's parser,
4844   # not just through cpp. "Syntax error" is here to catch this case.
4845   cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #ifdef __STDC__
4852 # include <limits.h>
4853 #else
4854 # include <assert.h>
4855 #endif
4856                      Syntax error
4857 _ACEOF
4858 if { (ac_try="$ac_cpp conftest.$ac_ext"
4859 case "(($ac_try" in
4860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861   *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4865   ac_status=$?
4866   grep -v '^ *+' conftest.er1 >conftest.err
4867   rm -f conftest.er1
4868   cat conftest.err >&5
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); } >/dev/null && {
4871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4872          test ! -s conftest.err
4873        }; then
4874   :
4875 else
4876   echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4878
4879   # Broken: fails on valid input.
4880 continue
4881 fi
4882
4883 rm -f conftest.err conftest.$ac_ext
4884
4885   # OK, works on sane cases.  Now check whether nonexistent headers
4886   # can be detected and how.
4887   cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h.  */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if { (ac_try="$ac_cpp conftest.$ac_ext"
4896 case "(($ac_try" in
4897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898   *) ac_try_echo=$ac_try;;
4899 esac
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } >/dev/null && {
4908          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4909          test ! -s conftest.err
4910        }; then
4911   # Broken: success on invalid input.
4912 continue
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917   # Passes both tests.
4918 ac_preproc_ok=:
4919 break
4920 fi
4921
4922 rm -f conftest.err conftest.$ac_ext
4923
4924 done
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then
4928   break
4929 fi
4930
4931     done
4932     ac_cv_prog_CPP=$CPP
4933
4934 fi
4935   CPP=$ac_cv_prog_CPP
4936 else
4937   ac_cv_prog_CPP=$CPP
4938 fi
4939 { echo "$as_me:$LINENO: result: $CPP" >&5
4940 echo "${ECHO_T}$CPP" >&6; }
4941 ac_preproc_ok=false
4942 for ac_c_preproc_warn_flag in '' yes
4943 do
4944   # Use a header file that comes with gcc, so configuring glibc
4945   # with a fresh cross-compiler works.
4946   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947   # <limits.h> exists even on freestanding compilers.
4948   # On the NeXT, cc -E runs the code through the compiler's parser,
4949   # not just through cpp. "Syntax error" is here to catch this case.
4950   cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956 #ifdef __STDC__
4957 # include <limits.h>
4958 #else
4959 # include <assert.h>
4960 #endif
4961                      Syntax error
4962 _ACEOF
4963 if { (ac_try="$ac_cpp conftest.$ac_ext"
4964 case "(($ac_try" in
4965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966   *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4970   ac_status=$?
4971   grep -v '^ *+' conftest.er1 >conftest.err
4972   rm -f conftest.er1
4973   cat conftest.err >&5
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } >/dev/null && {
4976          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4977          test ! -s conftest.err
4978        }; then
4979   :
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984   # Broken: fails on valid input.
4985 continue
4986 fi
4987
4988 rm -f conftest.err conftest.$ac_ext
4989
4990   # OK, works on sane cases.  Now check whether nonexistent headers
4991   # can be detected and how.
4992   cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h.  */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h.  */
4998 #include <ac_nonexistent.h>
4999 _ACEOF
5000 if { (ac_try="$ac_cpp conftest.$ac_ext"
5001 case "(($ac_try" in
5002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003   *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5007   ac_status=$?
5008   grep -v '^ *+' conftest.er1 >conftest.err
5009   rm -f conftest.er1
5010   cat conftest.err >&5
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); } >/dev/null && {
5013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5014          test ! -s conftest.err
5015        }; then
5016   # Broken: success on invalid input.
5017 continue
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022   # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5025 fi
5026
5027 rm -f conftest.err conftest.$ac_ext
5028
5029 done
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then
5033   :
5034 else
5035   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5036 See \`config.log' for more details." >&5
5037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5038 See \`config.log' for more details." >&2;}
5039    { (exit 1); exit 1; }; }
5040 fi
5041
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048
5049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5051 if test "${ac_cv_header_stdc+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <stdlib.h>
5061 #include <stdarg.h>
5062 #include <string.h>
5063 #include <float.h>
5064
5065 int
5066 main ()
5067 {
5068
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5075 case "(($ac_try" in
5076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077   *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080   (eval "$ac_compile") 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } && {
5087          test -z "$ac_c_werror_flag" ||
5088          test ! -s conftest.err
5089        } && test -s conftest.$ac_objext; then
5090   ac_cv_header_stdc=yes
5091 else
5092   echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095         ac_cv_header_stdc=no
5096 fi
5097
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099
5100 if test $ac_cv_header_stdc = yes; then
5101   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5102   cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 #include <string.h>
5109
5110 _ACEOF
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112   $EGREP "memchr" >/dev/null 2>&1; then
5113   :
5114 else
5115   ac_cv_header_stdc=no
5116 fi
5117 rm -f conftest*
5118
5119 fi
5120
5121 if test $ac_cv_header_stdc = yes; then
5122   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #include <stdlib.h>
5130
5131 _ACEOF
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133   $EGREP "free" >/dev/null 2>&1; then
5134   :
5135 else
5136   ac_cv_header_stdc=no
5137 fi
5138 rm -f conftest*
5139
5140 fi
5141
5142 if test $ac_cv_header_stdc = yes; then
5143   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5144   if test "$cross_compiling" = yes; then
5145   :
5146 else
5147   cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 #include <ctype.h>
5154 #include <stdlib.h>
5155 #if ((' ' & 0x0FF) == 0x020)
5156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5158 #else
5159 # define ISLOWER(c) \
5160                    (('a' <= (c) && (c) <= 'i') \
5161                      || ('j' <= (c) && (c) <= 'r') \
5162                      || ('s' <= (c) && (c) <= 'z'))
5163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5164 #endif
5165
5166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5167 int
5168 main ()
5169 {
5170   int i;
5171   for (i = 0; i < 256; i++)
5172     if (XOR (islower (i), ISLOWER (i))
5173         || toupper (i) != TOUPPER (i))
5174       return 2;
5175   return 0;
5176 }
5177 _ACEOF
5178 rm -f conftest$ac_exeext
5179 if { (ac_try="$ac_link"
5180 case "(($ac_try" in
5181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182   *) ac_try_echo=$ac_try;;
5183 esac
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185   (eval "$ac_link") 2>&5
5186   ac_status=$?
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189   { (case "(($ac_try" in
5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191   *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194   (eval "$ac_try") 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; }; then
5198   :
5199 else
5200   echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ( exit $ac_status )
5205 ac_cv_header_stdc=no
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5208 fi
5209
5210
5211 fi
5212 fi
5213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5216
5217 cat >>confdefs.h <<\_ACEOF
5218 #define STDC_HEADERS 1
5219 _ACEOF
5220
5221 fi
5222
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5234                   inttypes.h stdint.h unistd.h
5235 do
5236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 $ac_includes_default
5249
5250 #include <$ac_header>
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5254 case "(($ac_try" in
5255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256   *) ac_try_echo=$ac_try;;
5257 esac
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259   (eval "$ac_compile") 2>conftest.er1
5260   ac_status=$?
5261   grep -v '^ *+' conftest.er1 >conftest.err
5262   rm -f conftest.er1
5263   cat conftest.err >&5
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } && {
5266          test -z "$ac_c_werror_flag" ||
5267          test ! -s conftest.err
5268        } && test -s conftest.$ac_objext; then
5269   eval "$as_ac_Header=yes"
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274         eval "$as_ac_Header=no"
5275 fi
5276
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 fi
5279 ac_res=`eval echo '${'$as_ac_Header'}'`
5280                { echo "$as_me:$LINENO: result: $ac_res" >&5
5281 echo "${ECHO_T}$ac_res" >&6; }
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283   cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5285 _ACEOF
5286
5287 fi
5288
5289 done
5290
5291
5292
5293 for ac_header in dlfcn.h
5294 do
5295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5297   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 fi
5302 ac_res=`eval echo '${'$as_ac_Header'}'`
5303                { echo "$as_me:$LINENO: result: $ac_res" >&5
5304 echo "${ECHO_T}$ac_res" >&6; }
5305 else
5306   # Is the header compilable?
5307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315 $ac_includes_default
5316 #include <$ac_header>
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5320 case "(($ac_try" in
5321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322   *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325   (eval "$ac_compile") 2>conftest.er1
5326   ac_status=$?
5327   grep -v '^ *+' conftest.er1 >conftest.err
5328   rm -f conftest.er1
5329   cat conftest.err >&5
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } && {
5332          test -z "$ac_c_werror_flag" ||
5333          test ! -s conftest.err
5334        } && test -s conftest.$ac_objext; then
5335   ac_header_compiler=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340         ac_header_compiler=no
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5345 echo "${ECHO_T}$ac_header_compiler" >&6; }
5346
5347 # Is the header present?
5348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356 #include <$ac_header>
5357 _ACEOF
5358 if { (ac_try="$ac_cpp conftest.$ac_ext"
5359 case "(($ac_try" in
5360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361   *) ac_try_echo=$ac_try;;
5362 esac
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5365   ac_status=$?
5366   grep -v '^ *+' conftest.er1 >conftest.err
5367   rm -f conftest.er1
5368   cat conftest.err >&5
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } >/dev/null && {
5371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5372          test ! -s conftest.err
5373        }; then
5374   ac_header_preproc=yes
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379   ac_header_preproc=no
5380 fi
5381
5382 rm -f conftest.err conftest.$ac_ext
5383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5384 echo "${ECHO_T}$ac_header_preproc" >&6; }
5385
5386 # So?  What about this header?
5387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5388   yes:no: )
5389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5393     ac_header_preproc=yes
5394     ;;
5395   no:yes:* )
5396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5408     ( cat <<\_ASBOX
5409 ## --------------------------------------------- ##
5410 ## Report this to brenden1@users.sourceforge.net ##
5411 ## --------------------------------------------- ##
5412 _ASBOX
5413      ) | sed "s/^/$as_me: WARNING:     /" >&2
5414     ;;
5415 esac
5416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   eval "$as_ac_Header=\$ac_header_preproc"
5422 fi
5423 ac_res=`eval echo '${'$as_ac_Header'}'`
5424                { echo "$as_me:$LINENO: result: $ac_res" >&5
5425 echo "${ECHO_T}$ac_res" >&6; }
5426
5427 fi
5428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5429   cat >>confdefs.h <<_ACEOF
5430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431 _ACEOF
5432
5433 fi
5434
5435 done
5436
5437 ac_ext=cpp
5438 ac_cpp='$CXXCPP $CPPFLAGS'
5439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5442 if test -z "$CXX"; then
5443   if test -n "$CCC"; then
5444     CXX=$CCC
5445   else
5446     if test -n "$ac_tool_prefix"; then
5447   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5448   do
5449     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5453 if test "${ac_cv_prog_CXX+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456   if test -n "$CXX"; then
5457   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464   for ac_exec_ext in '' $ac_executable_extensions; do
5465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471 done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 CXX=$ac_cv_prog_CXX
5477 if test -n "$CXX"; then
5478   { echo "$as_me:$LINENO: result: $CXX" >&5
5479 echo "${ECHO_T}$CXX" >&6; }
5480 else
5481   { echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6; }
5483 fi
5484
5485
5486     test -n "$CXX" && break
5487   done
5488 fi
5489 if test -z "$CXX"; then
5490   ac_ct_CXX=$CXX
5491   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5492 do
5493   # Extract the first word of "$ac_prog", so it can be a program name with args.
5494 set dummy $ac_prog; ac_word=$2
5495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5497 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   if test -n "$ac_ct_CXX"; then
5501   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508   for ac_exec_ext in '' $ac_executable_extensions; do
5509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510     ac_cv_prog_ac_ct_CXX="$ac_prog"
5511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515 done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5521 if test -n "$ac_ct_CXX"; then
5522   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5523 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5524 else
5525   { echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6; }
5527 fi
5528
5529
5530   test -n "$ac_ct_CXX" && break
5531 done
5532
5533   if test "x$ac_ct_CXX" = x; then
5534     CXX="g++"
5535   else
5536     case $cross_compiling:$ac_tool_warned in
5537 yes:)
5538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5539 whose name does not start with the host triplet.  If you think this
5540 configuration is useful to you, please write to autoconf@gnu.org." >&5
5541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5542 whose name does not start with the host triplet.  If you think this
5543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5544 ac_tool_warned=yes ;;
5545 esac
5546     CXX=$ac_ct_CXX
5547   fi
5548 fi
5549
5550   fi
5551 fi
5552 # Provide some information about the compiler.
5553 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5554 ac_compiler=`set X $ac_compile; echo $2`
5555 { (ac_try="$ac_compiler --version >&5"
5556 case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561   (eval "$ac_compiler --version >&5") 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); }
5565 { (ac_try="$ac_compiler -v >&5"
5566 case "(($ac_try" in
5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568   *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571   (eval "$ac_compiler -v >&5") 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }
5575 { (ac_try="$ac_compiler -V >&5"
5576 case "(($ac_try" in
5577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578   *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581   (eval "$ac_compiler -V >&5") 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }
5585
5586 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5587 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5588 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597
5598 int
5599 main ()
5600 {
5601 #ifndef __GNUC__
5602        choke me
5603 #endif
5604
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (ac_try="$ac_compile"
5611 case "(($ac_try" in
5612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613   *) ac_try_echo=$ac_try;;
5614 esac
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616   (eval "$ac_compile") 2>conftest.er1
5617   ac_status=$?
5618   grep -v '^ *+' conftest.er1 >conftest.err
5619   rm -f conftest.er1
5620   cat conftest.err >&5
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } && {
5623          test -z "$ac_cxx_werror_flag" ||
5624          test ! -s conftest.err
5625        } && test -s conftest.$ac_objext; then
5626   ac_compiler_gnu=yes
5627 else
5628   echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631         ac_compiler_gnu=no
5632 fi
5633
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5636
5637 fi
5638 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5639 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5640 GXX=`test $ac_compiler_gnu = yes && echo yes`
5641 ac_test_CXXFLAGS=${CXXFLAGS+set}
5642 ac_save_CXXFLAGS=$CXXFLAGS
5643 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5644 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5645 if test "${ac_cv_prog_cxx_g+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5649    ac_cxx_werror_flag=yes
5650    ac_cv_prog_cxx_g=no
5651    CXXFLAGS="-g"
5652    cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658
5659 int
5660 main ()
5661 {
5662
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671   *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674   (eval "$ac_compile") 2>conftest.er1
5675   ac_status=$?
5676   grep -v '^ *+' conftest.er1 >conftest.err
5677   rm -f conftest.er1
5678   cat conftest.err >&5
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); } && {
5681          test -z "$ac_cxx_werror_flag" ||
5682          test ! -s conftest.err
5683        } && test -s conftest.$ac_objext; then
5684   ac_cv_prog_cxx_g=yes
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689         CXXFLAGS=""
5690       cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696
5697 int
5698 main ()
5699 {
5700
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (ac_try="$ac_compile"
5707 case "(($ac_try" in
5708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709   *) ac_try_echo=$ac_try;;
5710 esac
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712   (eval "$ac_compile") 2>conftest.er1
5713   ac_status=$?
5714   grep -v '^ *+' conftest.er1 >conftest.err
5715   rm -f conftest.er1
5716   cat conftest.err >&5
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); } && {
5719          test -z "$ac_cxx_werror_flag" ||
5720          test ! -s conftest.err
5721        } && test -s conftest.$ac_objext; then
5722   :
5723 else
5724   echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5728          CXXFLAGS="-g"
5729          cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735
5736 int
5737 main ()
5738 {
5739
5740   ;
5741   return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5746 case "(($ac_try" in
5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748   *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751   (eval "$ac_compile") 2>conftest.er1
5752   ac_status=$?
5753   grep -v '^ *+' conftest.er1 >conftest.err
5754   rm -f conftest.er1
5755   cat conftest.err >&5
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } && {
5758          test -z "$ac_cxx_werror_flag" ||
5759          test ! -s conftest.err
5760        } && test -s conftest.$ac_objext; then
5761   ac_cv_prog_cxx_g=yes
5762 else
5763   echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767 fi
5768
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5777 fi
5778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5779 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5780 if test "$ac_test_CXXFLAGS" = set; then
5781   CXXFLAGS=$ac_save_CXXFLAGS
5782 elif test $ac_cv_prog_cxx_g = yes; then
5783   if test "$GXX" = yes; then
5784     CXXFLAGS="-g -O2"
5785   else
5786     CXXFLAGS="-g"
5787   fi
5788 else
5789   if test "$GXX" = yes; then
5790     CXXFLAGS="-O2"
5791   else
5792     CXXFLAGS=
5793   fi
5794 fi
5795 ac_ext=cpp
5796 ac_cpp='$CXXCPP $CPPFLAGS'
5797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800
5801 depcc="$CXX"  am_compiler_list=
5802
5803 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5804 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5805 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5809   # We make a subdir and do the tests there.  Otherwise we can end up
5810   # making bogus files that we don't know about and never remove.  For
5811   # instance it was reported that on HP-UX the gcc test will end up
5812   # making a dummy file named `D' -- because `-MD' means `put the output
5813   # in D'.
5814   mkdir conftest.dir
5815   # Copy depcomp to subdir because otherwise we won't find it if we're
5816   # using a relative directory.
5817   cp "$am_depcomp" conftest.dir
5818   cd conftest.dir
5819   # We will build objects and dependencies in a subdirectory because
5820   # it helps to detect inapplicable dependency modes.  For instance
5821   # both Tru64's cc and ICC support -MD to output dependencies as a
5822   # side effect of compilation, but ICC will put the dependencies in
5823   # the current directory while Tru64 will put them in the object
5824   # directory.
5825   mkdir sub
5826
5827   am_cv_CXX_dependencies_compiler_type=none
5828   if test "$am_compiler_list" = ""; then
5829      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5830   fi
5831   for depmode in $am_compiler_list; do
5832     # Setup a source with many dependencies, because some compilers
5833     # like to wrap large dependency lists on column 80 (with \), and
5834     # we should not choose a depcomp mode which is confused by this.
5835     #
5836     # We need to recreate these files for each test, as the compiler may
5837     # overwrite some of them when testing with obscure command lines.
5838     # This happens at least with the AIX C compiler.
5839     : > sub/conftest.c
5840     for i in 1 2 3 4 5 6; do
5841       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5842       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5843       # Solaris 8's {/usr,}/bin/sh.
5844       touch sub/conftst$i.h
5845     done
5846     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5847
5848     case $depmode in
5849     nosideeffect)
5850       # after this tag, mechanisms are not by side-effect, so they'll
5851       # only be used when explicitly requested
5852       if test "x$enable_dependency_tracking" = xyes; then
5853         continue
5854       else
5855         break
5856       fi
5857       ;;
5858     none) break ;;
5859     esac
5860     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5861     # mode.  It turns out that the SunPro C++ compiler does not properly
5862     # handle `-M -o', and we need to detect this.
5863     if depmode=$depmode \
5864        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5865        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5866        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5867          >/dev/null 2>conftest.err &&
5868        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5869        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5870        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5871       # icc doesn't choke on unknown options, it will just issue warnings
5872       # or remarks (even with -Werror).  So we grep stderr for any message
5873       # that says an option was ignored or not supported.
5874       # When given -MP, icc 7.0 and 7.1 complain thusly:
5875       #   icc: Command line warning: ignoring option '-M'; no argument required
5876       # The diagnosis changed in icc 8.0:
5877       #   icc: Command line remark: option '-MP' not supported
5878       if (grep 'ignoring option' conftest.err ||
5879           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5880         am_cv_CXX_dependencies_compiler_type=$depmode
5881         break
5882       fi
5883     fi
5884   done
5885
5886   cd ..
5887   rm -rf conftest.dir
5888 else
5889   am_cv_CXX_dependencies_compiler_type=none
5890 fi
5891
5892 fi
5893 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5894 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5895 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5896
5897
5898
5899 if
5900   test "x$enable_dependency_tracking" != xno \
5901   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5902   am__fastdepCXX_TRUE=
5903   am__fastdepCXX_FALSE='#'
5904 else
5905   am__fastdepCXX_TRUE='#'
5906   am__fastdepCXX_FALSE=
5907 fi
5908
5909
5910
5911
5912 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5913     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5914     (test "X$CXX" != "Xg++"))) ; then
5915   ac_ext=cpp
5916 ac_cpp='$CXXCPP $CPPFLAGS'
5917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5921 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5922 if test -z "$CXXCPP"; then
5923   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926       # Double quotes because CXXCPP needs to be expanded
5927     for CXXCPP in "$CXX -E" "/lib/cpp"
5928     do
5929       ac_preproc_ok=false
5930 for ac_cxx_preproc_warn_flag in '' yes
5931 do
5932   # Use a header file that comes with gcc, so configuring glibc
5933   # with a fresh cross-compiler works.
5934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5935   # <limits.h> exists even on freestanding compilers.
5936   # On the NeXT, cc -E runs the code through the compiler's parser,
5937   # not just through cpp. "Syntax error" is here to catch this case.
5938   cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h.  */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h.  */
5944 #ifdef __STDC__
5945 # include <limits.h>
5946 #else
5947 # include <assert.h>
5948 #endif
5949                      Syntax error
5950 _ACEOF
5951 if { (ac_try="$ac_cpp conftest.$ac_ext"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } >/dev/null && {
5964          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5965          test ! -s conftest.err
5966        }; then
5967   :
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972   # Broken: fails on valid input.
5973 continue
5974 fi
5975
5976 rm -f conftest.err conftest.$ac_ext
5977
5978   # OK, works on sane cases.  Now check whether nonexistent headers
5979   # can be detected and how.
5980   cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h.  */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h.  */
5986 #include <ac_nonexistent.h>
5987 _ACEOF
5988 if { (ac_try="$ac_cpp conftest.$ac_ext"
5989 case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5995   ac_status=$?
5996   grep -v '^ *+' conftest.er1 >conftest.err
5997   rm -f conftest.er1
5998   cat conftest.err >&5
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } >/dev/null && {
6001          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6002          test ! -s conftest.err
6003        }; then
6004   # Broken: success on invalid input.
6005 continue
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010   # Passes both tests.
6011 ac_preproc_ok=:
6012 break
6013 fi
6014
6015 rm -f conftest.err conftest.$ac_ext
6016
6017 done
6018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6019 rm -f conftest.err conftest.$ac_ext
6020 if $ac_preproc_ok; then
6021   break
6022 fi
6023
6024     done
6025     ac_cv_prog_CXXCPP=$CXXCPP
6026
6027 fi
6028   CXXCPP=$ac_cv_prog_CXXCPP
6029 else
6030   ac_cv_prog_CXXCPP=$CXXCPP
6031 fi
6032 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6033 echo "${ECHO_T}$CXXCPP" >&6; }
6034 ac_preproc_ok=false
6035 for ac_cxx_preproc_warn_flag in '' yes
6036 do
6037   # Use a header file that comes with gcc, so configuring glibc
6038   # with a fresh cross-compiler works.
6039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040   # <limits.h> exists even on freestanding compilers.
6041   # On the NeXT, cc -E runs the code through the compiler's parser,
6042   # not just through cpp. "Syntax error" is here to catch this case.
6043   cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h.  */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h.  */
6049 #ifdef __STDC__
6050 # include <limits.h>
6051 #else
6052 # include <assert.h>
6053 #endif
6054                      Syntax error
6055 _ACEOF
6056 if { (ac_try="$ac_cpp conftest.$ac_ext"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } >/dev/null && {
6069          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6070          test ! -s conftest.err
6071        }; then
6072   :
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077   # Broken: fails on valid input.
6078 continue
6079 fi
6080
6081 rm -f conftest.err conftest.$ac_ext
6082
6083   # OK, works on sane cases.  Now check whether nonexistent headers
6084   # can be detected and how.
6085   cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h.  */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h.  */
6091 #include <ac_nonexistent.h>
6092 _ACEOF
6093 if { (ac_try="$ac_cpp conftest.$ac_ext"
6094 case "(($ac_try" in
6095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096   *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6100   ac_status=$?
6101   grep -v '^ *+' conftest.er1 >conftest.err
6102   rm -f conftest.er1
6103   cat conftest.err >&5
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); } >/dev/null && {
6106          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6107          test ! -s conftest.err
6108        }; then
6109   # Broken: success on invalid input.
6110 continue
6111 else
6112   echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115   # Passes both tests.
6116 ac_preproc_ok=:
6117 break
6118 fi
6119
6120 rm -f conftest.err conftest.$ac_ext
6121
6122 done
6123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6124 rm -f conftest.err conftest.$ac_ext
6125 if $ac_preproc_ok; then
6126   :
6127 else
6128   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6129 See \`config.log' for more details." >&5
6130 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6131 See \`config.log' for more details." >&2;}
6132    { (exit 1); exit 1; }; }
6133 fi
6134
6135 ac_ext=cpp
6136 ac_cpp='$CXXCPP $CPPFLAGS'
6137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6140
6141 fi
6142
6143
6144 ac_ext=f
6145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6148 if test -n "$ac_tool_prefix"; then
6149   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
6150   do
6151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_F77+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   if test -n "$F77"; then
6159   ac_cv_prog_F77="$F77" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 F77=$ac_cv_prog_F77
6179 if test -n "$F77"; then
6180   { echo "$as_me:$LINENO: result: $F77" >&5
6181 echo "${ECHO_T}$F77" >&6; }
6182 else
6183   { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187
6188     test -n "$F77" && break
6189   done
6190 fi
6191 if test -z "$F77"; then
6192   ac_ct_F77=$F77
6193   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
6194 do
6195   # Extract the first word of "$ac_prog", so it can be a program name with args.
6196 set dummy $ac_prog; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   if test -n "$ac_ct_F77"; then
6203   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210   for ac_exec_ext in '' $ac_executable_extensions; do
6211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212     ac_cv_prog_ac_ct_F77="$ac_prog"
6213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214     break 2
6215   fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6223 if test -n "$ac_ct_F77"; then
6224   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6225 echo "${ECHO_T}$ac_ct_F77" >&6; }
6226 else
6227   { echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6; }
6229 fi
6230
6231
6232   test -n "$ac_ct_F77" && break
6233 done
6234
6235   if test "x$ac_ct_F77" = x; then
6236     F77=""
6237   else
6238     case $cross_compiling:$ac_tool_warned in
6239 yes:)
6240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6241 whose name does not start with the host triplet.  If you think this
6242 configuration is useful to you, please write to autoconf@gnu.org." >&5
6243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6244 whose name does not start with the host triplet.  If you think this
6245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248     F77=$ac_ct_F77
6249   fi
6250 fi
6251
6252
6253 # Provide some information about the compiler.
6254 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6255 ac_compiler=`set X $ac_compile; echo $2`
6256 { (ac_try="$ac_compiler --version >&5"
6257 case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_compiler --version >&5") 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }
6266 { (ac_try="$ac_compiler -v >&5"
6267 case "(($ac_try" in
6268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269   *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272   (eval "$ac_compiler -v >&5") 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }
6276 { (ac_try="$ac_compiler -V >&5"
6277 case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_compiler -V >&5") 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }
6286 rm -f a.out
6287
6288 # If we don't use `.F' as extension, the preprocessor is not run on the
6289 # input file.  (Note that this only needs to work for GNU compilers.)
6290 ac_save_ext=$ac_ext
6291 ac_ext=F
6292 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6293 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6294 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6295   echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297   cat >conftest.$ac_ext <<_ACEOF
6298       program main
6299 #ifndef __GNUC__
6300        choke me
6301 #endif
6302
6303       end
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309   *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312   (eval "$ac_compile") 2>conftest.er1
6313   ac_status=$?
6314   grep -v '^ *+' conftest.er1 >conftest.err
6315   rm -f conftest.er1
6316   cat conftest.err >&5
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } && {
6319          test -z "$ac_f77_werror_flag" ||
6320          test ! -s conftest.err
6321        } && test -s conftest.$ac_objext; then
6322   ac_compiler_gnu=yes
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327         ac_compiler_gnu=no
6328 fi
6329
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6332
6333 fi
6334 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6335 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6336 ac_ext=$ac_save_ext
6337 ac_test_FFLAGS=${FFLAGS+set}
6338 ac_save_FFLAGS=$FFLAGS
6339 FFLAGS=
6340 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6341 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6342 if test "${ac_cv_prog_f77_g+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   FFLAGS=-g
6346 cat >conftest.$ac_ext <<_ACEOF
6347       program main
6348
6349       end
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355   *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358   (eval "$ac_compile") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } && {
6365          test -z "$ac_f77_werror_flag" ||
6366          test ! -s conftest.err
6367        } && test -s conftest.$ac_objext; then
6368   ac_cv_prog_f77_g=yes
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373         ac_cv_prog_f77_g=no
6374 fi
6375
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377
6378 fi
6379 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6380 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6381 if test "$ac_test_FFLAGS" = set; then
6382   FFLAGS=$ac_save_FFLAGS
6383 elif test $ac_cv_prog_f77_g = yes; then
6384   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6385     FFLAGS="-g -O2"
6386   else
6387     FFLAGS="-g"
6388   fi
6389 else
6390   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6391     FFLAGS="-O2"
6392   else
6393     FFLAGS=
6394   fi
6395 fi
6396
6397 G77=`test $ac_compiler_gnu = yes && echo yes`
6398 ac_ext=c
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403
6404
6405
6406 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6407 # find the maximum length of command line arguments
6408 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6409 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6410 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413     i=0
6414   teststring="ABCD"
6415
6416   case $build_os in
6417   msdosdjgpp*)
6418     # On DJGPP, this test can blow up pretty badly due to problems in libc
6419     # (any single argument exceeding 2000 bytes causes a buffer overrun
6420     # during glob expansion).  Even if it were fixed, the result of this
6421     # check would be larger than it should be.
6422     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6423     ;;
6424
6425   gnu*)
6426     # Under GNU Hurd, this test is not required because there is
6427     # no limit to the length of command line arguments.
6428     # Libtool will interpret -1 as no limit whatsoever
6429     lt_cv_sys_max_cmd_len=-1;
6430     ;;
6431
6432   cygwin* | mingw*)
6433     # On Win9x/ME, this test blows up -- it succeeds, but takes
6434     # about 5 minutes as the teststring grows exponentially.
6435     # Worse, since 9x/ME are not pre-emptively multitasking,
6436     # you end up with a "frozen" computer, even though with patience
6437     # the test eventually succeeds (with a max line length of 256k).
6438     # Instead, let's just punt: use the minimum linelength reported by
6439     # all of the supported platforms: 8192 (on NT/2K/XP).
6440     lt_cv_sys_max_cmd_len=8192;
6441     ;;
6442
6443   amigaos*)
6444     # On AmigaOS with pdksh, this test takes hours, literally.
6445     # So we just punt and use a minimum line length of 8192.
6446     lt_cv_sys_max_cmd_len=8192;
6447     ;;
6448
6449   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6450     # This has been around since 386BSD, at least.  Likely further.
6451     if test -x /sbin/sysctl; then
6452       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6453     elif test -x /usr/sbin/sysctl; then
6454       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6455     else
6456       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6457     fi
6458     # And add a safety zone
6459     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6460     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6461     ;;
6462
6463   interix*)
6464     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6465     lt_cv_sys_max_cmd_len=196608
6466     ;;
6467
6468   osf*)
6469     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6470     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6471     # nice to cause kernel panics so lets avoid the loop below.
6472     # First set a reasonable default.
6473     lt_cv_sys_max_cmd_len=16384
6474     #
6475     if test -x /sbin/sysconfig; then
6476       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6477         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6478       esac
6479     fi
6480     ;;
6481   sco3.2v5*)
6482     lt_cv_sys_max_cmd_len=102400
6483     ;;
6484   sysv5* | sco5v6* | sysv4.2uw2*)
6485     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6486     if test -n "$kargmax"; then
6487       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6488     else
6489       lt_cv_sys_max_cmd_len=32768
6490     fi
6491     ;;
6492   *)
6493     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6494     if test -n "$lt_cv_sys_max_cmd_len"; then
6495       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6496       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6497     else
6498       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6499       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6500                = "XX$teststring") >/dev/null 2>&1 &&
6501               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6502               lt_cv_sys_max_cmd_len=$new_result &&
6503               test $i != 17 # 1/2 MB should be enough
6504       do
6505         i=`expr $i + 1`
6506         teststring=$teststring$teststring
6507       done
6508       teststring=
6509       # Add a significant safety factor because C++ compilers can tack on massive
6510       # amounts of additional arguments before passing them to the linker.
6511       # It appears as though 1/2 is a usable value.
6512       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6513     fi
6514     ;;
6515   esac
6516
6517 fi
6518
6519 if test -n $lt_cv_sys_max_cmd_len ; then
6520   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6521 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6522 else
6523   { echo "$as_me:$LINENO: result: none" >&5
6524 echo "${ECHO_T}none" >&6; }
6525 fi
6526
6527
6528
6529
6530
6531 # Check for command to grab the raw symbol name followed by C symbol from nm.
6532 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6533 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6534 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537
6538 # These are sane defaults that work on at least a few old systems.
6539 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6540
6541 # Character class describing NM global symbol codes.
6542 symcode='[BCDEGRST]'
6543
6544 # Regexp to match symbols that can be accessed directly from C.
6545 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6546
6547 # Transform an extracted symbol line into a proper C declaration
6548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6549
6550 # Transform an extracted symbol line into symbol name and symbol address
6551 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6552
6553 # Define system-specific variables.
6554 case $host_os in
6555 aix*)
6556   symcode='[BCDT]'
6557   ;;
6558 cygwin* | mingw* | pw32*)
6559   symcode='[ABCDGISTW]'
6560   ;;
6561 hpux*) # Its linker distinguishes data from code symbols
6562   if test "$host_cpu" = ia64; then
6563     symcode='[ABCDEGRST]'
6564   fi
6565   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6566   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6567   ;;
6568 linux* | k*bsd*-gnu)
6569   if test "$host_cpu" = ia64; then
6570     symcode='[ABCDGIRSTW]'
6571     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6572     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6573   fi
6574   ;;
6575 irix* | nonstopux*)
6576   symcode='[BCDEGRST]'
6577   ;;
6578 osf*)
6579   symcode='[BCDEGQRST]'
6580   ;;
6581 solaris*)
6582   symcode='[BDRT]'
6583   ;;
6584 sco3.2v5*)
6585   symcode='[DT]'
6586   ;;
6587 sysv4.2uw2*)
6588   symcode='[DT]'
6589   ;;
6590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6591   symcode='[ABDT]'
6592   ;;
6593 sysv4)
6594   symcode='[DFNSTU]'
6595   ;;
6596 esac
6597
6598 # Handle CRLF in mingw tool chain
6599 opt_cr=
6600 case $build_os in
6601 mingw*)
6602   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6603   ;;
6604 esac
6605
6606 # If we're using GNU nm, then use its standard symbol codes.
6607 case `$NM -V 2>&1` in
6608 *GNU* | *'with BFD'*)
6609   symcode='[ABCDGIRSTW]' ;;
6610 esac
6611
6612 # Try without a prefix undercore, then with it.
6613 for ac_symprfx in "" "_"; do
6614
6615   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6616   symxfrm="\\1 $ac_symprfx\\2 \\2"
6617
6618   # Write the raw and C identifiers.
6619   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6620
6621   # Check to see that the pipe works correctly.
6622   pipe_works=no
6623
6624   rm -f conftest*
6625   cat > conftest.$ac_ext <<EOF
6626 #ifdef __cplusplus
6627 extern "C" {
6628 #endif
6629 char nm_test_var;
6630 void nm_test_func(){}
6631 #ifdef __cplusplus
6632 }
6633 #endif
6634 int main(){nm_test_var='a';nm_test_func();return(0);}
6635 EOF
6636
6637   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638   (eval $ac_compile) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; then
6642     # Now try to grab the symbols.
6643     nlist=conftest.nm
6644     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6645   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } && test -s "$nlist"; then
6649       # Try sorting and uniquifying the output.
6650       if sort "$nlist" | uniq > "$nlist"T; then
6651         mv -f "$nlist"T "$nlist"
6652       else
6653         rm -f "$nlist"T
6654       fi
6655
6656       # Make sure that we snagged all the symbols we need.
6657       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6658         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6659           cat <<EOF > conftest.$ac_ext
6660 #ifdef __cplusplus
6661 extern "C" {
6662 #endif
6663
6664 EOF
6665           # Now generate the symbol file.
6666           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6667
6668           cat <<EOF >> conftest.$ac_ext
6669 #if defined (__STDC__) && __STDC__
6670 # define lt_ptr_t void *
6671 #else
6672 # define lt_ptr_t char *
6673 # define const
6674 #endif
6675
6676 /* The mapping between symbol names and symbols. */
6677 const struct {
6678   const char *name;
6679   lt_ptr_t address;
6680 }
6681 lt_preloaded_symbols[] =
6682 {
6683 EOF
6684           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6685           cat <<\EOF >> conftest.$ac_ext
6686   {0, (lt_ptr_t) 0}
6687 };
6688
6689 #ifdef __cplusplus
6690 }
6691 #endif
6692 EOF
6693           # Now try linking the two files.
6694           mv conftest.$ac_objext conftstm.$ac_objext
6695           lt_save_LIBS="$LIBS"
6696           lt_save_CFLAGS="$CFLAGS"
6697           LIBS="conftstm.$ac_objext"
6698           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6699           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700   (eval $ac_link) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6704             pipe_works=yes
6705           fi
6706           LIBS="$lt_save_LIBS"
6707           CFLAGS="$lt_save_CFLAGS"
6708         else
6709           echo "cannot find nm_test_func in $nlist" >&5
6710         fi
6711       else
6712         echo "cannot find nm_test_var in $nlist" >&5
6713       fi
6714     else
6715       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6716     fi
6717   else
6718     echo "$progname: failed program was:" >&5
6719     cat conftest.$ac_ext >&5
6720   fi
6721   rm -rf conftest* conftst*
6722
6723   # Do not use the global_symbol_pipe unless it works.
6724   if test "$pipe_works" = yes; then
6725     break
6726   else
6727     lt_cv_sys_global_symbol_pipe=
6728   fi
6729 done
6730
6731 fi
6732
6733 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6734   lt_cv_sys_global_symbol_to_cdecl=
6735 fi
6736 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6737   { echo "$as_me:$LINENO: result: failed" >&5
6738 echo "${ECHO_T}failed" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: ok" >&5
6741 echo "${ECHO_T}ok" >&6; }
6742 fi
6743
6744 { echo "$as_me:$LINENO: checking for objdir" >&5
6745 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6746 if test "${lt_cv_objdir+set}" = set; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749   rm -f .libs 2>/dev/null
6750 mkdir .libs 2>/dev/null
6751 if test -d .libs; then
6752   lt_cv_objdir=.libs
6753 else
6754   # MS-DOS does not allow filenames that begin with a dot.
6755   lt_cv_objdir=_libs
6756 fi
6757 rmdir .libs 2>/dev/null
6758 fi
6759 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6760 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6761 objdir=$lt_cv_objdir
6762
6763
6764
6765
6766
6767 case $host_os in
6768 aix3*)
6769   # AIX sometimes has problems with the GCC collect2 program.  For some
6770   # reason, if we set the COLLECT_NAMES environment variable, the problems
6771   # vanish in a puff of smoke.
6772   if test "X${COLLECT_NAMES+set}" != Xset; then
6773     COLLECT_NAMES=
6774     export COLLECT_NAMES
6775   fi
6776   ;;
6777 esac
6778
6779 # Sed substitution that helps us do robust quoting.  It backslashifies
6780 # metacharacters that are still active within double-quoted strings.
6781 Xsed='sed -e 1s/^X//'
6782 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6783
6784 # Same as above, but do not quote variable references.
6785 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6786
6787 # Sed substitution to delay expansion of an escaped shell variable in a
6788 # double_quote_subst'ed string.
6789 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6790
6791 # Sed substitution to avoid accidental globbing in evaled expressions
6792 no_glob_subst='s/\*/\\\*/g'
6793
6794 # Constants:
6795 rm="rm -f"
6796
6797 # Global variables:
6798 default_ofile=libtool
6799 can_build_shared=yes
6800
6801 # All known linkers require a `.a' archive for static linking (except MSVC,
6802 # which needs '.lib').
6803 libext=a
6804 ltmain="$ac_aux_dir/ltmain.sh"
6805 ofile="$default_ofile"
6806 with_gnu_ld="$lt_cv_prog_gnu_ld"
6807
6808 if test -n "$ac_tool_prefix"; then
6809   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}ar; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_AR+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   if test -n "$AR"; then
6817   ac_cv_prog_AR="$AR" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_AR="${ac_tool_prefix}ar"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 AR=$ac_cv_prog_AR
6837 if test -n "$AR"; then
6838   { echo "$as_me:$LINENO: result: $AR" >&5
6839 echo "${ECHO_T}$AR" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_AR"; then
6848   ac_ct_AR=$AR
6849   # Extract the first word of "ar", so it can be a program name with args.
6850 set dummy ar; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   if test -n "$ac_ct_AR"; then
6857   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_prog_ac_ct_AR="ar"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6877 if test -n "$ac_ct_AR"; then
6878   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6879 echo "${ECHO_T}$ac_ct_AR" >&6; }
6880 else
6881   { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6883 fi
6884
6885   if test "x$ac_ct_AR" = x; then
6886     AR="false"
6887   else
6888     case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6891 whose name does not start with the host triplet.  If you think this
6892 configuration is useful to you, please write to autoconf@gnu.org." >&5
6893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet.  If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898     AR=$ac_ct_AR
6899   fi
6900 else
6901   AR="$ac_cv_prog_AR"
6902 fi
6903
6904 if test -n "$ac_tool_prefix"; then
6905   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_prog_RANLIB+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   if test -n "$RANLIB"; then
6913   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920   for ac_exec_ext in '' $ac_executable_extensions; do
6921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 RANLIB=$ac_cv_prog_RANLIB
6933 if test -n "$RANLIB"; then
6934   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6935 echo "${ECHO_T}$RANLIB" >&6; }
6936 else
6937   { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6939 fi
6940
6941
6942 fi
6943 if test -z "$ac_cv_prog_RANLIB"; then
6944   ac_ct_RANLIB=$RANLIB
6945   # Extract the first word of "ranlib", so it can be a program name with args.
6946 set dummy ranlib; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   if test -n "$ac_ct_RANLIB"; then
6953   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_prog_ac_ct_RANLIB="ranlib"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6973 if test -n "$ac_ct_RANLIB"; then
6974   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6975 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6976 else
6977   { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6979 fi
6980
6981   if test "x$ac_ct_RANLIB" = x; then
6982     RANLIB=":"
6983   else
6984     case $cross_compiling:$ac_tool_warned in
6985 yes:)
6986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6987 whose name does not start with the host triplet.  If you think this
6988 configuration is useful to you, please write to autoconf@gnu.org." >&5
6989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6990 whose name does not start with the host triplet.  If you think this
6991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994     RANLIB=$ac_ct_RANLIB
6995   fi
6996 else
6997   RANLIB="$ac_cv_prog_RANLIB"
6998 fi
6999
7000 if test -n "$ac_tool_prefix"; then
7001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7002 set dummy ${ac_tool_prefix}strip; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_prog_STRIP+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   if test -n "$STRIP"; then
7009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016   for ac_exec_ext in '' $ac_executable_extensions; do
7017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 STRIP=$ac_cv_prog_STRIP
7029 if test -n "$STRIP"; then
7030   { echo "$as_me:$LINENO: result: $STRIP" >&5
7031 echo "${ECHO_T}$STRIP" >&6; }
7032 else
7033   { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_STRIP"; then
7040   ac_ct_STRIP=$STRIP
7041   # Extract the first word of "strip", so it can be a program name with args.
7042 set dummy strip; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   if test -n "$ac_ct_STRIP"; then
7049   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056   for ac_exec_ext in '' $ac_executable_extensions; do
7057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058     ac_cv_prog_ac_ct_STRIP="strip"
7059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060     break 2
7061   fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7069 if test -n "$ac_ct_STRIP"; then
7070   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7071 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077   if test "x$ac_ct_STRIP" = x; then
7078     STRIP=":"
7079   else
7080     case $cross_compiling:$ac_tool_warned in
7081 yes:)
7082 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7083 whose name does not start with the host triplet.  If you think this
7084 configuration is useful to you, please write to autoconf@gnu.org." >&5
7085 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7086 whose name does not start with the host triplet.  If you think this
7087 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090     STRIP=$ac_ct_STRIP
7091   fi
7092 else
7093   STRIP="$ac_cv_prog_STRIP"
7094 fi
7095
7096
7097 old_CC="$CC"
7098 old_CFLAGS="$CFLAGS"
7099
7100 # Set sane defaults for various variables
7101 test -z "$AR" && AR=ar
7102 test -z "$AR_FLAGS" && AR_FLAGS=cru
7103 test -z "$AS" && AS=as
7104 test -z "$CC" && CC=cc
7105 test -z "$LTCC" && LTCC=$CC
7106 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7107 test -z "$DLLTOOL" && DLLTOOL=dlltool
7108 test -z "$LD" && LD=ld
7109 test -z "$LN_S" && LN_S="ln -s"
7110 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7111 test -z "$NM" && NM=nm
7112 test -z "$SED" && SED=sed
7113 test -z "$OBJDUMP" && OBJDUMP=objdump
7114 test -z "$RANLIB" && RANLIB=:
7115 test -z "$STRIP" && STRIP=:
7116 test -z "$ac_objext" && ac_objext=o
7117
7118 # Determine commands to create old-style static archives.
7119 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7120 old_postinstall_cmds='chmod 644 $oldlib'
7121 old_postuninstall_cmds=
7122
7123 if test -n "$RANLIB"; then
7124   case $host_os in
7125   openbsd*)
7126     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7127     ;;
7128   *)
7129     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7130     ;;
7131   esac
7132   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7133 fi
7134
7135 for cc_temp in $compiler""; do
7136   case $cc_temp in
7137     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7138     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7139     \-*) ;;
7140     *) break;;
7141   esac
7142 done
7143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7144
7145
7146 # Only perform the check for file, if the check method requires it
7147 case $deplibs_check_method in
7148 file_magic*)
7149   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7150     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7151 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7152 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   case $MAGIC_CMD in
7156 [\\/*] |  ?:[\\/]*)
7157   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7158   ;;
7159 *)
7160   lt_save_MAGIC_CMD="$MAGIC_CMD"
7161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7162   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7163   for ac_dir in $ac_dummy; do
7164     IFS="$lt_save_ifs"
7165     test -z "$ac_dir" && ac_dir=.
7166     if test -f $ac_dir/${ac_tool_prefix}file; then
7167       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7168       if test -n "$file_magic_test_file"; then
7169         case $deplibs_check_method in
7170         "file_magic "*)
7171           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7172           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7173           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7174             $EGREP "$file_magic_regex" > /dev/null; then
7175             :
7176           else
7177             cat <<EOF 1>&2
7178
7179 *** Warning: the command libtool uses to detect shared libraries,
7180 *** $file_magic_cmd, produces output that libtool cannot recognize.
7181 *** The result is that libtool may fail to recognize shared libraries
7182 *** as such.  This will affect the creation of libtool libraries that
7183 *** depend on shared libraries, but programs linked with such libtool
7184 *** libraries will work regardless of this problem.  Nevertheless, you
7185 *** may want to report the problem to your system manager and/or to
7186 *** bug-libtool@gnu.org
7187
7188 EOF
7189           fi ;;
7190         esac
7191       fi
7192       break
7193     fi
7194   done
7195   IFS="$lt_save_ifs"
7196   MAGIC_CMD="$lt_save_MAGIC_CMD"
7197   ;;
7198 esac
7199 fi
7200
7201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7202 if test -n "$MAGIC_CMD"; then
7203   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7204 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210 if test -z "$lt_cv_path_MAGIC_CMD"; then
7211   if test -n "$ac_tool_prefix"; then
7212     { echo "$as_me:$LINENO: checking for file" >&5
7213 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217   case $MAGIC_CMD in
7218 [\\/*] |  ?:[\\/]*)
7219   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7220   ;;
7221 *)
7222   lt_save_MAGIC_CMD="$MAGIC_CMD"
7223   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7224   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7225   for ac_dir in $ac_dummy; do
7226     IFS="$lt_save_ifs"
7227     test -z "$ac_dir" && ac_dir=.
7228     if test -f $ac_dir/file; then
7229       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7230       if test -n "$file_magic_test_file"; then
7231         case $deplibs_check_method in
7232         "file_magic "*)
7233           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7236             $EGREP "$file_magic_regex" > /dev/null; then
7237             :
7238           else
7239             cat <<EOF 1>&2
7240
7241 *** Warning: the command libtool uses to detect shared libraries,
7242 *** $file_magic_cmd, produces output that libtool cannot recognize.
7243 *** The result is that libtool may fail to recognize shared libraries
7244 *** as such.  This will affect the creation of libtool libraries that
7245 *** depend on shared libraries, but programs linked with such libtool
7246 *** libraries will work regardless of this problem.  Nevertheless, you
7247 *** may want to report the problem to your system manager and/or to
7248 *** bug-libtool@gnu.org
7249
7250 EOF
7251           fi ;;
7252         esac
7253       fi
7254       break
7255     fi
7256   done
7257   IFS="$lt_save_ifs"
7258   MAGIC_CMD="$lt_save_MAGIC_CMD"
7259   ;;
7260 esac
7261 fi
7262
7263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7264 if test -n "$MAGIC_CMD"; then
7265   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7267 else
7268   { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7270 fi
7271
7272   else
7273     MAGIC_CMD=:
7274   fi
7275 fi
7276
7277   fi
7278   ;;
7279 esac
7280
7281
7282   case $host_os in
7283     rhapsody* | darwin*)
7284     if test -n "$ac_tool_prefix"; then
7285   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   if test -n "$DSYMUTIL"; then
7293   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300   for ac_exec_ext in '' $ac_executable_extensions; do
7301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7313 if test -n "$DSYMUTIL"; then
7314   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7315 echo "${ECHO_T}$DSYMUTIL" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322 fi
7323 if test -z "$ac_cv_prog_DSYMUTIL"; then
7324   ac_ct_DSYMUTIL=$DSYMUTIL
7325   # Extract the first word of "dsymutil", so it can be a program name with args.
7326 set dummy dsymutil; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   if test -n "$ac_ct_DSYMUTIL"; then
7333   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340   for ac_exec_ext in '' $ac_executable_extensions; do
7341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7353 if test -n "$ac_ct_DSYMUTIL"; then
7354   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7355 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361   if test "x$ac_ct_DSYMUTIL" = x; then
7362     DSYMUTIL=":"
7363   else
7364     case $cross_compiling:$ac_tool_warned in
7365 yes:)
7366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7367 whose name does not start with the host triplet.  If you think this
7368 configuration is useful to you, please write to autoconf@gnu.org." >&5
7369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet.  If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374     DSYMUTIL=$ac_ct_DSYMUTIL
7375   fi
7376 else
7377   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7378 fi
7379
7380     if test -n "$ac_tool_prefix"; then
7381   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7382 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   if test -n "$NMEDIT"; then
7389   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 NMEDIT=$ac_cv_prog_NMEDIT
7409 if test -n "$NMEDIT"; then
7410   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7411 echo "${ECHO_T}$NMEDIT" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417
7418 fi
7419 if test -z "$ac_cv_prog_NMEDIT"; then
7420   ac_ct_NMEDIT=$NMEDIT
7421   # Extract the first word of "nmedit", so it can be a program name with args.
7422 set dummy nmedit; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   if test -n "$ac_ct_NMEDIT"; then
7429   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446 fi
7447 fi
7448 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7449 if test -n "$ac_ct_NMEDIT"; then
7450   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7451 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7452 else
7453   { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7455 fi
7456
7457   if test "x$ac_ct_NMEDIT" = x; then
7458     NMEDIT=":"
7459   else
7460     case $cross_compiling:$ac_tool_warned in
7461 yes:)
7462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7463 whose name does not start with the host triplet.  If you think this
7464 configuration is useful to you, please write to autoconf@gnu.org." >&5
7465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7466 whose name does not start with the host triplet.  If you think this
7467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7468 ac_tool_warned=yes ;;
7469 esac
7470     NMEDIT=$ac_ct_NMEDIT
7471   fi
7472 else
7473   NMEDIT="$ac_cv_prog_NMEDIT"
7474 fi
7475
7476
7477     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7478 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7479 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   lt_cv_apple_cc_single_mod=no
7483       if test -z "${LT_MULTI_MODULE}"; then
7484    # By default we will add the -single_module flag. You can override
7485    # by either setting the environment variable LT_MULTI_MODULE
7486    # non-empty at configure time, or by adding -multi_module to the
7487    # link flags.
7488    echo "int foo(void){return 1;}" > conftest.c
7489    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7490      -dynamiclib ${wl}-single_module conftest.c
7491    if test -f libconftest.dylib; then
7492      lt_cv_apple_cc_single_mod=yes
7493      rm -rf libconftest.dylib*
7494    fi
7495    rm conftest.c
7496       fi
7497 fi
7498 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7499 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7500     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7501 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7502 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   lt_cv_ld_exported_symbols_list=no
7506       save_LDFLAGS=$LDFLAGS
7507       echo "_main" > conftest.sym
7508       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7509       cat >conftest.$ac_ext <<_ACEOF
7510 /* confdefs.h.  */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h.  */
7515
7516 int
7517 main ()
7518 {
7519
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 rm -f conftest.$ac_objext conftest$ac_exeext
7525 if { (ac_try="$ac_link"
7526 case "(($ac_try" in
7527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528   *) ac_try_echo=$ac_try;;
7529 esac
7530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7531   (eval "$ac_link") 2>conftest.er1
7532   ac_status=$?
7533   grep -v '^ *+' conftest.er1 >conftest.err
7534   rm -f conftest.er1
7535   cat conftest.err >&5
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); } && {
7538          test -z "$ac_c_werror_flag" ||
7539          test ! -s conftest.err
7540        } && test -s conftest$ac_exeext &&
7541        $as_test_x conftest$ac_exeext; then
7542   lt_cv_ld_exported_symbols_list=yes
7543 else
7544   echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7546
7547         lt_cv_ld_exported_symbols_list=no
7548 fi
7549
7550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7551       conftest$ac_exeext conftest.$ac_ext
7552    LDFLAGS="$save_LDFLAGS"
7553
7554 fi
7555 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7556 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7557     case $host_os in
7558     rhapsody* | darwin1.[0123])
7559       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7560     darwin1.*)
7561      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7562     darwin*)
7563       # if running on 10.5 or later, the deployment target defaults
7564       # to the OS version, if on x86, and 10.4, the deployment
7565       # target defaults to 10.4. Don't you love it?
7566       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7567    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7568      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7569    10.[012]*)
7570      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7571    10.*)
7572      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7573       esac
7574     ;;
7575   esac
7576     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7577       _lt_dar_single_mod='$single_module'
7578     fi
7579     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7580       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7581     else
7582       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7583     fi
7584     if test "$DSYMUTIL" != ":"; then
7585       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7586     else
7587       _lt_dsymutil=
7588     fi
7589     ;;
7590   esac
7591
7592
7593 enable_dlopen=no
7594 enable_win32_dll=no
7595
7596 # Check whether --enable-libtool-lock was given.
7597 if test "${enable_libtool_lock+set}" = set; then
7598   enableval=$enable_libtool_lock;
7599 fi
7600
7601 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7602
7603
7604 # Check whether --with-pic was given.
7605 if test "${with_pic+set}" = set; then
7606   withval=$with_pic; pic_mode="$withval"
7607 else
7608   pic_mode=default
7609 fi
7610
7611 test -z "$pic_mode" && pic_mode=default
7612
7613 # Use C for the default configuration in the libtool script
7614 tagname=
7615 lt_save_CC="$CC"
7616 ac_ext=c
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621
7622
7623 # Source file extension for C test sources.
7624 ac_ext=c
7625
7626 # Object file extension for compiled C test sources.
7627 objext=o
7628 objext=$objext
7629
7630 # Code to be used in simple compile tests
7631 lt_simple_compile_test_code="int some_variable = 0;"
7632
7633 # Code to be used in simple link tests
7634 lt_simple_link_test_code='int main(){return(0);}'
7635
7636
7637 # If no C compiler was specified, use CC.
7638 LTCC=${LTCC-"$CC"}
7639
7640 # If no C compiler flags were specified, use CFLAGS.
7641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7642
7643 # Allow CC to be a program name with arguments.
7644 compiler=$CC
7645
7646
7647 # save warnings/boilerplate of simple test code
7648 ac_outfile=conftest.$ac_objext
7649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7651 _lt_compiler_boilerplate=`cat conftest.err`
7652 $rm conftest*
7653
7654 ac_outfile=conftest.$ac_objext
7655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7657 _lt_linker_boilerplate=`cat conftest.err`
7658 $rm -r conftest*
7659
7660
7661
7662 lt_prog_compiler_no_builtin_flag=
7663
7664 if test "$GCC" = yes; then
7665   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7666
7667
7668 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7669 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7670 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   lt_cv_prog_compiler_rtti_exceptions=no
7674   ac_outfile=conftest.$ac_objext
7675    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7676    lt_compiler_flag="-fno-rtti -fno-exceptions"
7677    # Insert the option either (1) after the last *FLAGS variable, or
7678    # (2) before a word containing "conftest.", or (3) at the end.
7679    # Note that $ac_compile itself does not contain backslashes and begins
7680    # with a dollar sign (not a hyphen), so the echo should work correctly.
7681    # The option is referenced via a variable to avoid confusing sed.
7682    lt_compile=`echo "$ac_compile" | $SED \
7683    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7684    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7685    -e 's:$: $lt_compiler_flag:'`
7686    (eval echo "\"\$as_me:7686: $lt_compile\"" >&5)
7687    (eval "$lt_compile" 2>conftest.err)
7688    ac_status=$?
7689    cat conftest.err >&5
7690    echo "$as_me:7690: \$? = $ac_status" >&5
7691    if (exit $ac_status) && test -s "$ac_outfile"; then
7692      # The compiler can only warn and ignore the option if not recognized
7693      # So say no if there are warnings other than the usual output.
7694      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7695      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7696      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7697        lt_cv_prog_compiler_rtti_exceptions=yes
7698      fi
7699    fi
7700    $rm conftest*
7701
7702 fi
7703 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7704 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7705
7706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7707     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7708 else
7709     :
7710 fi
7711
7712 fi
7713
7714 lt_prog_compiler_wl=
7715 lt_prog_compiler_pic=
7716 lt_prog_compiler_static=
7717
7718 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7720
7721   if test "$GCC" = yes; then
7722     lt_prog_compiler_wl='-Wl,'
7723     lt_prog_compiler_static='-static'
7724
7725     case $host_os in
7726       aix*)
7727       # All AIX code is PIC.
7728       if test "$host_cpu" = ia64; then
7729         # AIX 5 now supports IA64 processor
7730         lt_prog_compiler_static='-Bstatic'
7731       fi
7732       ;;
7733
7734     amigaos*)
7735       # FIXME: we need at least 68020 code to build shared libraries, but
7736       # adding the `-m68020' flag to GCC prevents building anything better,
7737       # like `-m68040'.
7738       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7739       ;;
7740
7741     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7742       # PIC is the default for these OSes.
7743       ;;
7744
7745     mingw* | cygwin* | pw32* | os2*)
7746       # This hack is so that the source file can tell whether it is being
7747       # built for inclusion in a dll (and should export symbols for example).
7748       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7749       # (--disable-auto-import) libraries
7750       lt_prog_compiler_pic='-DDLL_EXPORT'
7751       ;;
7752
7753     darwin* | rhapsody*)
7754       # PIC is the default on this platform
7755       # Common symbols not allowed in MH_DYLIB files
7756       lt_prog_compiler_pic='-fno-common'
7757       ;;
7758
7759     interix[3-9]*)
7760       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7761       # Instead, we relocate shared libraries at runtime.
7762       ;;
7763
7764     msdosdjgpp*)
7765       # Just because we use GCC doesn't mean we suddenly get shared libraries
7766       # on systems that don't support them.
7767       lt_prog_compiler_can_build_shared=no
7768       enable_shared=no
7769       ;;
7770
7771     sysv4*MP*)
7772       if test -d /usr/nec; then
7773         lt_prog_compiler_pic=-Kconform_pic
7774       fi
7775       ;;
7776
7777     hpux*)
7778       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7779       # not for PA HP-UX.
7780       case $host_cpu in
7781       hppa*64*|ia64*)
7782         # +Z the default
7783         ;;
7784       *)
7785         lt_prog_compiler_pic='-fPIC'
7786         ;;
7787       esac
7788       ;;
7789
7790     *)
7791       lt_prog_compiler_pic='-fPIC'
7792       ;;
7793     esac
7794   else
7795     # PORTME Check for flag to pass linker flags through the system compiler.
7796     case $host_os in
7797     aix*)
7798       lt_prog_compiler_wl='-Wl,'
7799       if test "$host_cpu" = ia64; then
7800         # AIX 5 now supports IA64 processor
7801         lt_prog_compiler_static='-Bstatic'
7802       else
7803         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7804       fi
7805       ;;
7806       darwin*)
7807         # PIC is the default on this platform
7808         # Common symbols not allowed in MH_DYLIB files
7809        case $cc_basename in
7810          xlc*)
7811          lt_prog_compiler_pic='-qnocommon'
7812          lt_prog_compiler_wl='-Wl,'
7813          ;;
7814        esac
7815        ;;
7816
7817     mingw* | cygwin* | pw32* | os2*)
7818       # This hack is so that the source file can tell whether it is being
7819       # built for inclusion in a dll (and should export symbols for example).
7820       lt_prog_compiler_pic='-DDLL_EXPORT'
7821       ;;
7822
7823     hpux9* | hpux10* | hpux11*)
7824       lt_prog_compiler_wl='-Wl,'
7825       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7826       # not for PA HP-UX.
7827       case $host_cpu in
7828       hppa*64*|ia64*)
7829         # +Z the default
7830         ;;
7831       *)
7832         lt_prog_compiler_pic='+Z'
7833         ;;
7834       esac
7835       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7836       lt_prog_compiler_static='${wl}-a ${wl}archive'
7837       ;;
7838
7839     irix5* | irix6* | nonstopux*)
7840       lt_prog_compiler_wl='-Wl,'
7841       # PIC (with -KPIC) is the default.
7842       lt_prog_compiler_static='-non_shared'
7843       ;;
7844
7845     newsos6)
7846       lt_prog_compiler_pic='-KPIC'
7847       lt_prog_compiler_static='-Bstatic'
7848       ;;
7849
7850     linux* | k*bsd*-gnu)
7851       case $cc_basename in
7852       icc* | ecc*)
7853         lt_prog_compiler_wl='-Wl,'
7854         lt_prog_compiler_pic='-KPIC'
7855         lt_prog_compiler_static='-static'
7856         ;;
7857       pgcc* | pgf77* | pgf90* | pgf95*)
7858         # Portland Group compilers (*not* the Pentium gcc compiler,
7859         # which looks to be a dead project)
7860         lt_prog_compiler_wl='-Wl,'
7861         lt_prog_compiler_pic='-fpic'
7862         lt_prog_compiler_static='-Bstatic'
7863         ;;
7864       ccc*)
7865         lt_prog_compiler_wl='-Wl,'
7866         # All Alpha code is PIC.
7867         lt_prog_compiler_static='-non_shared'
7868         ;;
7869       *)
7870         case `$CC -V 2>&1 | sed 5q` in
7871         *Sun\ C*)
7872           # Sun C 5.9
7873           lt_prog_compiler_pic='-KPIC'
7874           lt_prog_compiler_static='-Bstatic'
7875           lt_prog_compiler_wl='-Wl,'
7876           ;;
7877         *Sun\ F*)
7878           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7879           lt_prog_compiler_pic='-KPIC'
7880           lt_prog_compiler_static='-Bstatic'
7881           lt_prog_compiler_wl=''
7882           ;;
7883         esac
7884         ;;
7885       esac
7886       ;;
7887
7888     osf3* | osf4* | osf5*)
7889       lt_prog_compiler_wl='-Wl,'
7890       # All OSF/1 code is PIC.
7891       lt_prog_compiler_static='-non_shared'
7892       ;;
7893
7894     rdos*)
7895       lt_prog_compiler_static='-non_shared'
7896       ;;
7897
7898     solaris*)
7899       lt_prog_compiler_pic='-KPIC'
7900       lt_prog_compiler_static='-Bstatic'
7901       case $cc_basename in
7902       f77* | f90* | f95*)
7903         lt_prog_compiler_wl='-Qoption ld ';;
7904       *)
7905         lt_prog_compiler_wl='-Wl,';;
7906       esac
7907       ;;
7908
7909     sunos4*)
7910       lt_prog_compiler_wl='-Qoption ld '
7911       lt_prog_compiler_pic='-PIC'
7912       lt_prog_compiler_static='-Bstatic'
7913       ;;
7914
7915     sysv4 | sysv4.2uw2* | sysv4.3*)
7916       lt_prog_compiler_wl='-Wl,'
7917       lt_prog_compiler_pic='-KPIC'
7918       lt_prog_compiler_static='-Bstatic'
7919       ;;
7920
7921     sysv4*MP*)
7922       if test -d /usr/nec ;then
7923         lt_prog_compiler_pic='-Kconform_pic'
7924         lt_prog_compiler_static='-Bstatic'
7925       fi
7926       ;;
7927
7928     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7929       lt_prog_compiler_wl='-Wl,'
7930       lt_prog_compiler_pic='-KPIC'
7931       lt_prog_compiler_static='-Bstatic'
7932       ;;
7933
7934     unicos*)
7935       lt_prog_compiler_wl='-Wl,'
7936       lt_prog_compiler_can_build_shared=no
7937       ;;
7938
7939     uts4*)
7940       lt_prog_compiler_pic='-pic'
7941       lt_prog_compiler_static='-Bstatic'
7942       ;;
7943
7944     *)
7945       lt_prog_compiler_can_build_shared=no
7946       ;;
7947     esac
7948   fi
7949
7950 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7951 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7952
7953 #
7954 # Check to make sure the PIC flag actually works.
7955 #
7956 if test -n "$lt_prog_compiler_pic"; then
7957
7958 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7959 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7960 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7961   echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963   lt_cv_prog_compiler_pic_works=no
7964   ac_outfile=conftest.$ac_objext
7965    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7967    # Insert the option either (1) after the last *FLAGS variable, or
7968    # (2) before a word containing "conftest.", or (3) at the end.
7969    # Note that $ac_compile itself does not contain backslashes and begins
7970    # with a dollar sign (not a hyphen), so the echo should work correctly.
7971    # The option is referenced via a variable to avoid confusing sed.
7972    lt_compile=`echo "$ac_compile" | $SED \
7973    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975    -e 's:$: $lt_compiler_flag:'`
7976    (eval echo "\"\$as_me:7976: $lt_compile\"" >&5)
7977    (eval "$lt_compile" 2>conftest.err)
7978    ac_status=$?
7979    cat conftest.err >&5
7980    echo "$as_me:7980: \$? = $ac_status" >&5
7981    if (exit $ac_status) && test -s "$ac_outfile"; then
7982      # The compiler can only warn and ignore the option if not recognized
7983      # So say no if there are warnings other than the usual output.
7984      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7985      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7987        lt_cv_prog_compiler_pic_works=yes
7988      fi
7989    fi
7990    $rm conftest*
7991
7992 fi
7993 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7994 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7995
7996 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7997     case $lt_prog_compiler_pic in
7998      "" | " "*) ;;
7999      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8000      esac
8001 else
8002     lt_prog_compiler_pic=
8003      lt_prog_compiler_can_build_shared=no
8004 fi
8005
8006 fi
8007 case $host_os in
8008   # For platforms which do not support PIC, -DPIC is meaningless:
8009   *djgpp*)
8010     lt_prog_compiler_pic=
8011     ;;
8012   *)
8013     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8014     ;;
8015 esac
8016
8017 #
8018 # Check to make sure the static flag actually works.
8019 #
8020 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8021 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8022 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8023 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   lt_cv_prog_compiler_static_works=no
8027    save_LDFLAGS="$LDFLAGS"
8028    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8029    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8030    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8031      # The linker can only warn and ignore the option if not recognized
8032      # So say no if there are warnings
8033      if test -s conftest.err; then
8034        # Append any errors to the config.log.
8035        cat conftest.err 1>&5
8036        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8037        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8038        if diff conftest.exp conftest.er2 >/dev/null; then
8039          lt_cv_prog_compiler_static_works=yes
8040        fi
8041      else
8042        lt_cv_prog_compiler_static_works=yes
8043      fi
8044    fi
8045    $rm -r conftest*
8046    LDFLAGS="$save_LDFLAGS"
8047
8048 fi
8049 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8050 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8051
8052 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8053     :
8054 else
8055     lt_prog_compiler_static=
8056 fi
8057
8058
8059 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8060 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8061 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   lt_cv_prog_compiler_c_o=no
8065    $rm -r conftest 2>/dev/null
8066    mkdir conftest
8067    cd conftest
8068    mkdir out
8069    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070
8071    lt_compiler_flag="-o out/conftest2.$ac_objext"
8072    # Insert the option either (1) after the last *FLAGS variable, or
8073    # (2) before a word containing "conftest.", or (3) at the end.
8074    # Note that $ac_compile itself does not contain backslashes and begins
8075    # with a dollar sign (not a hyphen), so the echo should work correctly.
8076    lt_compile=`echo "$ac_compile" | $SED \
8077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079    -e 's:$: $lt_compiler_flag:'`
8080    (eval echo "\"\$as_me:8080: $lt_compile\"" >&5)
8081    (eval "$lt_compile" 2>out/conftest.err)
8082    ac_status=$?
8083    cat out/conftest.err >&5
8084    echo "$as_me:8084: \$? = $ac_status" >&5
8085    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8086    then
8087      # The compiler can only warn and ignore the option if not recognized
8088      # So say no if there are warnings
8089      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8090      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8091      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8092        lt_cv_prog_compiler_c_o=yes
8093      fi
8094    fi
8095    chmod u+w . 2>&5
8096    $rm conftest*
8097    # SGI C++ compiler will create directory out/ii_files/ for
8098    # template instantiation
8099    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8100    $rm out/* && rmdir out
8101    cd ..
8102    rmdir conftest
8103    $rm conftest*
8104
8105 fi
8106 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8107 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8108
8109
8110 hard_links="nottested"
8111 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8112   # do not overwrite the value of need_locks provided by the user
8113   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8114 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8115   hard_links=yes
8116   $rm conftest*
8117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8118   touch conftest.a
8119   ln conftest.a conftest.b 2>&5 || hard_links=no
8120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8121   { echo "$as_me:$LINENO: result: $hard_links" >&5
8122 echo "${ECHO_T}$hard_links" >&6; }
8123   if test "$hard_links" = no; then
8124     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8125 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8126     need_locks=warn
8127   fi
8128 else
8129   need_locks=no
8130 fi
8131
8132 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8133 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8134
8135   runpath_var=
8136   allow_undefined_flag=
8137   enable_shared_with_static_runtimes=no
8138   archive_cmds=
8139   archive_expsym_cmds=
8140   old_archive_From_new_cmds=
8141   old_archive_from_expsyms_cmds=
8142   export_dynamic_flag_spec=
8143   whole_archive_flag_spec=
8144   thread_safe_flag_spec=
8145   hardcode_libdir_flag_spec=
8146   hardcode_libdir_flag_spec_ld=
8147   hardcode_libdir_separator=
8148   hardcode_direct=no
8149   hardcode_minus_L=no
8150   hardcode_shlibpath_var=unsupported
8151   link_all_deplibs=unknown
8152   hardcode_automatic=no
8153   module_cmds=
8154   module_expsym_cmds=
8155   always_export_symbols=no
8156   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8157   # include_expsyms should be a list of space-separated symbols to be *always*
8158   # included in the symbol list
8159   include_expsyms=
8160   # exclude_expsyms can be an extended regexp of symbols to exclude
8161   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8162   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8163   # as well as any symbol that contains `d'.
8164   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8165   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8166   # platforms (ab)use it in PIC code, but their linkers get confused if
8167   # the symbol is explicitly referenced.  Since portable code cannot
8168   # rely on this symbol name, it's probably fine to never include it in
8169   # preloaded symbol tables.
8170   # Exclude shared library initialization/finalization symbols.
8171   extract_expsyms_cmds=
8172   # Just being paranoid about ensuring that cc_basename is set.
8173   for cc_temp in $compiler""; do
8174   case $cc_temp in
8175     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8176     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8177     \-*) ;;
8178     *) break;;
8179   esac
8180 done
8181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8182
8183   case $host_os in
8184   cygwin* | mingw* | pw32*)
8185     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8186     # When not using gcc, we currently assume that we are using
8187     # Microsoft Visual C++.
8188     if test "$GCC" != yes; then
8189       with_gnu_ld=no
8190     fi
8191     ;;
8192   interix*)
8193     # we just hope/assume this is gcc and not c89 (= MSVC++)
8194     with_gnu_ld=yes
8195     ;;
8196   openbsd*)
8197     with_gnu_ld=no
8198     ;;
8199   esac
8200
8201   ld_shlibs=yes
8202   if test "$with_gnu_ld" = yes; then
8203     # If archive_cmds runs LD, not CC, wlarc should be empty
8204     wlarc='${wl}'
8205
8206     # Set some defaults for GNU ld with shared library support. These
8207     # are reset later if shared libraries are not supported. Putting them
8208     # here allows them to be overridden if necessary.
8209     runpath_var=LD_RUN_PATH
8210     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8211     export_dynamic_flag_spec='${wl}--export-dynamic'
8212     # ancient GNU ld didn't support --whole-archive et. al.
8213     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8214         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8215       else
8216         whole_archive_flag_spec=
8217     fi
8218     supports_anon_versioning=no
8219     case `$LD -v 2>/dev/null` in
8220       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8221       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8222       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8223       *\ 2.11.*) ;; # other 2.11 versions
8224       *) supports_anon_versioning=yes ;;
8225     esac
8226
8227     # See if GNU ld supports shared libraries.
8228     case $host_os in
8229     aix[3-9]*)
8230       # On AIX/PPC, the GNU linker is very broken
8231       if test "$host_cpu" != ia64; then
8232         ld_shlibs=no
8233         cat <<EOF 1>&2
8234
8235 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8236 *** to be unable to reliably create shared libraries on AIX.
8237 *** Therefore, libtool is disabling shared libraries support.  If you
8238 *** really care for shared libraries, you may want to modify your PATH
8239 *** so that a non-GNU linker is found, and then restart.
8240
8241 EOF
8242       fi
8243       ;;
8244
8245     amigaos*)
8246       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)'
8247       hardcode_libdir_flag_spec='-L$libdir'
8248       hardcode_minus_L=yes
8249
8250       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8251       # that the semantics of dynamic libraries on AmigaOS, at least up
8252       # to version 4, is to share data among multiple programs linked
8253       # with the same dynamic library.  Since this doesn't match the
8254       # behavior of shared libraries on other platforms, we can't use
8255       # them.
8256       ld_shlibs=no
8257       ;;
8258
8259     beos*)
8260       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8261         allow_undefined_flag=unsupported
8262         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8263         # support --undefined.  This deserves some investigation.  FIXME
8264         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265       else
8266         ld_shlibs=no
8267       fi
8268       ;;
8269
8270     cygwin* | mingw* | pw32*)
8271       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8272       # as there is no search path for DLLs.
8273       hardcode_libdir_flag_spec='-L$libdir'
8274       allow_undefined_flag=unsupported
8275       always_export_symbols=no
8276       enable_shared_with_static_runtimes=yes
8277       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8278
8279       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8280         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8281         # If the export-symbols file already is a .def file (1st line
8282         # is EXPORTS), use it as is; otherwise, prepend...
8283         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8284           cp $export_symbols $output_objdir/$soname.def;
8285         else
8286           echo EXPORTS > $output_objdir/$soname.def;
8287           cat $export_symbols >> $output_objdir/$soname.def;
8288         fi~
8289         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8290       else
8291         ld_shlibs=no
8292       fi
8293       ;;
8294
8295     interix[3-9]*)
8296       hardcode_direct=no
8297       hardcode_shlibpath_var=no
8298       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8299       export_dynamic_flag_spec='${wl}-E'
8300       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8301       # Instead, shared libraries are loaded at an image base (0x10000000 by
8302       # default) and relocated if they conflict, which is a slow very memory
8303       # consuming and fragmenting process.  To avoid this, we pick a random,
8304       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8305       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8306       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8307       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'
8308       ;;
8309
8310     gnu* | linux* | k*bsd*-gnu)
8311       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312         tmp_addflag=
8313         case $cc_basename,$host_cpu in
8314         pgcc*)                          # Portland Group C compiler
8315           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'
8316           tmp_addflag=' $pic_flag'
8317           ;;
8318         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8319           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'
8320           tmp_addflag=' $pic_flag -Mnomain' ;;
8321         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8322           tmp_addflag=' -i_dynamic' ;;
8323         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8324           tmp_addflag=' -i_dynamic -nofor_main' ;;
8325         ifc* | ifort*)                  # Intel Fortran compiler
8326           tmp_addflag=' -nofor_main' ;;
8327         esac
8328         case `$CC -V 2>&1 | sed 5q` in
8329         *Sun\ C*)                       # Sun C 5.9
8330           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'
8331           tmp_sharedflag='-G' ;;
8332         *Sun\ F*)                       # Sun Fortran 8.3
8333           tmp_sharedflag='-G' ;;
8334         *)
8335           tmp_sharedflag='-shared' ;;
8336         esac
8337         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338
8339         if test $supports_anon_versioning = yes; then
8340           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8341   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8342   $echo "local: *; };" >> $output_objdir/$libname.ver~
8343           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8344         fi
8345       else
8346         ld_shlibs=no
8347       fi
8348       ;;
8349
8350     netbsd*)
8351       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8352         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8353         wlarc=
8354       else
8355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357       fi
8358       ;;
8359
8360     solaris*)
8361       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8362         ld_shlibs=no
8363         cat <<EOF 1>&2
8364
8365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8366 *** create shared libraries on Solaris systems.  Therefore, libtool
8367 *** is disabling shared libraries support.  We urge you to upgrade GNU
8368 *** binutils to release 2.9.1 or newer.  Another option is to modify
8369 *** your PATH or compiler configuration so that the native linker is
8370 *** used, and then restart.
8371
8372 EOF
8373       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8374         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8375         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8376       else
8377         ld_shlibs=no
8378       fi
8379       ;;
8380
8381     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8382       case `$LD -v 2>&1` in
8383         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8384         ld_shlibs=no
8385         cat <<_LT_EOF 1>&2
8386
8387 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8388 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8389 *** is disabling shared libraries support.  We urge you to upgrade GNU
8390 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8391 *** your PATH or compiler configuration so that the native linker is
8392 *** used, and then restart.
8393
8394 _LT_EOF
8395         ;;
8396         *)
8397           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8398             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8399             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8400             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8401           else
8402             ld_shlibs=no
8403           fi
8404         ;;
8405       esac
8406       ;;
8407
8408     sunos4*)
8409       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8410       wlarc=
8411       hardcode_direct=yes
8412       hardcode_shlibpath_var=no
8413       ;;
8414
8415     *)
8416       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8419       else
8420         ld_shlibs=no
8421       fi
8422       ;;
8423     esac
8424
8425     if test "$ld_shlibs" = no; then
8426       runpath_var=
8427       hardcode_libdir_flag_spec=
8428       export_dynamic_flag_spec=
8429       whole_archive_flag_spec=
8430     fi
8431   else
8432     # PORTME fill in a description of your system's linker (not GNU ld)
8433     case $host_os in
8434     aix3*)
8435       allow_undefined_flag=unsupported
8436       always_export_symbols=yes
8437       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'
8438       # Note: this linker hardcodes the directories in LIBPATH if there
8439       # are no directories specified by -L.
8440       hardcode_minus_L=yes
8441       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8442         # Neither direct hardcoding nor static linking is supported with a
8443         # broken collect2.
8444         hardcode_direct=unsupported
8445       fi
8446       ;;
8447
8448     aix[4-9]*)
8449       if test "$host_cpu" = ia64; then
8450         # On IA64, the linker does run time linking by default, so we don't
8451         # have to do anything special.
8452         aix_use_runtimelinking=no
8453         exp_sym_flag='-Bexport'
8454         no_entry_flag=""
8455       else
8456         # If we're using GNU nm, then we don't want the "-C" option.
8457         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8458         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8459           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'
8460         else
8461           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'
8462         fi
8463         aix_use_runtimelinking=no
8464
8465         # Test if we are trying to use run time linking or normal
8466         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8467         # need to do runtime linking.
8468         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8469           for ld_flag in $LDFLAGS; do
8470           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8471             aix_use_runtimelinking=yes
8472             break
8473           fi
8474           done
8475           ;;
8476         esac
8477
8478         exp_sym_flag='-bexport'
8479         no_entry_flag='-bnoentry'
8480       fi
8481
8482       # When large executables or shared objects are built, AIX ld can
8483       # have problems creating the table of contents.  If linking a library
8484       # or program results in "error TOC overflow" add -mminimal-toc to
8485       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8486       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8487
8488       archive_cmds=''
8489       hardcode_direct=yes
8490       hardcode_libdir_separator=':'
8491       link_all_deplibs=yes
8492
8493       if test "$GCC" = yes; then
8494         case $host_os in aix4.[012]|aix4.[012].*)
8495         # We only want to do this on AIX 4.2 and lower, the check
8496         # below for broken collect2 doesn't work under 4.3+
8497           collect2name=`${CC} -print-prog-name=collect2`
8498           if test -f "$collect2name" && \
8499            strings "$collect2name" | grep resolve_lib_name >/dev/null
8500           then
8501           # We have reworked collect2
8502           :
8503           else
8504           # We have old collect2
8505           hardcode_direct=unsupported
8506           # It fails to find uninstalled libraries when the uninstalled
8507           # path is not listed in the libpath.  Setting hardcode_minus_L
8508           # to unsupported forces relinking
8509           hardcode_minus_L=yes
8510           hardcode_libdir_flag_spec='-L$libdir'
8511           hardcode_libdir_separator=
8512           fi
8513           ;;
8514         esac
8515         shared_flag='-shared'
8516         if test "$aix_use_runtimelinking" = yes; then
8517           shared_flag="$shared_flag "'${wl}-G'
8518         fi
8519       else
8520         # not using gcc
8521         if test "$host_cpu" = ia64; then
8522         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8523         # chokes on -Wl,-G. The following line is correct:
8524           shared_flag='-G'
8525         else
8526           if test "$aix_use_runtimelinking" = yes; then
8527             shared_flag='${wl}-G'
8528           else
8529             shared_flag='${wl}-bM:SRE'
8530           fi
8531         fi
8532       fi
8533
8534       # It seems that -bexpall does not export symbols beginning with
8535       # underscore (_), so it is better to generate a list of symbols to export.
8536       always_export_symbols=yes
8537       if test "$aix_use_runtimelinking" = yes; then
8538         # Warning - without using the other runtime loading flags (-brtl),
8539         # -berok will link without error, but may produce a broken library.
8540         allow_undefined_flag='-berok'
8541        # Determine the default libpath from the value encoded in an empty executable.
8542        cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h.  */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h.  */
8548
8549 int
8550 main ()
8551 {
8552
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8559 case "(($ac_try" in
8560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561   *) ac_try_echo=$ac_try;;
8562 esac
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564   (eval "$ac_link") 2>conftest.er1
8565   ac_status=$?
8566   grep -v '^ *+' conftest.er1 >conftest.err
8567   rm -f conftest.er1
8568   cat conftest.err >&5
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); } && {
8571          test -z "$ac_c_werror_flag" ||
8572          test ! -s conftest.err
8573        } && test -s conftest$ac_exeext &&
8574        $as_test_x conftest$ac_exeext; then
8575
8576 lt_aix_libpath_sed='
8577     /Import File Strings/,/^$/ {
8578         /^0/ {
8579             s/^0  *\(.*\)$/\1/
8580             p
8581         }
8582     }'
8583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584 # Check for a 64-bit object if we didn't find anything.
8585 if test -z "$aix_libpath"; then
8586   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8587 fi
8588 else
8589   echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592
8593 fi
8594
8595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8596       conftest$ac_exeext conftest.$ac_ext
8597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8598
8599        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8600         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8601        else
8602         if test "$host_cpu" = ia64; then
8603           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8604           allow_undefined_flag="-z nodefs"
8605           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"
8606         else
8607          # Determine the default libpath from the value encoded in an empty executable.
8608          cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614
8615 int
8616 main ()
8617 {
8618
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8625 case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_link") 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } && {
8637          test -z "$ac_c_werror_flag" ||
8638          test ! -s conftest.err
8639        } && test -s conftest$ac_exeext &&
8640        $as_test_x conftest$ac_exeext; then
8641
8642 lt_aix_libpath_sed='
8643     /Import File Strings/,/^$/ {
8644         /^0/ {
8645             s/^0  *\(.*\)$/\1/
8646             p
8647         }
8648     }'
8649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8650 # Check for a 64-bit object if we didn't find anything.
8651 if test -z "$aix_libpath"; then
8652   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8653 fi
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658
8659 fi
8660
8661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8662       conftest$ac_exeext conftest.$ac_ext
8663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8664
8665          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8666           # Warning - without using the other run time loading flags,
8667           # -berok will link without error, but may produce a broken library.
8668           no_undefined_flag=' ${wl}-bernotok'
8669           allow_undefined_flag=' ${wl}-berok'
8670           # Exported symbols can be pulled into shared objects from archives
8671           whole_archive_flag_spec='$convenience'
8672           archive_cmds_need_lc=yes
8673           # This is similar to how AIX traditionally builds its shared libraries.
8674           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'
8675         fi
8676       fi
8677       ;;
8678
8679     amigaos*)
8680       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)'
8681       hardcode_libdir_flag_spec='-L$libdir'
8682       hardcode_minus_L=yes
8683       # see comment about different semantics on the GNU ld section
8684       ld_shlibs=no
8685       ;;
8686
8687     bsdi[45]*)
8688       export_dynamic_flag_spec=-rdynamic
8689       ;;
8690
8691     cygwin* | mingw* | pw32*)
8692       # When not using gcc, we currently assume that we are using
8693       # Microsoft Visual C++.
8694       # hardcode_libdir_flag_spec is actually meaningless, as there is
8695       # no search path for DLLs.
8696       hardcode_libdir_flag_spec=' '
8697       allow_undefined_flag=unsupported
8698       # Tell ltmain to make .lib files, not .a files.
8699       libext=lib
8700       # Tell ltmain to make .dll files, not .so files.
8701       shrext_cmds=".dll"
8702       # FIXME: Setting linknames here is a bad hack.
8703       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8704       # The linker will automatically build a .lib file if we build a DLL.
8705       old_archive_From_new_cmds='true'
8706       # FIXME: Should let the user specify the lib program.
8707       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8708       fix_srcfile_path='`cygpath -w "$srcfile"`'
8709       enable_shared_with_static_runtimes=yes
8710       ;;
8711
8712     darwin* | rhapsody*)
8713       case $host_os in
8714         rhapsody* | darwin1.[012])
8715          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8716          ;;
8717        *) # Darwin 1.3 on
8718          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8719            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8720          else
8721            case ${MACOSX_DEPLOYMENT_TARGET} in
8722              10.[012])
8723                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8724                ;;
8725              10.*)
8726                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8727                ;;
8728            esac
8729          fi
8730          ;;
8731       esac
8732       archive_cmds_need_lc=no
8733       hardcode_direct=no
8734       hardcode_automatic=yes
8735       hardcode_shlibpath_var=unsupported
8736       whole_archive_flag_spec=''
8737       link_all_deplibs=yes
8738     if test "$GCC" = yes ; then
8739         output_verbose_link_cmd='echo'
8740         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8741         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8742         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}"
8743         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}"
8744     else
8745       case $cc_basename in
8746         xlc*)
8747          output_verbose_link_cmd='echo'
8748          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8749          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8750           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8751          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8752           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8753           ;;
8754        *)
8755          ld_shlibs=no
8756           ;;
8757       esac
8758     fi
8759       ;;
8760
8761     dgux*)
8762       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763       hardcode_libdir_flag_spec='-L$libdir'
8764       hardcode_shlibpath_var=no
8765       ;;
8766
8767     freebsd1*)
8768       ld_shlibs=no
8769       ;;
8770
8771     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8772     # support.  Future versions do this automatically, but an explicit c++rt0.o
8773     # does not break anything, and helps significantly (at the cost of a little
8774     # extra space).
8775     freebsd2.2*)
8776       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8777       hardcode_libdir_flag_spec='-R$libdir'
8778       hardcode_direct=yes
8779       hardcode_shlibpath_var=no
8780       ;;
8781
8782     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8783     freebsd2*)
8784       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785       hardcode_direct=yes
8786       hardcode_minus_L=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8791     freebsd* | dragonfly*)
8792       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8793       hardcode_libdir_flag_spec='-R$libdir'
8794       hardcode_direct=yes
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     hpux9*)
8799       if test "$GCC" = yes; then
8800         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'
8801       else
8802         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'
8803       fi
8804       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8805       hardcode_libdir_separator=:
8806       hardcode_direct=yes
8807
8808       # hardcode_minus_L: Not really in the search PATH,
8809       # but as the default location of the library.
8810       hardcode_minus_L=yes
8811       export_dynamic_flag_spec='${wl}-E'
8812       ;;
8813
8814     hpux10*)
8815       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8816         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817       else
8818         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8819       fi
8820       if test "$with_gnu_ld" = no; then
8821         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8822         hardcode_libdir_separator=:
8823
8824         hardcode_direct=yes
8825         export_dynamic_flag_spec='${wl}-E'
8826
8827         # hardcode_minus_L: Not really in the search PATH,
8828         # but as the default location of the library.
8829         hardcode_minus_L=yes
8830       fi
8831       ;;
8832
8833     hpux11*)
8834       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8835         case $host_cpu in
8836         hppa*64*)
8837           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838           ;;
8839         ia64*)
8840           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8841           ;;
8842         *)
8843           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8844           ;;
8845         esac
8846       else
8847         case $host_cpu in
8848         hppa*64*)
8849           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850           ;;
8851         ia64*)
8852           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8853           ;;
8854         *)
8855           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8856           ;;
8857         esac
8858       fi
8859       if test "$with_gnu_ld" = no; then
8860         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8861         hardcode_libdir_separator=:
8862
8863         case $host_cpu in
8864         hppa*64*|ia64*)
8865           hardcode_libdir_flag_spec_ld='+b $libdir'
8866           hardcode_direct=no
8867           hardcode_shlibpath_var=no
8868           ;;
8869         *)
8870           hardcode_direct=yes
8871           export_dynamic_flag_spec='${wl}-E'
8872
8873           # hardcode_minus_L: Not really in the search PATH,
8874           # but as the default location of the library.
8875           hardcode_minus_L=yes
8876           ;;
8877         esac
8878       fi
8879       ;;
8880
8881     irix5* | irix6* | nonstopux*)
8882       if test "$GCC" = yes; then
8883         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8884       else
8885         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8886         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8887       fi
8888       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889       hardcode_libdir_separator=:
8890       link_all_deplibs=yes
8891       ;;
8892
8893     netbsd*)
8894       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8895         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8896       else
8897         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8898       fi
8899       hardcode_libdir_flag_spec='-R$libdir'
8900       hardcode_direct=yes
8901       hardcode_shlibpath_var=no
8902       ;;
8903
8904     newsos6)
8905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906       hardcode_direct=yes
8907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908       hardcode_libdir_separator=:
8909       hardcode_shlibpath_var=no
8910       ;;
8911
8912     openbsd*)
8913       if test -f /usr/libexec/ld.so; then
8914         hardcode_direct=yes
8915         hardcode_shlibpath_var=no
8916         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8917           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8918           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8919           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8920           export_dynamic_flag_spec='${wl}-E'
8921         else
8922           case $host_os in
8923            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8924              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8925              hardcode_libdir_flag_spec='-R$libdir'
8926              ;;
8927            *)
8928              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8929              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930              ;;
8931           esac
8932         fi
8933       else
8934         ld_shlibs=no
8935       fi
8936       ;;
8937
8938     os2*)
8939       hardcode_libdir_flag_spec='-L$libdir'
8940       hardcode_minus_L=yes
8941       allow_undefined_flag=unsupported
8942       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'
8943       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8944       ;;
8945
8946     osf3*)
8947       if test "$GCC" = yes; then
8948         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8949         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8950       else
8951         allow_undefined_flag=' -expect_unresolved \*'
8952         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8953       fi
8954       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955       hardcode_libdir_separator=:
8956       ;;
8957
8958     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8959       if test "$GCC" = yes; then
8960         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8961         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8962         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8963       else
8964         allow_undefined_flag=' -expect_unresolved \*'
8965         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8966         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8967         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8968
8969         # Both c and cxx compiler support -rpath directly
8970         hardcode_libdir_flag_spec='-rpath $libdir'
8971       fi
8972       hardcode_libdir_separator=:
8973       ;;
8974
8975     solaris*)
8976       no_undefined_flag=' -z text'
8977       if test "$GCC" = yes; then
8978         wlarc='${wl}'
8979         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8981           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8982       else
8983         wlarc=''
8984         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8986         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8987       fi
8988       hardcode_libdir_flag_spec='-R$libdir'
8989       hardcode_shlibpath_var=no
8990       case $host_os in
8991       solaris2.[0-5] | solaris2.[0-5].*) ;;
8992       *)
8993         # The compiler driver will combine and reorder linker options,
8994         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8995         # but is careful enough not to reorder.
8996         # Supported since Solaris 2.6 (maybe 2.5.1?)
8997         if test "$GCC" = yes; then
8998           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8999         else
9000           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9001         fi
9002         ;;
9003       esac
9004       link_all_deplibs=yes
9005       ;;
9006
9007     sunos4*)
9008       if test "x$host_vendor" = xsequent; then
9009         # Use $CC to link under sequent, because it throws in some extra .o
9010         # files that make .init and .fini sections work.
9011         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9012       else
9013         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9014       fi
9015       hardcode_libdir_flag_spec='-L$libdir'
9016       hardcode_direct=yes
9017       hardcode_minus_L=yes
9018       hardcode_shlibpath_var=no
9019       ;;
9020
9021     sysv4)
9022       case $host_vendor in
9023         sni)
9024           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025           hardcode_direct=yes # is this really true???
9026         ;;
9027         siemens)
9028           ## LD is ld it makes a PLAMLIB
9029           ## CC just makes a GrossModule.
9030           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9031           reload_cmds='$CC -r -o $output$reload_objs'
9032           hardcode_direct=no
9033         ;;
9034         motorola)
9035           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9037         ;;
9038       esac
9039       runpath_var='LD_RUN_PATH'
9040       hardcode_shlibpath_var=no
9041       ;;
9042
9043     sysv4.3*)
9044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045       hardcode_shlibpath_var=no
9046       export_dynamic_flag_spec='-Bexport'
9047       ;;
9048
9049     sysv4*MP*)
9050       if test -d /usr/nec; then
9051         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052         hardcode_shlibpath_var=no
9053         runpath_var=LD_RUN_PATH
9054         hardcode_runpath_var=yes
9055         ld_shlibs=yes
9056       fi
9057       ;;
9058
9059     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9060       no_undefined_flag='${wl}-z,text'
9061       archive_cmds_need_lc=no
9062       hardcode_shlibpath_var=no
9063       runpath_var='LD_RUN_PATH'
9064
9065       if test "$GCC" = yes; then
9066         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068       else
9069         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9070         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9071       fi
9072       ;;
9073
9074     sysv5* | sco3.2v5* | sco5v6*)
9075       # Note: We can NOT use -z defs as we might desire, because we do not
9076       # link with -lc, and that would cause any symbols used from libc to
9077       # always be unresolved, which means just about no library would
9078       # ever link correctly.  If we're not using GNU ld we use -z text
9079       # though, which does catch some bad symbols but isn't as heavy-handed
9080       # as -z defs.
9081       no_undefined_flag='${wl}-z,text'
9082       allow_undefined_flag='${wl}-z,nodefs'
9083       archive_cmds_need_lc=no
9084       hardcode_shlibpath_var=no
9085       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9086       hardcode_libdir_separator=':'
9087       link_all_deplibs=yes
9088       export_dynamic_flag_spec='${wl}-Bexport'
9089       runpath_var='LD_RUN_PATH'
9090
9091       if test "$GCC" = yes; then
9092         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094       else
9095         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9096         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9097       fi
9098       ;;
9099
9100     uts4*)
9101       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102       hardcode_libdir_flag_spec='-L$libdir'
9103       hardcode_shlibpath_var=no
9104       ;;
9105
9106     *)
9107       ld_shlibs=no
9108       ;;
9109     esac
9110   fi
9111
9112 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9113 echo "${ECHO_T}$ld_shlibs" >&6; }
9114 test "$ld_shlibs" = no && can_build_shared=no
9115
9116 #
9117 # Do we need to explicitly link libc?
9118 #
9119 case "x$archive_cmds_need_lc" in
9120 x|xyes)
9121   # Assume -lc should be added
9122   archive_cmds_need_lc=yes
9123
9124   if test "$enable_shared" = yes && test "$GCC" = yes; then
9125     case $archive_cmds in
9126     *'~'*)
9127       # FIXME: we may have to deal with multi-command sequences.
9128       ;;
9129     '$CC '*)
9130       # Test whether the compiler implicitly links with -lc since on some
9131       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9132       # to ld, don't add -lc before -lgcc.
9133       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9134 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9135       $rm conftest*
9136       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9137
9138       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139   (eval $ac_compile) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } 2>conftest.err; then
9143         soname=conftest
9144         lib=conftest
9145         libobjs=conftest.$ac_objext
9146         deplibs=
9147         wl=$lt_prog_compiler_wl
9148         pic_flag=$lt_prog_compiler_pic
9149         compiler_flags=-v
9150         linker_flags=-v
9151         verstring=
9152         output_objdir=.
9153         libname=conftest
9154         lt_save_allow_undefined_flag=$allow_undefined_flag
9155         allow_undefined_flag=
9156         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9157   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); }
9161         then
9162           archive_cmds_need_lc=no
9163         else
9164           archive_cmds_need_lc=yes
9165         fi
9166         allow_undefined_flag=$lt_save_allow_undefined_flag
9167       else
9168         cat conftest.err 1>&5
9169       fi
9170       $rm conftest*
9171       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9172 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9173       ;;
9174     esac
9175   fi
9176   ;;
9177 esac
9178
9179 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9180 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9181 library_names_spec=
9182 libname_spec='lib$name'
9183 soname_spec=
9184 shrext_cmds=".so"
9185 postinstall_cmds=
9186 postuninstall_cmds=
9187 finish_cmds=
9188 finish_eval=
9189 shlibpath_var=
9190 shlibpath_overrides_runpath=unknown
9191 version_type=none
9192 dynamic_linker="$host_os ld.so"
9193 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9194
9195 if test "$GCC" = yes; then
9196   case $host_os in
9197     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9198     *) lt_awk_arg="/^libraries:/" ;;
9199   esac
9200   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9202     # if the path contains ";" then we assume it to be the separator
9203     # otherwise default to the standard path separator (i.e. ":") - it is
9204     # assumed that no part of a normal pathname contains ";" but that should
9205     # okay in the real world where ";" in dirpaths is itself problematic.
9206     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9207   else
9208     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9209   fi
9210   # Ok, now we have the path, separated by spaces, we can step through it
9211   # and add multilib dir if necessary.
9212   lt_tmp_lt_search_path_spec=
9213   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9214   for lt_sys_path in $lt_search_path_spec; do
9215     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9216       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9217     else
9218       test -d "$lt_sys_path" && \
9219         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9220     fi
9221   done
9222   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9223 BEGIN {RS=" "; FS="/|\n";} {
9224   lt_foo="";
9225   lt_count=0;
9226   for (lt_i = NF; lt_i > 0; lt_i--) {
9227     if ($lt_i != "" && $lt_i != ".") {
9228       if ($lt_i == "..") {
9229         lt_count++;
9230       } else {
9231         if (lt_count == 0) {
9232           lt_foo="/" $lt_i lt_foo;
9233         } else {
9234           lt_count--;
9235         }
9236       }
9237     }
9238   }
9239   if (lt_foo != "") { lt_freq[lt_foo]++; }
9240   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9241 }'`
9242   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9243 else
9244   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9245 fi
9246 need_lib_prefix=unknown
9247 hardcode_into_libs=no
9248
9249 # when you set need_version to no, make sure it does not cause -set_version
9250 # flags to be left without arguments
9251 need_version=unknown
9252
9253 case $host_os in
9254 aix3*)
9255   version_type=linux
9256   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257   shlibpath_var=LIBPATH
9258
9259   # AIX 3 has no versioning support, so we append a major version to the name.
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   ;;
9262
9263 aix[4-9]*)
9264   version_type=linux
9265   need_lib_prefix=no
9266   need_version=no
9267   hardcode_into_libs=yes
9268   if test "$host_cpu" = ia64; then
9269     # AIX 5 supports IA64
9270     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271     shlibpath_var=LD_LIBRARY_PATH
9272   else
9273     # With GCC up to 2.95.x, collect2 would create an import file
9274     # for dependence libraries.  The import file would start with
9275     # the line `#! .'.  This would cause the generated library to
9276     # depend on `.', always an invalid library.  This was fixed in
9277     # development snapshots of GCC prior to 3.0.
9278     case $host_os in
9279       aix4 | aix4.[01] | aix4.[01].*)
9280       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9281            echo ' yes '
9282            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9283         :
9284       else
9285         can_build_shared=no
9286       fi
9287       ;;
9288     esac
9289     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290     # soname into executable. Probably we can add versioning support to
9291     # collect2, so additional links can be useful in future.
9292     if test "$aix_use_runtimelinking" = yes; then
9293       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294       # instead of lib<name>.a to let people know that these are not
9295       # typical AIX shared libraries.
9296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297     else
9298       # We preserve .a as extension for shared libraries through AIX4.2
9299       # and later when we are not doing run time linking.
9300       library_names_spec='${libname}${release}.a $libname.a'
9301       soname_spec='${libname}${release}${shared_ext}$major'
9302     fi
9303     shlibpath_var=LIBPATH
9304   fi
9305   ;;
9306
9307 amigaos*)
9308   library_names_spec='$libname.ixlibrary $libname.a'
9309   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310   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'
9311   ;;
9312
9313 beos*)
9314   library_names_spec='${libname}${shared_ext}'
9315   dynamic_linker="$host_os ld.so"
9316   shlibpath_var=LIBRARY_PATH
9317   ;;
9318
9319 bsdi[45]*)
9320   version_type=linux
9321   need_version=no
9322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323   soname_spec='${libname}${release}${shared_ext}$major'
9324   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9325   shlibpath_var=LD_LIBRARY_PATH
9326   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9327   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9328   # the default ld.so.conf also contains /usr/contrib/lib and
9329   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9330   # libtool to hard-code these into programs
9331   ;;
9332
9333 cygwin* | mingw* | pw32*)
9334   version_type=windows
9335   shrext_cmds=".dll"
9336   need_version=no
9337   need_lib_prefix=no
9338
9339   case $GCC,$host_os in
9340   yes,cygwin* | yes,mingw* | yes,pw32*)
9341     library_names_spec='$libname.dll.a'
9342     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9343     postinstall_cmds='base_file=`basename \${file}`~
9344       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9345       dldir=$destdir/`dirname \$dlpath`~
9346       test -d \$dldir || mkdir -p \$dldir~
9347       $install_prog $dir/$dlname \$dldir/$dlname~
9348       chmod a+x \$dldir/$dlname'
9349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9350       dlpath=$dir/\$dldll~
9351        $rm \$dlpath'
9352     shlibpath_overrides_runpath=yes
9353
9354     case $host_os in
9355     cygwin*)
9356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9359       ;;
9360     mingw*)
9361       # MinGW DLLs use traditional 'lib' prefix
9362       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9365         # It is most probably a Windows format PATH printed by
9366         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9367         # path with ; separators, and with drive letters. We can handle the
9368         # drive letters (cygwin fileutils understands them), so leave them,
9369         # especially as we might pass files found there to a mingw objdump,
9370         # which wouldn't understand a cygwinified path. Ahh.
9371         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9372       else
9373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9374       fi
9375       ;;
9376     pw32*)
9377       # pw32 DLLs use 'pw' prefix rather than 'lib'
9378       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379       ;;
9380     esac
9381     ;;
9382
9383   *)
9384     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9385     ;;
9386   esac
9387   dynamic_linker='Win32 ld.exe'
9388   # FIXME: first we should search . and the directory the executable is in
9389   shlibpath_var=PATH
9390   ;;
9391
9392 darwin* | rhapsody*)
9393   dynamic_linker="$host_os dyld"
9394   version_type=darwin
9395   need_lib_prefix=no
9396   need_version=no
9397   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9398   soname_spec='${libname}${release}${major}$shared_ext'
9399   shlibpath_overrides_runpath=yes
9400   shlibpath_var=DYLD_LIBRARY_PATH
9401   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9402
9403   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9404   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9405   ;;
9406
9407 dgux*)
9408   version_type=linux
9409   need_lib_prefix=no
9410   need_version=no
9411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9412   soname_spec='${libname}${release}${shared_ext}$major'
9413   shlibpath_var=LD_LIBRARY_PATH
9414   ;;
9415
9416 freebsd1*)
9417   dynamic_linker=no
9418   ;;
9419
9420 freebsd* | dragonfly*)
9421   # DragonFly does not have aout.  When/if they implement a new
9422   # versioning mechanism, adjust this.
9423   if test -x /usr/bin/objformat; then
9424     objformat=`/usr/bin/objformat`
9425   else
9426     case $host_os in
9427     freebsd[123]*) objformat=aout ;;
9428     *) objformat=elf ;;
9429     esac
9430   fi
9431   version_type=freebsd-$objformat
9432   case $version_type in
9433     freebsd-elf*)
9434       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9435       need_version=no
9436       need_lib_prefix=no
9437       ;;
9438     freebsd-*)
9439       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9440       need_version=yes
9441       ;;
9442   esac
9443   shlibpath_var=LD_LIBRARY_PATH
9444   case $host_os in
9445   freebsd2*)
9446     shlibpath_overrides_runpath=yes
9447     ;;
9448   freebsd3.[01]* | freebsdelf3.[01]*)
9449     shlibpath_overrides_runpath=yes
9450     hardcode_into_libs=yes
9451     ;;
9452   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9453   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9454     shlibpath_overrides_runpath=no
9455     hardcode_into_libs=yes
9456     ;;
9457   *) # from 4.6 on, and DragonFly
9458     shlibpath_overrides_runpath=yes
9459     hardcode_into_libs=yes
9460     ;;
9461   esac
9462   ;;
9463
9464 gnu*)
9465   version_type=linux
9466   need_lib_prefix=no
9467   need_version=no
9468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9469   soname_spec='${libname}${release}${shared_ext}$major'
9470   shlibpath_var=LD_LIBRARY_PATH
9471   hardcode_into_libs=yes
9472   ;;
9473
9474 hpux9* | hpux10* | hpux11*)
9475   # Give a soname corresponding to the major version so that dld.sl refuses to
9476   # link against other versions.
9477   version_type=sunos
9478   need_lib_prefix=no
9479   need_version=no
9480   case $host_cpu in
9481   ia64*)
9482     shrext_cmds='.so'
9483     hardcode_into_libs=yes
9484     dynamic_linker="$host_os dld.so"
9485     shlibpath_var=LD_LIBRARY_PATH
9486     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488     soname_spec='${libname}${release}${shared_ext}$major'
9489     if test "X$HPUX_IA64_MODE" = X32; then
9490       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9491     else
9492       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9493     fi
9494     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9495     ;;
9496    hppa*64*)
9497      shrext_cmds='.sl'
9498      hardcode_into_libs=yes
9499      dynamic_linker="$host_os dld.sl"
9500      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9501      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9502      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503      soname_spec='${libname}${release}${shared_ext}$major'
9504      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9505      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9506      ;;
9507    *)
9508     shrext_cmds='.sl'
9509     dynamic_linker="$host_os dld.sl"
9510     shlibpath_var=SHLIB_PATH
9511     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513     soname_spec='${libname}${release}${shared_ext}$major'
9514     ;;
9515   esac
9516   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9517   postinstall_cmds='chmod 555 $lib'
9518   ;;
9519
9520 interix[3-9]*)
9521   version_type=linux
9522   need_lib_prefix=no
9523   need_version=no
9524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9525   soname_spec='${libname}${release}${shared_ext}$major'
9526   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9527   shlibpath_var=LD_LIBRARY_PATH
9528   shlibpath_overrides_runpath=no
9529   hardcode_into_libs=yes
9530   ;;
9531
9532 irix5* | irix6* | nonstopux*)
9533   case $host_os in
9534     nonstopux*) version_type=nonstopux ;;
9535     *)
9536         if test "$lt_cv_prog_gnu_ld" = yes; then
9537                 version_type=linux
9538         else
9539                 version_type=irix
9540         fi ;;
9541   esac
9542   need_lib_prefix=no
9543   need_version=no
9544   soname_spec='${libname}${release}${shared_ext}$major'
9545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9546   case $host_os in
9547   irix5* | nonstopux*)
9548     libsuff= shlibsuff=
9549     ;;
9550   *)
9551     case $LD in # libtool.m4 will add one of these switches to LD
9552     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9553       libsuff= shlibsuff= libmagic=32-bit;;
9554     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9555       libsuff=32 shlibsuff=N32 libmagic=N32;;
9556     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9557       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9558     *) libsuff= shlibsuff= libmagic=never-match;;
9559     esac
9560     ;;
9561   esac
9562   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9563   shlibpath_overrides_runpath=no
9564   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9565   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9566   hardcode_into_libs=yes
9567   ;;
9568
9569 # No shared lib support for Linux oldld, aout, or coff.
9570 linux*oldld* | linux*aout* | linux*coff*)
9571   dynamic_linker=no
9572   ;;
9573
9574 # This must be Linux ELF.
9575 linux* | k*bsd*-gnu)
9576   version_type=linux
9577   need_lib_prefix=no
9578   need_version=no
9579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580   soname_spec='${libname}${release}${shared_ext}$major'
9581   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9582   shlibpath_var=LD_LIBRARY_PATH
9583   shlibpath_overrides_runpath=no
9584   # This implies no fast_install, which is unacceptable.
9585   # Some rework will be needed to allow for fast_install
9586   # before this can be enabled.
9587   hardcode_into_libs=yes
9588
9589   # Append ld.so.conf contents to the search path
9590   if test -f /etc/ld.so.conf; then
9591     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' ' '`
9592     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9593   fi
9594
9595   # We used to test for /lib/ld.so.1 and disable shared libraries on
9596   # powerpc, because MkLinux only supported shared libraries with the
9597   # GNU dynamic linker.  Since this was broken with cross compilers,
9598   # most powerpc-linux boxes support dynamic linking these days and
9599   # people can always --disable-shared, the test was removed, and we
9600   # assume the GNU/Linux dynamic linker is in use.
9601   dynamic_linker='GNU/Linux ld.so'
9602   ;;
9603
9604 netbsd*)
9605   version_type=sunos
9606   need_lib_prefix=no
9607   need_version=no
9608   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9611     dynamic_linker='NetBSD (a.out) ld.so'
9612   else
9613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9614     soname_spec='${libname}${release}${shared_ext}$major'
9615     dynamic_linker='NetBSD ld.elf_so'
9616   fi
9617   shlibpath_var=LD_LIBRARY_PATH
9618   shlibpath_overrides_runpath=yes
9619   hardcode_into_libs=yes
9620   ;;
9621
9622 newsos6)
9623   version_type=linux
9624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625   shlibpath_var=LD_LIBRARY_PATH
9626   shlibpath_overrides_runpath=yes
9627   ;;
9628
9629 nto-qnx*)
9630   version_type=linux
9631   need_lib_prefix=no
9632   need_version=no
9633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634   soname_spec='${libname}${release}${shared_ext}$major'
9635   shlibpath_var=LD_LIBRARY_PATH
9636   shlibpath_overrides_runpath=yes
9637   ;;
9638
9639 openbsd*)
9640   version_type=sunos
9641   sys_lib_dlsearch_path_spec="/usr/lib"
9642   need_lib_prefix=no
9643   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9644   case $host_os in
9645     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9646     *)                         need_version=no  ;;
9647   esac
9648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9650   shlibpath_var=LD_LIBRARY_PATH
9651   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9652     case $host_os in
9653       openbsd2.[89] | openbsd2.[89].*)
9654         shlibpath_overrides_runpath=no
9655         ;;
9656       *)
9657         shlibpath_overrides_runpath=yes
9658         ;;
9659       esac
9660   else
9661     shlibpath_overrides_runpath=yes
9662   fi
9663   ;;
9664
9665 os2*)
9666   libname_spec='$name'
9667   shrext_cmds=".dll"
9668   need_lib_prefix=no
9669   library_names_spec='$libname${shared_ext} $libname.a'
9670   dynamic_linker='OS/2 ld.exe'
9671   shlibpath_var=LIBPATH
9672   ;;
9673
9674 osf3* | osf4* | osf5*)
9675   version_type=osf
9676   need_lib_prefix=no
9677   need_version=no
9678   soname_spec='${libname}${release}${shared_ext}$major'
9679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680   shlibpath_var=LD_LIBRARY_PATH
9681   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9682   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9683   ;;
9684
9685 rdos*)
9686   dynamic_linker=no
9687   ;;
9688
9689 solaris*)
9690   version_type=linux
9691   need_lib_prefix=no
9692   need_version=no
9693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694   soname_spec='${libname}${release}${shared_ext}$major'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   shlibpath_overrides_runpath=yes
9697   hardcode_into_libs=yes
9698   # ldd complains unless libraries are executable
9699   postinstall_cmds='chmod +x $lib'
9700   ;;
9701
9702 sunos4*)
9703   version_type=sunos
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9706   shlibpath_var=LD_LIBRARY_PATH
9707   shlibpath_overrides_runpath=yes
9708   if test "$with_gnu_ld" = yes; then
9709     need_lib_prefix=no
9710   fi
9711   need_version=yes
9712   ;;
9713
9714 sysv4 | sysv4.3*)
9715   version_type=linux
9716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717   soname_spec='${libname}${release}${shared_ext}$major'
9718   shlibpath_var=LD_LIBRARY_PATH
9719   case $host_vendor in
9720     sni)
9721       shlibpath_overrides_runpath=no
9722       need_lib_prefix=no
9723       export_dynamic_flag_spec='${wl}-Blargedynsym'
9724       runpath_var=LD_RUN_PATH
9725       ;;
9726     siemens)
9727       need_lib_prefix=no
9728       ;;
9729     motorola)
9730       need_lib_prefix=no
9731       need_version=no
9732       shlibpath_overrides_runpath=no
9733       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9734       ;;
9735   esac
9736   ;;
9737
9738 sysv4*MP*)
9739   if test -d /usr/nec ;then
9740     version_type=linux
9741     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9742     soname_spec='$libname${shared_ext}.$major'
9743     shlibpath_var=LD_LIBRARY_PATH
9744   fi
9745   ;;
9746
9747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9748   version_type=freebsd-elf
9749   need_lib_prefix=no
9750   need_version=no
9751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9752   soname_spec='${libname}${release}${shared_ext}$major'
9753   shlibpath_var=LD_LIBRARY_PATH
9754   hardcode_into_libs=yes
9755   if test "$with_gnu_ld" = yes; then
9756     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9757     shlibpath_overrides_runpath=no
9758   else
9759     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9760     shlibpath_overrides_runpath=yes
9761     case $host_os in
9762       sco3.2v5*)
9763         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9764         ;;
9765     esac
9766   fi
9767   sys_lib_dlsearch_path_spec='/usr/lib'
9768   ;;
9769
9770 uts4*)
9771   version_type=linux
9772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773   soname_spec='${libname}${release}${shared_ext}$major'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   ;;
9776
9777 *)
9778   dynamic_linker=no
9779   ;;
9780 esac
9781 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9782 echo "${ECHO_T}$dynamic_linker" >&6; }
9783 test "$dynamic_linker" = no && can_build_shared=no
9784
9785 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9789 fi
9790
9791 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9792 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9796 fi
9797
9798 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9799
9800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9801 if test "$GCC" = yes; then
9802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9803 fi
9804
9805 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9807 hardcode_action=
9808 if test -n "$hardcode_libdir_flag_spec" || \
9809    test -n "$runpath_var" || \
9810    test "X$hardcode_automatic" = "Xyes" ; then
9811
9812   # We can hardcode non-existant directories.
9813   if test "$hardcode_direct" != no &&
9814      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9815      # have to relink, otherwise we might link with an installed library
9816      # when we should be linking with a yet-to-be-installed one
9817      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9818      test "$hardcode_minus_L" != no; then
9819     # Linking always hardcodes the temporary library directory.
9820     hardcode_action=relink
9821   else
9822     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9823     hardcode_action=immediate
9824   fi
9825 else
9826   # We cannot hardcode anything, or else we can only hardcode existing
9827   # directories.
9828   hardcode_action=unsupported
9829 fi
9830 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9831 echo "${ECHO_T}$hardcode_action" >&6; }
9832
9833 if test "$hardcode_action" = relink; then
9834   # Fast installation is not supported
9835   enable_fast_install=no
9836 elif test "$shlibpath_overrides_runpath" = yes ||
9837      test "$enable_shared" = no; then
9838   # Fast installation is not necessary
9839   enable_fast_install=needless
9840 fi
9841
9842 striplib=
9843 old_striplib=
9844 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9845 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9846 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9847   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9848   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9849   { echo "$as_me:$LINENO: result: yes" >&5
9850 echo "${ECHO_T}yes" >&6; }
9851 else
9852 # FIXME - insert some real tests, host_os isn't really good enough
9853   case $host_os in
9854    darwin*)
9855        if test -n "$STRIP" ; then
9856          striplib="$STRIP -x"
9857          old_striplib="$STRIP -S"
9858          { echo "$as_me:$LINENO: result: yes" >&5
9859 echo "${ECHO_T}yes" >&6; }
9860        else
9861   { echo "$as_me:$LINENO: result: no" >&5
9862 echo "${ECHO_T}no" >&6; }
9863 fi
9864        ;;
9865    *)
9866   { echo "$as_me:$LINENO: result: no" >&5
9867 echo "${ECHO_T}no" >&6; }
9868     ;;
9869   esac
9870 fi
9871
9872 if test "x$enable_dlopen" != xyes; then
9873   enable_dlopen=unknown
9874   enable_dlopen_self=unknown
9875   enable_dlopen_self_static=unknown
9876 else
9877   lt_cv_dlopen=no
9878   lt_cv_dlopen_libs=
9879
9880   case $host_os in
9881   beos*)
9882     lt_cv_dlopen="load_add_on"
9883     lt_cv_dlopen_libs=
9884     lt_cv_dlopen_self=yes
9885     ;;
9886
9887   mingw* | pw32*)
9888     lt_cv_dlopen="LoadLibrary"
9889     lt_cv_dlopen_libs=
9890    ;;
9891
9892   cygwin*)
9893     lt_cv_dlopen="dlopen"
9894     lt_cv_dlopen_libs=
9895    ;;
9896
9897   darwin*)
9898   # if libdl is installed we need to link against it
9899     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9900 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9901 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9902   echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904   ac_check_lib_save_LIBS=$LIBS
9905 LIBS="-ldl  $LIBS"
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912
9913 /* Override any GCC internal prototype to avoid an error.
9914    Use char because int might match the return type of a GCC
9915    builtin and then its argument prototype would still apply.  */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 char dlopen ();
9920 int
9921 main ()
9922 {
9923 return dlopen ();
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935   (eval "$ac_link") 2>conftest.er1
9936   ac_status=$?
9937   grep -v '^ *+' conftest.er1 >conftest.err
9938   rm -f conftest.er1
9939   cat conftest.err >&5
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } && {
9942          test -z "$ac_c_werror_flag" ||
9943          test ! -s conftest.err
9944        } && test -s conftest$ac_exeext &&
9945        $as_test_x conftest$ac_exeext; then
9946   ac_cv_lib_dl_dlopen=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951         ac_cv_lib_dl_dlopen=no
9952 fi
9953
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955       conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9957 fi
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9960 if test $ac_cv_lib_dl_dlopen = yes; then
9961   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9962 else
9963
9964     lt_cv_dlopen="dyld"
9965     lt_cv_dlopen_libs=
9966     lt_cv_dlopen_self=yes
9967
9968 fi
9969
9970    ;;
9971
9972   *)
9973     { echo "$as_me:$LINENO: checking for shl_load" >&5
9974 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9975 if test "${ac_cv_func_shl_load+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9986 #define shl_load innocuous_shl_load
9987
9988 /* System header to define __stub macros and hopefully few prototypes,
9989     which can conflict with char shl_load (); below.
9990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991     <limits.h> exists even on freestanding compilers.  */
9992
9993 #ifdef __STDC__
9994 # include <limits.h>
9995 #else
9996 # include <assert.h>
9997 #endif
9998
9999 #undef shl_load
10000
10001 /* Override any GCC internal prototype to avoid an error.
10002    Use char because int might match the return type of a GCC
10003    builtin and then its argument prototype would still apply.  */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char shl_load ();
10008 /* The GNU C library defines this for functions which it implements
10009     to always fail with ENOSYS.  Some functions are actually named
10010     something starting with __ and the normal name is an alias.  */
10011 #if defined __stub_shl_load || defined __stub___shl_load
10012 choke me
10013 #endif
10014
10015 int
10016 main ()
10017 {
10018 return shl_load ();
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_link") 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } && {
10037          test -z "$ac_c_werror_flag" ||
10038          test ! -s conftest.err
10039        } && test -s conftest$ac_exeext &&
10040        $as_test_x conftest$ac_exeext; then
10041   ac_cv_func_shl_load=yes
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046         ac_cv_func_shl_load=no
10047 fi
10048
10049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050       conftest$ac_exeext conftest.$ac_ext
10051 fi
10052 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10053 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10054 if test $ac_cv_func_shl_load = yes; then
10055   lt_cv_dlopen="shl_load"
10056 else
10057   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10058 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10059 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062   ac_check_lib_save_LIBS=$LIBS
10063 LIBS="-ldld  $LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072    Use char because int might match the return type of a GCC
10073    builtin and then its argument prototype would still apply.  */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char shl_load ();
10078 int
10079 main ()
10080 {
10081 return shl_load ();
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_link") 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
10097   cat conftest.err >&5
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); } && {
10100          test -z "$ac_c_werror_flag" ||
10101          test ! -s conftest.err
10102        } && test -s conftest$ac_exeext &&
10103        $as_test_x conftest$ac_exeext; then
10104   ac_cv_lib_dld_shl_load=yes
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109         ac_cv_lib_dld_shl_load=no
10110 fi
10111
10112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10113       conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10117 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10118 if test $ac_cv_lib_dld_shl_load = yes; then
10119   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10120 else
10121   { echo "$as_me:$LINENO: checking for dlopen" >&5
10122 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10123 if test "${ac_cv_func_dlopen+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10134 #define dlopen innocuous_dlopen
10135
10136 /* System header to define __stub macros and hopefully few prototypes,
10137     which can conflict with char dlopen (); below.
10138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139     <limits.h> exists even on freestanding compilers.  */
10140
10141 #ifdef __STDC__
10142 # include <limits.h>
10143 #else
10144 # include <assert.h>
10145 #endif
10146
10147 #undef dlopen
10148
10149 /* Override any GCC internal prototype to avoid an error.
10150    Use char because int might match the return type of a GCC
10151    builtin and then its argument prototype would still apply.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char dlopen ();
10156 /* The GNU C library defines this for functions which it implements
10157     to always fail with ENOSYS.  Some functions are actually named
10158     something starting with __ and the normal name is an alias.  */
10159 #if defined __stub_dlopen || defined __stub___dlopen
10160 choke me
10161 #endif
10162
10163 int
10164 main ()
10165 {
10166 return dlopen ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_link") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } && {
10185          test -z "$ac_c_werror_flag" ||
10186          test ! -s conftest.err
10187        } && test -s conftest$ac_exeext &&
10188        $as_test_x conftest$ac_exeext; then
10189   ac_cv_func_dlopen=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         ac_cv_func_dlopen=no
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10198       conftest$ac_exeext conftest.$ac_ext
10199 fi
10200 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10201 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10202 if test $ac_cv_func_dlopen = yes; then
10203   lt_cv_dlopen="dlopen"
10204 else
10205   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10206 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10207 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10208   echo $ECHO_N "(cached) $ECHO_C" >&6
10209 else
10210   ac_check_lib_save_LIBS=$LIBS
10211 LIBS="-ldl  $LIBS"
10212 cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h.  */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h.  */
10218
10219 /* Override any GCC internal prototype to avoid an error.
10220    Use char because int might match the return type of a GCC
10221    builtin and then its argument prototype would still apply.  */
10222 #ifdef __cplusplus
10223 extern "C"
10224 #endif
10225 char dlopen ();
10226 int
10227 main ()
10228 {
10229 return dlopen ();
10230   ;
10231   return 0;
10232 }
10233 _ACEOF
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (ac_try="$ac_link"
10236 case "(($ac_try" in
10237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238   *) ac_try_echo=$ac_try;;
10239 esac
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241   (eval "$ac_link") 2>conftest.er1
10242   ac_status=$?
10243   grep -v '^ *+' conftest.er1 >conftest.err
10244   rm -f conftest.er1
10245   cat conftest.err >&5
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); } && {
10248          test -z "$ac_c_werror_flag" ||
10249          test ! -s conftest.err
10250        } && test -s conftest$ac_exeext &&
10251        $as_test_x conftest$ac_exeext; then
10252   ac_cv_lib_dl_dlopen=yes
10253 else
10254   echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257         ac_cv_lib_dl_dlopen=no
10258 fi
10259
10260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261       conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10265 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10266 if test $ac_cv_lib_dl_dlopen = yes; then
10267   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10268 else
10269   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10270 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10271 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274   ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-lsvld  $LIBS"
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h.  */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h.  */
10282
10283 /* Override any GCC internal prototype to avoid an error.
10284    Use char because int might match the return type of a GCC
10285    builtin and then its argument prototype would still apply.  */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 char dlopen ();
10290 int
10291 main ()
10292 {
10293 return dlopen ();
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (ac_try="$ac_link"
10300 case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305   (eval "$ac_link") 2>conftest.er1
10306   ac_status=$?
10307   grep -v '^ *+' conftest.er1 >conftest.err
10308   rm -f conftest.er1
10309   cat conftest.err >&5
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); } && {
10312          test -z "$ac_c_werror_flag" ||
10313          test ! -s conftest.err
10314        } && test -s conftest$ac_exeext &&
10315        $as_test_x conftest$ac_exeext; then
10316   ac_cv_lib_svld_dlopen=yes
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321         ac_cv_lib_svld_dlopen=no
10322 fi
10323
10324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10325       conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10327 fi
10328 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10329 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10330 if test $ac_cv_lib_svld_dlopen = yes; then
10331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10332 else
10333   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10334 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10335 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   ac_check_lib_save_LIBS=$LIBS
10339 LIBS="-ldld  $LIBS"
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h.  */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h.  */
10346
10347 /* Override any GCC internal prototype to avoid an error.
10348    Use char because int might match the return type of a GCC
10349    builtin and then its argument prototype would still apply.  */
10350 #ifdef __cplusplus
10351 extern "C"
10352 #endif
10353 char dld_link ();
10354 int
10355 main ()
10356 {
10357 return dld_link ();
10358   ;
10359   return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_link") 2>conftest.er1
10370   ac_status=$?
10371   grep -v '^ *+' conftest.er1 >conftest.err
10372   rm -f conftest.er1
10373   cat conftest.err >&5
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } && {
10376          test -z "$ac_c_werror_flag" ||
10377          test ! -s conftest.err
10378        } && test -s conftest$ac_exeext &&
10379        $as_test_x conftest$ac_exeext; then
10380   ac_cv_lib_dld_dld_link=yes
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385         ac_cv_lib_dld_dld_link=no
10386 fi
10387
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389       conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$ac_check_lib_save_LIBS
10391 fi
10392 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10393 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10394 if test $ac_cv_lib_dld_dld_link = yes; then
10395   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10396 fi
10397
10398
10399 fi
10400
10401
10402 fi
10403
10404
10405 fi
10406
10407
10408 fi
10409
10410
10411 fi
10412
10413     ;;
10414   esac
10415
10416   if test "x$lt_cv_dlopen" != xno; then
10417     enable_dlopen=yes
10418   else
10419     enable_dlopen=no
10420   fi
10421
10422   case $lt_cv_dlopen in
10423   dlopen)
10424     save_CPPFLAGS="$CPPFLAGS"
10425     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10426
10427     save_LDFLAGS="$LDFLAGS"
10428     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10429
10430     save_LIBS="$LIBS"
10431     LIBS="$lt_cv_dlopen_libs $LIBS"
10432
10433     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10434 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10435 if test "${lt_cv_dlopen_self+set}" = set; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438           if test "$cross_compiling" = yes; then :
10439   lt_cv_dlopen_self=cross
10440 else
10441   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442   lt_status=$lt_dlunknown
10443   cat > conftest.$ac_ext <<EOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10446
10447 #if HAVE_DLFCN_H
10448 #include <dlfcn.h>
10449 #endif
10450
10451 #include <stdio.h>
10452
10453 #ifdef RTLD_GLOBAL
10454 #  define LT_DLGLOBAL           RTLD_GLOBAL
10455 #else
10456 #  ifdef DL_GLOBAL
10457 #    define LT_DLGLOBAL         DL_GLOBAL
10458 #  else
10459 #    define LT_DLGLOBAL         0
10460 #  endif
10461 #endif
10462
10463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464    find out it does not work in some platform. */
10465 #ifndef LT_DLLAZY_OR_NOW
10466 #  ifdef RTLD_LAZY
10467 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10468 #  else
10469 #    ifdef DL_LAZY
10470 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10471 #    else
10472 #      ifdef RTLD_NOW
10473 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10474 #      else
10475 #        ifdef DL_NOW
10476 #          define LT_DLLAZY_OR_NOW      DL_NOW
10477 #        else
10478 #          define LT_DLLAZY_OR_NOW      0
10479 #        endif
10480 #      endif
10481 #    endif
10482 #  endif
10483 #endif
10484
10485 #ifdef __cplusplus
10486 extern "C" void exit (int);
10487 #endif
10488
10489 void fnord() { int i=42;}
10490 int main ()
10491 {
10492   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10493   int status = $lt_dlunknown;
10494
10495   if (self)
10496     {
10497       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10498       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499       /* dlclose (self); */
10500     }
10501   else
10502     puts (dlerror ());
10503
10504     exit (status);
10505 }
10506 EOF
10507   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508   (eval $ac_link) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10512     (./conftest; exit; ) >&5 2>/dev/null
10513     lt_status=$?
10514     case x$lt_status in
10515       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10516       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10517       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10518     esac
10519   else :
10520     # compilation failed
10521     lt_cv_dlopen_self=no
10522   fi
10523 fi
10524 rm -fr conftest*
10525
10526
10527 fi
10528 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10529 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10530
10531     if test "x$lt_cv_dlopen_self" = xyes; then
10532       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10533       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10534 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10535 if test "${lt_cv_dlopen_self_static+set}" = set; then
10536   echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538           if test "$cross_compiling" = yes; then :
10539   lt_cv_dlopen_self_static=cross
10540 else
10541   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10542   lt_status=$lt_dlunknown
10543   cat > conftest.$ac_ext <<EOF
10544 #line 10544 "configure"
10545 #include "confdefs.h"
10546
10547 #if HAVE_DLFCN_H
10548 #include <dlfcn.h>
10549 #endif
10550
10551 #include <stdio.h>
10552
10553 #ifdef RTLD_GLOBAL
10554 #  define LT_DLGLOBAL           RTLD_GLOBAL
10555 #else
10556 #  ifdef DL_GLOBAL
10557 #    define LT_DLGLOBAL         DL_GLOBAL
10558 #  else
10559 #    define LT_DLGLOBAL         0
10560 #  endif
10561 #endif
10562
10563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10564    find out it does not work in some platform. */
10565 #ifndef LT_DLLAZY_OR_NOW
10566 #  ifdef RTLD_LAZY
10567 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10568 #  else
10569 #    ifdef DL_LAZY
10570 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10571 #    else
10572 #      ifdef RTLD_NOW
10573 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10574 #      else
10575 #        ifdef DL_NOW
10576 #          define LT_DLLAZY_OR_NOW      DL_NOW
10577 #        else
10578 #          define LT_DLLAZY_OR_NOW      0
10579 #        endif
10580 #      endif
10581 #    endif
10582 #  endif
10583 #endif
10584
10585 #ifdef __cplusplus
10586 extern "C" void exit (int);
10587 #endif
10588
10589 void fnord() { int i=42;}
10590 int main ()
10591 {
10592   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10593   int status = $lt_dlunknown;
10594
10595   if (self)
10596     {
10597       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10598       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10599       /* dlclose (self); */
10600     }
10601   else
10602     puts (dlerror ());
10603
10604     exit (status);
10605 }
10606 EOF
10607   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608   (eval $ac_link) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10612     (./conftest; exit; ) >&5 2>/dev/null
10613     lt_status=$?
10614     case x$lt_status in
10615       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10616       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10617       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10618     esac
10619   else :
10620     # compilation failed
10621     lt_cv_dlopen_self_static=no
10622   fi
10623 fi
10624 rm -fr conftest*
10625
10626
10627 fi
10628 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10629 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10630     fi
10631
10632     CPPFLAGS="$save_CPPFLAGS"
10633     LDFLAGS="$save_LDFLAGS"
10634     LIBS="$save_LIBS"
10635     ;;
10636   esac
10637
10638   case $lt_cv_dlopen_self in
10639   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10640   *) enable_dlopen_self=unknown ;;
10641   esac
10642
10643   case $lt_cv_dlopen_self_static in
10644   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10645   *) enable_dlopen_self_static=unknown ;;
10646   esac
10647 fi
10648
10649
10650 # Report which library types will actually be built
10651 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10652 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10653 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10654 echo "${ECHO_T}$can_build_shared" >&6; }
10655
10656 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10657 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10658 test "$can_build_shared" = "no" && enable_shared=no
10659
10660 # On AIX, shared libraries and static libraries use the same namespace, and
10661 # are all built from PIC.
10662 case $host_os in
10663 aix3*)
10664   test "$enable_shared" = yes && enable_static=no
10665   if test -n "$RANLIB"; then
10666     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10667     postinstall_cmds='$RANLIB $lib'
10668   fi
10669   ;;
10670
10671 aix[4-9]*)
10672   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10673     test "$enable_shared" = yes && enable_static=no
10674   fi
10675     ;;
10676 esac
10677 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10678 echo "${ECHO_T}$enable_shared" >&6; }
10679
10680 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10681 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10682 # Make sure either enable_shared or enable_static is yes.
10683 test "$enable_shared" = yes || enable_static=yes
10684 { echo "$as_me:$LINENO: result: $enable_static" >&5
10685 echo "${ECHO_T}$enable_static" >&6; }
10686
10687 # The else clause should only fire when bootstrapping the
10688 # libtool distribution, otherwise you forgot to ship ltmain.sh
10689 # with your package, and you will get complaints that there are
10690 # no rules to generate ltmain.sh.
10691 if test -f "$ltmain"; then
10692   # See if we are running on zsh, and set the options which allow our commands through
10693   # without removal of \ escapes.
10694   if test -n "${ZSH_VERSION+set}" ; then
10695     setopt NO_GLOB_SUBST
10696   fi
10697   # Now quote all the things that may contain metacharacters while being
10698   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10699   # variables and quote the copies for generation of the libtool script.
10700   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10701     SED SHELL STRIP \
10702     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10703     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10704     deplibs_check_method reload_flag reload_cmds need_locks \
10705     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10706     lt_cv_sys_global_symbol_to_c_name_address \
10707     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10708     old_postinstall_cmds old_postuninstall_cmds \
10709     compiler \
10710     CC \
10711     LD \
10712     lt_prog_compiler_wl \
10713     lt_prog_compiler_pic \
10714     lt_prog_compiler_static \
10715     lt_prog_compiler_no_builtin_flag \
10716     export_dynamic_flag_spec \
10717     thread_safe_flag_spec \
10718     whole_archive_flag_spec \
10719     enable_shared_with_static_runtimes \
10720     old_archive_cmds \
10721     old_archive_from_new_cmds \
10722     predep_objects \
10723     postdep_objects \
10724     predeps \
10725     postdeps \
10726     compiler_lib_search_path \
10727     compiler_lib_search_dirs \
10728     archive_cmds \
10729     archive_expsym_cmds \
10730     postinstall_cmds \
10731     postuninstall_cmds \
10732     old_archive_from_expsyms_cmds \
10733     allow_undefined_flag \
10734     no_undefined_flag \
10735     export_symbols_cmds \
10736     hardcode_libdir_flag_spec \
10737     hardcode_libdir_flag_spec_ld \
10738     hardcode_libdir_separator \
10739     hardcode_automatic \
10740     module_cmds \
10741     module_expsym_cmds \
10742     lt_cv_prog_compiler_c_o \
10743     fix_srcfile_path \
10744     exclude_expsyms \
10745     include_expsyms; do
10746
10747     case $var in
10748     old_archive_cmds | \
10749     old_archive_from_new_cmds | \
10750     archive_cmds | \
10751     archive_expsym_cmds | \
10752     module_cmds | \
10753     module_expsym_cmds | \
10754     old_archive_from_expsyms_cmds | \
10755     export_symbols_cmds | \
10756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10757     postinstall_cmds | postuninstall_cmds | \
10758     old_postinstall_cmds | old_postuninstall_cmds | \
10759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10760       # Double-quote double-evaled strings.
10761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10762       ;;
10763     *)
10764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10765       ;;
10766     esac
10767   done
10768
10769   case $lt_echo in
10770   *'\$0 --fallback-echo"')
10771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10772     ;;
10773   esac
10774
10775 cfgfile="${ofile}T"
10776   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10777   $rm -f "$cfgfile"
10778   { echo "$as_me:$LINENO: creating $ofile" >&5
10779 echo "$as_me: creating $ofile" >&6;}
10780
10781   cat <<__EOF__ >> "$cfgfile"
10782 #! $SHELL
10783
10784 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10785 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10786 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10787 #
10788 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10789 # Free Software Foundation, Inc.
10790 #
10791 # This file is part of GNU Libtool:
10792 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10793 #
10794 # This program is free software; you can redistribute it and/or modify
10795 # it under the terms of the GNU General Public License as published by
10796 # the Free Software Foundation; either version 2 of the License, or
10797 # (at your option) any later version.
10798 #
10799 # This program is distributed in the hope that it will be useful, but
10800 # WITHOUT ANY WARRANTY; without even the implied warranty of
10801 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10802 # General Public License for more details.
10803 #
10804 # You should have received a copy of the GNU General Public License
10805 # along with this program; if not, write to the Free Software
10806 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10807 #
10808 # As a special exception to the GNU General Public License, if you
10809 # distribute this file as part of a program that contains a
10810 # configuration script generated by Autoconf, you may include it under
10811 # the same distribution terms that you use for the rest of that program.
10812
10813 # A sed program that does not truncate output.
10814 SED=$lt_SED
10815
10816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10817 Xsed="$SED -e 1s/^X//"
10818
10819 # The HP-UX ksh and POSIX shell print the target directory to stdout
10820 # if CDPATH is set.
10821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10822
10823 # The names of the tagged configurations supported by this script.
10824 available_tags=
10825
10826 # ### BEGIN LIBTOOL CONFIG
10827
10828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10829
10830 # Shell to use when invoking shell scripts.
10831 SHELL=$lt_SHELL
10832
10833 # Whether or not to build shared libraries.
10834 build_libtool_libs=$enable_shared
10835
10836 # Whether or not to build static libraries.
10837 build_old_libs=$enable_static
10838
10839 # Whether or not to add -lc for building shared libraries.
10840 build_libtool_need_lc=$archive_cmds_need_lc
10841
10842 # Whether or not to disallow shared libs when runtime libs are static
10843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10844
10845 # Whether or not to optimize for fast installation.
10846 fast_install=$enable_fast_install
10847
10848 # The host system.
10849 host_alias=$host_alias
10850 host=$host
10851 host_os=$host_os
10852
10853 # The build system.
10854 build_alias=$build_alias
10855 build=$build
10856 build_os=$build_os
10857
10858 # An echo program that does not interpret backslashes.
10859 echo=$lt_echo
10860
10861 # The archiver.
10862 AR=$lt_AR
10863 AR_FLAGS=$lt_AR_FLAGS
10864
10865 # A C compiler.
10866 LTCC=$lt_LTCC
10867
10868 # LTCC compiler flags.
10869 LTCFLAGS=$lt_LTCFLAGS
10870
10871 # A language-specific compiler.
10872 CC=$lt_compiler
10873
10874 # Is the compiler the GNU C compiler?
10875 with_gcc=$GCC
10876
10877 # An ERE matcher.
10878 EGREP=$lt_EGREP
10879
10880 # The linker used to build libraries.
10881 LD=$lt_LD
10882
10883 # Whether we need hard or soft links.
10884 LN_S=$lt_LN_S
10885
10886 # A BSD-compatible nm program.
10887 NM=$lt_NM
10888
10889 # A symbol stripping program
10890 STRIP=$lt_STRIP
10891
10892 # Used to examine libraries when file_magic_cmd begins "file"
10893 MAGIC_CMD=$MAGIC_CMD
10894
10895 # Used on cygwin: DLL creation program.
10896 DLLTOOL="$DLLTOOL"
10897
10898 # Used on cygwin: object dumper.
10899 OBJDUMP="$OBJDUMP"
10900
10901 # Used on cygwin: assembler.
10902 AS="$AS"
10903
10904 # The name of the directory that contains temporary libtool files.
10905 objdir=$objdir
10906
10907 # How to create reloadable object files.
10908 reload_flag=$lt_reload_flag
10909 reload_cmds=$lt_reload_cmds
10910
10911 # How to pass a linker flag through the compiler.
10912 wl=$lt_lt_prog_compiler_wl
10913
10914 # Object file suffix (normally "o").
10915 objext="$ac_objext"
10916
10917 # Old archive suffix (normally "a").
10918 libext="$libext"
10919
10920 # Shared library suffix (normally ".so").
10921 shrext_cmds='$shrext_cmds'
10922
10923 # Executable file suffix (normally "").
10924 exeext="$exeext"
10925
10926 # Additional compiler flags for building library objects.
10927 pic_flag=$lt_lt_prog_compiler_pic
10928 pic_mode=$pic_mode
10929
10930 # What is the maximum length of a command?
10931 max_cmd_len=$lt_cv_sys_max_cmd_len
10932
10933 # Does compiler simultaneously support -c and -o options?
10934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10935
10936 # Must we lock files when doing compilation?
10937 need_locks=$lt_need_locks
10938
10939 # Do we need the lib prefix for modules?
10940 need_lib_prefix=$need_lib_prefix
10941
10942 # Do we need a version for libraries?
10943 need_version=$need_version
10944
10945 # Whether dlopen is supported.
10946 dlopen_support=$enable_dlopen
10947
10948 # Whether dlopen of programs is supported.
10949 dlopen_self=$enable_dlopen_self
10950
10951 # Whether dlopen of statically linked programs is supported.
10952 dlopen_self_static=$enable_dlopen_self_static
10953
10954 # Compiler flag to prevent dynamic linking.
10955 link_static_flag=$lt_lt_prog_compiler_static
10956
10957 # Compiler flag to turn off builtin functions.
10958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10959
10960 # Compiler flag to allow reflexive dlopens.
10961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10962
10963 # Compiler flag to generate shared objects directly from archives.
10964 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10965
10966 # Compiler flag to generate thread-safe objects.
10967 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10968
10969 # Library versioning type.
10970 version_type=$version_type
10971
10972 # Format of library name prefix.
10973 libname_spec=$lt_libname_spec
10974
10975 # List of archive names.  First name is the real one, the rest are links.
10976 # The last name is the one that the linker finds with -lNAME.
10977 library_names_spec=$lt_library_names_spec
10978
10979 # The coded name of the library, if different from the real name.
10980 soname_spec=$lt_soname_spec
10981
10982 # Commands used to build and install an old-style archive.
10983 RANLIB=$lt_RANLIB
10984 old_archive_cmds=$lt_old_archive_cmds
10985 old_postinstall_cmds=$lt_old_postinstall_cmds
10986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10987
10988 # Create an old-style archive from a shared archive.
10989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10990
10991 # Create a temporary old-style archive to link instead of a shared archive.
10992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10993
10994 # Commands used to build and install a shared archive.
10995 archive_cmds=$lt_archive_cmds
10996 archive_expsym_cmds=$lt_archive_expsym_cmds
10997 postinstall_cmds=$lt_postinstall_cmds
10998 postuninstall_cmds=$lt_postuninstall_cmds
10999
11000 # Commands used to build a loadable module (assumed same as above if empty)
11001 module_cmds=$lt_module_cmds
11002 module_expsym_cmds=$lt_module_expsym_cmds
11003
11004 # Commands to strip libraries.
11005 old_striplib=$lt_old_striplib
11006 striplib=$lt_striplib
11007
11008 # Dependencies to place before the objects being linked to create a
11009 # shared library.
11010 predep_objects=$lt_predep_objects
11011
11012 # Dependencies to place after the objects being linked to create a
11013 # shared library.
11014 postdep_objects=$lt_postdep_objects
11015
11016 # Dependencies to place before the objects being linked to create a
11017 # shared library.
11018 predeps=$lt_predeps
11019
11020 # Dependencies to place after the objects being linked to create a
11021 # shared library.
11022 postdeps=$lt_postdeps
11023
11024 # The directories searched by this compiler when creating a shared
11025 # library
11026 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11027
11028 # The library search path used internally by the compiler when linking
11029 # a shared library.
11030 compiler_lib_search_path=$lt_compiler_lib_search_path
11031
11032 # Method to check whether dependent libraries are shared objects.
11033 deplibs_check_method=$lt_deplibs_check_method
11034
11035 # Command to use when deplibs_check_method == file_magic.
11036 file_magic_cmd=$lt_file_magic_cmd
11037
11038 # Flag that allows shared libraries with undefined symbols to be built.
11039 allow_undefined_flag=$lt_allow_undefined_flag
11040
11041 # Flag that forces no undefined symbols.
11042 no_undefined_flag=$lt_no_undefined_flag
11043
11044 # Commands used to finish a libtool library installation in a directory.
11045 finish_cmds=$lt_finish_cmds
11046
11047 # Same as above, but a single script fragment to be evaled but not shown.
11048 finish_eval=$lt_finish_eval
11049
11050 # Take the output of nm and produce a listing of raw symbols and C names.
11051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11052
11053 # Transform the output of nm in a proper C declaration
11054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11055
11056 # Transform the output of nm in a C name address pair
11057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11058
11059 # This is the shared library runtime path variable.
11060 runpath_var=$runpath_var
11061
11062 # This is the shared library path variable.
11063 shlibpath_var=$shlibpath_var
11064
11065 # Is shlibpath searched before the hard-coded library search path?
11066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11067
11068 # How to hardcode a shared library path into an executable.
11069 hardcode_action=$hardcode_action
11070
11071 # Whether we should hardcode library paths into libraries.
11072 hardcode_into_libs=$hardcode_into_libs
11073
11074 # Flag to hardcode \$libdir into a binary during linking.
11075 # This must work even if \$libdir does not exist.
11076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11077
11078 # If ld is used when linking, flag to hardcode \$libdir into
11079 # a binary during linking. This must work even if \$libdir does
11080 # not exist.
11081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11082
11083 # Whether we need a single -rpath flag with a separated argument.
11084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11085
11086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11087 # resulting binary.
11088 hardcode_direct=$hardcode_direct
11089
11090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11091 # resulting binary.
11092 hardcode_minus_L=$hardcode_minus_L
11093
11094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11095 # the resulting binary.
11096 hardcode_shlibpath_var=$hardcode_shlibpath_var
11097
11098 # Set to yes if building a shared library automatically hardcodes DIR into the library
11099 # and all subsequent libraries and executables linked against it.
11100 hardcode_automatic=$hardcode_automatic
11101
11102 # Variables whose values should be saved in libtool wrapper scripts and
11103 # restored at relink time.
11104 variables_saved_for_relink="$variables_saved_for_relink"
11105
11106 # Whether libtool must link a program against all its dependency libraries.
11107 link_all_deplibs=$link_all_deplibs
11108
11109 # Compile-time system search path for libraries
11110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11111
11112 # Run-time system search path for libraries
11113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11114
11115 # Fix the shell variable \$srcfile for the compiler.
11116 fix_srcfile_path=$lt_fix_srcfile_path
11117
11118 # Set to yes if exported symbols are required.
11119 always_export_symbols=$always_export_symbols
11120
11121 # The commands to list exported symbols.
11122 export_symbols_cmds=$lt_export_symbols_cmds
11123
11124 # The commands to extract the exported symbol list from a shared archive.
11125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11126
11127 # Symbols that should not be listed in the preloaded symbols.
11128 exclude_expsyms=$lt_exclude_expsyms
11129
11130 # Symbols that must always be exported.
11131 include_expsyms=$lt_include_expsyms
11132
11133 # ### END LIBTOOL CONFIG
11134
11135 __EOF__
11136
11137
11138   case $host_os in
11139   aix3*)
11140     cat <<\EOF >> "$cfgfile"
11141
11142 # AIX sometimes has problems with the GCC collect2 program.  For some
11143 # reason, if we set the COLLECT_NAMES environment variable, the problems
11144 # vanish in a puff of smoke.
11145 if test "X${COLLECT_NAMES+set}" != Xset; then
11146   COLLECT_NAMES=
11147   export COLLECT_NAMES
11148 fi
11149 EOF
11150     ;;
11151   esac
11152
11153   # We use sed instead of cat because bash on DJGPP gets confused if
11154   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11155   # text mode, it properly converts lines to CR/LF.  This bash problem
11156   # is reportedly fixed, but why not run on old versions too?
11157   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11158
11159   mv -f "$cfgfile" "$ofile" || \
11160     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11161   chmod +x "$ofile"
11162
11163 else
11164   # If there is no Makefile yet, we rely on a make rule to execute
11165   # `config.status --recheck' to rerun these tests and create the
11166   # libtool script then.
11167   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11168   if test -f "$ltmain_in"; then
11169     test -f Makefile && make "$ltmain"
11170   fi
11171 fi
11172
11173
11174 ac_ext=c
11175 ac_cpp='$CPP $CPPFLAGS'
11176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11179
11180 CC="$lt_save_CC"
11181
11182
11183 # Check whether --with-tags was given.
11184 if test "${with_tags+set}" = set; then
11185   withval=$with_tags; tagnames="$withval"
11186 fi
11187
11188
11189 if test -f "$ltmain" && test -n "$tagnames"; then
11190   if test ! -f "${ofile}"; then
11191     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11192 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11193   fi
11194
11195   if test -z "$LTCC"; then
11196     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11197     if test -z "$LTCC"; then
11198       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11199 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11200     else
11201       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11202 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11203     fi
11204   fi
11205   if test -z "$LTCFLAGS"; then
11206     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11207   fi
11208
11209   # Extract list of available tagged configurations in $ofile.
11210   # Note that this assumes the entire list is on one line.
11211   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11212
11213   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11214   for tagname in $tagnames; do
11215     IFS="$lt_save_ifs"
11216     # Check whether tagname contains only valid characters
11217     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11218     "") ;;
11219     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11220 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11221    { (exit 1); exit 1; }; }
11222         ;;
11223     esac
11224
11225     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11226     then
11227       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11228 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11229    { (exit 1); exit 1; }; }
11230     fi
11231
11232     # Update the list of available tags.
11233     if test -n "$tagname"; then
11234       echo appending configuration tag \"$tagname\" to $ofile
11235
11236       case $tagname in
11237       CXX)
11238         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11239             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11240             (test "X$CXX" != "Xg++"))) ; then
11241           ac_ext=cpp
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11246
11247
11248
11249
11250 archive_cmds_need_lc_CXX=no
11251 allow_undefined_flag_CXX=
11252 always_export_symbols_CXX=no
11253 archive_expsym_cmds_CXX=
11254 export_dynamic_flag_spec_CXX=
11255 hardcode_direct_CXX=no
11256 hardcode_libdir_flag_spec_CXX=
11257 hardcode_libdir_flag_spec_ld_CXX=
11258 hardcode_libdir_separator_CXX=
11259 hardcode_minus_L_CXX=no
11260 hardcode_shlibpath_var_CXX=unsupported
11261 hardcode_automatic_CXX=no
11262 module_cmds_CXX=
11263 module_expsym_cmds_CXX=
11264 link_all_deplibs_CXX=unknown
11265 old_archive_cmds_CXX=$old_archive_cmds
11266 no_undefined_flag_CXX=
11267 whole_archive_flag_spec_CXX=
11268 enable_shared_with_static_runtimes_CXX=no
11269
11270 # Dependencies to place before and after the object being linked:
11271 predep_objects_CXX=
11272 postdep_objects_CXX=
11273 predeps_CXX=
11274 postdeps_CXX=
11275 compiler_lib_search_path_CXX=
11276 compiler_lib_search_dirs_CXX=
11277
11278 # Source file extension for C++ test sources.
11279 ac_ext=cpp
11280
11281 # Object file extension for compiled C++ test sources.
11282 objext=o
11283 objext_CXX=$objext
11284
11285 # Code to be used in simple compile tests
11286 lt_simple_compile_test_code="int some_variable = 0;"
11287
11288 # Code to be used in simple link tests
11289 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11290
11291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11292
11293 # If no C compiler was specified, use CC.
11294 LTCC=${LTCC-"$CC"}
11295
11296 # If no C compiler flags were specified, use CFLAGS.
11297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11298
11299 # Allow CC to be a program name with arguments.
11300 compiler=$CC
11301
11302
11303 # save warnings/boilerplate of simple test code
11304 ac_outfile=conftest.$ac_objext
11305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11307 _lt_compiler_boilerplate=`cat conftest.err`
11308 $rm conftest*
11309
11310 ac_outfile=conftest.$ac_objext
11311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11313 _lt_linker_boilerplate=`cat conftest.err`
11314 $rm -r conftest*
11315
11316
11317 # Allow CC to be a program name with arguments.
11318 lt_save_CC=$CC
11319 lt_save_LD=$LD
11320 lt_save_GCC=$GCC
11321 GCC=$GXX
11322 lt_save_with_gnu_ld=$with_gnu_ld
11323 lt_save_path_LD=$lt_cv_path_LD
11324 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11325   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11326 else
11327   $as_unset lt_cv_prog_gnu_ld
11328 fi
11329 if test -n "${lt_cv_path_LDCXX+set}"; then
11330   lt_cv_path_LD=$lt_cv_path_LDCXX
11331 else
11332   $as_unset lt_cv_path_LD
11333 fi
11334 test -z "${LDCXX+set}" || LD=$LDCXX
11335 CC=${CXX-"c++"}
11336 compiler=$CC
11337 compiler_CXX=$CC
11338 for cc_temp in $compiler""; do
11339   case $cc_temp in
11340     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11341     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11342     \-*) ;;
11343     *) break;;
11344   esac
11345 done
11346 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11347
11348
11349 # We don't want -fno-exception wen compiling C++ code, so set the
11350 # no_builtin_flag separately
11351 if test "$GXX" = yes; then
11352   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11353 else
11354   lt_prog_compiler_no_builtin_flag_CXX=
11355 fi
11356
11357 if test "$GXX" = yes; then
11358   # Set up default GNU C++ configuration
11359
11360
11361 # Check whether --with-gnu-ld was given.
11362 if test "${with_gnu_ld+set}" = set; then
11363   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11364 else
11365   with_gnu_ld=no
11366 fi
11367
11368 ac_prog=ld
11369 if test "$GCC" = yes; then
11370   # Check if gcc -print-prog-name=ld gives a path.
11371   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11372 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11373   case $host in
11374   *-*-mingw*)
11375     # gcc leaves a trailing carriage return which upsets mingw
11376     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11377   *)
11378     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11379   esac
11380   case $ac_prog in
11381     # Accept absolute paths.
11382     [\\/]* | ?:[\\/]*)
11383       re_direlt='/[^/][^/]*/\.\./'
11384       # Canonicalize the pathname of ld
11385       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11386       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11387         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11388       done
11389       test -z "$LD" && LD="$ac_prog"
11390       ;;
11391   "")
11392     # If it fails, then pretend we aren't using GCC.
11393     ac_prog=ld
11394     ;;
11395   *)
11396     # If it is relative, then search for the first ld in PATH.
11397     with_gnu_ld=unknown
11398     ;;
11399   esac
11400 elif test "$with_gnu_ld" = yes; then
11401   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11402 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11403 else
11404   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11405 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11406 fi
11407 if test "${lt_cv_path_LD+set}" = set; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   if test -z "$LD"; then
11411   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11412   for ac_dir in $PATH; do
11413     IFS="$lt_save_ifs"
11414     test -z "$ac_dir" && ac_dir=.
11415     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11416       lt_cv_path_LD="$ac_dir/$ac_prog"
11417       # Check to see if the program is GNU ld.  I'd rather use --version,
11418       # but apparently some variants of GNU ld only accept -v.
11419       # Break only if it was the GNU/non-GNU ld that we prefer.
11420       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11421       *GNU* | *'with BFD'*)
11422         test "$with_gnu_ld" != no && break
11423         ;;
11424       *)
11425         test "$with_gnu_ld" != yes && break
11426         ;;
11427       esac
11428     fi
11429   done
11430   IFS="$lt_save_ifs"
11431 else
11432   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11433 fi
11434 fi
11435
11436 LD="$lt_cv_path_LD"
11437 if test -n "$LD"; then
11438   { echo "$as_me:$LINENO: result: $LD" >&5
11439 echo "${ECHO_T}$LD" >&6; }
11440 else
11441   { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11443 fi
11444 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11445 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11446    { (exit 1); exit 1; }; }
11447 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11448 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11449 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11453 case `$LD -v 2>&1 </dev/null` in
11454 *GNU* | *'with BFD'*)
11455   lt_cv_prog_gnu_ld=yes
11456   ;;
11457 *)
11458   lt_cv_prog_gnu_ld=no
11459   ;;
11460 esac
11461 fi
11462 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11463 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11464 with_gnu_ld=$lt_cv_prog_gnu_ld
11465
11466
11467
11468   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11469   # archiving commands below assume that GNU ld is being used.
11470   if test "$with_gnu_ld" = yes; then
11471     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472     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'
11473
11474     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11475     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11476
11477     # If archive_cmds runs LD, not CC, wlarc should be empty
11478     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11479     #     investigate it a little bit more. (MM)
11480     wlarc='${wl}'
11481
11482     # ancient GNU ld didn't support --whole-archive et. al.
11483     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11484         grep 'no-whole-archive' > /dev/null; then
11485       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11486     else
11487       whole_archive_flag_spec_CXX=
11488     fi
11489   else
11490     with_gnu_ld=no
11491     wlarc=
11492
11493     # A generic and very simple default shared library creation
11494     # command for GNU C++ for the case where it uses the native
11495     # linker, instead of GNU ld.  If possible, this setting should
11496     # overridden to take advantage of the native linker features on
11497     # the platform it is being used on.
11498     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11499   fi
11500
11501   # Commands to make compiler produce verbose output that lists
11502   # what "hidden" libraries, object files and flags are used when
11503   # linking a shared library.
11504   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11505
11506 else
11507   GXX=no
11508   with_gnu_ld=no
11509   wlarc=
11510 fi
11511
11512 # PORTME: fill in a description of your system's C++ link characteristics
11513 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11514 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11515 ld_shlibs_CXX=yes
11516 case $host_os in
11517   aix3*)
11518     # FIXME: insert proper C++ library support
11519     ld_shlibs_CXX=no
11520     ;;
11521   aix[4-9]*)
11522     if test "$host_cpu" = ia64; then
11523       # On IA64, the linker does run time linking by default, so we don't
11524       # have to do anything special.
11525       aix_use_runtimelinking=no
11526       exp_sym_flag='-Bexport'
11527       no_entry_flag=""
11528     else
11529       aix_use_runtimelinking=no
11530
11531       # Test if we are trying to use run time linking or normal
11532       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11533       # need to do runtime linking.
11534       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11535         for ld_flag in $LDFLAGS; do
11536           case $ld_flag in
11537           *-brtl*)
11538             aix_use_runtimelinking=yes
11539             break
11540             ;;
11541           esac
11542         done
11543         ;;
11544       esac
11545
11546       exp_sym_flag='-bexport'
11547       no_entry_flag='-bnoentry'
11548     fi
11549
11550     # When large executables or shared objects are built, AIX ld can
11551     # have problems creating the table of contents.  If linking a library
11552     # or program results in "error TOC overflow" add -mminimal-toc to
11553     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11554     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11555
11556     archive_cmds_CXX=''
11557     hardcode_direct_CXX=yes
11558     hardcode_libdir_separator_CXX=':'
11559     link_all_deplibs_CXX=yes
11560
11561     if test "$GXX" = yes; then
11562       case $host_os in aix4.[012]|aix4.[012].*)
11563       # We only want to do this on AIX 4.2 and lower, the check
11564       # below for broken collect2 doesn't work under 4.3+
11565         collect2name=`${CC} -print-prog-name=collect2`
11566         if test -f "$collect2name" && \
11567            strings "$collect2name" | grep resolve_lib_name >/dev/null
11568         then
11569           # We have reworked collect2
11570           :
11571         else
11572           # We have old collect2
11573           hardcode_direct_CXX=unsupported
11574           # It fails to find uninstalled libraries when the uninstalled
11575           # path is not listed in the libpath.  Setting hardcode_minus_L
11576           # to unsupported forces relinking
11577           hardcode_minus_L_CXX=yes
11578           hardcode_libdir_flag_spec_CXX='-L$libdir'
11579           hardcode_libdir_separator_CXX=
11580         fi
11581         ;;
11582       esac
11583       shared_flag='-shared'
11584       if test "$aix_use_runtimelinking" = yes; then
11585         shared_flag="$shared_flag "'${wl}-G'
11586       fi
11587     else
11588       # not using gcc
11589       if test "$host_cpu" = ia64; then
11590         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11591         # chokes on -Wl,-G. The following line is correct:
11592         shared_flag='-G'
11593       else
11594         if test "$aix_use_runtimelinking" = yes; then
11595           shared_flag='${wl}-G'
11596         else
11597           shared_flag='${wl}-bM:SRE'
11598         fi
11599       fi
11600     fi
11601
11602     # It seems that -bexpall does not export symbols beginning with
11603     # underscore (_), so it is better to generate a list of symbols to export.
11604     always_export_symbols_CXX=yes
11605     if test "$aix_use_runtimelinking" = yes; then
11606       # Warning - without using the other runtime loading flags (-brtl),
11607       # -berok will link without error, but may produce a broken library.
11608       allow_undefined_flag_CXX='-berok'
11609       # Determine the default libpath from the value encoded in an empty executable.
11610       cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616
11617 int
11618 main ()
11619 {
11620
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629   *) ac_try_echo=$ac_try;;
11630 esac
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632   (eval "$ac_link") 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } && {
11639          test -z "$ac_cxx_werror_flag" ||
11640          test ! -s conftest.err
11641        } && test -s conftest$ac_exeext &&
11642        $as_test_x conftest$ac_exeext; then
11643
11644 lt_aix_libpath_sed='
11645     /Import File Strings/,/^$/ {
11646         /^0/ {
11647             s/^0  *\(.*\)$/\1/
11648             p
11649         }
11650     }'
11651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11652 # Check for a 64-bit object if we didn't find anything.
11653 if test -z "$aix_libpath"; then
11654   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11655 fi
11656 else
11657   echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11659
11660
11661 fi
11662
11663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11664       conftest$ac_exeext conftest.$ac_ext
11665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11666
11667       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11668
11669       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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11670      else
11671       if test "$host_cpu" = ia64; then
11672         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11673         allow_undefined_flag_CXX="-z nodefs"
11674         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"
11675       else
11676         # Determine the default libpath from the value encoded in an empty executable.
11677         cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683
11684 int
11685 main ()
11686 {
11687
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_link") 2>conftest.er1
11700   ac_status=$?
11701   grep -v '^ *+' conftest.er1 >conftest.err
11702   rm -f conftest.er1
11703   cat conftest.err >&5
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); } && {
11706          test -z "$ac_cxx_werror_flag" ||
11707          test ! -s conftest.err
11708        } && test -s conftest$ac_exeext &&
11709        $as_test_x conftest$ac_exeext; then
11710
11711 lt_aix_libpath_sed='
11712     /Import File Strings/,/^$/ {
11713         /^0/ {
11714             s/^0  *\(.*\)$/\1/
11715             p
11716         }
11717     }'
11718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11719 # Check for a 64-bit object if we didn't find anything.
11720 if test -z "$aix_libpath"; then
11721   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11722 fi
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727
11728 fi
11729
11730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11731       conftest$ac_exeext conftest.$ac_ext
11732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11733
11734         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11735         # Warning - without using the other run time loading flags,
11736         # -berok will link without error, but may produce a broken library.
11737         no_undefined_flag_CXX=' ${wl}-bernotok'
11738         allow_undefined_flag_CXX=' ${wl}-berok'
11739         # Exported symbols can be pulled into shared objects from archives
11740         whole_archive_flag_spec_CXX='$convenience'
11741         archive_cmds_need_lc_CXX=yes
11742         # This is similar to how AIX traditionally builds its shared libraries.
11743         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'
11744       fi
11745     fi
11746     ;;
11747
11748   beos*)
11749     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11750       allow_undefined_flag_CXX=unsupported
11751       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11752       # support --undefined.  This deserves some investigation.  FIXME
11753       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11754     else
11755       ld_shlibs_CXX=no
11756     fi
11757     ;;
11758
11759   chorus*)
11760     case $cc_basename in
11761       *)
11762         # FIXME: insert proper C++ library support
11763         ld_shlibs_CXX=no
11764         ;;
11765     esac
11766     ;;
11767
11768   cygwin* | mingw* | pw32*)
11769     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11770     # as there is no search path for DLLs.
11771     hardcode_libdir_flag_spec_CXX='-L$libdir'
11772     allow_undefined_flag_CXX=unsupported
11773     always_export_symbols_CXX=no
11774     enable_shared_with_static_runtimes_CXX=yes
11775
11776     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11777       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'
11778       # If the export-symbols file already is a .def file (1st line
11779       # is EXPORTS), use it as is; otherwise, prepend...
11780       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11781         cp $export_symbols $output_objdir/$soname.def;
11782       else
11783         echo EXPORTS > $output_objdir/$soname.def;
11784         cat $export_symbols >> $output_objdir/$soname.def;
11785       fi~
11786       $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'
11787     else
11788       ld_shlibs_CXX=no
11789     fi
11790   ;;
11791       darwin* | rhapsody*)
11792       archive_cmds_need_lc_CXX=no
11793       hardcode_direct_CXX=no
11794       hardcode_automatic_CXX=yes
11795       hardcode_shlibpath_var_CXX=unsupported
11796       whole_archive_flag_spec_CXX=''
11797       link_all_deplibs_CXX=yes
11798       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11799       if test "$GXX" = yes ; then
11800       output_verbose_link_cmd='echo'
11801       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}"
11802       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11803       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}"
11804       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}"
11805       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11806         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}"
11807         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}"
11808       fi
11809       else
11810       case $cc_basename in
11811         xlc*)
11812          output_verbose_link_cmd='echo'
11813           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11814           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11815           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11816           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11817           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11818           ;;
11819        *)
11820          ld_shlibs_CXX=no
11821           ;;
11822       esac
11823       fi
11824         ;;
11825
11826   dgux*)
11827     case $cc_basename in
11828       ec++*)
11829         # FIXME: insert proper C++ library support
11830         ld_shlibs_CXX=no
11831         ;;
11832       ghcx*)
11833         # Green Hills C++ Compiler
11834         # FIXME: insert proper C++ library support
11835         ld_shlibs_CXX=no
11836         ;;
11837       *)
11838         # FIXME: insert proper C++ library support
11839         ld_shlibs_CXX=no
11840         ;;
11841     esac
11842     ;;
11843   freebsd[12]*)
11844     # C++ shared libraries reported to be fairly broken before switch to ELF
11845     ld_shlibs_CXX=no
11846     ;;
11847   freebsd-elf*)
11848     archive_cmds_need_lc_CXX=no
11849     ;;
11850   freebsd* | dragonfly*)
11851     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11852     # conventions
11853     ld_shlibs_CXX=yes
11854     ;;
11855   gnu*)
11856     ;;
11857   hpux9*)
11858     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11859     hardcode_libdir_separator_CXX=:
11860     export_dynamic_flag_spec_CXX='${wl}-E'
11861     hardcode_direct_CXX=yes
11862     hardcode_minus_L_CXX=yes # Not in the search PATH,
11863                                 # but as the default
11864                                 # location of the library.
11865
11866     case $cc_basename in
11867     CC*)
11868       # FIXME: insert proper C++ library support
11869       ld_shlibs_CXX=no
11870       ;;
11871     aCC*)
11872       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'
11873       # Commands to make compiler produce verbose output that lists
11874       # what "hidden" libraries, object files and flags are used when
11875       # linking a shared library.
11876       #
11877       # There doesn't appear to be a way to prevent this compiler from
11878       # explicitly linking system object files so we need to strip them
11879       # from the output so that they don't get included in the library
11880       # dependencies.
11881       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 $list'
11882       ;;
11883     *)
11884       if test "$GXX" = yes; then
11885         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'
11886       else
11887         # FIXME: insert proper C++ library support
11888         ld_shlibs_CXX=no
11889       fi
11890       ;;
11891     esac
11892     ;;
11893   hpux10*|hpux11*)
11894     if test $with_gnu_ld = no; then
11895       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11896       hardcode_libdir_separator_CXX=:
11897
11898       case $host_cpu in
11899       hppa*64*|ia64*) ;;
11900       *)
11901         export_dynamic_flag_spec_CXX='${wl}-E'
11902         ;;
11903       esac
11904     fi
11905     case $host_cpu in
11906     hppa*64*|ia64*)
11907       hardcode_direct_CXX=no
11908       hardcode_shlibpath_var_CXX=no
11909       ;;
11910     *)
11911       hardcode_direct_CXX=yes
11912       hardcode_minus_L_CXX=yes # Not in the search PATH,
11913                                               # but as the default
11914                                               # location of the library.
11915       ;;
11916     esac
11917
11918     case $cc_basename in
11919       CC*)
11920         # FIXME: insert proper C++ library support
11921         ld_shlibs_CXX=no
11922         ;;
11923       aCC*)
11924         case $host_cpu in
11925         hppa*64*)
11926           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11927           ;;
11928         ia64*)
11929           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11930           ;;
11931         *)
11932           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11933           ;;
11934         esac
11935         # Commands to make compiler produce verbose output that lists
11936         # what "hidden" libraries, object files and flags are used when
11937         # linking a shared library.
11938         #
11939         # There doesn't appear to be a way to prevent this compiler from
11940         # explicitly linking system object files so we need to strip them
11941         # from the output so that they don't get included in the library
11942         # dependencies.
11943         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 $list'
11944         ;;
11945       *)
11946         if test "$GXX" = yes; then
11947           if test $with_gnu_ld = no; then
11948             case $host_cpu in
11949             hppa*64*)
11950               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11951               ;;
11952             ia64*)
11953               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954               ;;
11955             *)
11956               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'
11957               ;;
11958             esac
11959           fi
11960         else
11961           # FIXME: insert proper C++ library support
11962           ld_shlibs_CXX=no
11963         fi
11964         ;;
11965     esac
11966     ;;
11967   interix[3-9]*)
11968     hardcode_direct_CXX=no
11969     hardcode_shlibpath_var_CXX=no
11970     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11971     export_dynamic_flag_spec_CXX='${wl}-E'
11972     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11973     # Instead, shared libraries are loaded at an image base (0x10000000 by
11974     # default) and relocated if they conflict, which is a slow very memory
11975     # consuming and fragmenting process.  To avoid this, we pick a random,
11976     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11977     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11978     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'
11979     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'
11980     ;;
11981   irix5* | irix6*)
11982     case $cc_basename in
11983       CC*)
11984         # SGI C++
11985         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11986
11987         # Archives containing C++ object files must be created using
11988         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11989         # necessary to make sure instantiated templates are included
11990         # in the archive.
11991         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11992         ;;
11993       *)
11994         if test "$GXX" = yes; then
11995           if test "$with_gnu_ld" = no; then
11996             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11997           else
11998             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11999           fi
12000         fi
12001         link_all_deplibs_CXX=yes
12002         ;;
12003     esac
12004     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12005     hardcode_libdir_separator_CXX=:
12006     ;;
12007   linux* | k*bsd*-gnu)
12008     case $cc_basename in
12009       KCC*)
12010         # Kuck and Associates, Inc. (KAI) C++ Compiler
12011
12012         # KCC will only create a shared library if the output file
12013         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12014         # to its proper name (with version) after linking.
12015         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'
12016         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'
12017         # Commands to make compiler produce verbose output that lists
12018         # what "hidden" libraries, object files and flags are used when
12019         # linking a shared library.
12020         #
12021         # There doesn't appear to be a way to prevent this compiler from
12022         # explicitly linking system object files so we need to strip them
12023         # from the output so that they don't get included in the library
12024         # dependencies.
12025         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 $list'
12026
12027         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12028         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12029
12030         # Archives containing C++ object files must be created using
12031         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12032         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12033         ;;
12034       icpc*)
12035         # Intel C++
12036         with_gnu_ld=yes
12037         # version 8.0 and above of icpc choke on multiply defined symbols
12038         # if we add $predep_objects and $postdep_objects, however 7.1 and
12039         # earlier do not add the objects themselves.
12040         case `$CC -V 2>&1` in
12041         *"Version 7."*)
12042           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12043           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'
12044           ;;
12045         *)  # Version 8.0 or newer
12046           tmp_idyn=
12047           case $host_cpu in
12048             ia64*) tmp_idyn=' -i_dynamic';;
12049           esac
12050           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051           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'
12052           ;;
12053         esac
12054         archive_cmds_need_lc_CXX=no
12055         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12057         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12058         ;;
12059       pgCC* | pgcpp*)
12060         # Portland Group C++ compiler
12061         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12062         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'
12063
12064         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12065         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12066         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'
12067         ;;
12068       cxx*)
12069         # Compaq C++
12070         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071         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'
12072
12073         runpath_var=LD_RUN_PATH
12074         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12075         hardcode_libdir_separator_CXX=:
12076
12077         # Commands to make compiler produce verbose output that lists
12078         # what "hidden" libraries, object files and flags are used when
12079         # linking a shared library.
12080         #
12081         # There doesn't appear to be a way to prevent this compiler from
12082         # explicitly linking system object files so we need to strip them
12083         # from the output so that they don't get included in the library
12084         # dependencies.
12085         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
12086         ;;
12087       *)
12088         case `$CC -V 2>&1 | sed 5q` in
12089         *Sun\ C*)
12090           # Sun C++ 5.9
12091           no_undefined_flag_CXX=' -zdefs'
12092           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12093           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'
12094           hardcode_libdir_flag_spec_CXX='-R$libdir'
12095           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'
12096
12097           # Not sure whether something based on
12098           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12099           # would be better.
12100           output_verbose_link_cmd='echo'
12101
12102           # Archives containing C++ object files must be created using
12103           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12104           # necessary to make sure instantiated templates are included
12105           # in the archive.
12106           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12107           ;;
12108         esac
12109         ;;
12110     esac
12111     ;;
12112   lynxos*)
12113     # FIXME: insert proper C++ library support
12114     ld_shlibs_CXX=no
12115     ;;
12116   m88k*)
12117     # FIXME: insert proper C++ library support
12118     ld_shlibs_CXX=no
12119     ;;
12120   mvs*)
12121     case $cc_basename in
12122       cxx*)
12123         # FIXME: insert proper C++ library support
12124         ld_shlibs_CXX=no
12125         ;;
12126       *)
12127         # FIXME: insert proper C++ library support
12128         ld_shlibs_CXX=no
12129         ;;
12130     esac
12131     ;;
12132   netbsd*)
12133     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12134       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12135       wlarc=
12136       hardcode_libdir_flag_spec_CXX='-R$libdir'
12137       hardcode_direct_CXX=yes
12138       hardcode_shlibpath_var_CXX=no
12139     fi
12140     # Workaround some broken pre-1.5 toolchains
12141     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12142     ;;
12143   openbsd2*)
12144     # C++ shared libraries are fairly broken
12145     ld_shlibs_CXX=no
12146     ;;
12147   openbsd*)
12148     if test -f /usr/libexec/ld.so; then
12149       hardcode_direct_CXX=yes
12150       hardcode_shlibpath_var_CXX=no
12151       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12152       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12153       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12154         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12155         export_dynamic_flag_spec_CXX='${wl}-E'
12156         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12157       fi
12158       output_verbose_link_cmd='echo'
12159     else
12160       ld_shlibs_CXX=no
12161     fi
12162     ;;
12163   osf3*)
12164     case $cc_basename in
12165       KCC*)
12166         # Kuck and Associates, Inc. (KAI) C++ Compiler
12167
12168         # KCC will only create a shared library if the output file
12169         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12170         # to its proper name (with version) after linking.
12171         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'
12172
12173         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12174         hardcode_libdir_separator_CXX=:
12175
12176         # Archives containing C++ object files must be created using
12177         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12178         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12179
12180         ;;
12181       RCC*)
12182         # Rational C++ 2.4.1
12183         # FIXME: insert proper C++ library support
12184         ld_shlibs_CXX=no
12185         ;;
12186       cxx*)
12187         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12188         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12189
12190         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12191         hardcode_libdir_separator_CXX=:
12192
12193         # Commands to make compiler produce verbose output that lists
12194         # what "hidden" libraries, object files and flags are used when
12195         # linking a shared library.
12196         #
12197         # There doesn't appear to be a way to prevent this compiler from
12198         # explicitly linking system object files so we need to strip them
12199         # from the output so that they don't get included in the library
12200         # dependencies.
12201         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
12202         ;;
12203       *)
12204         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12205           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12206           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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12207
12208           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12209           hardcode_libdir_separator_CXX=:
12210
12211           # Commands to make compiler produce verbose output that lists
12212           # what "hidden" libraries, object files and flags are used when
12213           # linking a shared library.
12214           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12215
12216         else
12217           # FIXME: insert proper C++ library support
12218           ld_shlibs_CXX=no
12219         fi
12220         ;;
12221     esac
12222     ;;
12223   osf4* | osf5*)
12224     case $cc_basename in
12225       KCC*)
12226         # Kuck and Associates, Inc. (KAI) C++ Compiler
12227
12228         # KCC will only create a shared library if the output file
12229         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12230         # to its proper name (with version) after linking.
12231         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'
12232
12233         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12234         hardcode_libdir_separator_CXX=:
12235
12236         # Archives containing C++ object files must be created using
12237         # the KAI C++ compiler.
12238         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12239         ;;
12240       RCC*)
12241         # Rational C++ 2.4.1
12242         # FIXME: insert proper C++ library support
12243         ld_shlibs_CXX=no
12244         ;;
12245       cxx*)
12246         allow_undefined_flag_CXX=' -expect_unresolved \*'
12247         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12248         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12249           echo "-hidden">> $lib.exp~
12250           $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12251           $rm $lib.exp'
12252
12253         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12254         hardcode_libdir_separator_CXX=:
12255
12256         # Commands to make compiler produce verbose output that lists
12257         # what "hidden" libraries, object files and flags are used when
12258         # linking a shared library.
12259         #
12260         # There doesn't appear to be a way to prevent this compiler from
12261         # explicitly linking system object files so we need to strip them
12262         # from the output so that they don't get included in the library
12263         # dependencies.
12264         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
12265         ;;
12266       *)
12267         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12268           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12269          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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12270
12271           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12272           hardcode_libdir_separator_CXX=:
12273
12274           # Commands to make compiler produce verbose output that lists
12275           # what "hidden" libraries, object files and flags are used when
12276           # linking a shared library.
12277           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12278
12279         else
12280           # FIXME: insert proper C++ library support
12281           ld_shlibs_CXX=no
12282         fi
12283         ;;
12284     esac
12285     ;;
12286   psos*)
12287     # FIXME: insert proper C++ library support
12288     ld_shlibs_CXX=no
12289     ;;
12290   sunos4*)
12291     case $cc_basename in
12292       CC*)
12293         # Sun C++ 4.x
12294         # FIXME: insert proper C++ library support
12295         ld_shlibs_CXX=no
12296         ;;
12297       lcc*)
12298         # Lucid
12299         # FIXME: insert proper C++ library support
12300         ld_shlibs_CXX=no
12301         ;;
12302       *)
12303         # FIXME: insert proper C++ library support
12304         ld_shlibs_CXX=no
12305         ;;
12306     esac
12307     ;;
12308   solaris*)
12309     case $cc_basename in
12310       CC*)
12311         # Sun C++ 4.2, 5.x and Centerline C++
12312         archive_cmds_need_lc_CXX=yes
12313         no_undefined_flag_CXX=' -zdefs'
12314         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12316         $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'
12317
12318         hardcode_libdir_flag_spec_CXX='-R$libdir'
12319         hardcode_shlibpath_var_CXX=no
12320         case $host_os in
12321           solaris2.[0-5] | solaris2.[0-5].*) ;;
12322           *)
12323             # The compiler driver will combine and reorder linker options,
12324             # but understands `-z linker_flag'.
12325             # Supported since Solaris 2.6 (maybe 2.5.1?)
12326             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12327             ;;
12328         esac
12329         link_all_deplibs_CXX=yes
12330
12331         output_verbose_link_cmd='echo'
12332
12333         # Archives containing C++ object files must be created using
12334         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12335         # necessary to make sure instantiated templates are included
12336         # in the archive.
12337         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12338         ;;
12339       gcx*)
12340         # Green Hills C++ Compiler
12341         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12342
12343         # The C++ compiler must be used to create the archive.
12344         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12345         ;;
12346       *)
12347         # GNU C++ compiler with Solaris linker
12348         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12349           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12350           if $CC --version | grep -v '^2\.7' > /dev/null; then
12351             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12352             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12353                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12354
12355             # Commands to make compiler produce verbose output that lists
12356             # what "hidden" libraries, object files and flags are used when
12357             # linking a shared library.
12358             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12359           else
12360             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12361             # platform.
12362             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12363             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12364                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12365
12366             # Commands to make compiler produce verbose output that lists
12367             # what "hidden" libraries, object files and flags are used when
12368             # linking a shared library.
12369             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12370           fi
12371
12372           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12373           case $host_os in
12374           solaris2.[0-5] | solaris2.[0-5].*) ;;
12375           *)
12376             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12377             ;;
12378           esac
12379         fi
12380         ;;
12381     esac
12382     ;;
12383   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12384     no_undefined_flag_CXX='${wl}-z,text'
12385     archive_cmds_need_lc_CXX=no
12386     hardcode_shlibpath_var_CXX=no
12387     runpath_var='LD_RUN_PATH'
12388
12389     case $cc_basename in
12390       CC*)
12391         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12392         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12393         ;;
12394       *)
12395         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12396         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12397         ;;
12398     esac
12399     ;;
12400   sysv5* | sco3.2v5* | sco5v6*)
12401     # Note: We can NOT use -z defs as we might desire, because we do not
12402     # link with -lc, and that would cause any symbols used from libc to
12403     # always be unresolved, which means just about no library would
12404     # ever link correctly.  If we're not using GNU ld we use -z text
12405     # though, which does catch some bad symbols but isn't as heavy-handed
12406     # as -z defs.
12407     # For security reasons, it is highly recommended that you always
12408     # use absolute paths for naming shared libraries, and exclude the
12409     # DT_RUNPATH tag from executables and libraries.  But doing so
12410     # requires that you compile everything twice, which is a pain.
12411     # So that behaviour is only enabled if SCOABSPATH is set to a
12412     # non-empty value in the environment.  Most likely only useful for
12413     # creating official distributions of packages.
12414     # This is a hack until libtool officially supports absolute path
12415     # names for shared libraries.
12416     no_undefined_flag_CXX='${wl}-z,text'
12417     allow_undefined_flag_CXX='${wl}-z,nodefs'
12418     archive_cmds_need_lc_CXX=no
12419     hardcode_shlibpath_var_CXX=no
12420     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12421     hardcode_libdir_separator_CXX=':'
12422     link_all_deplibs_CXX=yes
12423     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12424     runpath_var='LD_RUN_PATH'
12425
12426     case $cc_basename in
12427       CC*)
12428         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12429         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12430         ;;
12431       *)
12432         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12433         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12434         ;;
12435     esac
12436     ;;
12437   tandem*)
12438     case $cc_basename in
12439       NCC*)
12440         # NonStop-UX NCC 3.20
12441         # FIXME: insert proper C++ library support
12442         ld_shlibs_CXX=no
12443         ;;
12444       *)
12445         # FIXME: insert proper C++ library support
12446         ld_shlibs_CXX=no
12447         ;;
12448     esac
12449     ;;
12450   vxworks*)
12451     # FIXME: insert proper C++ library support
12452     ld_shlibs_CXX=no
12453     ;;
12454   *)
12455     # FIXME: insert proper C++ library support
12456     ld_shlibs_CXX=no
12457     ;;
12458 esac
12459 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12460 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12461 test "$ld_shlibs_CXX" = no && can_build_shared=no
12462
12463 GCC_CXX="$GXX"
12464 LD_CXX="$LD"
12465
12466 cat > conftest.$ac_ext <<EOF
12467 class Foo
12468 {
12469 public:
12470   Foo (void) { a = 0; }
12471 private:
12472   int a;
12473 };
12474 EOF
12475
12476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477   (eval $ac_compile) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; then
12481   # Parse the compiler output and extract the necessary
12482   # objects, libraries and library flags.
12483
12484   # Sentinel used to keep track of whether or not we are before
12485   # the conftest object file.
12486   pre_test_object_deps_done=no
12487
12488   # The `*' in the case matches for architectures that use `case' in
12489   # $output_verbose_cmd can trigger glob expansion during the loop
12490   # eval without this substitution.
12491   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12492
12493   for p in `eval $output_verbose_link_cmd`; do
12494     case $p in
12495
12496     -L* | -R* | -l*)
12497        # Some compilers place space between "-{L,R}" and the path.
12498        # Remove the space.
12499        if test $p = "-L" \
12500           || test $p = "-R"; then
12501          prev=$p
12502          continue
12503        else
12504          prev=
12505        fi
12506
12507        if test "$pre_test_object_deps_done" = no; then
12508          case $p in
12509          -L* | -R*)
12510            # Internal compiler library paths should come after those
12511            # provided the user.  The postdeps already come after the
12512            # user supplied libs so there is no need to process them.
12513            if test -z "$compiler_lib_search_path_CXX"; then
12514              compiler_lib_search_path_CXX="${prev}${p}"
12515            else
12516              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12517            fi
12518            ;;
12519          # The "-l" case would never come before the object being
12520          # linked, so don't bother handling this case.
12521          esac
12522        else
12523          if test -z "$postdeps_CXX"; then
12524            postdeps_CXX="${prev}${p}"
12525          else
12526            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12527          fi
12528        fi
12529        ;;
12530
12531     *.$objext)
12532        # This assumes that the test object file only shows up
12533        # once in the compiler output.
12534        if test "$p" = "conftest.$objext"; then
12535          pre_test_object_deps_done=yes
12536          continue
12537        fi
12538
12539        if test "$pre_test_object_deps_done" = no; then
12540          if test -z "$predep_objects_CXX"; then
12541            predep_objects_CXX="$p"
12542          else
12543            predep_objects_CXX="$predep_objects_CXX $p"
12544          fi
12545        else
12546          if test -z "$postdep_objects_CXX"; then
12547            postdep_objects_CXX="$p"
12548          else
12549            postdep_objects_CXX="$postdep_objects_CXX $p"
12550          fi
12551        fi
12552        ;;
12553
12554     *) ;; # Ignore the rest.
12555
12556     esac
12557   done
12558
12559   # Clean up.
12560   rm -f a.out a.exe
12561 else
12562   echo "libtool.m4: error: problem compiling CXX test program"
12563 fi
12564
12565 $rm -f confest.$objext
12566
12567 compiler_lib_search_dirs_CXX=
12568 if test -n "$compiler_lib_search_path_CXX"; then
12569   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12570 fi
12571
12572 # PORTME: override above test on systems where it is broken
12573 case $host_os in
12574 interix[3-9]*)
12575   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12576   # hack all around it, let's just trust "g++" to DTRT.
12577   predep_objects_CXX=
12578   postdep_objects_CXX=
12579   postdeps_CXX=
12580   ;;
12581
12582 linux*)
12583   case `$CC -V 2>&1 | sed 5q` in
12584   *Sun\ C*)
12585     # Sun C++ 5.9
12586     #
12587     # The more standards-conforming stlport4 library is
12588     # incompatible with the Cstd library. Avoid specifying
12589     # it if it's in CXXFLAGS. Ignore libCrun as
12590     # -library=stlport4 depends on it.
12591     case " $CXX $CXXFLAGS " in
12592     *" -library=stlport4 "*)
12593       solaris_use_stlport4=yes
12594       ;;
12595     esac
12596     if test "$solaris_use_stlport4" != yes; then
12597       postdeps_CXX='-library=Cstd -library=Crun'
12598     fi
12599     ;;
12600   esac
12601   ;;
12602
12603 solaris*)
12604   case $cc_basename in
12605   CC*)
12606     # The more standards-conforming stlport4 library is
12607     # incompatible with the Cstd library. Avoid specifying
12608     # it if it's in CXXFLAGS. Ignore libCrun as
12609     # -library=stlport4 depends on it.
12610     case " $CXX $CXXFLAGS " in
12611     *" -library=stlport4 "*)
12612       solaris_use_stlport4=yes
12613       ;;
12614     esac
12615
12616     # Adding this requires a known-good setup of shared libraries for
12617     # Sun compiler versions before 5.6, else PIC objects from an old
12618     # archive will be linked into the output, leading to subtle bugs.
12619     if test "$solaris_use_stlport4" != yes; then
12620       postdeps_CXX='-library=Cstd -library=Crun'
12621     fi
12622     ;;
12623   esac
12624   ;;
12625 esac
12626
12627 case " $postdeps_CXX " in
12628 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12629 esac
12630
12631 lt_prog_compiler_wl_CXX=
12632 lt_prog_compiler_pic_CXX=
12633 lt_prog_compiler_static_CXX=
12634
12635 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12637
12638   # C++ specific cases for pic, static, wl, etc.
12639   if test "$GXX" = yes; then
12640     lt_prog_compiler_wl_CXX='-Wl,'
12641     lt_prog_compiler_static_CXX='-static'
12642
12643     case $host_os in
12644     aix*)
12645       # All AIX code is PIC.
12646       if test "$host_cpu" = ia64; then
12647         # AIX 5 now supports IA64 processor
12648         lt_prog_compiler_static_CXX='-Bstatic'
12649       fi
12650       ;;
12651     amigaos*)
12652       # FIXME: we need at least 68020 code to build shared libraries, but
12653       # adding the `-m68020' flag to GCC prevents building anything better,
12654       # like `-m68040'.
12655       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12656       ;;
12657     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12658       # PIC is the default for these OSes.
12659       ;;
12660     mingw* | cygwin* | os2* | pw32*)
12661       # This hack is so that the source file can tell whether it is being
12662       # built for inclusion in a dll (and should export symbols for example).
12663       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12664       # (--disable-auto-import) libraries
12665       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12666       ;;
12667     darwin* | rhapsody*)
12668       # PIC is the default on this platform
12669       # Common symbols not allowed in MH_DYLIB files
12670       lt_prog_compiler_pic_CXX='-fno-common'
12671       ;;
12672     *djgpp*)
12673       # DJGPP does not support shared libraries at all
12674       lt_prog_compiler_pic_CXX=
12675       ;;
12676     interix[3-9]*)
12677       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12678       # Instead, we relocate shared libraries at runtime.
12679       ;;
12680     sysv4*MP*)
12681       if test -d /usr/nec; then
12682         lt_prog_compiler_pic_CXX=-Kconform_pic
12683       fi
12684       ;;
12685     hpux*)
12686       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12687       # not for PA HP-UX.
12688       case $host_cpu in
12689       hppa*64*|ia64*)
12690         ;;
12691       *)
12692         lt_prog_compiler_pic_CXX='-fPIC'
12693         ;;
12694       esac
12695       ;;
12696     *)
12697       lt_prog_compiler_pic_CXX='-fPIC'
12698       ;;
12699     esac
12700   else
12701     case $host_os in
12702       aix[4-9]*)
12703         # All AIX code is PIC.
12704         if test "$host_cpu" = ia64; then
12705           # AIX 5 now supports IA64 processor
12706           lt_prog_compiler_static_CXX='-Bstatic'
12707         else
12708           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12709         fi
12710         ;;
12711       chorus*)
12712         case $cc_basename in
12713         cxch68*)
12714           # Green Hills C++ Compiler
12715           # _LT_AC_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"
12716           ;;
12717         esac
12718         ;;
12719        darwin*)
12720          # PIC is the default on this platform
12721          # Common symbols not allowed in MH_DYLIB files
12722          case $cc_basename in
12723            xlc*)
12724            lt_prog_compiler_pic_CXX='-qnocommon'
12725            lt_prog_compiler_wl_CXX='-Wl,'
12726            ;;
12727          esac
12728        ;;
12729       dgux*)
12730         case $cc_basename in
12731           ec++*)
12732             lt_prog_compiler_pic_CXX='-KPIC'
12733             ;;
12734           ghcx*)
12735             # Green Hills C++ Compiler
12736             lt_prog_compiler_pic_CXX='-pic'
12737             ;;
12738           *)
12739             ;;
12740         esac
12741         ;;
12742       freebsd* | dragonfly*)
12743         # FreeBSD uses GNU C++
12744         ;;
12745       hpux9* | hpux10* | hpux11*)
12746         case $cc_basename in
12747           CC*)
12748             lt_prog_compiler_wl_CXX='-Wl,'
12749             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12750             if test "$host_cpu" != ia64; then
12751               lt_prog_compiler_pic_CXX='+Z'
12752             fi
12753             ;;
12754           aCC*)
12755             lt_prog_compiler_wl_CXX='-Wl,'
12756             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12757             case $host_cpu in
12758             hppa*64*|ia64*)
12759               # +Z the default
12760               ;;
12761             *)
12762               lt_prog_compiler_pic_CXX='+Z'
12763               ;;
12764             esac
12765             ;;
12766           *)
12767             ;;
12768         esac
12769         ;;
12770       interix*)
12771         # This is c89, which is MS Visual C++ (no shared libs)
12772         # Anyone wants to do a port?
12773         ;;
12774       irix5* | irix6* | nonstopux*)
12775         case $cc_basename in
12776           CC*)
12777             lt_prog_compiler_wl_CXX='-Wl,'
12778             lt_prog_compiler_static_CXX='-non_shared'
12779             # CC pic flag -KPIC is the default.
12780             ;;
12781           *)
12782             ;;
12783         esac
12784         ;;
12785       linux* | k*bsd*-gnu)
12786         case $cc_basename in
12787           KCC*)
12788             # KAI C++ Compiler
12789             lt_prog_compiler_wl_CXX='--backend -Wl,'
12790             lt_prog_compiler_pic_CXX='-fPIC'
12791             ;;
12792           icpc* | ecpc*)
12793             # Intel C++
12794             lt_prog_compiler_wl_CXX='-Wl,'
12795             lt_prog_compiler_pic_CXX='-KPIC'
12796             lt_prog_compiler_static_CXX='-static'
12797             ;;
12798           pgCC* | pgcpp*)
12799             # Portland Group C++ compiler.
12800             lt_prog_compiler_wl_CXX='-Wl,'
12801             lt_prog_compiler_pic_CXX='-fpic'
12802             lt_prog_compiler_static_CXX='-Bstatic'
12803             ;;
12804           cxx*)
12805             # Compaq C++
12806             # Make sure the PIC flag is empty.  It appears that all Alpha
12807             # Linux and Compaq Tru64 Unix objects are PIC.
12808             lt_prog_compiler_pic_CXX=
12809             lt_prog_compiler_static_CXX='-non_shared'
12810             ;;
12811           *)
12812             case `$CC -V 2>&1 | sed 5q` in
12813             *Sun\ C*)
12814               # Sun C++ 5.9
12815               lt_prog_compiler_pic_CXX='-KPIC'
12816               lt_prog_compiler_static_CXX='-Bstatic'
12817               lt_prog_compiler_wl_CXX='-Qoption ld '
12818               ;;
12819             esac
12820             ;;
12821         esac
12822         ;;
12823       lynxos*)
12824         ;;
12825       m88k*)
12826         ;;
12827       mvs*)
12828         case $cc_basename in
12829           cxx*)
12830             lt_prog_compiler_pic_CXX='-W c,exportall'
12831             ;;
12832           *)
12833             ;;
12834         esac
12835         ;;
12836       netbsd*)
12837         ;;
12838       osf3* | osf4* | osf5*)
12839         case $cc_basename in
12840           KCC*)
12841             lt_prog_compiler_wl_CXX='--backend -Wl,'
12842             ;;
12843           RCC*)
12844             # Rational C++ 2.4.1
12845             lt_prog_compiler_pic_CXX='-pic'
12846             ;;
12847           cxx*)
12848             # Digital/Compaq C++
12849             lt_prog_compiler_wl_CXX='-Wl,'
12850             # Make sure the PIC flag is empty.  It appears that all Alpha
12851             # Linux and Compaq Tru64 Unix objects are PIC.
12852             lt_prog_compiler_pic_CXX=
12853             lt_prog_compiler_static_CXX='-non_shared'
12854             ;;
12855           *)
12856             ;;
12857         esac
12858         ;;
12859       psos*)
12860         ;;
12861       solaris*)
12862         case $cc_basename in
12863           CC*)
12864             # Sun C++ 4.2, 5.x and Centerline C++
12865             lt_prog_compiler_pic_CXX='-KPIC'
12866             lt_prog_compiler_static_CXX='-Bstatic'
12867             lt_prog_compiler_wl_CXX='-Qoption ld '
12868             ;;
12869           gcx*)
12870             # Green Hills C++ Compiler
12871             lt_prog_compiler_pic_CXX='-PIC'
12872             ;;
12873           *)
12874             ;;
12875         esac
12876         ;;
12877       sunos4*)
12878         case $cc_basename in
12879           CC*)
12880             # Sun C++ 4.x
12881             lt_prog_compiler_pic_CXX='-pic'
12882             lt_prog_compiler_static_CXX='-Bstatic'
12883             ;;
12884           lcc*)
12885             # Lucid
12886             lt_prog_compiler_pic_CXX='-pic'
12887             ;;
12888           *)
12889             ;;
12890         esac
12891         ;;
12892       tandem*)
12893         case $cc_basename in
12894           NCC*)
12895             # NonStop-UX NCC 3.20
12896             lt_prog_compiler_pic_CXX='-KPIC'
12897             ;;
12898           *)
12899             ;;
12900         esac
12901         ;;
12902       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12903         case $cc_basename in
12904           CC*)
12905             lt_prog_compiler_wl_CXX='-Wl,'
12906             lt_prog_compiler_pic_CXX='-KPIC'
12907             lt_prog_compiler_static_CXX='-Bstatic'
12908             ;;
12909         esac
12910         ;;
12911       vxworks*)
12912         ;;
12913       *)
12914         lt_prog_compiler_can_build_shared_CXX=no
12915         ;;
12916     esac
12917   fi
12918
12919 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12920 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12921
12922 #
12923 # Check to make sure the PIC flag actually works.
12924 #
12925 if test -n "$lt_prog_compiler_pic_CXX"; then
12926
12927 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12929 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12930   echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932   lt_cv_prog_compiler_pic_works_CXX=no
12933   ac_outfile=conftest.$ac_objext
12934    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12935    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12936    # Insert the option either (1) after the last *FLAGS variable, or
12937    # (2) before a word containing "conftest.", or (3) at the end.
12938    # Note that $ac_compile itself does not contain backslashes and begins
12939    # with a dollar sign (not a hyphen), so the echo should work correctly.
12940    # The option is referenced via a variable to avoid confusing sed.
12941    lt_compile=`echo "$ac_compile" | $SED \
12942    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12943    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12944    -e 's:$: $lt_compiler_flag:'`
12945    (eval echo "\"\$as_me:12945: $lt_compile\"" >&5)
12946    (eval "$lt_compile" 2>conftest.err)
12947    ac_status=$?
12948    cat conftest.err >&5
12949    echo "$as_me:12949: \$? = $ac_status" >&5
12950    if (exit $ac_status) && test -s "$ac_outfile"; then
12951      # The compiler can only warn and ignore the option if not recognized
12952      # So say no if there are warnings other than the usual output.
12953      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12954      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12955      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12956        lt_cv_prog_compiler_pic_works_CXX=yes
12957      fi
12958    fi
12959    $rm conftest*
12960
12961 fi
12962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12963 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12964
12965 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12966     case $lt_prog_compiler_pic_CXX in
12967      "" | " "*) ;;
12968      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12969      esac
12970 else
12971     lt_prog_compiler_pic_CXX=
12972      lt_prog_compiler_can_build_shared_CXX=no
12973 fi
12974
12975 fi
12976 case $host_os in
12977   # For platforms which do not support PIC, -DPIC is meaningless:
12978   *djgpp*)
12979     lt_prog_compiler_pic_CXX=
12980     ;;
12981   *)
12982     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12983     ;;
12984 esac
12985
12986 #
12987 # Check to make sure the static flag actually works.
12988 #
12989 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12990 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12991 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12992 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12993   echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995   lt_cv_prog_compiler_static_works_CXX=no
12996    save_LDFLAGS="$LDFLAGS"
12997    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12998    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12999    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13000      # The linker can only warn and ignore the option if not recognized
13001      # So say no if there are warnings
13002      if test -s conftest.err; then
13003        # Append any errors to the config.log.
13004        cat conftest.err 1>&5
13005        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13006        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13007        if diff conftest.exp conftest.er2 >/dev/null; then
13008          lt_cv_prog_compiler_static_works_CXX=yes
13009        fi
13010      else
13011        lt_cv_prog_compiler_static_works_CXX=yes
13012      fi
13013    fi
13014    $rm -r conftest*
13015    LDFLAGS="$save_LDFLAGS"
13016
13017 fi
13018 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13019 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13020
13021 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13022     :
13023 else
13024     lt_prog_compiler_static_CXX=
13025 fi
13026
13027
13028 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13029 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13030 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13031   echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033   lt_cv_prog_compiler_c_o_CXX=no
13034    $rm -r conftest 2>/dev/null
13035    mkdir conftest
13036    cd conftest
13037    mkdir out
13038    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13039
13040    lt_compiler_flag="-o out/conftest2.$ac_objext"
13041    # Insert the option either (1) after the last *FLAGS variable, or
13042    # (2) before a word containing "conftest.", or (3) at the end.
13043    # Note that $ac_compile itself does not contain backslashes and begins
13044    # with a dollar sign (not a hyphen), so the echo should work correctly.
13045    lt_compile=`echo "$ac_compile" | $SED \
13046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13048    -e 's:$: $lt_compiler_flag:'`
13049    (eval echo "\"\$as_me:13049: $lt_compile\"" >&5)
13050    (eval "$lt_compile" 2>out/conftest.err)
13051    ac_status=$?
13052    cat out/conftest.err >&5
13053    echo "$as_me:13053: \$? = $ac_status" >&5
13054    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13055    then
13056      # The compiler can only warn and ignore the option if not recognized
13057      # So say no if there are warnings
13058      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13059      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13060      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13061        lt_cv_prog_compiler_c_o_CXX=yes
13062      fi
13063    fi
13064    chmod u+w . 2>&5
13065    $rm conftest*
13066    # SGI C++ compiler will create directory out/ii_files/ for
13067    # template instantiation
13068    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13069    $rm out/* && rmdir out
13070    cd ..
13071    rmdir conftest
13072    $rm conftest*
13073
13074 fi
13075 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13076 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13077
13078
13079 hard_links="nottested"
13080 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13081   # do not overwrite the value of need_locks provided by the user
13082   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13084   hard_links=yes
13085   $rm conftest*
13086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13087   touch conftest.a
13088   ln conftest.a conftest.b 2>&5 || hard_links=no
13089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13090   { echo "$as_me:$LINENO: result: $hard_links" >&5
13091 echo "${ECHO_T}$hard_links" >&6; }
13092   if test "$hard_links" = no; then
13093     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13095     need_locks=warn
13096   fi
13097 else
13098   need_locks=no
13099 fi
13100
13101 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13102 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13103
13104   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13105   case $host_os in
13106   aix[4-9]*)
13107     # If we're using GNU nm, then we don't want the "-C" option.
13108     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13109     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13110       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'
13111     else
13112       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'
13113     fi
13114     ;;
13115   pw32*)
13116     export_symbols_cmds_CXX="$ltdll_cmds"
13117   ;;
13118   cygwin* | mingw*)
13119     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'
13120   ;;
13121   *)
13122     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13123   ;;
13124   esac
13125   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13126
13127 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13128 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13129 test "$ld_shlibs_CXX" = no && can_build_shared=no
13130
13131 #
13132 # Do we need to explicitly link libc?
13133 #
13134 case "x$archive_cmds_need_lc_CXX" in
13135 x|xyes)
13136   # Assume -lc should be added
13137   archive_cmds_need_lc_CXX=yes
13138
13139   if test "$enable_shared" = yes && test "$GCC" = yes; then
13140     case $archive_cmds_CXX in
13141     *'~'*)
13142       # FIXME: we may have to deal with multi-command sequences.
13143       ;;
13144     '$CC '*)
13145       # Test whether the compiler implicitly links with -lc since on some
13146       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13147       # to ld, don't add -lc before -lgcc.
13148       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13149 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13150       $rm conftest*
13151       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13152
13153       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154   (eval $ac_compile) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } 2>conftest.err; then
13158         soname=conftest
13159         lib=conftest
13160         libobjs=conftest.$ac_objext
13161         deplibs=
13162         wl=$lt_prog_compiler_wl_CXX
13163         pic_flag=$lt_prog_compiler_pic_CXX
13164         compiler_flags=-v
13165         linker_flags=-v
13166         verstring=
13167         output_objdir=.
13168         libname=conftest
13169         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13170         allow_undefined_flag_CXX=
13171         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13172   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }
13176         then
13177           archive_cmds_need_lc_CXX=no
13178         else
13179           archive_cmds_need_lc_CXX=yes
13180         fi
13181         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13182       else
13183         cat conftest.err 1>&5
13184       fi
13185       $rm conftest*
13186       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13187 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13188       ;;
13189     esac
13190   fi
13191   ;;
13192 esac
13193
13194 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13195 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13196 library_names_spec=
13197 libname_spec='lib$name'
13198 soname_spec=
13199 shrext_cmds=".so"
13200 postinstall_cmds=
13201 postuninstall_cmds=
13202 finish_cmds=
13203 finish_eval=
13204 shlibpath_var=
13205 shlibpath_overrides_runpath=unknown
13206 version_type=none
13207 dynamic_linker="$host_os ld.so"
13208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13209
13210 need_lib_prefix=unknown
13211 hardcode_into_libs=no
13212
13213 # when you set need_version to no, make sure it does not cause -set_version
13214 # flags to be left without arguments
13215 need_version=unknown
13216
13217 case $host_os in
13218 aix3*)
13219   version_type=linux
13220   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13221   shlibpath_var=LIBPATH
13222
13223   # AIX 3 has no versioning support, so we append a major version to the name.
13224   soname_spec='${libname}${release}${shared_ext}$major'
13225   ;;
13226
13227 aix[4-9]*)
13228   version_type=linux
13229   need_lib_prefix=no
13230   need_version=no
13231   hardcode_into_libs=yes
13232   if test "$host_cpu" = ia64; then
13233     # AIX 5 supports IA64
13234     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13235     shlibpath_var=LD_LIBRARY_PATH
13236   else
13237     # With GCC up to 2.95.x, collect2 would create an import file
13238     # for dependence libraries.  The import file would start with
13239     # the line `#! .'.  This would cause the generated library to
13240     # depend on `.', always an invalid library.  This was fixed in
13241     # development snapshots of GCC prior to 3.0.
13242     case $host_os in
13243       aix4 | aix4.[01] | aix4.[01].*)
13244       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13245            echo ' yes '
13246            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13247         :
13248       else
13249         can_build_shared=no
13250       fi
13251       ;;
13252     esac
13253     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13254     # soname into executable. Probably we can add versioning support to
13255     # collect2, so additional links can be useful in future.
13256     if test "$aix_use_runtimelinking" = yes; then
13257       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13258       # instead of lib<name>.a to let people know that these are not
13259       # typical AIX shared libraries.
13260       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261     else
13262       # We preserve .a as extension for shared libraries through AIX4.2
13263       # and later when we are not doing run time linking.
13264       library_names_spec='${libname}${release}.a $libname.a'
13265       soname_spec='${libname}${release}${shared_ext}$major'
13266     fi
13267     shlibpath_var=LIBPATH
13268   fi
13269   ;;
13270
13271 amigaos*)
13272   library_names_spec='$libname.ixlibrary $libname.a'
13273   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13274   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'
13275   ;;
13276
13277 beos*)
13278   library_names_spec='${libname}${shared_ext}'
13279   dynamic_linker="$host_os ld.so"
13280   shlibpath_var=LIBRARY_PATH
13281   ;;
13282
13283 bsdi[45]*)
13284   version_type=linux
13285   need_version=no
13286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287   soname_spec='${libname}${release}${shared_ext}$major'
13288   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13289   shlibpath_var=LD_LIBRARY_PATH
13290   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13291   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13292   # the default ld.so.conf also contains /usr/contrib/lib and
13293   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13294   # libtool to hard-code these into programs
13295   ;;
13296
13297 cygwin* | mingw* | pw32*)
13298   version_type=windows
13299   shrext_cmds=".dll"
13300   need_version=no
13301   need_lib_prefix=no
13302
13303   case $GCC,$host_os in
13304   yes,cygwin* | yes,mingw* | yes,pw32*)
13305     library_names_spec='$libname.dll.a'
13306     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13307     postinstall_cmds='base_file=`basename \${file}`~
13308       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13309       dldir=$destdir/`dirname \$dlpath`~
13310       test -d \$dldir || mkdir -p \$dldir~
13311       $install_prog $dir/$dlname \$dldir/$dlname~
13312       chmod a+x \$dldir/$dlname'
13313     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13314       dlpath=$dir/\$dldll~
13315        $rm \$dlpath'
13316     shlibpath_overrides_runpath=yes
13317
13318     case $host_os in
13319     cygwin*)
13320       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13321       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13322       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13323       ;;
13324     mingw*)
13325       # MinGW DLLs use traditional 'lib' prefix
13326       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13327       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13328       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13329         # It is most probably a Windows format PATH printed by
13330         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13331         # path with ; separators, and with drive letters. We can handle the
13332         # drive letters (cygwin fileutils understands them), so leave them,
13333         # especially as we might pass files found there to a mingw objdump,
13334         # which wouldn't understand a cygwinified path. Ahh.
13335         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13336       else
13337         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13338       fi
13339       ;;
13340     pw32*)
13341       # pw32 DLLs use 'pw' prefix rather than 'lib'
13342       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13343       ;;
13344     esac
13345     ;;
13346
13347   *)
13348     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13349     ;;
13350   esac
13351   dynamic_linker='Win32 ld.exe'
13352   # FIXME: first we should search . and the directory the executable is in
13353   shlibpath_var=PATH
13354   ;;
13355
13356 darwin* | rhapsody*)
13357   dynamic_linker="$host_os dyld"
13358   version_type=darwin
13359   need_lib_prefix=no
13360   need_version=no
13361   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13362   soname_spec='${libname}${release}${major}$shared_ext'
13363   shlibpath_overrides_runpath=yes
13364   shlibpath_var=DYLD_LIBRARY_PATH
13365   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13366
13367   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13368   ;;
13369
13370 dgux*)
13371   version_type=linux
13372   need_lib_prefix=no
13373   need_version=no
13374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13375   soname_spec='${libname}${release}${shared_ext}$major'
13376   shlibpath_var=LD_LIBRARY_PATH
13377   ;;
13378
13379 freebsd1*)
13380   dynamic_linker=no
13381   ;;
13382
13383 freebsd* | dragonfly*)
13384   # DragonFly does not have aout.  When/if they implement a new
13385   # versioning mechanism, adjust this.
13386   if test -x /usr/bin/objformat; then
13387     objformat=`/usr/bin/objformat`
13388   else
13389     case $host_os in
13390     freebsd[123]*) objformat=aout ;;
13391     *) objformat=elf ;;
13392     esac
13393   fi
13394   version_type=freebsd-$objformat
13395   case $version_type in
13396     freebsd-elf*)
13397       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13398       need_version=no
13399       need_lib_prefix=no
13400       ;;
13401     freebsd-*)
13402       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13403       need_version=yes
13404       ;;
13405   esac
13406   shlibpath_var=LD_LIBRARY_PATH
13407   case $host_os in
13408   freebsd2*)
13409     shlibpath_overrides_runpath=yes
13410     ;;
13411   freebsd3.[01]* | freebsdelf3.[01]*)
13412     shlibpath_overrides_runpath=yes
13413     hardcode_into_libs=yes
13414     ;;
13415   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13416   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13417     shlibpath_overrides_runpath=no
13418     hardcode_into_libs=yes
13419     ;;
13420   *) # from 4.6 on, and DragonFly
13421     shlibpath_overrides_runpath=yes
13422     hardcode_into_libs=yes
13423     ;;
13424   esac
13425   ;;
13426
13427 gnu*)
13428   version_type=linux
13429   need_lib_prefix=no
13430   need_version=no
13431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13432   soname_spec='${libname}${release}${shared_ext}$major'
13433   shlibpath_var=LD_LIBRARY_PATH
13434   hardcode_into_libs=yes
13435   ;;
13436
13437 hpux9* | hpux10* | hpux11*)
13438   # Give a soname corresponding to the major version so that dld.sl refuses to
13439   # link against other versions.
13440   version_type=sunos
13441   need_lib_prefix=no
13442   need_version=no
13443   case $host_cpu in
13444   ia64*)
13445     shrext_cmds='.so'
13446     hardcode_into_libs=yes
13447     dynamic_linker="$host_os dld.so"
13448     shlibpath_var=LD_LIBRARY_PATH
13449     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451     soname_spec='${libname}${release}${shared_ext}$major'
13452     if test "X$HPUX_IA64_MODE" = X32; then
13453       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13454     else
13455       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13456     fi
13457     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13458     ;;
13459    hppa*64*)
13460      shrext_cmds='.sl'
13461      hardcode_into_libs=yes
13462      dynamic_linker="$host_os dld.sl"
13463      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13464      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466      soname_spec='${libname}${release}${shared_ext}$major'
13467      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13468      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13469      ;;
13470    *)
13471     shrext_cmds='.sl'
13472     dynamic_linker="$host_os dld.sl"
13473     shlibpath_var=SHLIB_PATH
13474     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476     soname_spec='${libname}${release}${shared_ext}$major'
13477     ;;
13478   esac
13479   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13480   postinstall_cmds='chmod 555 $lib'
13481   ;;
13482
13483 interix[3-9]*)
13484   version_type=linux
13485   need_lib_prefix=no
13486   need_version=no
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488   soname_spec='${libname}${release}${shared_ext}$major'
13489   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13490   shlibpath_var=LD_LIBRARY_PATH
13491   shlibpath_overrides_runpath=no
13492   hardcode_into_libs=yes
13493   ;;
13494
13495 irix5* | irix6* | nonstopux*)
13496   case $host_os in
13497     nonstopux*) version_type=nonstopux ;;
13498     *)
13499         if test "$lt_cv_prog_gnu_ld" = yes; then
13500                 version_type=linux
13501         else
13502                 version_type=irix
13503         fi ;;
13504   esac
13505   need_lib_prefix=no
13506   need_version=no
13507   soname_spec='${libname}${release}${shared_ext}$major'
13508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13509   case $host_os in
13510   irix5* | nonstopux*)
13511     libsuff= shlibsuff=
13512     ;;
13513   *)
13514     case $LD in # libtool.m4 will add one of these switches to LD
13515     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13516       libsuff= shlibsuff= libmagic=32-bit;;
13517     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13518       libsuff=32 shlibsuff=N32 libmagic=N32;;
13519     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13520       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13521     *) libsuff= shlibsuff= libmagic=never-match;;
13522     esac
13523     ;;
13524   esac
13525   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13526   shlibpath_overrides_runpath=no
13527   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13528   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13529   hardcode_into_libs=yes
13530   ;;
13531
13532 # No shared lib support for Linux oldld, aout, or coff.
13533 linux*oldld* | linux*aout* | linux*coff*)
13534   dynamic_linker=no
13535   ;;
13536
13537 # This must be Linux ELF.
13538 linux* | k*bsd*-gnu)
13539   version_type=linux
13540   need_lib_prefix=no
13541   need_version=no
13542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543   soname_spec='${libname}${release}${shared_ext}$major'
13544   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13545   shlibpath_var=LD_LIBRARY_PATH
13546   shlibpath_overrides_runpath=no
13547   # This implies no fast_install, which is unacceptable.
13548   # Some rework will be needed to allow for fast_install
13549   # before this can be enabled.
13550   hardcode_into_libs=yes
13551
13552   # Append ld.so.conf contents to the search path
13553   if test -f /etc/ld.so.conf; then
13554     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' ' '`
13555     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13556   fi
13557
13558   # We used to test for /lib/ld.so.1 and disable shared libraries on
13559   # powerpc, because MkLinux only supported shared libraries with the
13560   # GNU dynamic linker.  Since this was broken with cross compilers,
13561   # most powerpc-linux boxes support dynamic linking these days and
13562   # people can always --disable-shared, the test was removed, and we
13563   # assume the GNU/Linux dynamic linker is in use.
13564   dynamic_linker='GNU/Linux ld.so'
13565   ;;
13566
13567 netbsd*)
13568   version_type=sunos
13569   need_lib_prefix=no
13570   need_version=no
13571   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13574     dynamic_linker='NetBSD (a.out) ld.so'
13575   else
13576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13577     soname_spec='${libname}${release}${shared_ext}$major'
13578     dynamic_linker='NetBSD ld.elf_so'
13579   fi
13580   shlibpath_var=LD_LIBRARY_PATH
13581   shlibpath_overrides_runpath=yes
13582   hardcode_into_libs=yes
13583   ;;
13584
13585 newsos6)
13586   version_type=linux
13587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588   shlibpath_var=LD_LIBRARY_PATH
13589   shlibpath_overrides_runpath=yes
13590   ;;
13591
13592 nto-qnx*)
13593   version_type=linux
13594   need_lib_prefix=no
13595   need_version=no
13596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597   soname_spec='${libname}${release}${shared_ext}$major'
13598   shlibpath_var=LD_LIBRARY_PATH
13599   shlibpath_overrides_runpath=yes
13600   ;;
13601
13602 openbsd*)
13603   version_type=sunos
13604   sys_lib_dlsearch_path_spec="/usr/lib"
13605   need_lib_prefix=no
13606   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13607   case $host_os in
13608     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13609     *)                         need_version=no  ;;
13610   esac
13611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13612   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13613   shlibpath_var=LD_LIBRARY_PATH
13614   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13615     case $host_os in
13616       openbsd2.[89] | openbsd2.[89].*)
13617         shlibpath_overrides_runpath=no
13618         ;;
13619       *)
13620         shlibpath_overrides_runpath=yes
13621         ;;
13622       esac
13623   else
13624     shlibpath_overrides_runpath=yes
13625   fi
13626   ;;
13627
13628 os2*)
13629   libname_spec='$name'
13630   shrext_cmds=".dll"
13631   need_lib_prefix=no
13632   library_names_spec='$libname${shared_ext} $libname.a'
13633   dynamic_linker='OS/2 ld.exe'
13634   shlibpath_var=LIBPATH
13635   ;;
13636
13637 osf3* | osf4* | osf5*)
13638   version_type=osf
13639   need_lib_prefix=no
13640   need_version=no
13641   soname_spec='${libname}${release}${shared_ext}$major'
13642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643   shlibpath_var=LD_LIBRARY_PATH
13644   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13645   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13646   ;;
13647
13648 rdos*)
13649   dynamic_linker=no
13650   ;;
13651
13652 solaris*)
13653   version_type=linux
13654   need_lib_prefix=no
13655   need_version=no
13656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657   soname_spec='${libname}${release}${shared_ext}$major'
13658   shlibpath_var=LD_LIBRARY_PATH
13659   shlibpath_overrides_runpath=yes
13660   hardcode_into_libs=yes
13661   # ldd complains unless libraries are executable
13662   postinstall_cmds='chmod +x $lib'
13663   ;;
13664
13665 sunos4*)
13666   version_type=sunos
13667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13668   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13669   shlibpath_var=LD_LIBRARY_PATH
13670   shlibpath_overrides_runpath=yes
13671   if test "$with_gnu_ld" = yes; then
13672     need_lib_prefix=no
13673   fi
13674   need_version=yes
13675   ;;
13676
13677 sysv4 | sysv4.3*)
13678   version_type=linux
13679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13680   soname_spec='${libname}${release}${shared_ext}$major'
13681   shlibpath_var=LD_LIBRARY_PATH
13682   case $host_vendor in
13683     sni)
13684       shlibpath_overrides_runpath=no
13685       need_lib_prefix=no
13686       export_dynamic_flag_spec='${wl}-Blargedynsym'
13687       runpath_var=LD_RUN_PATH
13688       ;;
13689     siemens)
13690       need_lib_prefix=no
13691       ;;
13692     motorola)
13693       need_lib_prefix=no
13694       need_version=no
13695       shlibpath_overrides_runpath=no
13696       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13697       ;;
13698   esac
13699   ;;
13700
13701 sysv4*MP*)
13702   if test -d /usr/nec ;then
13703     version_type=linux
13704     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13705     soname_spec='$libname${shared_ext}.$major'
13706     shlibpath_var=LD_LIBRARY_PATH
13707   fi
13708   ;;
13709
13710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13711   version_type=freebsd-elf
13712   need_lib_prefix=no
13713   need_version=no
13714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13715   soname_spec='${libname}${release}${shared_ext}$major'
13716   shlibpath_var=LD_LIBRARY_PATH
13717   hardcode_into_libs=yes
13718   if test "$with_gnu_ld" = yes; then
13719     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13720     shlibpath_overrides_runpath=no
13721   else
13722     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13723     shlibpath_overrides_runpath=yes
13724     case $host_os in
13725       sco3.2v5*)
13726         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13727         ;;
13728     esac
13729   fi
13730   sys_lib_dlsearch_path_spec='/usr/lib'
13731   ;;
13732
13733 uts4*)
13734   version_type=linux
13735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736   soname_spec='${libname}${release}${shared_ext}$major'
13737   shlibpath_var=LD_LIBRARY_PATH
13738   ;;
13739
13740 *)
13741   dynamic_linker=no
13742   ;;
13743 esac
13744 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13745 echo "${ECHO_T}$dynamic_linker" >&6; }
13746 test "$dynamic_linker" = no && can_build_shared=no
13747
13748 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13749   echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13752 fi
13753
13754 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13755 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13759 fi
13760
13761 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13762
13763 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13764 if test "$GCC" = yes; then
13765   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13766 fi
13767
13768 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13769 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13770 hardcode_action_CXX=
13771 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13772    test -n "$runpath_var_CXX" || \
13773    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13774
13775   # We can hardcode non-existant directories.
13776   if test "$hardcode_direct_CXX" != no &&
13777      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13778      # have to relink, otherwise we might link with an installed library
13779      # when we should be linking with a yet-to-be-installed one
13780      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13781      test "$hardcode_minus_L_CXX" != no; then
13782     # Linking always hardcodes the temporary library directory.
13783     hardcode_action_CXX=relink
13784   else
13785     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13786     hardcode_action_CXX=immediate
13787   fi
13788 else
13789   # We cannot hardcode anything, or else we can only hardcode existing
13790   # directories.
13791   hardcode_action_CXX=unsupported
13792 fi
13793 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13794 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13795
13796 if test "$hardcode_action_CXX" = relink; then
13797   # Fast installation is not supported
13798   enable_fast_install=no
13799 elif test "$shlibpath_overrides_runpath" = yes ||
13800      test "$enable_shared" = no; then
13801   # Fast installation is not necessary
13802   enable_fast_install=needless
13803 fi
13804
13805
13806 # The else clause should only fire when bootstrapping the
13807 # libtool distribution, otherwise you forgot to ship ltmain.sh
13808 # with your package, and you will get complaints that there are
13809 # no rules to generate ltmain.sh.
13810 if test -f "$ltmain"; then
13811   # See if we are running on zsh, and set the options which allow our commands through
13812   # without removal of \ escapes.
13813   if test -n "${ZSH_VERSION+set}" ; then
13814     setopt NO_GLOB_SUBST
13815   fi
13816   # Now quote all the things that may contain metacharacters while being
13817   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13818   # variables and quote the copies for generation of the libtool script.
13819   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13820     SED SHELL STRIP \
13821     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13822     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13823     deplibs_check_method reload_flag reload_cmds need_locks \
13824     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13825     lt_cv_sys_global_symbol_to_c_name_address \
13826     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13827     old_postinstall_cmds old_postuninstall_cmds \
13828     compiler_CXX \
13829     CC_CXX \
13830     LD_CXX \
13831     lt_prog_compiler_wl_CXX \
13832     lt_prog_compiler_pic_CXX \
13833     lt_prog_compiler_static_CXX \
13834     lt_prog_compiler_no_builtin_flag_CXX \
13835     export_dynamic_flag_spec_CXX \
13836     thread_safe_flag_spec_CXX \
13837     whole_archive_flag_spec_CXX \
13838     enable_shared_with_static_runtimes_CXX \
13839     old_archive_cmds_CXX \
13840     old_archive_from_new_cmds_CXX \
13841     predep_objects_CXX \
13842     postdep_objects_CXX \
13843     predeps_CXX \
13844     postdeps_CXX \
13845     compiler_lib_search_path_CXX \
13846     compiler_lib_search_dirs_CXX \
13847     archive_cmds_CXX \
13848     archive_expsym_cmds_CXX \
13849     postinstall_cmds_CXX \
13850     postuninstall_cmds_CXX \
13851     old_archive_from_expsyms_cmds_CXX \
13852     allow_undefined_flag_CXX \
13853     no_undefined_flag_CXX \
13854     export_symbols_cmds_CXX \
13855     hardcode_libdir_flag_spec_CXX \
13856     hardcode_libdir_flag_spec_ld_CXX \
13857     hardcode_libdir_separator_CXX \
13858     hardcode_automatic_CXX \
13859     module_cmds_CXX \
13860     module_expsym_cmds_CXX \
13861     lt_cv_prog_compiler_c_o_CXX \
13862     fix_srcfile_path_CXX \
13863     exclude_expsyms_CXX \
13864     include_expsyms_CXX; do
13865
13866     case $var in
13867     old_archive_cmds_CXX | \
13868     old_archive_from_new_cmds_CXX | \
13869     archive_cmds_CXX | \
13870     archive_expsym_cmds_CXX | \
13871     module_cmds_CXX | \
13872     module_expsym_cmds_CXX | \
13873     old_archive_from_expsyms_cmds_CXX | \
13874     export_symbols_cmds_CXX | \
13875     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13876     postinstall_cmds | postuninstall_cmds | \
13877     old_postinstall_cmds | old_postuninstall_cmds | \
13878     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13879       # Double-quote double-evaled strings.
13880       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13881       ;;
13882     *)
13883       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13884       ;;
13885     esac
13886   done
13887
13888   case $lt_echo in
13889   *'\$0 --fallback-echo"')
13890     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13891     ;;
13892   esac
13893
13894 cfgfile="$ofile"
13895
13896   cat <<__EOF__ >> "$cfgfile"
13897 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13898
13899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13900
13901 # Shell to use when invoking shell scripts.
13902 SHELL=$lt_SHELL
13903
13904 # Whether or not to build shared libraries.
13905 build_libtool_libs=$enable_shared
13906
13907 # Whether or not to build static libraries.
13908 build_old_libs=$enable_static
13909
13910 # Whether or not to add -lc for building shared libraries.
13911 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13912
13913 # Whether or not to disallow shared libs when runtime libs are static
13914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13915
13916 # Whether or not to optimize for fast installation.
13917 fast_install=$enable_fast_install
13918
13919 # The host system.
13920 host_alias=$host_alias
13921 host=$host
13922 host_os=$host_os
13923
13924 # The build system.
13925 build_alias=$build_alias
13926 build=$build
13927 build_os=$build_os
13928
13929 # An echo program that does not interpret backslashes.
13930 echo=$lt_echo
13931
13932 # The archiver.
13933 AR=$lt_AR
13934 AR_FLAGS=$lt_AR_FLAGS
13935
13936 # A C compiler.
13937 LTCC=$lt_LTCC
13938
13939 # LTCC compiler flags.
13940 LTCFLAGS=$lt_LTCFLAGS
13941
13942 # A language-specific compiler.
13943 CC=$lt_compiler_CXX
13944
13945 # Is the compiler the GNU C compiler?
13946 with_gcc=$GCC_CXX
13947
13948 # An ERE matcher.
13949 EGREP=$lt_EGREP
13950
13951 # The linker used to build libraries.
13952 LD=$lt_LD_CXX
13953
13954 # Whether we need hard or soft links.
13955 LN_S=$lt_LN_S
13956
13957 # A BSD-compatible nm program.
13958 NM=$lt_NM
13959
13960 # A symbol stripping program
13961 STRIP=$lt_STRIP
13962
13963 # Used to examine libraries when file_magic_cmd begins "file"
13964 MAGIC_CMD=$MAGIC_CMD
13965
13966 # Used on cygwin: DLL creation program.
13967 DLLTOOL="$DLLTOOL"
13968
13969 # Used on cygwin: object dumper.
13970 OBJDUMP="$OBJDUMP"
13971
13972 # Used on cygwin: assembler.
13973 AS="$AS"
13974
13975 # The name of the directory that contains temporary libtool files.
13976 objdir=$objdir
13977
13978 # How to create reloadable object files.
13979 reload_flag=$lt_reload_flag
13980 reload_cmds=$lt_reload_cmds
13981
13982 # How to pass a linker flag through the compiler.
13983 wl=$lt_lt_prog_compiler_wl_CXX
13984
13985 # Object file suffix (normally "o").
13986 objext="$ac_objext"
13987
13988 # Old archive suffix (normally "a").
13989 libext="$libext"
13990
13991 # Shared library suffix (normally ".so").
13992 shrext_cmds='$shrext_cmds'
13993
13994 # Executable file suffix (normally "").
13995 exeext="$exeext"
13996
13997 # Additional compiler flags for building library objects.
13998 pic_flag=$lt_lt_prog_compiler_pic_CXX
13999 pic_mode=$pic_mode
14000
14001 # What is the maximum length of a command?
14002 max_cmd_len=$lt_cv_sys_max_cmd_len
14003
14004 # Does compiler simultaneously support -c and -o options?
14005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14006
14007 # Must we lock files when doing compilation?
14008 need_locks=$lt_need_locks
14009
14010 # Do we need the lib prefix for modules?
14011 need_lib_prefix=$need_lib_prefix
14012
14013 # Do we need a version for libraries?
14014 need_version=$need_version
14015
14016 # Whether dlopen is supported.
14017 dlopen_support=$enable_dlopen
14018
14019 # Whether dlopen of programs is supported.
14020 dlopen_self=$enable_dlopen_self
14021
14022 # Whether dlopen of statically linked programs is supported.
14023 dlopen_self_static=$enable_dlopen_self_static
14024
14025 # Compiler flag to prevent dynamic linking.
14026 link_static_flag=$lt_lt_prog_compiler_static_CXX
14027
14028 # Compiler flag to turn off builtin functions.
14029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14030
14031 # Compiler flag to allow reflexive dlopens.
14032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14033
14034 # Compiler flag to generate shared objects directly from archives.
14035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14036
14037 # Compiler flag to generate thread-safe objects.
14038 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14039
14040 # Library versioning type.
14041 version_type=$version_type
14042
14043 # Format of library name prefix.
14044 libname_spec=$lt_libname_spec
14045
14046 # List of archive names.  First name is the real one, the rest are links.
14047 # The last name is the one that the linker finds with -lNAME.
14048 library_names_spec=$lt_library_names_spec
14049
14050 # The coded name of the library, if different from the real name.
14051 soname_spec=$lt_soname_spec
14052
14053 # Commands used to build and install an old-style archive.
14054 RANLIB=$lt_RANLIB
14055 old_archive_cmds=$lt_old_archive_cmds_CXX
14056 old_postinstall_cmds=$lt_old_postinstall_cmds
14057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14058
14059 # Create an old-style archive from a shared archive.
14060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14061
14062 # Create a temporary old-style archive to link instead of a shared archive.
14063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14064
14065 # Commands used to build and install a shared archive.
14066 archive_cmds=$lt_archive_cmds_CXX
14067 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14068 postinstall_cmds=$lt_postinstall_cmds
14069 postuninstall_cmds=$lt_postuninstall_cmds
14070
14071 # Commands used to build a loadable module (assumed same as above if empty)
14072 module_cmds=$lt_module_cmds_CXX
14073 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14074
14075 # Commands to strip libraries.
14076 old_striplib=$lt_old_striplib
14077 striplib=$lt_striplib
14078
14079 # Dependencies to place before the objects being linked to create a
14080 # shared library.
14081 predep_objects=$lt_predep_objects_CXX
14082
14083 # Dependencies to place after the objects being linked to create a
14084 # shared library.
14085 postdep_objects=$lt_postdep_objects_CXX
14086
14087 # Dependencies to place before the objects being linked to create a
14088 # shared library.
14089 predeps=$lt_predeps_CXX
14090
14091 # Dependencies to place after the objects being linked to create a
14092 # shared library.
14093 postdeps=$lt_postdeps_CXX
14094
14095 # The directories searched by this compiler when creating a shared
14096 # library
14097 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14098
14099 # The library search path used internally by the compiler when linking
14100 # a shared library.
14101 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14102
14103 # Method to check whether dependent libraries are shared objects.
14104 deplibs_check_method=$lt_deplibs_check_method
14105
14106 # Command to use when deplibs_check_method == file_magic.
14107 file_magic_cmd=$lt_file_magic_cmd
14108
14109 # Flag that allows shared libraries with undefined symbols to be built.
14110 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14111
14112 # Flag that forces no undefined symbols.
14113 no_undefined_flag=$lt_no_undefined_flag_CXX
14114
14115 # Commands used to finish a libtool library installation in a directory.
14116 finish_cmds=$lt_finish_cmds
14117
14118 # Same as above, but a single script fragment to be evaled but not shown.
14119 finish_eval=$lt_finish_eval
14120
14121 # Take the output of nm and produce a listing of raw symbols and C names.
14122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14123
14124 # Transform the output of nm in a proper C declaration
14125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14126
14127 # Transform the output of nm in a C name address pair
14128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14129
14130 # This is the shared library runtime path variable.
14131 runpath_var=$runpath_var
14132
14133 # This is the shared library path variable.
14134 shlibpath_var=$shlibpath_var
14135
14136 # Is shlibpath searched before the hard-coded library search path?
14137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14138
14139 # How to hardcode a shared library path into an executable.
14140 hardcode_action=$hardcode_action_CXX
14141
14142 # Whether we should hardcode library paths into libraries.
14143 hardcode_into_libs=$hardcode_into_libs
14144
14145 # Flag to hardcode \$libdir into a binary during linking.
14146 # This must work even if \$libdir does not exist.
14147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14148
14149 # If ld is used when linking, flag to hardcode \$libdir into
14150 # a binary during linking. This must work even if \$libdir does
14151 # not exist.
14152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14153
14154 # Whether we need a single -rpath flag with a separated argument.
14155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14156
14157 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14158 # resulting binary.
14159 hardcode_direct=$hardcode_direct_CXX
14160
14161 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14162 # resulting binary.
14163 hardcode_minus_L=$hardcode_minus_L_CXX
14164
14165 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14166 # the resulting binary.
14167 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14168
14169 # Set to yes if building a shared library automatically hardcodes DIR into the library
14170 # and all subsequent libraries and executables linked against it.
14171 hardcode_automatic=$hardcode_automatic_CXX
14172
14173 # Variables whose values should be saved in libtool wrapper scripts and
14174 # restored at relink time.
14175 variables_saved_for_relink="$variables_saved_for_relink"
14176
14177 # Whether libtool must link a program against all its dependency libraries.
14178 link_all_deplibs=$link_all_deplibs_CXX
14179
14180 # Compile-time system search path for libraries
14181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14182
14183 # Run-time system search path for libraries
14184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14185
14186 # Fix the shell variable \$srcfile for the compiler.
14187 fix_srcfile_path=$lt_fix_srcfile_path
14188
14189 # Set to yes if exported symbols are required.
14190 always_export_symbols=$always_export_symbols_CXX
14191
14192 # The commands to list exported symbols.
14193 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14194
14195 # The commands to extract the exported symbol list from a shared archive.
14196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14197
14198 # Symbols that should not be listed in the preloaded symbols.
14199 exclude_expsyms=$lt_exclude_expsyms_CXX
14200
14201 # Symbols that must always be exported.
14202 include_expsyms=$lt_include_expsyms_CXX
14203
14204 # ### END LIBTOOL TAG CONFIG: $tagname
14205
14206 __EOF__
14207
14208
14209 else
14210   # If there is no Makefile yet, we rely on a make rule to execute
14211   # `config.status --recheck' to rerun these tests and create the
14212   # libtool script then.
14213   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14214   if test -f "$ltmain_in"; then
14215     test -f Makefile && make "$ltmain"
14216   fi
14217 fi
14218
14219
14220 ac_ext=c
14221 ac_cpp='$CPP $CPPFLAGS'
14222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14225
14226 CC=$lt_save_CC
14227 LDCXX=$LD
14228 LD=$lt_save_LD
14229 GCC=$lt_save_GCC
14230 with_gnu_ldcxx=$with_gnu_ld
14231 with_gnu_ld=$lt_save_with_gnu_ld
14232 lt_cv_path_LDCXX=$lt_cv_path_LD
14233 lt_cv_path_LD=$lt_save_path_LD
14234 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14235 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14236
14237         else
14238           tagname=""
14239         fi
14240         ;;
14241
14242       F77)
14243         if test -n "$F77" && test "X$F77" != "Xno"; then
14244
14245 ac_ext=f
14246 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14247 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14248 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14249
14250
14251 archive_cmds_need_lc_F77=no
14252 allow_undefined_flag_F77=
14253 always_export_symbols_F77=no
14254 archive_expsym_cmds_F77=
14255 export_dynamic_flag_spec_F77=
14256 hardcode_direct_F77=no
14257 hardcode_libdir_flag_spec_F77=
14258 hardcode_libdir_flag_spec_ld_F77=
14259 hardcode_libdir_separator_F77=
14260 hardcode_minus_L_F77=no
14261 hardcode_automatic_F77=no
14262 module_cmds_F77=
14263 module_expsym_cmds_F77=
14264 link_all_deplibs_F77=unknown
14265 old_archive_cmds_F77=$old_archive_cmds
14266 no_undefined_flag_F77=
14267 whole_archive_flag_spec_F77=
14268 enable_shared_with_static_runtimes_F77=no
14269
14270 # Source file extension for f77 test sources.
14271 ac_ext=f
14272
14273 # Object file extension for compiled f77 test sources.
14274 objext=o
14275 objext_F77=$objext
14276
14277 # Code to be used in simple compile tests
14278 lt_simple_compile_test_code="\
14279       subroutine t
14280       return
14281       end
14282 "
14283
14284 # Code to be used in simple link tests
14285 lt_simple_link_test_code="\
14286       program t
14287       end
14288 "
14289
14290 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14291
14292 # If no C compiler was specified, use CC.
14293 LTCC=${LTCC-"$CC"}
14294
14295 # If no C compiler flags were specified, use CFLAGS.
14296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14297
14298 # Allow CC to be a program name with arguments.
14299 compiler=$CC
14300
14301
14302 # save warnings/boilerplate of simple test code
14303 ac_outfile=conftest.$ac_objext
14304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14306 _lt_compiler_boilerplate=`cat conftest.err`
14307 $rm conftest*
14308
14309 ac_outfile=conftest.$ac_objext
14310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14312 _lt_linker_boilerplate=`cat conftest.err`
14313 $rm -r conftest*
14314
14315
14316 # Allow CC to be a program name with arguments.
14317 lt_save_CC="$CC"
14318 CC=${F77-"f77"}
14319 compiler=$CC
14320 compiler_F77=$CC
14321 for cc_temp in $compiler""; do
14322   case $cc_temp in
14323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14325     \-*) ;;
14326     *) break;;
14327   esac
14328 done
14329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14330
14331
14332 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14333 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14334 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14335 echo "${ECHO_T}$can_build_shared" >&6; }
14336
14337 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14338 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14339 test "$can_build_shared" = "no" && enable_shared=no
14340
14341 # On AIX, shared libraries and static libraries use the same namespace, and
14342 # are all built from PIC.
14343 case $host_os in
14344 aix3*)
14345   test "$enable_shared" = yes && enable_static=no
14346   if test -n "$RANLIB"; then
14347     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14348     postinstall_cmds='$RANLIB $lib'
14349   fi
14350   ;;
14351 aix[4-9]*)
14352   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14353     test "$enable_shared" = yes && enable_static=no
14354   fi
14355   ;;
14356 esac
14357 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14358 echo "${ECHO_T}$enable_shared" >&6; }
14359
14360 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14361 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14362 # Make sure either enable_shared or enable_static is yes.
14363 test "$enable_shared" = yes || enable_static=yes
14364 { echo "$as_me:$LINENO: result: $enable_static" >&5
14365 echo "${ECHO_T}$enable_static" >&6; }
14366
14367 GCC_F77="$G77"
14368 LD_F77="$LD"
14369
14370 lt_prog_compiler_wl_F77=
14371 lt_prog_compiler_pic_F77=
14372 lt_prog_compiler_static_F77=
14373
14374 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14376
14377   if test "$GCC" = yes; then
14378     lt_prog_compiler_wl_F77='-Wl,'
14379     lt_prog_compiler_static_F77='-static'
14380
14381     case $host_os in
14382       aix*)
14383       # All AIX code is PIC.
14384       if test "$host_cpu" = ia64; then
14385         # AIX 5 now supports IA64 processor
14386         lt_prog_compiler_static_F77='-Bstatic'
14387       fi
14388       ;;
14389
14390     amigaos*)
14391       # FIXME: we need at least 68020 code to build shared libraries, but
14392       # adding the `-m68020' flag to GCC prevents building anything better,
14393       # like `-m68040'.
14394       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14395       ;;
14396
14397     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14398       # PIC is the default for these OSes.
14399       ;;
14400
14401     mingw* | cygwin* | pw32* | os2*)
14402       # This hack is so that the source file can tell whether it is being
14403       # built for inclusion in a dll (and should export symbols for example).
14404       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14405       # (--disable-auto-import) libraries
14406       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14407       ;;
14408
14409     darwin* | rhapsody*)
14410       # PIC is the default on this platform
14411       # Common symbols not allowed in MH_DYLIB files
14412       lt_prog_compiler_pic_F77='-fno-common'
14413       ;;
14414
14415     interix[3-9]*)
14416       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14417       # Instead, we relocate shared libraries at runtime.
14418       ;;
14419
14420     msdosdjgpp*)
14421       # Just because we use GCC doesn't mean we suddenly get shared libraries
14422       # on systems that don't support them.
14423       lt_prog_compiler_can_build_shared_F77=no
14424       enable_shared=no
14425       ;;
14426
14427     sysv4*MP*)
14428       if test -d /usr/nec; then
14429         lt_prog_compiler_pic_F77=-Kconform_pic
14430       fi
14431       ;;
14432
14433     hpux*)
14434       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14435       # not for PA HP-UX.
14436       case $host_cpu in
14437       hppa*64*|ia64*)
14438         # +Z the default
14439         ;;
14440       *)
14441         lt_prog_compiler_pic_F77='-fPIC'
14442         ;;
14443       esac
14444       ;;
14445
14446     *)
14447       lt_prog_compiler_pic_F77='-fPIC'
14448       ;;
14449     esac
14450   else
14451     # PORTME Check for flag to pass linker flags through the system compiler.
14452     case $host_os in
14453     aix*)
14454       lt_prog_compiler_wl_F77='-Wl,'
14455       if test "$host_cpu" = ia64; then
14456         # AIX 5 now supports IA64 processor
14457         lt_prog_compiler_static_F77='-Bstatic'
14458       else
14459         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14460       fi
14461       ;;
14462       darwin*)
14463         # PIC is the default on this platform
14464         # Common symbols not allowed in MH_DYLIB files
14465        case $cc_basename in
14466          xlc*)
14467          lt_prog_compiler_pic_F77='-qnocommon'
14468          lt_prog_compiler_wl_F77='-Wl,'
14469          ;;
14470        esac
14471        ;;
14472
14473     mingw* | cygwin* | pw32* | os2*)
14474       # This hack is so that the source file can tell whether it is being
14475       # built for inclusion in a dll (and should export symbols for example).
14476       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14477       ;;
14478
14479     hpux9* | hpux10* | hpux11*)
14480       lt_prog_compiler_wl_F77='-Wl,'
14481       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14482       # not for PA HP-UX.
14483       case $host_cpu in
14484       hppa*64*|ia64*)
14485         # +Z the default
14486         ;;
14487       *)
14488         lt_prog_compiler_pic_F77='+Z'
14489         ;;
14490       esac
14491       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14492       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14493       ;;
14494
14495     irix5* | irix6* | nonstopux*)
14496       lt_prog_compiler_wl_F77='-Wl,'
14497       # PIC (with -KPIC) is the default.
14498       lt_prog_compiler_static_F77='-non_shared'
14499       ;;
14500
14501     newsos6)
14502       lt_prog_compiler_pic_F77='-KPIC'
14503       lt_prog_compiler_static_F77='-Bstatic'
14504       ;;
14505
14506     linux* | k*bsd*-gnu)
14507       case $cc_basename in
14508       icc* | ecc*)
14509         lt_prog_compiler_wl_F77='-Wl,'
14510         lt_prog_compiler_pic_F77='-KPIC'
14511         lt_prog_compiler_static_F77='-static'
14512         ;;
14513       pgcc* | pgf77* | pgf90* | pgf95*)
14514         # Portland Group compilers (*not* the Pentium gcc compiler,
14515         # which looks to be a dead project)
14516         lt_prog_compiler_wl_F77='-Wl,'
14517         lt_prog_compiler_pic_F77='-fpic'
14518         lt_prog_compiler_static_F77='-Bstatic'
14519         ;;
14520       ccc*)
14521         lt_prog_compiler_wl_F77='-Wl,'
14522         # All Alpha code is PIC.
14523         lt_prog_compiler_static_F77='-non_shared'
14524         ;;
14525       *)
14526         case `$CC -V 2>&1 | sed 5q` in
14527         *Sun\ C*)
14528           # Sun C 5.9
14529           lt_prog_compiler_pic_F77='-KPIC'
14530           lt_prog_compiler_static_F77='-Bstatic'
14531           lt_prog_compiler_wl_F77='-Wl,'
14532           ;;
14533         *Sun\ F*)
14534           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14535           lt_prog_compiler_pic_F77='-KPIC'
14536           lt_prog_compiler_static_F77='-Bstatic'
14537           lt_prog_compiler_wl_F77=''
14538           ;;
14539         esac
14540         ;;
14541       esac
14542       ;;
14543
14544     osf3* | osf4* | osf5*)
14545       lt_prog_compiler_wl_F77='-Wl,'
14546       # All OSF/1 code is PIC.
14547       lt_prog_compiler_static_F77='-non_shared'
14548       ;;
14549
14550     rdos*)
14551       lt_prog_compiler_static_F77='-non_shared'
14552       ;;
14553
14554     solaris*)
14555       lt_prog_compiler_pic_F77='-KPIC'
14556       lt_prog_compiler_static_F77='-Bstatic'
14557       case $cc_basename in
14558       f77* | f90* | f95*)
14559         lt_prog_compiler_wl_F77='-Qoption ld ';;
14560       *)
14561         lt_prog_compiler_wl_F77='-Wl,';;
14562       esac
14563       ;;
14564
14565     sunos4*)
14566       lt_prog_compiler_wl_F77='-Qoption ld '
14567       lt_prog_compiler_pic_F77='-PIC'
14568       lt_prog_compiler_static_F77='-Bstatic'
14569       ;;
14570
14571     sysv4 | sysv4.2uw2* | sysv4.3*)
14572       lt_prog_compiler_wl_F77='-Wl,'
14573       lt_prog_compiler_pic_F77='-KPIC'
14574       lt_prog_compiler_static_F77='-Bstatic'
14575       ;;
14576
14577     sysv4*MP*)
14578       if test -d /usr/nec ;then
14579         lt_prog_compiler_pic_F77='-Kconform_pic'
14580         lt_prog_compiler_static_F77='-Bstatic'
14581       fi
14582       ;;
14583
14584     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14585       lt_prog_compiler_wl_F77='-Wl,'
14586       lt_prog_compiler_pic_F77='-KPIC'
14587       lt_prog_compiler_static_F77='-Bstatic'
14588       ;;
14589
14590     unicos*)
14591       lt_prog_compiler_wl_F77='-Wl,'
14592       lt_prog_compiler_can_build_shared_F77=no
14593       ;;
14594
14595     uts4*)
14596       lt_prog_compiler_pic_F77='-pic'
14597       lt_prog_compiler_static_F77='-Bstatic'
14598       ;;
14599
14600     *)
14601       lt_prog_compiler_can_build_shared_F77=no
14602       ;;
14603     esac
14604   fi
14605
14606 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14607 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14608
14609 #
14610 # Check to make sure the PIC flag actually works.
14611 #
14612 if test -n "$lt_prog_compiler_pic_F77"; then
14613
14614 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14616 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   lt_cv_prog_compiler_pic_works_F77=no
14620   ac_outfile=conftest.$ac_objext
14621    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14622    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14623    # Insert the option either (1) after the last *FLAGS variable, or
14624    # (2) before a word containing "conftest.", or (3) at the end.
14625    # Note that $ac_compile itself does not contain backslashes and begins
14626    # with a dollar sign (not a hyphen), so the echo should work correctly.
14627    # The option is referenced via a variable to avoid confusing sed.
14628    lt_compile=`echo "$ac_compile" | $SED \
14629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631    -e 's:$: $lt_compiler_flag:'`
14632    (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633    (eval "$lt_compile" 2>conftest.err)
14634    ac_status=$?
14635    cat conftest.err >&5
14636    echo "$as_me:14636: \$? = $ac_status" >&5
14637    if (exit $ac_status) && test -s "$ac_outfile"; then
14638      # The compiler can only warn and ignore the option if not recognized
14639      # So say no if there are warnings other than the usual output.
14640      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14643        lt_cv_prog_compiler_pic_works_F77=yes
14644      fi
14645    fi
14646    $rm conftest*
14647
14648 fi
14649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14650 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14651
14652 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14653     case $lt_prog_compiler_pic_F77 in
14654      "" | " "*) ;;
14655      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14656      esac
14657 else
14658     lt_prog_compiler_pic_F77=
14659      lt_prog_compiler_can_build_shared_F77=no
14660 fi
14661
14662 fi
14663 case $host_os in
14664   # For platforms which do not support PIC, -DPIC is meaningless:
14665   *djgpp*)
14666     lt_prog_compiler_pic_F77=
14667     ;;
14668   *)
14669     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14670     ;;
14671 esac
14672
14673 #
14674 # Check to make sure the static flag actually works.
14675 #
14676 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14677 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14678 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14679 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   lt_cv_prog_compiler_static_works_F77=no
14683    save_LDFLAGS="$LDFLAGS"
14684    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14685    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14686    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14687      # The linker can only warn and ignore the option if not recognized
14688      # So say no if there are warnings
14689      if test -s conftest.err; then
14690        # Append any errors to the config.log.
14691        cat conftest.err 1>&5
14692        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14693        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14694        if diff conftest.exp conftest.er2 >/dev/null; then
14695          lt_cv_prog_compiler_static_works_F77=yes
14696        fi
14697      else
14698        lt_cv_prog_compiler_static_works_F77=yes
14699      fi
14700    fi
14701    $rm -r conftest*
14702    LDFLAGS="$save_LDFLAGS"
14703
14704 fi
14705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14706 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14707
14708 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14709     :
14710 else
14711     lt_prog_compiler_static_F77=
14712 fi
14713
14714
14715 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14717 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720   lt_cv_prog_compiler_c_o_F77=no
14721    $rm -r conftest 2>/dev/null
14722    mkdir conftest
14723    cd conftest
14724    mkdir out
14725    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14726
14727    lt_compiler_flag="-o out/conftest2.$ac_objext"
14728    # Insert the option either (1) after the last *FLAGS variable, or
14729    # (2) before a word containing "conftest.", or (3) at the end.
14730    # Note that $ac_compile itself does not contain backslashes and begins
14731    # with a dollar sign (not a hyphen), so the echo should work correctly.
14732    lt_compile=`echo "$ac_compile" | $SED \
14733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14735    -e 's:$: $lt_compiler_flag:'`
14736    (eval echo "\"\$as_me:14736: $lt_compile\"" >&5)
14737    (eval "$lt_compile" 2>out/conftest.err)
14738    ac_status=$?
14739    cat out/conftest.err >&5
14740    echo "$as_me:14740: \$? = $ac_status" >&5
14741    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14742    then
14743      # The compiler can only warn and ignore the option if not recognized
14744      # So say no if there are warnings
14745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14746      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14747      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14748        lt_cv_prog_compiler_c_o_F77=yes
14749      fi
14750    fi
14751    chmod u+w . 2>&5
14752    $rm conftest*
14753    # SGI C++ compiler will create directory out/ii_files/ for
14754    # template instantiation
14755    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14756    $rm out/* && rmdir out
14757    cd ..
14758    rmdir conftest
14759    $rm conftest*
14760
14761 fi
14762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14764
14765
14766 hard_links="nottested"
14767 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14768   # do not overwrite the value of need_locks provided by the user
14769   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14771   hard_links=yes
14772   $rm conftest*
14773   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14774   touch conftest.a
14775   ln conftest.a conftest.b 2>&5 || hard_links=no
14776   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777   { echo "$as_me:$LINENO: result: $hard_links" >&5
14778 echo "${ECHO_T}$hard_links" >&6; }
14779   if test "$hard_links" = no; then
14780     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14782     need_locks=warn
14783   fi
14784 else
14785   need_locks=no
14786 fi
14787
14788 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14790
14791   runpath_var=
14792   allow_undefined_flag_F77=
14793   enable_shared_with_static_runtimes_F77=no
14794   archive_cmds_F77=
14795   archive_expsym_cmds_F77=
14796   old_archive_From_new_cmds_F77=
14797   old_archive_from_expsyms_cmds_F77=
14798   export_dynamic_flag_spec_F77=
14799   whole_archive_flag_spec_F77=
14800   thread_safe_flag_spec_F77=
14801   hardcode_libdir_flag_spec_F77=
14802   hardcode_libdir_flag_spec_ld_F77=
14803   hardcode_libdir_separator_F77=
14804   hardcode_direct_F77=no
14805   hardcode_minus_L_F77=no
14806   hardcode_shlibpath_var_F77=unsupported
14807   link_all_deplibs_F77=unknown
14808   hardcode_automatic_F77=no
14809   module_cmds_F77=
14810   module_expsym_cmds_F77=
14811   always_export_symbols_F77=no
14812   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14813   # include_expsyms should be a list of space-separated symbols to be *always*
14814   # included in the symbol list
14815   include_expsyms_F77=
14816   # exclude_expsyms can be an extended regexp of symbols to exclude
14817   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14818   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14819   # as well as any symbol that contains `d'.
14820   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14821   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14822   # platforms (ab)use it in PIC code, but their linkers get confused if
14823   # the symbol is explicitly referenced.  Since portable code cannot
14824   # rely on this symbol name, it's probably fine to never include it in
14825   # preloaded symbol tables.
14826   # Exclude shared library initialization/finalization symbols.
14827   extract_expsyms_cmds=
14828   # Just being paranoid about ensuring that cc_basename is set.
14829   for cc_temp in $compiler""; do
14830   case $cc_temp in
14831     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14832     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14833     \-*) ;;
14834     *) break;;
14835   esac
14836 done
14837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14838
14839   case $host_os in
14840   cygwin* | mingw* | pw32*)
14841     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14842     # When not using gcc, we currently assume that we are using
14843     # Microsoft Visual C++.
14844     if test "$GCC" != yes; then
14845       with_gnu_ld=no
14846     fi
14847     ;;
14848   interix*)
14849     # we just hope/assume this is gcc and not c89 (= MSVC++)
14850     with_gnu_ld=yes
14851     ;;
14852   openbsd*)
14853     with_gnu_ld=no
14854     ;;
14855   esac
14856
14857   ld_shlibs_F77=yes
14858   if test "$with_gnu_ld" = yes; then
14859     # If archive_cmds runs LD, not CC, wlarc should be empty
14860     wlarc='${wl}'
14861
14862     # Set some defaults for GNU ld with shared library support. These
14863     # are reset later if shared libraries are not supported. Putting them
14864     # here allows them to be overridden if necessary.
14865     runpath_var=LD_RUN_PATH
14866     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14867     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14868     # ancient GNU ld didn't support --whole-archive et. al.
14869     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14870         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14871       else
14872         whole_archive_flag_spec_F77=
14873     fi
14874     supports_anon_versioning=no
14875     case `$LD -v 2>/dev/null` in
14876       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14877       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14878       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14879       *\ 2.11.*) ;; # other 2.11 versions
14880       *) supports_anon_versioning=yes ;;
14881     esac
14882
14883     # See if GNU ld supports shared libraries.
14884     case $host_os in
14885     aix[3-9]*)
14886       # On AIX/PPC, the GNU linker is very broken
14887       if test "$host_cpu" != ia64; then
14888         ld_shlibs_F77=no
14889         cat <<EOF 1>&2
14890
14891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14892 *** to be unable to reliably create shared libraries on AIX.
14893 *** Therefore, libtool is disabling shared libraries support.  If you
14894 *** really care for shared libraries, you may want to modify your PATH
14895 *** so that a non-GNU linker is found, and then restart.
14896
14897 EOF
14898       fi
14899       ;;
14900
14901     amigaos*)
14902       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)'
14903       hardcode_libdir_flag_spec_F77='-L$libdir'
14904       hardcode_minus_L_F77=yes
14905
14906       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14907       # that the semantics of dynamic libraries on AmigaOS, at least up
14908       # to version 4, is to share data among multiple programs linked
14909       # with the same dynamic library.  Since this doesn't match the
14910       # behavior of shared libraries on other platforms, we can't use
14911       # them.
14912       ld_shlibs_F77=no
14913       ;;
14914
14915     beos*)
14916       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14917         allow_undefined_flag_F77=unsupported
14918         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14919         # support --undefined.  This deserves some investigation.  FIXME
14920         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14921       else
14922         ld_shlibs_F77=no
14923       fi
14924       ;;
14925
14926     cygwin* | mingw* | pw32*)
14927       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14928       # as there is no search path for DLLs.
14929       hardcode_libdir_flag_spec_F77='-L$libdir'
14930       allow_undefined_flag_F77=unsupported
14931       always_export_symbols_F77=no
14932       enable_shared_with_static_runtimes_F77=yes
14933       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14934
14935       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14936         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14937         # If the export-symbols file already is a .def file (1st line
14938         # is EXPORTS), use it as is; otherwise, prepend...
14939         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14940           cp $export_symbols $output_objdir/$soname.def;
14941         else
14942           echo EXPORTS > $output_objdir/$soname.def;
14943           cat $export_symbols >> $output_objdir/$soname.def;
14944         fi~
14945         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14946       else
14947         ld_shlibs_F77=no
14948       fi
14949       ;;
14950
14951     interix[3-9]*)
14952       hardcode_direct_F77=no
14953       hardcode_shlibpath_var_F77=no
14954       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14955       export_dynamic_flag_spec_F77='${wl}-E'
14956       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14957       # Instead, shared libraries are loaded at an image base (0x10000000 by
14958       # default) and relocated if they conflict, which is a slow very memory
14959       # consuming and fragmenting process.  To avoid this, we pick a random,
14960       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14961       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14962       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'
14963       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'
14964       ;;
14965
14966     gnu* | linux* | k*bsd*-gnu)
14967       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14968         tmp_addflag=
14969         case $cc_basename,$host_cpu in
14970         pgcc*)                          # Portland Group C compiler
14971           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'
14972           tmp_addflag=' $pic_flag'
14973           ;;
14974         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14975           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'
14976           tmp_addflag=' $pic_flag -Mnomain' ;;
14977         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14978           tmp_addflag=' -i_dynamic' ;;
14979         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14980           tmp_addflag=' -i_dynamic -nofor_main' ;;
14981         ifc* | ifort*)                  # Intel Fortran compiler
14982           tmp_addflag=' -nofor_main' ;;
14983         esac
14984         case `$CC -V 2>&1 | sed 5q` in
14985         *Sun\ C*)                       # Sun C 5.9
14986           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'
14987           tmp_sharedflag='-G' ;;
14988         *Sun\ F*)                       # Sun Fortran 8.3
14989           tmp_sharedflag='-G' ;;
14990         *)
14991           tmp_sharedflag='-shared' ;;
14992         esac
14993         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994
14995         if test $supports_anon_versioning = yes; then
14996           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14997   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14998   $echo "local: *; };" >> $output_objdir/$libname.ver~
14999           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15000         fi
15001       else
15002         ld_shlibs_F77=no
15003       fi
15004       ;;
15005
15006     netbsd*)
15007       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15008         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15009         wlarc=
15010       else
15011         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15013       fi
15014       ;;
15015
15016     solaris*)
15017       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15018         ld_shlibs_F77=no
15019         cat <<EOF 1>&2
15020
15021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15022 *** create shared libraries on Solaris systems.  Therefore, libtool
15023 *** is disabling shared libraries support.  We urge you to upgrade GNU
15024 *** binutils to release 2.9.1 or newer.  Another option is to modify
15025 *** your PATH or compiler configuration so that the native linker is
15026 *** used, and then restart.
15027
15028 EOF
15029       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15030         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15032       else
15033         ld_shlibs_F77=no
15034       fi
15035       ;;
15036
15037     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15038       case `$LD -v 2>&1` in
15039         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15040         ld_shlibs_F77=no
15041         cat <<_LT_EOF 1>&2
15042
15043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15044 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15045 *** is disabling shared libraries support.  We urge you to upgrade GNU
15046 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15047 *** your PATH or compiler configuration so that the native linker is
15048 *** used, and then restart.
15049
15050 _LT_EOF
15051         ;;
15052         *)
15053           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15055             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15056             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15057           else
15058             ld_shlibs_F77=no
15059           fi
15060         ;;
15061       esac
15062       ;;
15063
15064     sunos4*)
15065       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15066       wlarc=
15067       hardcode_direct_F77=yes
15068       hardcode_shlibpath_var_F77=no
15069       ;;
15070
15071     *)
15072       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15073         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15075       else
15076         ld_shlibs_F77=no
15077       fi
15078       ;;
15079     esac
15080
15081     if test "$ld_shlibs_F77" = no; then
15082       runpath_var=
15083       hardcode_libdir_flag_spec_F77=
15084       export_dynamic_flag_spec_F77=
15085       whole_archive_flag_spec_F77=
15086     fi
15087   else
15088     # PORTME fill in a description of your system's linker (not GNU ld)
15089     case $host_os in
15090     aix3*)
15091       allow_undefined_flag_F77=unsupported
15092       always_export_symbols_F77=yes
15093       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'
15094       # Note: this linker hardcodes the directories in LIBPATH if there
15095       # are no directories specified by -L.
15096       hardcode_minus_L_F77=yes
15097       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15098         # Neither direct hardcoding nor static linking is supported with a
15099         # broken collect2.
15100         hardcode_direct_F77=unsupported
15101       fi
15102       ;;
15103
15104     aix[4-9]*)
15105       if test "$host_cpu" = ia64; then
15106         # On IA64, the linker does run time linking by default, so we don't
15107         # have to do anything special.
15108         aix_use_runtimelinking=no
15109         exp_sym_flag='-Bexport'
15110         no_entry_flag=""
15111       else
15112         # If we're using GNU nm, then we don't want the "-C" option.
15113         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15114         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15115           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'
15116         else
15117           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'
15118         fi
15119         aix_use_runtimelinking=no
15120
15121         # Test if we are trying to use run time linking or normal
15122         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15123         # need to do runtime linking.
15124         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15125           for ld_flag in $LDFLAGS; do
15126           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15127             aix_use_runtimelinking=yes
15128             break
15129           fi
15130           done
15131           ;;
15132         esac
15133
15134         exp_sym_flag='-bexport'
15135         no_entry_flag='-bnoentry'
15136       fi
15137
15138       # When large executables or shared objects are built, AIX ld can
15139       # have problems creating the table of contents.  If linking a library
15140       # or program results in "error TOC overflow" add -mminimal-toc to
15141       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15142       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15143
15144       archive_cmds_F77=''
15145       hardcode_direct_F77=yes
15146       hardcode_libdir_separator_F77=':'
15147       link_all_deplibs_F77=yes
15148
15149       if test "$GCC" = yes; then
15150         case $host_os in aix4.[012]|aix4.[012].*)
15151         # We only want to do this on AIX 4.2 and lower, the check
15152         # below for broken collect2 doesn't work under 4.3+
15153           collect2name=`${CC} -print-prog-name=collect2`
15154           if test -f "$collect2name" && \
15155            strings "$collect2name" | grep resolve_lib_name >/dev/null
15156           then
15157           # We have reworked collect2
15158           :
15159           else
15160           # We have old collect2
15161           hardcode_direct_F77=unsupported
15162           # It fails to find uninstalled libraries when the uninstalled
15163           # path is not listed in the libpath.  Setting hardcode_minus_L
15164           # to unsupported forces relinking
15165           hardcode_minus_L_F77=yes
15166           hardcode_libdir_flag_spec_F77='-L$libdir'
15167           hardcode_libdir_separator_F77=
15168           fi
15169           ;;
15170         esac
15171         shared_flag='-shared'
15172         if test "$aix_use_runtimelinking" = yes; then
15173           shared_flag="$shared_flag "'${wl}-G'
15174         fi
15175       else
15176         # not using gcc
15177         if test "$host_cpu" = ia64; then
15178         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15179         # chokes on -Wl,-G. The following line is correct:
15180           shared_flag='-G'
15181         else
15182           if test "$aix_use_runtimelinking" = yes; then
15183             shared_flag='${wl}-G'
15184           else
15185             shared_flag='${wl}-bM:SRE'
15186           fi
15187         fi
15188       fi
15189
15190       # It seems that -bexpall does not export symbols beginning with
15191       # underscore (_), so it is better to generate a list of symbols to export.
15192       always_export_symbols_F77=yes
15193       if test "$aix_use_runtimelinking" = yes; then
15194         # Warning - without using the other runtime loading flags (-brtl),
15195         # -berok will link without error, but may produce a broken library.
15196         allow_undefined_flag_F77='-berok'
15197        # Determine the default libpath from the value encoded in an empty executable.
15198        cat >conftest.$ac_ext <<_ACEOF
15199       program main
15200
15201       end
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207   *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210   (eval "$ac_link") 2>conftest.er1
15211   ac_status=$?
15212   grep -v '^ *+' conftest.er1 >conftest.err
15213   rm -f conftest.er1
15214   cat conftest.err >&5
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } && {
15217          test -z "$ac_f77_werror_flag" ||
15218          test ! -s conftest.err
15219        } && test -s conftest$ac_exeext &&
15220        $as_test_x conftest$ac_exeext; then
15221
15222 lt_aix_libpath_sed='
15223     /Import File Strings/,/^$/ {
15224         /^0/ {
15225             s/^0  *\(.*\)$/\1/
15226             p
15227         }
15228     }'
15229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15230 # Check for a 64-bit object if we didn't find anything.
15231 if test -z "$aix_libpath"; then
15232   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15233 fi
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238
15239 fi
15240
15241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15242       conftest$ac_exeext conftest.$ac_ext
15243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15244
15245        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15246         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15247        else
15248         if test "$host_cpu" = ia64; then
15249           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15250           allow_undefined_flag_F77="-z nodefs"
15251           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"
15252         else
15253          # Determine the default libpath from the value encoded in an empty executable.
15254          cat >conftest.$ac_ext <<_ACEOF
15255       program main
15256
15257       end
15258 _ACEOF
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (ac_try="$ac_link"
15261 case "(($ac_try" in
15262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263   *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_link") 2>conftest.er1
15267   ac_status=$?
15268   grep -v '^ *+' conftest.er1 >conftest.err
15269   rm -f conftest.er1
15270   cat conftest.err >&5
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); } && {
15273          test -z "$ac_f77_werror_flag" ||
15274          test ! -s conftest.err
15275        } && test -s conftest$ac_exeext &&
15276        $as_test_x conftest$ac_exeext; then
15277
15278 lt_aix_libpath_sed='
15279     /Import File Strings/,/^$/ {
15280         /^0/ {
15281             s/^0  *\(.*\)$/\1/
15282             p
15283         }
15284     }'
15285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15286 # Check for a 64-bit object if we didn't find anything.
15287 if test -z "$aix_libpath"; then
15288   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15289 fi
15290 else
15291   echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294
15295 fi
15296
15297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15298       conftest$ac_exeext conftest.$ac_ext
15299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15300
15301          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15302           # Warning - without using the other run time loading flags,
15303           # -berok will link without error, but may produce a broken library.
15304           no_undefined_flag_F77=' ${wl}-bernotok'
15305           allow_undefined_flag_F77=' ${wl}-berok'
15306           # Exported symbols can be pulled into shared objects from archives
15307           whole_archive_flag_spec_F77='$convenience'
15308           archive_cmds_need_lc_F77=yes
15309           # This is similar to how AIX traditionally builds its shared libraries.
15310           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'
15311         fi
15312       fi
15313       ;;
15314
15315     amigaos*)
15316       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)'
15317       hardcode_libdir_flag_spec_F77='-L$libdir'
15318       hardcode_minus_L_F77=yes
15319       # see comment about different semantics on the GNU ld section
15320       ld_shlibs_F77=no
15321       ;;
15322
15323     bsdi[45]*)
15324       export_dynamic_flag_spec_F77=-rdynamic
15325       ;;
15326
15327     cygwin* | mingw* | pw32*)
15328       # When not using gcc, we currently assume that we are using
15329       # Microsoft Visual C++.
15330       # hardcode_libdir_flag_spec is actually meaningless, as there is
15331       # no search path for DLLs.
15332       hardcode_libdir_flag_spec_F77=' '
15333       allow_undefined_flag_F77=unsupported
15334       # Tell ltmain to make .lib files, not .a files.
15335       libext=lib
15336       # Tell ltmain to make .dll files, not .so files.
15337       shrext_cmds=".dll"
15338       # FIXME: Setting linknames here is a bad hack.
15339       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15340       # The linker will automatically build a .lib file if we build a DLL.
15341       old_archive_From_new_cmds_F77='true'
15342       # FIXME: Should let the user specify the lib program.
15343       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15344       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15345       enable_shared_with_static_runtimes_F77=yes
15346       ;;
15347
15348     darwin* | rhapsody*)
15349       case $host_os in
15350         rhapsody* | darwin1.[012])
15351          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15352          ;;
15353        *) # Darwin 1.3 on
15354          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15355            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15356          else
15357            case ${MACOSX_DEPLOYMENT_TARGET} in
15358              10.[012])
15359                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15360                ;;
15361              10.*)
15362                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15363                ;;
15364            esac
15365          fi
15366          ;;
15367       esac
15368       archive_cmds_need_lc_F77=no
15369       hardcode_direct_F77=no
15370       hardcode_automatic_F77=yes
15371       hardcode_shlibpath_var_F77=unsupported
15372       whole_archive_flag_spec_F77=''
15373       link_all_deplibs_F77=yes
15374     if test "$GCC" = yes ; then
15375         output_verbose_link_cmd='echo'
15376         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}"
15377         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15378         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}"
15379         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}"
15380     else
15381       case $cc_basename in
15382         xlc*)
15383          output_verbose_link_cmd='echo'
15384          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15385          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15386           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15387          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15388           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15389           ;;
15390        *)
15391          ld_shlibs_F77=no
15392           ;;
15393       esac
15394     fi
15395       ;;
15396
15397     dgux*)
15398       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399       hardcode_libdir_flag_spec_F77='-L$libdir'
15400       hardcode_shlibpath_var_F77=no
15401       ;;
15402
15403     freebsd1*)
15404       ld_shlibs_F77=no
15405       ;;
15406
15407     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15408     # support.  Future versions do this automatically, but an explicit c++rt0.o
15409     # does not break anything, and helps significantly (at the cost of a little
15410     # extra space).
15411     freebsd2.2*)
15412       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15413       hardcode_libdir_flag_spec_F77='-R$libdir'
15414       hardcode_direct_F77=yes
15415       hardcode_shlibpath_var_F77=no
15416       ;;
15417
15418     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15419     freebsd2*)
15420       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15421       hardcode_direct_F77=yes
15422       hardcode_minus_L_F77=yes
15423       hardcode_shlibpath_var_F77=no
15424       ;;
15425
15426     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15427     freebsd* | dragonfly*)
15428       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15429       hardcode_libdir_flag_spec_F77='-R$libdir'
15430       hardcode_direct_F77=yes
15431       hardcode_shlibpath_var_F77=no
15432       ;;
15433
15434     hpux9*)
15435       if test "$GCC" = yes; then
15436         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'
15437       else
15438         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'
15439       fi
15440       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15441       hardcode_libdir_separator_F77=:
15442       hardcode_direct_F77=yes
15443
15444       # hardcode_minus_L: Not really in the search PATH,
15445       # but as the default location of the library.
15446       hardcode_minus_L_F77=yes
15447       export_dynamic_flag_spec_F77='${wl}-E'
15448       ;;
15449
15450     hpux10*)
15451       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15452         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15453       else
15454         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15455       fi
15456       if test "$with_gnu_ld" = no; then
15457         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15458         hardcode_libdir_separator_F77=:
15459
15460         hardcode_direct_F77=yes
15461         export_dynamic_flag_spec_F77='${wl}-E'
15462
15463         # hardcode_minus_L: Not really in the search PATH,
15464         # but as the default location of the library.
15465         hardcode_minus_L_F77=yes
15466       fi
15467       ;;
15468
15469     hpux11*)
15470       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15471         case $host_cpu in
15472         hppa*64*)
15473           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15474           ;;
15475         ia64*)
15476           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15477           ;;
15478         *)
15479           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15480           ;;
15481         esac
15482       else
15483         case $host_cpu in
15484         hppa*64*)
15485           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15486           ;;
15487         ia64*)
15488           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15489           ;;
15490         *)
15491           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15492           ;;
15493         esac
15494       fi
15495       if test "$with_gnu_ld" = no; then
15496         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15497         hardcode_libdir_separator_F77=:
15498
15499         case $host_cpu in
15500         hppa*64*|ia64*)
15501           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15502           hardcode_direct_F77=no
15503           hardcode_shlibpath_var_F77=no
15504           ;;
15505         *)
15506           hardcode_direct_F77=yes
15507           export_dynamic_flag_spec_F77='${wl}-E'
15508
15509           # hardcode_minus_L: Not really in the search PATH,
15510           # but as the default location of the library.
15511           hardcode_minus_L_F77=yes
15512           ;;
15513         esac
15514       fi
15515       ;;
15516
15517     irix5* | irix6* | nonstopux*)
15518       if test "$GCC" = yes; then
15519         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15520       else
15521         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15522         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15523       fi
15524       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15525       hardcode_libdir_separator_F77=:
15526       link_all_deplibs_F77=yes
15527       ;;
15528
15529     netbsd*)
15530       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15531         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15532       else
15533         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15534       fi
15535       hardcode_libdir_flag_spec_F77='-R$libdir'
15536       hardcode_direct_F77=yes
15537       hardcode_shlibpath_var_F77=no
15538       ;;
15539
15540     newsos6)
15541       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542       hardcode_direct_F77=yes
15543       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15544       hardcode_libdir_separator_F77=:
15545       hardcode_shlibpath_var_F77=no
15546       ;;
15547
15548     openbsd*)
15549       if test -f /usr/libexec/ld.so; then
15550         hardcode_direct_F77=yes
15551         hardcode_shlibpath_var_F77=no
15552         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15553           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15554           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15555           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15556           export_dynamic_flag_spec_F77='${wl}-E'
15557         else
15558           case $host_os in
15559            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15560              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15561              hardcode_libdir_flag_spec_F77='-R$libdir'
15562              ;;
15563            *)
15564              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15565              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15566              ;;
15567           esac
15568         fi
15569       else
15570         ld_shlibs_F77=no
15571       fi
15572       ;;
15573
15574     os2*)
15575       hardcode_libdir_flag_spec_F77='-L$libdir'
15576       hardcode_minus_L_F77=yes
15577       allow_undefined_flag_F77=unsupported
15578       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'
15579       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15580       ;;
15581
15582     osf3*)
15583       if test "$GCC" = yes; then
15584         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15585         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15586       else
15587         allow_undefined_flag_F77=' -expect_unresolved \*'
15588         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15589       fi
15590       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15591       hardcode_libdir_separator_F77=:
15592       ;;
15593
15594     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15595       if test "$GCC" = yes; then
15596         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15597         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15598         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15599       else
15600         allow_undefined_flag_F77=' -expect_unresolved \*'
15601         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15602         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15603         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15604
15605         # Both c and cxx compiler support -rpath directly
15606         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15607       fi
15608       hardcode_libdir_separator_F77=:
15609       ;;
15610
15611     solaris*)
15612       no_undefined_flag_F77=' -z text'
15613       if test "$GCC" = yes; then
15614         wlarc='${wl}'
15615         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15616         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15617           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15618       else
15619         wlarc=''
15620         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15623       fi
15624       hardcode_libdir_flag_spec_F77='-R$libdir'
15625       hardcode_shlibpath_var_F77=no
15626       case $host_os in
15627       solaris2.[0-5] | solaris2.[0-5].*) ;;
15628       *)
15629         # The compiler driver will combine and reorder linker options,
15630         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15631         # but is careful enough not to reorder.
15632         # Supported since Solaris 2.6 (maybe 2.5.1?)
15633         if test "$GCC" = yes; then
15634           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15635         else
15636           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15637         fi
15638         ;;
15639       esac
15640       link_all_deplibs_F77=yes
15641       ;;
15642
15643     sunos4*)
15644       if test "x$host_vendor" = xsequent; then
15645         # Use $CC to link under sequent, because it throws in some extra .o
15646         # files that make .init and .fini sections work.
15647         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15648       else
15649         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15650       fi
15651       hardcode_libdir_flag_spec_F77='-L$libdir'
15652       hardcode_direct_F77=yes
15653       hardcode_minus_L_F77=yes
15654       hardcode_shlibpath_var_F77=no
15655       ;;
15656
15657     sysv4)
15658       case $host_vendor in
15659         sni)
15660           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661           hardcode_direct_F77=yes # is this really true???
15662         ;;
15663         siemens)
15664           ## LD is ld it makes a PLAMLIB
15665           ## CC just makes a GrossModule.
15666           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15667           reload_cmds_F77='$CC -r -o $output$reload_objs'
15668           hardcode_direct_F77=no
15669         ;;
15670         motorola)
15671           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15673         ;;
15674       esac
15675       runpath_var='LD_RUN_PATH'
15676       hardcode_shlibpath_var_F77=no
15677       ;;
15678
15679     sysv4.3*)
15680       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681       hardcode_shlibpath_var_F77=no
15682       export_dynamic_flag_spec_F77='-Bexport'
15683       ;;
15684
15685     sysv4*MP*)
15686       if test -d /usr/nec; then
15687         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688         hardcode_shlibpath_var_F77=no
15689         runpath_var=LD_RUN_PATH
15690         hardcode_runpath_var=yes
15691         ld_shlibs_F77=yes
15692       fi
15693       ;;
15694
15695     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15696       no_undefined_flag_F77='${wl}-z,text'
15697       archive_cmds_need_lc_F77=no
15698       hardcode_shlibpath_var_F77=no
15699       runpath_var='LD_RUN_PATH'
15700
15701       if test "$GCC" = yes; then
15702         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15704       else
15705         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15706         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15707       fi
15708       ;;
15709
15710     sysv5* | sco3.2v5* | sco5v6*)
15711       # Note: We can NOT use -z defs as we might desire, because we do not
15712       # link with -lc, and that would cause any symbols used from libc to
15713       # always be unresolved, which means just about no library would
15714       # ever link correctly.  If we're not using GNU ld we use -z text
15715       # though, which does catch some bad symbols but isn't as heavy-handed
15716       # as -z defs.
15717       no_undefined_flag_F77='${wl}-z,text'
15718       allow_undefined_flag_F77='${wl}-z,nodefs'
15719       archive_cmds_need_lc_F77=no
15720       hardcode_shlibpath_var_F77=no
15721       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15722       hardcode_libdir_separator_F77=':'
15723       link_all_deplibs_F77=yes
15724       export_dynamic_flag_spec_F77='${wl}-Bexport'
15725       runpath_var='LD_RUN_PATH'
15726
15727       if test "$GCC" = yes; then
15728         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15729         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15730       else
15731         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15732         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15733       fi
15734       ;;
15735
15736     uts4*)
15737       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738       hardcode_libdir_flag_spec_F77='-L$libdir'
15739       hardcode_shlibpath_var_F77=no
15740       ;;
15741
15742     *)
15743       ld_shlibs_F77=no
15744       ;;
15745     esac
15746   fi
15747
15748 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15749 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15750 test "$ld_shlibs_F77" = no && can_build_shared=no
15751
15752 #
15753 # Do we need to explicitly link libc?
15754 #
15755 case "x$archive_cmds_need_lc_F77" in
15756 x|xyes)
15757   # Assume -lc should be added
15758   archive_cmds_need_lc_F77=yes
15759
15760   if test "$enable_shared" = yes && test "$GCC" = yes; then
15761     case $archive_cmds_F77 in
15762     *'~'*)
15763       # FIXME: we may have to deal with multi-command sequences.
15764       ;;
15765     '$CC '*)
15766       # Test whether the compiler implicitly links with -lc since on some
15767       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15768       # to ld, don't add -lc before -lgcc.
15769       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15770 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15771       $rm conftest*
15772       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15773
15774       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15775   (eval $ac_compile) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } 2>conftest.err; then
15779         soname=conftest
15780         lib=conftest
15781         libobjs=conftest.$ac_objext
15782         deplibs=
15783         wl=$lt_prog_compiler_wl_F77
15784         pic_flag=$lt_prog_compiler_pic_F77
15785         compiler_flags=-v
15786         linker_flags=-v
15787         verstring=
15788         output_objdir=.
15789         libname=conftest
15790         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15791         allow_undefined_flag_F77=
15792         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15793   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }
15797         then
15798           archive_cmds_need_lc_F77=no
15799         else
15800           archive_cmds_need_lc_F77=yes
15801         fi
15802         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15803       else
15804         cat conftest.err 1>&5
15805       fi
15806       $rm conftest*
15807       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15808 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15809       ;;
15810     esac
15811   fi
15812   ;;
15813 esac
15814
15815 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15816 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15817 library_names_spec=
15818 libname_spec='lib$name'
15819 soname_spec=
15820 shrext_cmds=".so"
15821 postinstall_cmds=
15822 postuninstall_cmds=
15823 finish_cmds=
15824 finish_eval=
15825 shlibpath_var=
15826 shlibpath_overrides_runpath=unknown
15827 version_type=none
15828 dynamic_linker="$host_os ld.so"
15829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15830
15831 need_lib_prefix=unknown
15832 hardcode_into_libs=no
15833
15834 # when you set need_version to no, make sure it does not cause -set_version
15835 # flags to be left without arguments
15836 need_version=unknown
15837
15838 case $host_os in
15839 aix3*)
15840   version_type=linux
15841   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15842   shlibpath_var=LIBPATH
15843
15844   # AIX 3 has no versioning support, so we append a major version to the name.
15845   soname_spec='${libname}${release}${shared_ext}$major'
15846   ;;
15847
15848 aix[4-9]*)
15849   version_type=linux
15850   need_lib_prefix=no
15851   need_version=no
15852   hardcode_into_libs=yes
15853   if test "$host_cpu" = ia64; then
15854     # AIX 5 supports IA64
15855     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15856     shlibpath_var=LD_LIBRARY_PATH
15857   else
15858     # With GCC up to 2.95.x, collect2 would create an import file
15859     # for dependence libraries.  The import file would start with
15860     # the line `#! .'.  This would cause the generated library to
15861     # depend on `.', always an invalid library.  This was fixed in
15862     # development snapshots of GCC prior to 3.0.
15863     case $host_os in
15864       aix4 | aix4.[01] | aix4.[01].*)
15865       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15866            echo ' yes '
15867            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15868         :
15869       else
15870         can_build_shared=no
15871       fi
15872       ;;
15873     esac
15874     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15875     # soname into executable. Probably we can add versioning support to
15876     # collect2, so additional links can be useful in future.
15877     if test "$aix_use_runtimelinking" = yes; then
15878       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15879       # instead of lib<name>.a to let people know that these are not
15880       # typical AIX shared libraries.
15881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882     else
15883       # We preserve .a as extension for shared libraries through AIX4.2
15884       # and later when we are not doing run time linking.
15885       library_names_spec='${libname}${release}.a $libname.a'
15886       soname_spec='${libname}${release}${shared_ext}$major'
15887     fi
15888     shlibpath_var=LIBPATH
15889   fi
15890   ;;
15891
15892 amigaos*)
15893   library_names_spec='$libname.ixlibrary $libname.a'
15894   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15895   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'
15896   ;;
15897
15898 beos*)
15899   library_names_spec='${libname}${shared_ext}'
15900   dynamic_linker="$host_os ld.so"
15901   shlibpath_var=LIBRARY_PATH
15902   ;;
15903
15904 bsdi[45]*)
15905   version_type=linux
15906   need_version=no
15907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908   soname_spec='${libname}${release}${shared_ext}$major'
15909   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15910   shlibpath_var=LD_LIBRARY_PATH
15911   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15912   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15913   # the default ld.so.conf also contains /usr/contrib/lib and
15914   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15915   # libtool to hard-code these into programs
15916   ;;
15917
15918 cygwin* | mingw* | pw32*)
15919   version_type=windows
15920   shrext_cmds=".dll"
15921   need_version=no
15922   need_lib_prefix=no
15923
15924   case $GCC,$host_os in
15925   yes,cygwin* | yes,mingw* | yes,pw32*)
15926     library_names_spec='$libname.dll.a'
15927     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15928     postinstall_cmds='base_file=`basename \${file}`~
15929       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15930       dldir=$destdir/`dirname \$dlpath`~
15931       test -d \$dldir || mkdir -p \$dldir~
15932       $install_prog $dir/$dlname \$dldir/$dlname~
15933       chmod a+x \$dldir/$dlname'
15934     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15935       dlpath=$dir/\$dldll~
15936        $rm \$dlpath'
15937     shlibpath_overrides_runpath=yes
15938
15939     case $host_os in
15940     cygwin*)
15941       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15942       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15943       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15944       ;;
15945     mingw*)
15946       # MinGW DLLs use traditional 'lib' prefix
15947       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15949       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15950         # It is most probably a Windows format PATH printed by
15951         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15952         # path with ; separators, and with drive letters. We can handle the
15953         # drive letters (cygwin fileutils understands them), so leave them,
15954         # especially as we might pass files found there to a mingw objdump,
15955         # which wouldn't understand a cygwinified path. Ahh.
15956         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15957       else
15958         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15959       fi
15960       ;;
15961     pw32*)
15962       # pw32 DLLs use 'pw' prefix rather than 'lib'
15963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15964       ;;
15965     esac
15966     ;;
15967
15968   *)
15969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15970     ;;
15971   esac
15972   dynamic_linker='Win32 ld.exe'
15973   # FIXME: first we should search . and the directory the executable is in
15974   shlibpath_var=PATH
15975   ;;
15976
15977 darwin* | rhapsody*)
15978   dynamic_linker="$host_os dyld"
15979   version_type=darwin
15980   need_lib_prefix=no
15981   need_version=no
15982   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15983   soname_spec='${libname}${release}${major}$shared_ext'
15984   shlibpath_overrides_runpath=yes
15985   shlibpath_var=DYLD_LIBRARY_PATH
15986   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15987
15988   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15989   ;;
15990
15991 dgux*)
15992   version_type=linux
15993   need_lib_prefix=no
15994   need_version=no
15995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15996   soname_spec='${libname}${release}${shared_ext}$major'
15997   shlibpath_var=LD_LIBRARY_PATH
15998   ;;
15999
16000 freebsd1*)
16001   dynamic_linker=no
16002   ;;
16003
16004 freebsd* | dragonfly*)
16005   # DragonFly does not have aout.  When/if they implement a new
16006   # versioning mechanism, adjust this.
16007   if test -x /usr/bin/objformat; then
16008     objformat=`/usr/bin/objformat`
16009   else
16010     case $host_os in
16011     freebsd[123]*) objformat=aout ;;
16012     *) objformat=elf ;;
16013     esac
16014   fi
16015   version_type=freebsd-$objformat
16016   case $version_type in
16017     freebsd-elf*)
16018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16019       need_version=no
16020       need_lib_prefix=no
16021       ;;
16022     freebsd-*)
16023       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16024       need_version=yes
16025       ;;
16026   esac
16027   shlibpath_var=LD_LIBRARY_PATH
16028   case $host_os in
16029   freebsd2*)
16030     shlibpath_overrides_runpath=yes
16031     ;;
16032   freebsd3.[01]* | freebsdelf3.[01]*)
16033     shlibpath_overrides_runpath=yes
16034     hardcode_into_libs=yes
16035     ;;
16036   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16037   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16038     shlibpath_overrides_runpath=no
16039     hardcode_into_libs=yes
16040     ;;
16041   *) # from 4.6 on, and DragonFly
16042     shlibpath_overrides_runpath=yes
16043     hardcode_into_libs=yes
16044     ;;
16045   esac
16046   ;;
16047
16048 gnu*)
16049   version_type=linux
16050   need_lib_prefix=no
16051   need_version=no
16052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16053   soname_spec='${libname}${release}${shared_ext}$major'
16054   shlibpath_var=LD_LIBRARY_PATH
16055   hardcode_into_libs=yes
16056   ;;
16057
16058 hpux9* | hpux10* | hpux11*)
16059   # Give a soname corresponding to the major version so that dld.sl refuses to
16060   # link against other versions.
16061   version_type=sunos
16062   need_lib_prefix=no
16063   need_version=no
16064   case $host_cpu in
16065   ia64*)
16066     shrext_cmds='.so'
16067     hardcode_into_libs=yes
16068     dynamic_linker="$host_os dld.so"
16069     shlibpath_var=LD_LIBRARY_PATH
16070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072     soname_spec='${libname}${release}${shared_ext}$major'
16073     if test "X$HPUX_IA64_MODE" = X32; then
16074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16075     else
16076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16077     fi
16078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16079     ;;
16080    hppa*64*)
16081      shrext_cmds='.sl'
16082      hardcode_into_libs=yes
16083      dynamic_linker="$host_os dld.sl"
16084      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16085      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16086      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087      soname_spec='${libname}${release}${shared_ext}$major'
16088      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16089      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16090      ;;
16091    *)
16092     shrext_cmds='.sl'
16093     dynamic_linker="$host_os dld.sl"
16094     shlibpath_var=SHLIB_PATH
16095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097     soname_spec='${libname}${release}${shared_ext}$major'
16098     ;;
16099   esac
16100   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16101   postinstall_cmds='chmod 555 $lib'
16102   ;;
16103
16104 interix[3-9]*)
16105   version_type=linux
16106   need_lib_prefix=no
16107   need_version=no
16108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16109   soname_spec='${libname}${release}${shared_ext}$major'
16110   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16111   shlibpath_var=LD_LIBRARY_PATH
16112   shlibpath_overrides_runpath=no
16113   hardcode_into_libs=yes
16114   ;;
16115
16116 irix5* | irix6* | nonstopux*)
16117   case $host_os in
16118     nonstopux*) version_type=nonstopux ;;
16119     *)
16120         if test "$lt_cv_prog_gnu_ld" = yes; then
16121                 version_type=linux
16122         else
16123                 version_type=irix
16124         fi ;;
16125   esac
16126   need_lib_prefix=no
16127   need_version=no
16128   soname_spec='${libname}${release}${shared_ext}$major'
16129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16130   case $host_os in
16131   irix5* | nonstopux*)
16132     libsuff= shlibsuff=
16133     ;;
16134   *)
16135     case $LD in # libtool.m4 will add one of these switches to LD
16136     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16137       libsuff= shlibsuff= libmagic=32-bit;;
16138     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16139       libsuff=32 shlibsuff=N32 libmagic=N32;;
16140     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16141       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16142     *) libsuff= shlibsuff= libmagic=never-match;;
16143     esac
16144     ;;
16145   esac
16146   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16147   shlibpath_overrides_runpath=no
16148   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16149   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16150   hardcode_into_libs=yes
16151   ;;
16152
16153 # No shared lib support for Linux oldld, aout, or coff.
16154 linux*oldld* | linux*aout* | linux*coff*)
16155   dynamic_linker=no
16156   ;;
16157
16158 # This must be Linux ELF.
16159 linux* | k*bsd*-gnu)
16160   version_type=linux
16161   need_lib_prefix=no
16162   need_version=no
16163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164   soname_spec='${libname}${release}${shared_ext}$major'
16165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16166   shlibpath_var=LD_LIBRARY_PATH
16167   shlibpath_overrides_runpath=no
16168   # This implies no fast_install, which is unacceptable.
16169   # Some rework will be needed to allow for fast_install
16170   # before this can be enabled.
16171   hardcode_into_libs=yes
16172
16173   # Append ld.so.conf contents to the search path
16174   if test -f /etc/ld.so.conf; then
16175     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' ' '`
16176     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16177   fi
16178
16179   # We used to test for /lib/ld.so.1 and disable shared libraries on
16180   # powerpc, because MkLinux only supported shared libraries with the
16181   # GNU dynamic linker.  Since this was broken with cross compilers,
16182   # most powerpc-linux boxes support dynamic linking these days and
16183   # people can always --disable-shared, the test was removed, and we
16184   # assume the GNU/Linux dynamic linker is in use.
16185   dynamic_linker='GNU/Linux ld.so'
16186   ;;
16187
16188 netbsd*)
16189   version_type=sunos
16190   need_lib_prefix=no
16191   need_version=no
16192   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16194     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16195     dynamic_linker='NetBSD (a.out) ld.so'
16196   else
16197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16198     soname_spec='${libname}${release}${shared_ext}$major'
16199     dynamic_linker='NetBSD ld.elf_so'
16200   fi
16201   shlibpath_var=LD_LIBRARY_PATH
16202   shlibpath_overrides_runpath=yes
16203   hardcode_into_libs=yes
16204   ;;
16205
16206 newsos6)
16207   version_type=linux
16208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209   shlibpath_var=LD_LIBRARY_PATH
16210   shlibpath_overrides_runpath=yes
16211   ;;
16212
16213 nto-qnx*)
16214   version_type=linux
16215   need_lib_prefix=no
16216   need_version=no
16217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218   soname_spec='${libname}${release}${shared_ext}$major'
16219   shlibpath_var=LD_LIBRARY_PATH
16220   shlibpath_overrides_runpath=yes
16221   ;;
16222
16223 openbsd*)
16224   version_type=sunos
16225   sys_lib_dlsearch_path_spec="/usr/lib"
16226   need_lib_prefix=no
16227   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16228   case $host_os in
16229     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16230     *)                         need_version=no  ;;
16231   esac
16232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16234   shlibpath_var=LD_LIBRARY_PATH
16235   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16236     case $host_os in
16237       openbsd2.[89] | openbsd2.[89].*)
16238         shlibpath_overrides_runpath=no
16239         ;;
16240       *)
16241         shlibpath_overrides_runpath=yes
16242         ;;
16243       esac
16244   else
16245     shlibpath_overrides_runpath=yes
16246   fi
16247   ;;
16248
16249 os2*)
16250   libname_spec='$name'
16251   shrext_cmds=".dll"
16252   need_lib_prefix=no
16253   library_names_spec='$libname${shared_ext} $libname.a'
16254   dynamic_linker='OS/2 ld.exe'
16255   shlibpath_var=LIBPATH
16256   ;;
16257
16258 osf3* | osf4* | osf5*)
16259   version_type=osf
16260   need_lib_prefix=no
16261   need_version=no
16262   soname_spec='${libname}${release}${shared_ext}$major'
16263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264   shlibpath_var=LD_LIBRARY_PATH
16265   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16266   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16267   ;;
16268
16269 rdos*)
16270   dynamic_linker=no
16271   ;;
16272
16273 solaris*)
16274   version_type=linux
16275   need_lib_prefix=no
16276   need_version=no
16277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278   soname_spec='${libname}${release}${shared_ext}$major'
16279   shlibpath_var=LD_LIBRARY_PATH
16280   shlibpath_overrides_runpath=yes
16281   hardcode_into_libs=yes
16282   # ldd complains unless libraries are executable
16283   postinstall_cmds='chmod +x $lib'
16284   ;;
16285
16286 sunos4*)
16287   version_type=sunos
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   shlibpath_overrides_runpath=yes
16292   if test "$with_gnu_ld" = yes; then
16293     need_lib_prefix=no
16294   fi
16295   need_version=yes
16296   ;;
16297
16298 sysv4 | sysv4.3*)
16299   version_type=linux
16300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301   soname_spec='${libname}${release}${shared_ext}$major'
16302   shlibpath_var=LD_LIBRARY_PATH
16303   case $host_vendor in
16304     sni)
16305       shlibpath_overrides_runpath=no
16306       need_lib_prefix=no
16307       export_dynamic_flag_spec='${wl}-Blargedynsym'
16308       runpath_var=LD_RUN_PATH
16309       ;;
16310     siemens)
16311       need_lib_prefix=no
16312       ;;
16313     motorola)
16314       need_lib_prefix=no
16315       need_version=no
16316       shlibpath_overrides_runpath=no
16317       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16318       ;;
16319   esac
16320   ;;
16321
16322 sysv4*MP*)
16323   if test -d /usr/nec ;then
16324     version_type=linux
16325     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16326     soname_spec='$libname${shared_ext}.$major'
16327     shlibpath_var=LD_LIBRARY_PATH
16328   fi
16329   ;;
16330
16331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16332   version_type=freebsd-elf
16333   need_lib_prefix=no
16334   need_version=no
16335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16336   soname_spec='${libname}${release}${shared_ext}$major'
16337   shlibpath_var=LD_LIBRARY_PATH
16338   hardcode_into_libs=yes
16339   if test "$with_gnu_ld" = yes; then
16340     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16341     shlibpath_overrides_runpath=no
16342   else
16343     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16344     shlibpath_overrides_runpath=yes
16345     case $host_os in
16346       sco3.2v5*)
16347         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16348         ;;
16349     esac
16350   fi
16351   sys_lib_dlsearch_path_spec='/usr/lib'
16352   ;;
16353
16354 uts4*)
16355   version_type=linux
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   shlibpath_var=LD_LIBRARY_PATH
16359   ;;
16360
16361 *)
16362   dynamic_linker=no
16363   ;;
16364 esac
16365 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16366 echo "${ECHO_T}$dynamic_linker" >&6; }
16367 test "$dynamic_linker" = no && can_build_shared=no
16368
16369 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16373 fi
16374
16375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16376 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16380 fi
16381
16382 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16383
16384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385 if test "$GCC" = yes; then
16386   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16387 fi
16388
16389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16391 hardcode_action_F77=
16392 if test -n "$hardcode_libdir_flag_spec_F77" || \
16393    test -n "$runpath_var_F77" || \
16394    test "X$hardcode_automatic_F77" = "Xyes" ; then
16395
16396   # We can hardcode non-existant directories.
16397   if test "$hardcode_direct_F77" != no &&
16398      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16399      # have to relink, otherwise we might link with an installed library
16400      # when we should be linking with a yet-to-be-installed one
16401      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16402      test "$hardcode_minus_L_F77" != no; then
16403     # Linking always hardcodes the temporary library directory.
16404     hardcode_action_F77=relink
16405   else
16406     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16407     hardcode_action_F77=immediate
16408   fi
16409 else
16410   # We cannot hardcode anything, or else we can only hardcode existing
16411   # directories.
16412   hardcode_action_F77=unsupported
16413 fi
16414 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16415 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16416
16417 if test "$hardcode_action_F77" = relink; then
16418   # Fast installation is not supported
16419   enable_fast_install=no
16420 elif test "$shlibpath_overrides_runpath" = yes ||
16421      test "$enable_shared" = no; then
16422   # Fast installation is not necessary
16423   enable_fast_install=needless
16424 fi
16425
16426
16427 # The else clause should only fire when bootstrapping the
16428 # libtool distribution, otherwise you forgot to ship ltmain.sh
16429 # with your package, and you will get complaints that there are
16430 # no rules to generate ltmain.sh.
16431 if test -f "$ltmain"; then
16432   # See if we are running on zsh, and set the options which allow our commands through
16433   # without removal of \ escapes.
16434   if test -n "${ZSH_VERSION+set}" ; then
16435     setopt NO_GLOB_SUBST
16436   fi
16437   # Now quote all the things that may contain metacharacters while being
16438   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16439   # variables and quote the copies for generation of the libtool script.
16440   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16441     SED SHELL STRIP \
16442     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16443     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16444     deplibs_check_method reload_flag reload_cmds need_locks \
16445     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16446     lt_cv_sys_global_symbol_to_c_name_address \
16447     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16448     old_postinstall_cmds old_postuninstall_cmds \
16449     compiler_F77 \
16450     CC_F77 \
16451     LD_F77 \
16452     lt_prog_compiler_wl_F77 \
16453     lt_prog_compiler_pic_F77 \
16454     lt_prog_compiler_static_F77 \
16455     lt_prog_compiler_no_builtin_flag_F77 \
16456     export_dynamic_flag_spec_F77 \
16457     thread_safe_flag_spec_F77 \
16458     whole_archive_flag_spec_F77 \
16459     enable_shared_with_static_runtimes_F77 \
16460     old_archive_cmds_F77 \
16461     old_archive_from_new_cmds_F77 \
16462     predep_objects_F77 \
16463     postdep_objects_F77 \
16464     predeps_F77 \
16465     postdeps_F77 \
16466     compiler_lib_search_path_F77 \
16467     compiler_lib_search_dirs_F77 \
16468     archive_cmds_F77 \
16469     archive_expsym_cmds_F77 \
16470     postinstall_cmds_F77 \
16471     postuninstall_cmds_F77 \
16472     old_archive_from_expsyms_cmds_F77 \
16473     allow_undefined_flag_F77 \
16474     no_undefined_flag_F77 \
16475     export_symbols_cmds_F77 \
16476     hardcode_libdir_flag_spec_F77 \
16477     hardcode_libdir_flag_spec_ld_F77 \
16478     hardcode_libdir_separator_F77 \
16479     hardcode_automatic_F77 \
16480     module_cmds_F77 \
16481     module_expsym_cmds_F77 \
16482     lt_cv_prog_compiler_c_o_F77 \
16483     fix_srcfile_path_F77 \
16484     exclude_expsyms_F77 \
16485     include_expsyms_F77; do
16486
16487     case $var in
16488     old_archive_cmds_F77 | \
16489     old_archive_from_new_cmds_F77 | \
16490     archive_cmds_F77 | \
16491     archive_expsym_cmds_F77 | \
16492     module_cmds_F77 | \
16493     module_expsym_cmds_F77 | \
16494     old_archive_from_expsyms_cmds_F77 | \
16495     export_symbols_cmds_F77 | \
16496     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16497     postinstall_cmds | postuninstall_cmds | \
16498     old_postinstall_cmds | old_postuninstall_cmds | \
16499     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16500       # Double-quote double-evaled strings.
16501       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16502       ;;
16503     *)
16504       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16505       ;;
16506     esac
16507   done
16508
16509   case $lt_echo in
16510   *'\$0 --fallback-echo"')
16511     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16512     ;;
16513   esac
16514
16515 cfgfile="$ofile"
16516
16517   cat <<__EOF__ >> "$cfgfile"
16518 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16519
16520 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16521
16522 # Shell to use when invoking shell scripts.
16523 SHELL=$lt_SHELL
16524
16525 # Whether or not to build shared libraries.
16526 build_libtool_libs=$enable_shared
16527
16528 # Whether or not to build static libraries.
16529 build_old_libs=$enable_static
16530
16531 # Whether or not to add -lc for building shared libraries.
16532 build_libtool_need_lc=$archive_cmds_need_lc_F77
16533
16534 # Whether or not to disallow shared libs when runtime libs are static
16535 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16536
16537 # Whether or not to optimize for fast installation.
16538 fast_install=$enable_fast_install
16539
16540 # The host system.
16541 host_alias=$host_alias
16542 host=$host
16543 host_os=$host_os
16544
16545 # The build system.
16546 build_alias=$build_alias
16547 build=$build
16548 build_os=$build_os
16549
16550 # An echo program that does not interpret backslashes.
16551 echo=$lt_echo
16552
16553 # The archiver.
16554 AR=$lt_AR
16555 AR_FLAGS=$lt_AR_FLAGS
16556
16557 # A C compiler.
16558 LTCC=$lt_LTCC
16559
16560 # LTCC compiler flags.
16561 LTCFLAGS=$lt_LTCFLAGS
16562
16563 # A language-specific compiler.
16564 CC=$lt_compiler_F77
16565
16566 # Is the compiler the GNU C compiler?
16567 with_gcc=$GCC_F77
16568
16569 # An ERE matcher.
16570 EGREP=$lt_EGREP
16571
16572 # The linker used to build libraries.
16573 LD=$lt_LD_F77
16574
16575 # Whether we need hard or soft links.
16576 LN_S=$lt_LN_S
16577
16578 # A BSD-compatible nm program.
16579 NM=$lt_NM
16580
16581 # A symbol stripping program
16582 STRIP=$lt_STRIP
16583
16584 # Used to examine libraries when file_magic_cmd begins "file"
16585 MAGIC_CMD=$MAGIC_CMD
16586
16587 # Used on cygwin: DLL creation program.
16588 DLLTOOL="$DLLTOOL"
16589
16590 # Used on cygwin: object dumper.
16591 OBJDUMP="$OBJDUMP"
16592
16593 # Used on cygwin: assembler.
16594 AS="$AS"
16595
16596 # The name of the directory that contains temporary libtool files.
16597 objdir=$objdir
16598
16599 # How to create reloadable object files.
16600 reload_flag=$lt_reload_flag
16601 reload_cmds=$lt_reload_cmds
16602
16603 # How to pass a linker flag through the compiler.
16604 wl=$lt_lt_prog_compiler_wl_F77
16605
16606 # Object file suffix (normally "o").
16607 objext="$ac_objext"
16608
16609 # Old archive suffix (normally "a").
16610 libext="$libext"
16611
16612 # Shared library suffix (normally ".so").
16613 shrext_cmds='$shrext_cmds'
16614
16615 # Executable file suffix (normally "").
16616 exeext="$exeext"
16617
16618 # Additional compiler flags for building library objects.
16619 pic_flag=$lt_lt_prog_compiler_pic_F77
16620 pic_mode=$pic_mode
16621
16622 # What is the maximum length of a command?
16623 max_cmd_len=$lt_cv_sys_max_cmd_len
16624
16625 # Does compiler simultaneously support -c and -o options?
16626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16627
16628 # Must we lock files when doing compilation?
16629 need_locks=$lt_need_locks
16630
16631 # Do we need the lib prefix for modules?
16632 need_lib_prefix=$need_lib_prefix
16633
16634 # Do we need a version for libraries?
16635 need_version=$need_version
16636
16637 # Whether dlopen is supported.
16638 dlopen_support=$enable_dlopen
16639
16640 # Whether dlopen of programs is supported.
16641 dlopen_self=$enable_dlopen_self
16642
16643 # Whether dlopen of statically linked programs is supported.
16644 dlopen_self_static=$enable_dlopen_self_static
16645
16646 # Compiler flag to prevent dynamic linking.
16647 link_static_flag=$lt_lt_prog_compiler_static_F77
16648
16649 # Compiler flag to turn off builtin functions.
16650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16651
16652 # Compiler flag to allow reflexive dlopens.
16653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16654
16655 # Compiler flag to generate shared objects directly from archives.
16656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16657
16658 # Compiler flag to generate thread-safe objects.
16659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16660
16661 # Library versioning type.
16662 version_type=$version_type
16663
16664 # Format of library name prefix.
16665 libname_spec=$lt_libname_spec
16666
16667 # List of archive names.  First name is the real one, the rest are links.
16668 # The last name is the one that the linker finds with -lNAME.
16669 library_names_spec=$lt_library_names_spec
16670
16671 # The coded name of the library, if different from the real name.
16672 soname_spec=$lt_soname_spec
16673
16674 # Commands used to build and install an old-style archive.
16675 RANLIB=$lt_RANLIB
16676 old_archive_cmds=$lt_old_archive_cmds_F77
16677 old_postinstall_cmds=$lt_old_postinstall_cmds
16678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16679
16680 # Create an old-style archive from a shared archive.
16681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16682
16683 # Create a temporary old-style archive to link instead of a shared archive.
16684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16685
16686 # Commands used to build and install a shared archive.
16687 archive_cmds=$lt_archive_cmds_F77
16688 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16689 postinstall_cmds=$lt_postinstall_cmds
16690 postuninstall_cmds=$lt_postuninstall_cmds
16691
16692 # Commands used to build a loadable module (assumed same as above if empty)
16693 module_cmds=$lt_module_cmds_F77
16694 module_expsym_cmds=$lt_module_expsym_cmds_F77
16695
16696 # Commands to strip libraries.
16697 old_striplib=$lt_old_striplib
16698 striplib=$lt_striplib
16699
16700 # Dependencies to place before the objects being linked to create a
16701 # shared library.
16702 predep_objects=$lt_predep_objects_F77
16703
16704 # Dependencies to place after the objects being linked to create a
16705 # shared library.
16706 postdep_objects=$lt_postdep_objects_F77
16707
16708 # Dependencies to place before the objects being linked to create a
16709 # shared library.
16710 predeps=$lt_predeps_F77
16711
16712 # Dependencies to place after the objects being linked to create a
16713 # shared library.
16714 postdeps=$lt_postdeps_F77
16715
16716 # The directories searched by this compiler when creating a shared
16717 # library
16718 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16719
16720 # The library search path used internally by the compiler when linking
16721 # a shared library.
16722 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16723
16724 # Method to check whether dependent libraries are shared objects.
16725 deplibs_check_method=$lt_deplibs_check_method
16726
16727 # Command to use when deplibs_check_method == file_magic.
16728 file_magic_cmd=$lt_file_magic_cmd
16729
16730 # Flag that allows shared libraries with undefined symbols to be built.
16731 allow_undefined_flag=$lt_allow_undefined_flag_F77
16732
16733 # Flag that forces no undefined symbols.
16734 no_undefined_flag=$lt_no_undefined_flag_F77
16735
16736 # Commands used to finish a libtool library installation in a directory.
16737 finish_cmds=$lt_finish_cmds
16738
16739 # Same as above, but a single script fragment to be evaled but not shown.
16740 finish_eval=$lt_finish_eval
16741
16742 # Take the output of nm and produce a listing of raw symbols and C names.
16743 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16744
16745 # Transform the output of nm in a proper C declaration
16746 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16747
16748 # Transform the output of nm in a C name address pair
16749 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16750
16751 # This is the shared library runtime path variable.
16752 runpath_var=$runpath_var
16753
16754 # This is the shared library path variable.
16755 shlibpath_var=$shlibpath_var
16756
16757 # Is shlibpath searched before the hard-coded library search path?
16758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16759
16760 # How to hardcode a shared library path into an executable.
16761 hardcode_action=$hardcode_action_F77
16762
16763 # Whether we should hardcode library paths into libraries.
16764 hardcode_into_libs=$hardcode_into_libs
16765
16766 # Flag to hardcode \$libdir into a binary during linking.
16767 # This must work even if \$libdir does not exist.
16768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16769
16770 # If ld is used when linking, flag to hardcode \$libdir into
16771 # a binary during linking. This must work even if \$libdir does
16772 # not exist.
16773 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16774
16775 # Whether we need a single -rpath flag with a separated argument.
16776 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16777
16778 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16779 # resulting binary.
16780 hardcode_direct=$hardcode_direct_F77
16781
16782 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16783 # resulting binary.
16784 hardcode_minus_L=$hardcode_minus_L_F77
16785
16786 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16787 # the resulting binary.
16788 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16789
16790 # Set to yes if building a shared library automatically hardcodes DIR into the library
16791 # and all subsequent libraries and executables linked against it.
16792 hardcode_automatic=$hardcode_automatic_F77
16793
16794 # Variables whose values should be saved in libtool wrapper scripts and
16795 # restored at relink time.
16796 variables_saved_for_relink="$variables_saved_for_relink"
16797
16798 # Whether libtool must link a program against all its dependency libraries.
16799 link_all_deplibs=$link_all_deplibs_F77
16800
16801 # Compile-time system search path for libraries
16802 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16803
16804 # Run-time system search path for libraries
16805 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16806
16807 # Fix the shell variable \$srcfile for the compiler.
16808 fix_srcfile_path=$lt_fix_srcfile_path
16809
16810 # Set to yes if exported symbols are required.
16811 always_export_symbols=$always_export_symbols_F77
16812
16813 # The commands to list exported symbols.
16814 export_symbols_cmds=$lt_export_symbols_cmds_F77
16815
16816 # The commands to extract the exported symbol list from a shared archive.
16817 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16818
16819 # Symbols that should not be listed in the preloaded symbols.
16820 exclude_expsyms=$lt_exclude_expsyms_F77
16821
16822 # Symbols that must always be exported.
16823 include_expsyms=$lt_include_expsyms_F77
16824
16825 # ### END LIBTOOL TAG CONFIG: $tagname
16826
16827 __EOF__
16828
16829
16830 else
16831   # If there is no Makefile yet, we rely on a make rule to execute
16832   # `config.status --recheck' to rerun these tests and create the
16833   # libtool script then.
16834   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16835   if test -f "$ltmain_in"; then
16836     test -f Makefile && make "$ltmain"
16837   fi
16838 fi
16839
16840
16841 ac_ext=c
16842 ac_cpp='$CPP $CPPFLAGS'
16843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16846
16847 CC="$lt_save_CC"
16848
16849         else
16850           tagname=""
16851         fi
16852         ;;
16853
16854       GCJ)
16855         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16856
16857
16858 # Source file extension for Java test sources.
16859 ac_ext=java
16860
16861 # Object file extension for compiled Java test sources.
16862 objext=o
16863 objext_GCJ=$objext
16864
16865 # Code to be used in simple compile tests
16866 lt_simple_compile_test_code="class foo {}"
16867
16868 # Code to be used in simple link tests
16869 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16870
16871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16872
16873 # If no C compiler was specified, use CC.
16874 LTCC=${LTCC-"$CC"}
16875
16876 # If no C compiler flags were specified, use CFLAGS.
16877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16878
16879 # Allow CC to be a program name with arguments.
16880 compiler=$CC
16881
16882
16883 # save warnings/boilerplate of simple test code
16884 ac_outfile=conftest.$ac_objext
16885 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16886 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16887 _lt_compiler_boilerplate=`cat conftest.err`
16888 $rm conftest*
16889
16890 ac_outfile=conftest.$ac_objext
16891 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16892 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16893 _lt_linker_boilerplate=`cat conftest.err`
16894 $rm -r conftest*
16895
16896
16897 # Allow CC to be a program name with arguments.
16898 lt_save_CC="$CC"
16899 CC=${GCJ-"gcj"}
16900 compiler=$CC
16901 compiler_GCJ=$CC
16902 for cc_temp in $compiler""; do
16903   case $cc_temp in
16904     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16905     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16906     \-*) ;;
16907     *) break;;
16908   esac
16909 done
16910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16911
16912
16913 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16914 archive_cmds_need_lc_GCJ=no
16915
16916 old_archive_cmds_GCJ=$old_archive_cmds
16917
16918
16919 lt_prog_compiler_no_builtin_flag_GCJ=
16920
16921 if test "$GCC" = yes; then
16922   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16923
16924
16925 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16926 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16927 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16928   echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930   lt_cv_prog_compiler_rtti_exceptions=no
16931   ac_outfile=conftest.$ac_objext
16932    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16933    lt_compiler_flag="-fno-rtti -fno-exceptions"
16934    # Insert the option either (1) after the last *FLAGS variable, or
16935    # (2) before a word containing "conftest.", or (3) at the end.
16936    # Note that $ac_compile itself does not contain backslashes and begins
16937    # with a dollar sign (not a hyphen), so the echo should work correctly.
16938    # The option is referenced via a variable to avoid confusing sed.
16939    lt_compile=`echo "$ac_compile" | $SED \
16940    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16942    -e 's:$: $lt_compiler_flag:'`
16943    (eval echo "\"\$as_me:16943: $lt_compile\"" >&5)
16944    (eval "$lt_compile" 2>conftest.err)
16945    ac_status=$?
16946    cat conftest.err >&5
16947    echo "$as_me:16947: \$? = $ac_status" >&5
16948    if (exit $ac_status) && test -s "$ac_outfile"; then
16949      # The compiler can only warn and ignore the option if not recognized
16950      # So say no if there are warnings other than the usual output.
16951      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16952      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16953      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16954        lt_cv_prog_compiler_rtti_exceptions=yes
16955      fi
16956    fi
16957    $rm conftest*
16958
16959 fi
16960 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16961 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16962
16963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16964     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16965 else
16966     :
16967 fi
16968
16969 fi
16970
16971 lt_prog_compiler_wl_GCJ=
16972 lt_prog_compiler_pic_GCJ=
16973 lt_prog_compiler_static_GCJ=
16974
16975 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16976 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16977
16978   if test "$GCC" = yes; then
16979     lt_prog_compiler_wl_GCJ='-Wl,'
16980     lt_prog_compiler_static_GCJ='-static'
16981
16982     case $host_os in
16983       aix*)
16984       # All AIX code is PIC.
16985       if test "$host_cpu" = ia64; then
16986         # AIX 5 now supports IA64 processor
16987         lt_prog_compiler_static_GCJ='-Bstatic'
16988       fi
16989       ;;
16990
16991     amigaos*)
16992       # FIXME: we need at least 68020 code to build shared libraries, but
16993       # adding the `-m68020' flag to GCC prevents building anything better,
16994       # like `-m68040'.
16995       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16996       ;;
16997
16998     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16999       # PIC is the default for these OSes.
17000       ;;
17001
17002     mingw* | cygwin* | pw32* | os2*)
17003       # This hack is so that the source file can tell whether it is being
17004       # built for inclusion in a dll (and should export symbols for example).
17005       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17006       # (--disable-auto-import) libraries
17007
17008       ;;
17009
17010     darwin* | rhapsody*)
17011       # PIC is the default on this platform
17012       # Common symbols not allowed in MH_DYLIB files
17013       lt_prog_compiler_pic_GCJ='-fno-common'
17014       ;;
17015
17016     interix[3-9]*)
17017       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17018       # Instead, we relocate shared libraries at runtime.
17019       ;;
17020
17021     msdosdjgpp*)
17022       # Just because we use GCC doesn't mean we suddenly get shared libraries
17023       # on systems that don't support them.
17024       lt_prog_compiler_can_build_shared_GCJ=no
17025       enable_shared=no
17026       ;;
17027
17028     sysv4*MP*)
17029       if test -d /usr/nec; then
17030         lt_prog_compiler_pic_GCJ=-Kconform_pic
17031       fi
17032       ;;
17033
17034     hpux*)
17035       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17036       # not for PA HP-UX.
17037       case $host_cpu in
17038       hppa*64*|ia64*)
17039         # +Z the default
17040         ;;
17041       *)
17042         lt_prog_compiler_pic_GCJ='-fPIC'
17043         ;;
17044       esac
17045       ;;
17046
17047     *)
17048       lt_prog_compiler_pic_GCJ='-fPIC'
17049       ;;
17050     esac
17051   else
17052     # PORTME Check for flag to pass linker flags through the system compiler.
17053     case $host_os in
17054     aix*)
17055       lt_prog_compiler_wl_GCJ='-Wl,'
17056       if test "$host_cpu" = ia64; then
17057         # AIX 5 now supports IA64 processor
17058         lt_prog_compiler_static_GCJ='-Bstatic'
17059       else
17060         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17061       fi
17062       ;;
17063       darwin*)
17064         # PIC is the default on this platform
17065         # Common symbols not allowed in MH_DYLIB files
17066        case $cc_basename in
17067          xlc*)
17068          lt_prog_compiler_pic_GCJ='-qnocommon'
17069          lt_prog_compiler_wl_GCJ='-Wl,'
17070          ;;
17071        esac
17072        ;;
17073
17074     mingw* | cygwin* | pw32* | os2*)
17075       # This hack is so that the source file can tell whether it is being
17076       # built for inclusion in a dll (and should export symbols for example).
17077
17078       ;;
17079
17080     hpux9* | hpux10* | hpux11*)
17081       lt_prog_compiler_wl_GCJ='-Wl,'
17082       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17083       # not for PA HP-UX.
17084       case $host_cpu in
17085       hppa*64*|ia64*)
17086         # +Z the default
17087         ;;
17088       *)
17089         lt_prog_compiler_pic_GCJ='+Z'
17090         ;;
17091       esac
17092       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17093       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17094       ;;
17095
17096     irix5* | irix6* | nonstopux*)
17097       lt_prog_compiler_wl_GCJ='-Wl,'
17098       # PIC (with -KPIC) is the default.
17099       lt_prog_compiler_static_GCJ='-non_shared'
17100       ;;
17101
17102     newsos6)
17103       lt_prog_compiler_pic_GCJ='-KPIC'
17104       lt_prog_compiler_static_GCJ='-Bstatic'
17105       ;;
17106
17107     linux* | k*bsd*-gnu)
17108       case $cc_basename in
17109       icc* | ecc*)
17110         lt_prog_compiler_wl_GCJ='-Wl,'
17111         lt_prog_compiler_pic_GCJ='-KPIC'
17112         lt_prog_compiler_static_GCJ='-static'
17113         ;;
17114       pgcc* | pgf77* | pgf90* | pgf95*)
17115         # Portland Group compilers (*not* the Pentium gcc compiler,
17116         # which looks to be a dead project)
17117         lt_prog_compiler_wl_GCJ='-Wl,'
17118         lt_prog_compiler_pic_GCJ='-fpic'
17119         lt_prog_compiler_static_GCJ='-Bstatic'
17120         ;;
17121       ccc*)
17122         lt_prog_compiler_wl_GCJ='-Wl,'
17123         # All Alpha code is PIC.
17124         lt_prog_compiler_static_GCJ='-non_shared'
17125         ;;
17126       *)
17127         case `$CC -V 2>&1 | sed 5q` in
17128         *Sun\ C*)
17129           # Sun C 5.9
17130           lt_prog_compiler_pic_GCJ='-KPIC'
17131           lt_prog_compiler_static_GCJ='-Bstatic'
17132           lt_prog_compiler_wl_GCJ='-Wl,'
17133           ;;
17134         *Sun\ F*)
17135           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17136           lt_prog_compiler_pic_GCJ='-KPIC'
17137           lt_prog_compiler_static_GCJ='-Bstatic'
17138           lt_prog_compiler_wl_GCJ=''
17139           ;;
17140         esac
17141         ;;
17142       esac
17143       ;;
17144
17145     osf3* | osf4* | osf5*)
17146       lt_prog_compiler_wl_GCJ='-Wl,'
17147       # All OSF/1 code is PIC.
17148       lt_prog_compiler_static_GCJ='-non_shared'
17149       ;;
17150
17151     rdos*)
17152       lt_prog_compiler_static_GCJ='-non_shared'
17153       ;;
17154
17155     solaris*)
17156       lt_prog_compiler_pic_GCJ='-KPIC'
17157       lt_prog_compiler_static_GCJ='-Bstatic'
17158       case $cc_basename in
17159       f77* | f90* | f95*)
17160         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17161       *)
17162         lt_prog_compiler_wl_GCJ='-Wl,';;
17163       esac
17164       ;;
17165
17166     sunos4*)
17167       lt_prog_compiler_wl_GCJ='-Qoption ld '
17168       lt_prog_compiler_pic_GCJ='-PIC'
17169       lt_prog_compiler_static_GCJ='-Bstatic'
17170       ;;
17171
17172     sysv4 | sysv4.2uw2* | sysv4.3*)
17173       lt_prog_compiler_wl_GCJ='-Wl,'
17174       lt_prog_compiler_pic_GCJ='-KPIC'
17175       lt_prog_compiler_static_GCJ='-Bstatic'
17176       ;;
17177
17178     sysv4*MP*)
17179       if test -d /usr/nec ;then
17180         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17181         lt_prog_compiler_static_GCJ='-Bstatic'
17182       fi
17183       ;;
17184
17185     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17186       lt_prog_compiler_wl_GCJ='-Wl,'
17187       lt_prog_compiler_pic_GCJ='-KPIC'
17188       lt_prog_compiler_static_GCJ='-Bstatic'
17189       ;;
17190
17191     unicos*)
17192       lt_prog_compiler_wl_GCJ='-Wl,'
17193       lt_prog_compiler_can_build_shared_GCJ=no
17194       ;;
17195
17196     uts4*)
17197       lt_prog_compiler_pic_GCJ='-pic'
17198       lt_prog_compiler_static_GCJ='-Bstatic'
17199       ;;
17200
17201     *)
17202       lt_prog_compiler_can_build_shared_GCJ=no
17203       ;;
17204     esac
17205   fi
17206
17207 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17208 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17209
17210 #
17211 # Check to make sure the PIC flag actually works.
17212 #
17213 if test -n "$lt_prog_compiler_pic_GCJ"; then
17214
17215 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17216 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17217 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17218   echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220   lt_cv_prog_compiler_pic_works_GCJ=no
17221   ac_outfile=conftest.$ac_objext
17222    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17223    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17224    # Insert the option either (1) after the last *FLAGS variable, or
17225    # (2) before a word containing "conftest.", or (3) at the end.
17226    # Note that $ac_compile itself does not contain backslashes and begins
17227    # with a dollar sign (not a hyphen), so the echo should work correctly.
17228    # The option is referenced via a variable to avoid confusing sed.
17229    lt_compile=`echo "$ac_compile" | $SED \
17230    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17231    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17232    -e 's:$: $lt_compiler_flag:'`
17233    (eval echo "\"\$as_me:17233: $lt_compile\"" >&5)
17234    (eval "$lt_compile" 2>conftest.err)
17235    ac_status=$?
17236    cat conftest.err >&5
17237    echo "$as_me:17237: \$? = $ac_status" >&5
17238    if (exit $ac_status) && test -s "$ac_outfile"; then
17239      # The compiler can only warn and ignore the option if not recognized
17240      # So say no if there are warnings other than the usual output.
17241      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17242      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17243      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17244        lt_cv_prog_compiler_pic_works_GCJ=yes
17245      fi
17246    fi
17247    $rm conftest*
17248
17249 fi
17250 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17251 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17252
17253 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17254     case $lt_prog_compiler_pic_GCJ in
17255      "" | " "*) ;;
17256      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17257      esac
17258 else
17259     lt_prog_compiler_pic_GCJ=
17260      lt_prog_compiler_can_build_shared_GCJ=no
17261 fi
17262
17263 fi
17264 case $host_os in
17265   # For platforms which do not support PIC, -DPIC is meaningless:
17266   *djgpp*)
17267     lt_prog_compiler_pic_GCJ=
17268     ;;
17269   *)
17270     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17271     ;;
17272 esac
17273
17274 #
17275 # Check to make sure the static flag actually works.
17276 #
17277 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17278 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17279 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17280 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   lt_cv_prog_compiler_static_works_GCJ=no
17284    save_LDFLAGS="$LDFLAGS"
17285    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17286    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17287    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17288      # The linker can only warn and ignore the option if not recognized
17289      # So say no if there are warnings
17290      if test -s conftest.err; then
17291        # Append any errors to the config.log.
17292        cat conftest.err 1>&5
17293        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17294        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17295        if diff conftest.exp conftest.er2 >/dev/null; then
17296          lt_cv_prog_compiler_static_works_GCJ=yes
17297        fi
17298      else
17299        lt_cv_prog_compiler_static_works_GCJ=yes
17300      fi
17301    fi
17302    $rm -r conftest*
17303    LDFLAGS="$save_LDFLAGS"
17304
17305 fi
17306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17307 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17308
17309 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17310     :
17311 else
17312     lt_prog_compiler_static_GCJ=
17313 fi
17314
17315
17316 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17317 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17318 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321   lt_cv_prog_compiler_c_o_GCJ=no
17322    $rm -r conftest 2>/dev/null
17323    mkdir conftest
17324    cd conftest
17325    mkdir out
17326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17327
17328    lt_compiler_flag="-o out/conftest2.$ac_objext"
17329    # Insert the option either (1) after the last *FLAGS variable, or
17330    # (2) before a word containing "conftest.", or (3) at the end.
17331    # Note that $ac_compile itself does not contain backslashes and begins
17332    # with a dollar sign (not a hyphen), so the echo should work correctly.
17333    lt_compile=`echo "$ac_compile" | $SED \
17334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17336    -e 's:$: $lt_compiler_flag:'`
17337    (eval echo "\"\$as_me:17337: $lt_compile\"" >&5)
17338    (eval "$lt_compile" 2>out/conftest.err)
17339    ac_status=$?
17340    cat out/conftest.err >&5
17341    echo "$as_me:17341: \$? = $ac_status" >&5
17342    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17343    then
17344      # The compiler can only warn and ignore the option if not recognized
17345      # So say no if there are warnings
17346      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17347      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17348      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17349        lt_cv_prog_compiler_c_o_GCJ=yes
17350      fi
17351    fi
17352    chmod u+w . 2>&5
17353    $rm conftest*
17354    # SGI C++ compiler will create directory out/ii_files/ for
17355    # template instantiation
17356    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17357    $rm out/* && rmdir out
17358    cd ..
17359    rmdir conftest
17360    $rm conftest*
17361
17362 fi
17363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17364 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17365
17366
17367 hard_links="nottested"
17368 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17369   # do not overwrite the value of need_locks provided by the user
17370   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17371 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17372   hard_links=yes
17373   $rm conftest*
17374   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17375   touch conftest.a
17376   ln conftest.a conftest.b 2>&5 || hard_links=no
17377   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17378   { echo "$as_me:$LINENO: result: $hard_links" >&5
17379 echo "${ECHO_T}$hard_links" >&6; }
17380   if test "$hard_links" = no; then
17381     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17382 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17383     need_locks=warn
17384   fi
17385 else
17386   need_locks=no
17387 fi
17388
17389 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17390 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17391
17392   runpath_var=
17393   allow_undefined_flag_GCJ=
17394   enable_shared_with_static_runtimes_GCJ=no
17395   archive_cmds_GCJ=
17396   archive_expsym_cmds_GCJ=
17397   old_archive_From_new_cmds_GCJ=
17398   old_archive_from_expsyms_cmds_GCJ=
17399   export_dynamic_flag_spec_GCJ=
17400   whole_archive_flag_spec_GCJ=
17401   thread_safe_flag_spec_GCJ=
17402   hardcode_libdir_flag_spec_GCJ=
17403   hardcode_libdir_flag_spec_ld_GCJ=
17404   hardcode_libdir_separator_GCJ=
17405   hardcode_direct_GCJ=no
17406   hardcode_minus_L_GCJ=no
17407   hardcode_shlibpath_var_GCJ=unsupported
17408   link_all_deplibs_GCJ=unknown
17409   hardcode_automatic_GCJ=no
17410   module_cmds_GCJ=
17411   module_expsym_cmds_GCJ=
17412   always_export_symbols_GCJ=no
17413   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17414   # include_expsyms should be a list of space-separated symbols to be *always*
17415   # included in the symbol list
17416   include_expsyms_GCJ=
17417   # exclude_expsyms can be an extended regexp of symbols to exclude
17418   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17419   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17420   # as well as any symbol that contains `d'.
17421   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17422   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17423   # platforms (ab)use it in PIC code, but their linkers get confused if
17424   # the symbol is explicitly referenced.  Since portable code cannot
17425   # rely on this symbol name, it's probably fine to never include it in
17426   # preloaded symbol tables.
17427   # Exclude shared library initialization/finalization symbols.
17428   extract_expsyms_cmds=
17429   # Just being paranoid about ensuring that cc_basename is set.
17430   for cc_temp in $compiler""; do
17431   case $cc_temp in
17432     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17433     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17434     \-*) ;;
17435     *) break;;
17436   esac
17437 done
17438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17439
17440   case $host_os in
17441   cygwin* | mingw* | pw32*)
17442     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17443     # When not using gcc, we currently assume that we are using
17444     # Microsoft Visual C++.
17445     if test "$GCC" != yes; then
17446       with_gnu_ld=no
17447     fi
17448     ;;
17449   interix*)
17450     # we just hope/assume this is gcc and not c89 (= MSVC++)
17451     with_gnu_ld=yes
17452     ;;
17453   openbsd*)
17454     with_gnu_ld=no
17455     ;;
17456   esac
17457
17458   ld_shlibs_GCJ=yes
17459   if test "$with_gnu_ld" = yes; then
17460     # If archive_cmds runs LD, not CC, wlarc should be empty
17461     wlarc='${wl}'
17462
17463     # Set some defaults for GNU ld with shared library support. These
17464     # are reset later if shared libraries are not supported. Putting them
17465     # here allows them to be overridden if necessary.
17466     runpath_var=LD_RUN_PATH
17467     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17468     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17469     # ancient GNU ld didn't support --whole-archive et. al.
17470     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17471         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17472       else
17473         whole_archive_flag_spec_GCJ=
17474     fi
17475     supports_anon_versioning=no
17476     case `$LD -v 2>/dev/null` in
17477       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17478       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17479       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17480       *\ 2.11.*) ;; # other 2.11 versions
17481       *) supports_anon_versioning=yes ;;
17482     esac
17483
17484     # See if GNU ld supports shared libraries.
17485     case $host_os in
17486     aix[3-9]*)
17487       # On AIX/PPC, the GNU linker is very broken
17488       if test "$host_cpu" != ia64; then
17489         ld_shlibs_GCJ=no
17490         cat <<EOF 1>&2
17491
17492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17493 *** to be unable to reliably create shared libraries on AIX.
17494 *** Therefore, libtool is disabling shared libraries support.  If you
17495 *** really care for shared libraries, you may want to modify your PATH
17496 *** so that a non-GNU linker is found, and then restart.
17497
17498 EOF
17499       fi
17500       ;;
17501
17502     amigaos*)
17503       archive_cmds_GCJ='$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)'
17504       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17505       hardcode_minus_L_GCJ=yes
17506
17507       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17508       # that the semantics of dynamic libraries on AmigaOS, at least up
17509       # to version 4, is to share data among multiple programs linked
17510       # with the same dynamic library.  Since this doesn't match the
17511       # behavior of shared libraries on other platforms, we can't use
17512       # them.
17513       ld_shlibs_GCJ=no
17514       ;;
17515
17516     beos*)
17517       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17518         allow_undefined_flag_GCJ=unsupported
17519         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17520         # support --undefined.  This deserves some investigation.  FIXME
17521         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17522       else
17523         ld_shlibs_GCJ=no
17524       fi
17525       ;;
17526
17527     cygwin* | mingw* | pw32*)
17528       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17529       # as there is no search path for DLLs.
17530       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17531       allow_undefined_flag_GCJ=unsupported
17532       always_export_symbols_GCJ=no
17533       enable_shared_with_static_runtimes_GCJ=yes
17534       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17535
17536       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17537         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17538         # If the export-symbols file already is a .def file (1st line
17539         # is EXPORTS), use it as is; otherwise, prepend...
17540         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17541           cp $export_symbols $output_objdir/$soname.def;
17542         else
17543           echo EXPORTS > $output_objdir/$soname.def;
17544           cat $export_symbols >> $output_objdir/$soname.def;
17545         fi~
17546         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17547       else
17548         ld_shlibs_GCJ=no
17549       fi
17550       ;;
17551
17552     interix[3-9]*)
17553       hardcode_direct_GCJ=no
17554       hardcode_shlibpath_var_GCJ=no
17555       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17556       export_dynamic_flag_spec_GCJ='${wl}-E'
17557       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17558       # Instead, shared libraries are loaded at an image base (0x10000000 by
17559       # default) and relocated if they conflict, which is a slow very memory
17560       # consuming and fragmenting process.  To avoid this, we pick a random,
17561       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17562       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17563       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17564       archive_expsym_cmds_GCJ='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'
17565       ;;
17566
17567     gnu* | linux* | k*bsd*-gnu)
17568       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17569         tmp_addflag=
17570         case $cc_basename,$host_cpu in
17571         pgcc*)                          # Portland Group C compiler
17572           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17573           tmp_addflag=' $pic_flag'
17574           ;;
17575         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17576           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17577           tmp_addflag=' $pic_flag -Mnomain' ;;
17578         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17579           tmp_addflag=' -i_dynamic' ;;
17580         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17581           tmp_addflag=' -i_dynamic -nofor_main' ;;
17582         ifc* | ifort*)                  # Intel Fortran compiler
17583           tmp_addflag=' -nofor_main' ;;
17584         esac
17585         case `$CC -V 2>&1 | sed 5q` in
17586         *Sun\ C*)                       # Sun C 5.9
17587           whole_archive_flag_spec_GCJ='${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'
17588           tmp_sharedflag='-G' ;;
17589         *Sun\ F*)                       # Sun Fortran 8.3
17590           tmp_sharedflag='-G' ;;
17591         *)
17592           tmp_sharedflag='-shared' ;;
17593         esac
17594         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17595
17596         if test $supports_anon_versioning = yes; then
17597           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17598   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17599   $echo "local: *; };" >> $output_objdir/$libname.ver~
17600           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17601         fi
17602       else
17603         ld_shlibs_GCJ=no
17604       fi
17605       ;;
17606
17607     netbsd*)
17608       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17609         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17610         wlarc=
17611       else
17612         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17613         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17614       fi
17615       ;;
17616
17617     solaris*)
17618       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17619         ld_shlibs_GCJ=no
17620         cat <<EOF 1>&2
17621
17622 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17623 *** create shared libraries on Solaris systems.  Therefore, libtool
17624 *** is disabling shared libraries support.  We urge you to upgrade GNU
17625 *** binutils to release 2.9.1 or newer.  Another option is to modify
17626 *** your PATH or compiler configuration so that the native linker is
17627 *** used, and then restart.
17628
17629 EOF
17630       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17631         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17632         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17633       else
17634         ld_shlibs_GCJ=no
17635       fi
17636       ;;
17637
17638     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17639       case `$LD -v 2>&1` in
17640         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17641         ld_shlibs_GCJ=no
17642         cat <<_LT_EOF 1>&2
17643
17644 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17645 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17646 *** is disabling shared libraries support.  We urge you to upgrade GNU
17647 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17648 *** your PATH or compiler configuration so that the native linker is
17649 *** used, and then restart.
17650
17651 _LT_EOF
17652         ;;
17653         *)
17654           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17655             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17656             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17657             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17658           else
17659             ld_shlibs_GCJ=no
17660           fi
17661         ;;
17662       esac
17663       ;;
17664
17665     sunos4*)
17666       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17667       wlarc=
17668       hardcode_direct_GCJ=yes
17669       hardcode_shlibpath_var_GCJ=no
17670       ;;
17671
17672     *)
17673       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17674         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17675         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17676       else
17677         ld_shlibs_GCJ=no
17678       fi
17679       ;;
17680     esac
17681
17682     if test "$ld_shlibs_GCJ" = no; then
17683       runpath_var=
17684       hardcode_libdir_flag_spec_GCJ=
17685       export_dynamic_flag_spec_GCJ=
17686       whole_archive_flag_spec_GCJ=
17687     fi
17688   else
17689     # PORTME fill in a description of your system's linker (not GNU ld)
17690     case $host_os in
17691     aix3*)
17692       allow_undefined_flag_GCJ=unsupported
17693       always_export_symbols_GCJ=yes
17694       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17695       # Note: this linker hardcodes the directories in LIBPATH if there
17696       # are no directories specified by -L.
17697       hardcode_minus_L_GCJ=yes
17698       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17699         # Neither direct hardcoding nor static linking is supported with a
17700         # broken collect2.
17701         hardcode_direct_GCJ=unsupported
17702       fi
17703       ;;
17704
17705     aix[4-9]*)
17706       if test "$host_cpu" = ia64; then
17707         # On IA64, the linker does run time linking by default, so we don't
17708         # have to do anything special.
17709         aix_use_runtimelinking=no
17710         exp_sym_flag='-Bexport'
17711         no_entry_flag=""
17712       else
17713         # If we're using GNU nm, then we don't want the "-C" option.
17714         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17715         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17716           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17717         else
17718           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17719         fi
17720         aix_use_runtimelinking=no
17721
17722         # Test if we are trying to use run time linking or normal
17723         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17724         # need to do runtime linking.
17725         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17726           for ld_flag in $LDFLAGS; do
17727           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17728             aix_use_runtimelinking=yes
17729             break
17730           fi
17731           done
17732           ;;
17733         esac
17734
17735         exp_sym_flag='-bexport'
17736         no_entry_flag='-bnoentry'
17737       fi
17738
17739       # When large executables or shared objects are built, AIX ld can
17740       # have problems creating the table of contents.  If linking a library
17741       # or program results in "error TOC overflow" add -mminimal-toc to
17742       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17743       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17744
17745       archive_cmds_GCJ=''
17746       hardcode_direct_GCJ=yes
17747       hardcode_libdir_separator_GCJ=':'
17748       link_all_deplibs_GCJ=yes
17749
17750       if test "$GCC" = yes; then
17751         case $host_os in aix4.[012]|aix4.[012].*)
17752         # We only want to do this on AIX 4.2 and lower, the check
17753         # below for broken collect2 doesn't work under 4.3+
17754           collect2name=`${CC} -print-prog-name=collect2`
17755           if test -f "$collect2name" && \
17756            strings "$collect2name" | grep resolve_lib_name >/dev/null
17757           then
17758           # We have reworked collect2
17759           :
17760           else
17761           # We have old collect2
17762           hardcode_direct_GCJ=unsupported
17763           # It fails to find uninstalled libraries when the uninstalled
17764           # path is not listed in the libpath.  Setting hardcode_minus_L
17765           # to unsupported forces relinking
17766           hardcode_minus_L_GCJ=yes
17767           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17768           hardcode_libdir_separator_GCJ=
17769           fi
17770           ;;
17771         esac
17772         shared_flag='-shared'
17773         if test "$aix_use_runtimelinking" = yes; then
17774           shared_flag="$shared_flag "'${wl}-G'
17775         fi
17776       else
17777         # not using gcc
17778         if test "$host_cpu" = ia64; then
17779         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17780         # chokes on -Wl,-G. The following line is correct:
17781           shared_flag='-G'
17782         else
17783           if test "$aix_use_runtimelinking" = yes; then
17784             shared_flag='${wl}-G'
17785           else
17786             shared_flag='${wl}-bM:SRE'
17787           fi
17788         fi
17789       fi
17790
17791       # It seems that -bexpall does not export symbols beginning with
17792       # underscore (_), so it is better to generate a list of symbols to export.
17793       always_export_symbols_GCJ=yes
17794       if test "$aix_use_runtimelinking" = yes; then
17795         # Warning - without using the other runtime loading flags (-brtl),
17796         # -berok will link without error, but may produce a broken library.
17797         allow_undefined_flag_GCJ='-berok'
17798        # Determine the default libpath from the value encoded in an empty executable.
17799        cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806 int
17807 main ()
17808 {
17809
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_link") 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } && {
17828          test -z "$ac_c_werror_flag" ||
17829          test ! -s conftest.err
17830        } && test -s conftest$ac_exeext &&
17831        $as_test_x conftest$ac_exeext; then
17832
17833 lt_aix_libpath_sed='
17834     /Import File Strings/,/^$/ {
17835         /^0/ {
17836             s/^0  *\(.*\)$/\1/
17837             p
17838         }
17839     }'
17840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17841 # Check for a 64-bit object if we didn't find anything.
17842 if test -z "$aix_libpath"; then
17843   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17844 fi
17845 else
17846   echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853       conftest$ac_exeext conftest.$ac_ext
17854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17855
17856        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17857         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17858        else
17859         if test "$host_cpu" = ia64; then
17860           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17861           allow_undefined_flag_GCJ="-z nodefs"
17862           archive_expsym_cmds_GCJ="\$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"
17863         else
17864          # Determine the default libpath from the value encoded in an empty executable.
17865          cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871
17872 int
17873 main ()
17874 {
17875
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887   (eval "$ac_link") 2>conftest.er1
17888   ac_status=$?
17889   grep -v '^ *+' conftest.er1 >conftest.err
17890   rm -f conftest.er1
17891   cat conftest.err >&5
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } && {
17894          test -z "$ac_c_werror_flag" ||
17895          test ! -s conftest.err
17896        } && test -s conftest$ac_exeext &&
17897        $as_test_x conftest$ac_exeext; then
17898
17899 lt_aix_libpath_sed='
17900     /Import File Strings/,/^$/ {
17901         /^0/ {
17902             s/^0  *\(.*\)$/\1/
17903             p
17904         }
17905     }'
17906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17907 # Check for a 64-bit object if we didn't find anything.
17908 if test -z "$aix_libpath"; then
17909   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17910 fi
17911 else
17912   echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17914
17915
17916 fi
17917
17918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17919       conftest$ac_exeext conftest.$ac_ext
17920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17921
17922          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17923           # Warning - without using the other run time loading flags,
17924           # -berok will link without error, but may produce a broken library.
17925           no_undefined_flag_GCJ=' ${wl}-bernotok'
17926           allow_undefined_flag_GCJ=' ${wl}-berok'
17927           # Exported symbols can be pulled into shared objects from archives
17928           whole_archive_flag_spec_GCJ='$convenience'
17929           archive_cmds_need_lc_GCJ=yes
17930           # This is similar to how AIX traditionally builds its shared libraries.
17931           archive_expsym_cmds_GCJ="\$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'
17932         fi
17933       fi
17934       ;;
17935
17936     amigaos*)
17937       archive_cmds_GCJ='$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)'
17938       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939       hardcode_minus_L_GCJ=yes
17940       # see comment about different semantics on the GNU ld section
17941       ld_shlibs_GCJ=no
17942       ;;
17943
17944     bsdi[45]*)
17945       export_dynamic_flag_spec_GCJ=-rdynamic
17946       ;;
17947
17948     cygwin* | mingw* | pw32*)
17949       # When not using gcc, we currently assume that we are using
17950       # Microsoft Visual C++.
17951       # hardcode_libdir_flag_spec is actually meaningless, as there is
17952       # no search path for DLLs.
17953       hardcode_libdir_flag_spec_GCJ=' '
17954       allow_undefined_flag_GCJ=unsupported
17955       # Tell ltmain to make .lib files, not .a files.
17956       libext=lib
17957       # Tell ltmain to make .dll files, not .so files.
17958       shrext_cmds=".dll"
17959       # FIXME: Setting linknames here is a bad hack.
17960       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17961       # The linker will automatically build a .lib file if we build a DLL.
17962       old_archive_From_new_cmds_GCJ='true'
17963       # FIXME: Should let the user specify the lib program.
17964       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17965       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17966       enable_shared_with_static_runtimes_GCJ=yes
17967       ;;
17968
17969     darwin* | rhapsody*)
17970       case $host_os in
17971         rhapsody* | darwin1.[012])
17972          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17973          ;;
17974        *) # Darwin 1.3 on
17975          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17976            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17977          else
17978            case ${MACOSX_DEPLOYMENT_TARGET} in
17979              10.[012])
17980                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17981                ;;
17982              10.*)
17983                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17984                ;;
17985            esac
17986          fi
17987          ;;
17988       esac
17989       archive_cmds_need_lc_GCJ=no
17990       hardcode_direct_GCJ=no
17991       hardcode_automatic_GCJ=yes
17992       hardcode_shlibpath_var_GCJ=unsupported
17993       whole_archive_flag_spec_GCJ=''
17994       link_all_deplibs_GCJ=yes
17995     if test "$GCC" = yes ; then
17996         output_verbose_link_cmd='echo'
17997         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17998         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17999         archive_expsym_cmds_GCJ="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}"
18000         module_expsym_cmds_GCJ="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}"
18001     else
18002       case $cc_basename in
18003         xlc*)
18004          output_verbose_link_cmd='echo'
18005          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18006          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18007           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18008          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18009           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18010           ;;
18011        *)
18012          ld_shlibs_GCJ=no
18013           ;;
18014       esac
18015     fi
18016       ;;
18017
18018     dgux*)
18019       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18021       hardcode_shlibpath_var_GCJ=no
18022       ;;
18023
18024     freebsd1*)
18025       ld_shlibs_GCJ=no
18026       ;;
18027
18028     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18029     # support.  Future versions do this automatically, but an explicit c++rt0.o
18030     # does not break anything, and helps significantly (at the cost of a little
18031     # extra space).
18032     freebsd2.2*)
18033       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18034       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035       hardcode_direct_GCJ=yes
18036       hardcode_shlibpath_var_GCJ=no
18037       ;;
18038
18039     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18040     freebsd2*)
18041       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18042       hardcode_direct_GCJ=yes
18043       hardcode_minus_L_GCJ=yes
18044       hardcode_shlibpath_var_GCJ=no
18045       ;;
18046
18047     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18048     freebsd* | dragonfly*)
18049       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18050       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18051       hardcode_direct_GCJ=yes
18052       hardcode_shlibpath_var_GCJ=no
18053       ;;
18054
18055     hpux9*)
18056       if test "$GCC" = yes; then
18057         archive_cmds_GCJ='$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'
18058       else
18059         archive_cmds_GCJ='$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'
18060       fi
18061       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18062       hardcode_libdir_separator_GCJ=:
18063       hardcode_direct_GCJ=yes
18064
18065       # hardcode_minus_L: Not really in the search PATH,
18066       # but as the default location of the library.
18067       hardcode_minus_L_GCJ=yes
18068       export_dynamic_flag_spec_GCJ='${wl}-E'
18069       ;;
18070
18071     hpux10*)
18072       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18073         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18074       else
18075         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18076       fi
18077       if test "$with_gnu_ld" = no; then
18078         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18079         hardcode_libdir_separator_GCJ=:
18080
18081         hardcode_direct_GCJ=yes
18082         export_dynamic_flag_spec_GCJ='${wl}-E'
18083
18084         # hardcode_minus_L: Not really in the search PATH,
18085         # but as the default location of the library.
18086         hardcode_minus_L_GCJ=yes
18087       fi
18088       ;;
18089
18090     hpux11*)
18091       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18092         case $host_cpu in
18093         hppa*64*)
18094           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095           ;;
18096         ia64*)
18097           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18098           ;;
18099         *)
18100           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18101           ;;
18102         esac
18103       else
18104         case $host_cpu in
18105         hppa*64*)
18106           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18107           ;;
18108         ia64*)
18109           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18110           ;;
18111         *)
18112           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18113           ;;
18114         esac
18115       fi
18116       if test "$with_gnu_ld" = no; then
18117         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18118         hardcode_libdir_separator_GCJ=:
18119
18120         case $host_cpu in
18121         hppa*64*|ia64*)
18122           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18123           hardcode_direct_GCJ=no
18124           hardcode_shlibpath_var_GCJ=no
18125           ;;
18126         *)
18127           hardcode_direct_GCJ=yes
18128           export_dynamic_flag_spec_GCJ='${wl}-E'
18129
18130           # hardcode_minus_L: Not really in the search PATH,
18131           # but as the default location of the library.
18132           hardcode_minus_L_GCJ=yes
18133           ;;
18134         esac
18135       fi
18136       ;;
18137
18138     irix5* | irix6* | nonstopux*)
18139       if test "$GCC" = yes; then
18140         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18141       else
18142         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18143         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18144       fi
18145       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18146       hardcode_libdir_separator_GCJ=:
18147       link_all_deplibs_GCJ=yes
18148       ;;
18149
18150     netbsd*)
18151       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18152         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18153       else
18154         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18155       fi
18156       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18157       hardcode_direct_GCJ=yes
18158       hardcode_shlibpath_var_GCJ=no
18159       ;;
18160
18161     newsos6)
18162       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18163       hardcode_direct_GCJ=yes
18164       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18165       hardcode_libdir_separator_GCJ=:
18166       hardcode_shlibpath_var_GCJ=no
18167       ;;
18168
18169     openbsd*)
18170       if test -f /usr/libexec/ld.so; then
18171         hardcode_direct_GCJ=yes
18172         hardcode_shlibpath_var_GCJ=no
18173         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18174           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18175           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18176           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18177           export_dynamic_flag_spec_GCJ='${wl}-E'
18178         else
18179           case $host_os in
18180            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18181              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18182              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18183              ;;
18184            *)
18185              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18186              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18187              ;;
18188           esac
18189         fi
18190       else
18191         ld_shlibs_GCJ=no
18192       fi
18193       ;;
18194
18195     os2*)
18196       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18197       hardcode_minus_L_GCJ=yes
18198       allow_undefined_flag_GCJ=unsupported
18199       archive_cmds_GCJ='$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'
18200       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18201       ;;
18202
18203     osf3*)
18204       if test "$GCC" = yes; then
18205         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18206         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18207       else
18208         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18209         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18210       fi
18211       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18212       hardcode_libdir_separator_GCJ=:
18213       ;;
18214
18215     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18216       if test "$GCC" = yes; then
18217         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18218         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18219         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18220       else
18221         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18222         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18223         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18224         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18225
18226         # Both c and cxx compiler support -rpath directly
18227         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18228       fi
18229       hardcode_libdir_separator_GCJ=:
18230       ;;
18231
18232     solaris*)
18233       no_undefined_flag_GCJ=' -z text'
18234       if test "$GCC" = yes; then
18235         wlarc='${wl}'
18236         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18237         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18238           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18239       else
18240         wlarc=''
18241         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18243         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18244       fi
18245       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18246       hardcode_shlibpath_var_GCJ=no
18247       case $host_os in
18248       solaris2.[0-5] | solaris2.[0-5].*) ;;
18249       *)
18250         # The compiler driver will combine and reorder linker options,
18251         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18252         # but is careful enough not to reorder.
18253         # Supported since Solaris 2.6 (maybe 2.5.1?)
18254         if test "$GCC" = yes; then
18255           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18256         else
18257           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18258         fi
18259         ;;
18260       esac
18261       link_all_deplibs_GCJ=yes
18262       ;;
18263
18264     sunos4*)
18265       if test "x$host_vendor" = xsequent; then
18266         # Use $CC to link under sequent, because it throws in some extra .o
18267         # files that make .init and .fini sections work.
18268         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18269       else
18270         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18271       fi
18272       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18273       hardcode_direct_GCJ=yes
18274       hardcode_minus_L_GCJ=yes
18275       hardcode_shlibpath_var_GCJ=no
18276       ;;
18277
18278     sysv4)
18279       case $host_vendor in
18280         sni)
18281           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18282           hardcode_direct_GCJ=yes # is this really true???
18283         ;;
18284         siemens)
18285           ## LD is ld it makes a PLAMLIB
18286           ## CC just makes a GrossModule.
18287           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18288           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18289           hardcode_direct_GCJ=no
18290         ;;
18291         motorola)
18292           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18293           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18294         ;;
18295       esac
18296       runpath_var='LD_RUN_PATH'
18297       hardcode_shlibpath_var_GCJ=no
18298       ;;
18299
18300     sysv4.3*)
18301       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18302       hardcode_shlibpath_var_GCJ=no
18303       export_dynamic_flag_spec_GCJ='-Bexport'
18304       ;;
18305
18306     sysv4*MP*)
18307       if test -d /usr/nec; then
18308         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18309         hardcode_shlibpath_var_GCJ=no
18310         runpath_var=LD_RUN_PATH
18311         hardcode_runpath_var=yes
18312         ld_shlibs_GCJ=yes
18313       fi
18314       ;;
18315
18316     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18317       no_undefined_flag_GCJ='${wl}-z,text'
18318       archive_cmds_need_lc_GCJ=no
18319       hardcode_shlibpath_var_GCJ=no
18320       runpath_var='LD_RUN_PATH'
18321
18322       if test "$GCC" = yes; then
18323         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18324         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18325       else
18326         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18327         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18328       fi
18329       ;;
18330
18331     sysv5* | sco3.2v5* | sco5v6*)
18332       # Note: We can NOT use -z defs as we might desire, because we do not
18333       # link with -lc, and that would cause any symbols used from libc to
18334       # always be unresolved, which means just about no library would
18335       # ever link correctly.  If we're not using GNU ld we use -z text
18336       # though, which does catch some bad symbols but isn't as heavy-handed
18337       # as -z defs.
18338       no_undefined_flag_GCJ='${wl}-z,text'
18339       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18340       archive_cmds_need_lc_GCJ=no
18341       hardcode_shlibpath_var_GCJ=no
18342       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18343       hardcode_libdir_separator_GCJ=':'
18344       link_all_deplibs_GCJ=yes
18345       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18346       runpath_var='LD_RUN_PATH'
18347
18348       if test "$GCC" = yes; then
18349         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18350         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18351       else
18352         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18353         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18354       fi
18355       ;;
18356
18357     uts4*)
18358       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18359       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18360       hardcode_shlibpath_var_GCJ=no
18361       ;;
18362
18363     *)
18364       ld_shlibs_GCJ=no
18365       ;;
18366     esac
18367   fi
18368
18369 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18370 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18371 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18372
18373 #
18374 # Do we need to explicitly link libc?
18375 #
18376 case "x$archive_cmds_need_lc_GCJ" in
18377 x|xyes)
18378   # Assume -lc should be added
18379   archive_cmds_need_lc_GCJ=yes
18380
18381   if test "$enable_shared" = yes && test "$GCC" = yes; then
18382     case $archive_cmds_GCJ in
18383     *'~'*)
18384       # FIXME: we may have to deal with multi-command sequences.
18385       ;;
18386     '$CC '*)
18387       # Test whether the compiler implicitly links with -lc since on some
18388       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18389       # to ld, don't add -lc before -lgcc.
18390       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18391 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18392       $rm conftest*
18393       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18394
18395       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396   (eval $ac_compile) 2>&5
18397   ac_status=$?
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); } 2>conftest.err; then
18400         soname=conftest
18401         lib=conftest
18402         libobjs=conftest.$ac_objext
18403         deplibs=
18404         wl=$lt_prog_compiler_wl_GCJ
18405         pic_flag=$lt_prog_compiler_pic_GCJ
18406         compiler_flags=-v
18407         linker_flags=-v
18408         verstring=
18409         output_objdir=.
18410         libname=conftest
18411         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18412         allow_undefined_flag_GCJ=
18413         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18414   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }
18418         then
18419           archive_cmds_need_lc_GCJ=no
18420         else
18421           archive_cmds_need_lc_GCJ=yes
18422         fi
18423         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18424       else
18425         cat conftest.err 1>&5
18426       fi
18427       $rm conftest*
18428       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18429 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18430       ;;
18431     esac
18432   fi
18433   ;;
18434 esac
18435
18436 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18437 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18438 library_names_spec=
18439 libname_spec='lib$name'
18440 soname_spec=
18441 shrext_cmds=".so"
18442 postinstall_cmds=
18443 postuninstall_cmds=
18444 finish_cmds=
18445 finish_eval=
18446 shlibpath_var=
18447 shlibpath_overrides_runpath=unknown
18448 version_type=none
18449 dynamic_linker="$host_os ld.so"
18450 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18451
18452 need_lib_prefix=unknown
18453 hardcode_into_libs=no
18454
18455 # when you set need_version to no, make sure it does not cause -set_version
18456 # flags to be left without arguments
18457 need_version=unknown
18458
18459 case $host_os in
18460 aix3*)
18461   version_type=linux
18462   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18463   shlibpath_var=LIBPATH
18464
18465   # AIX 3 has no versioning support, so we append a major version to the name.
18466   soname_spec='${libname}${release}${shared_ext}$major'
18467   ;;
18468
18469 aix[4-9]*)
18470   version_type=linux
18471   need_lib_prefix=no
18472   need_version=no
18473   hardcode_into_libs=yes
18474   if test "$host_cpu" = ia64; then
18475     # AIX 5 supports IA64
18476     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18477     shlibpath_var=LD_LIBRARY_PATH
18478   else
18479     # With GCC up to 2.95.x, collect2 would create an import file
18480     # for dependence libraries.  The import file would start with
18481     # the line `#! .'.  This would cause the generated library to
18482     # depend on `.', always an invalid library.  This was fixed in
18483     # development snapshots of GCC prior to 3.0.
18484     case $host_os in
18485       aix4 | aix4.[01] | aix4.[01].*)
18486       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18487            echo ' yes '
18488            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18489         :
18490       else
18491         can_build_shared=no
18492       fi
18493       ;;
18494     esac
18495     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18496     # soname into executable. Probably we can add versioning support to
18497     # collect2, so additional links can be useful in future.
18498     if test "$aix_use_runtimelinking" = yes; then
18499       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18500       # instead of lib<name>.a to let people know that these are not
18501       # typical AIX shared libraries.
18502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503     else
18504       # We preserve .a as extension for shared libraries through AIX4.2
18505       # and later when we are not doing run time linking.
18506       library_names_spec='${libname}${release}.a $libname.a'
18507       soname_spec='${libname}${release}${shared_ext}$major'
18508     fi
18509     shlibpath_var=LIBPATH
18510   fi
18511   ;;
18512
18513 amigaos*)
18514   library_names_spec='$libname.ixlibrary $libname.a'
18515   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18516   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'
18517   ;;
18518
18519 beos*)
18520   library_names_spec='${libname}${shared_ext}'
18521   dynamic_linker="$host_os ld.so"
18522   shlibpath_var=LIBRARY_PATH
18523   ;;
18524
18525 bsdi[45]*)
18526   version_type=linux
18527   need_version=no
18528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529   soname_spec='${libname}${release}${shared_ext}$major'
18530   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18531   shlibpath_var=LD_LIBRARY_PATH
18532   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18533   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18534   # the default ld.so.conf also contains /usr/contrib/lib and
18535   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18536   # libtool to hard-code these into programs
18537   ;;
18538
18539 cygwin* | mingw* | pw32*)
18540   version_type=windows
18541   shrext_cmds=".dll"
18542   need_version=no
18543   need_lib_prefix=no
18544
18545   case $GCC,$host_os in
18546   yes,cygwin* | yes,mingw* | yes,pw32*)
18547     library_names_spec='$libname.dll.a'
18548     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18549     postinstall_cmds='base_file=`basename \${file}`~
18550       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18551       dldir=$destdir/`dirname \$dlpath`~
18552       test -d \$dldir || mkdir -p \$dldir~
18553       $install_prog $dir/$dlname \$dldir/$dlname~
18554       chmod a+x \$dldir/$dlname'
18555     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18556       dlpath=$dir/\$dldll~
18557        $rm \$dlpath'
18558     shlibpath_overrides_runpath=yes
18559
18560     case $host_os in
18561     cygwin*)
18562       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18563       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18564       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18565       ;;
18566     mingw*)
18567       # MinGW DLLs use traditional 'lib' prefix
18568       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18569       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18570       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18571         # It is most probably a Windows format PATH printed by
18572         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18573         # path with ; separators, and with drive letters. We can handle the
18574         # drive letters (cygwin fileutils understands them), so leave them,
18575         # especially as we might pass files found there to a mingw objdump,
18576         # which wouldn't understand a cygwinified path. Ahh.
18577         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18578       else
18579         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18580       fi
18581       ;;
18582     pw32*)
18583       # pw32 DLLs use 'pw' prefix rather than 'lib'
18584       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18585       ;;
18586     esac
18587     ;;
18588
18589   *)
18590     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18591     ;;
18592   esac
18593   dynamic_linker='Win32 ld.exe'
18594   # FIXME: first we should search . and the directory the executable is in
18595   shlibpath_var=PATH
18596   ;;
18597
18598 darwin* | rhapsody*)
18599   dynamic_linker="$host_os dyld"
18600   version_type=darwin
18601   need_lib_prefix=no
18602   need_version=no
18603   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18604   soname_spec='${libname}${release}${major}$shared_ext'
18605   shlibpath_overrides_runpath=yes
18606   shlibpath_var=DYLD_LIBRARY_PATH
18607   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18608
18609   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18610   ;;
18611
18612 dgux*)
18613   version_type=linux
18614   need_lib_prefix=no
18615   need_version=no
18616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18617   soname_spec='${libname}${release}${shared_ext}$major'
18618   shlibpath_var=LD_LIBRARY_PATH
18619   ;;
18620
18621 freebsd1*)
18622   dynamic_linker=no
18623   ;;
18624
18625 freebsd* | dragonfly*)
18626   # DragonFly does not have aout.  When/if they implement a new
18627   # versioning mechanism, adjust this.
18628   if test -x /usr/bin/objformat; then
18629     objformat=`/usr/bin/objformat`
18630   else
18631     case $host_os in
18632     freebsd[123]*) objformat=aout ;;
18633     *) objformat=elf ;;
18634     esac
18635   fi
18636   version_type=freebsd-$objformat
18637   case $version_type in
18638     freebsd-elf*)
18639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18640       need_version=no
18641       need_lib_prefix=no
18642       ;;
18643     freebsd-*)
18644       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18645       need_version=yes
18646       ;;
18647   esac
18648   shlibpath_var=LD_LIBRARY_PATH
18649   case $host_os in
18650   freebsd2*)
18651     shlibpath_overrides_runpath=yes
18652     ;;
18653   freebsd3.[01]* | freebsdelf3.[01]*)
18654     shlibpath_overrides_runpath=yes
18655     hardcode_into_libs=yes
18656     ;;
18657   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18658   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18659     shlibpath_overrides_runpath=no
18660     hardcode_into_libs=yes
18661     ;;
18662   *) # from 4.6 on, and DragonFly
18663     shlibpath_overrides_runpath=yes
18664     hardcode_into_libs=yes
18665     ;;
18666   esac
18667   ;;
18668
18669 gnu*)
18670   version_type=linux
18671   need_lib_prefix=no
18672   need_version=no
18673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18674   soname_spec='${libname}${release}${shared_ext}$major'
18675   shlibpath_var=LD_LIBRARY_PATH
18676   hardcode_into_libs=yes
18677   ;;
18678
18679 hpux9* | hpux10* | hpux11*)
18680   # Give a soname corresponding to the major version so that dld.sl refuses to
18681   # link against other versions.
18682   version_type=sunos
18683   need_lib_prefix=no
18684   need_version=no
18685   case $host_cpu in
18686   ia64*)
18687     shrext_cmds='.so'
18688     hardcode_into_libs=yes
18689     dynamic_linker="$host_os dld.so"
18690     shlibpath_var=LD_LIBRARY_PATH
18691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693     soname_spec='${libname}${release}${shared_ext}$major'
18694     if test "X$HPUX_IA64_MODE" = X32; then
18695       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18696     else
18697       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18698     fi
18699     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18700     ;;
18701    hppa*64*)
18702      shrext_cmds='.sl'
18703      hardcode_into_libs=yes
18704      dynamic_linker="$host_os dld.sl"
18705      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18706      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708      soname_spec='${libname}${release}${shared_ext}$major'
18709      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18710      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18711      ;;
18712    *)
18713     shrext_cmds='.sl'
18714     dynamic_linker="$host_os dld.sl"
18715     shlibpath_var=SHLIB_PATH
18716     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18718     soname_spec='${libname}${release}${shared_ext}$major'
18719     ;;
18720   esac
18721   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18722   postinstall_cmds='chmod 555 $lib'
18723   ;;
18724
18725 interix[3-9]*)
18726   version_type=linux
18727   need_lib_prefix=no
18728   need_version=no
18729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18730   soname_spec='${libname}${release}${shared_ext}$major'
18731   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18732   shlibpath_var=LD_LIBRARY_PATH
18733   shlibpath_overrides_runpath=no
18734   hardcode_into_libs=yes
18735   ;;
18736
18737 irix5* | irix6* | nonstopux*)
18738   case $host_os in
18739     nonstopux*) version_type=nonstopux ;;
18740     *)
18741         if test "$lt_cv_prog_gnu_ld" = yes; then
18742                 version_type=linux
18743         else
18744                 version_type=irix
18745         fi ;;
18746   esac
18747   need_lib_prefix=no
18748   need_version=no
18749   soname_spec='${libname}${release}${shared_ext}$major'
18750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18751   case $host_os in
18752   irix5* | nonstopux*)
18753     libsuff= shlibsuff=
18754     ;;
18755   *)
18756     case $LD in # libtool.m4 will add one of these switches to LD
18757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18758       libsuff= shlibsuff= libmagic=32-bit;;
18759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18760       libsuff=32 shlibsuff=N32 libmagic=N32;;
18761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18763     *) libsuff= shlibsuff= libmagic=never-match;;
18764     esac
18765     ;;
18766   esac
18767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18768   shlibpath_overrides_runpath=no
18769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18771   hardcode_into_libs=yes
18772   ;;
18773
18774 # No shared lib support for Linux oldld, aout, or coff.
18775 linux*oldld* | linux*aout* | linux*coff*)
18776   dynamic_linker=no
18777   ;;
18778
18779 # This must be Linux ELF.
18780 linux* | k*bsd*-gnu)
18781   version_type=linux
18782   need_lib_prefix=no
18783   need_version=no
18784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785   soname_spec='${libname}${release}${shared_ext}$major'
18786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18787   shlibpath_var=LD_LIBRARY_PATH
18788   shlibpath_overrides_runpath=no
18789   # This implies no fast_install, which is unacceptable.
18790   # Some rework will be needed to allow for fast_install
18791   # before this can be enabled.
18792   hardcode_into_libs=yes
18793
18794   # Append ld.so.conf contents to the search path
18795   if test -f /etc/ld.so.conf; then
18796     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' ' '`
18797     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18798   fi
18799
18800   # We used to test for /lib/ld.so.1 and disable shared libraries on
18801   # powerpc, because MkLinux only supported shared libraries with the
18802   # GNU dynamic linker.  Since this was broken with cross compilers,
18803   # most powerpc-linux boxes support dynamic linking these days and
18804   # people can always --disable-shared, the test was removed, and we
18805   # assume the GNU/Linux dynamic linker is in use.
18806   dynamic_linker='GNU/Linux ld.so'
18807   ;;
18808
18809 netbsd*)
18810   version_type=sunos
18811   need_lib_prefix=no
18812   need_version=no
18813   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18815     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18816     dynamic_linker='NetBSD (a.out) ld.so'
18817   else
18818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18819     soname_spec='${libname}${release}${shared_ext}$major'
18820     dynamic_linker='NetBSD ld.elf_so'
18821   fi
18822   shlibpath_var=LD_LIBRARY_PATH
18823   shlibpath_overrides_runpath=yes
18824   hardcode_into_libs=yes
18825   ;;
18826
18827 newsos6)
18828   version_type=linux
18829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830   shlibpath_var=LD_LIBRARY_PATH
18831   shlibpath_overrides_runpath=yes
18832   ;;
18833
18834 nto-qnx*)
18835   version_type=linux
18836   need_lib_prefix=no
18837   need_version=no
18838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839   soname_spec='${libname}${release}${shared_ext}$major'
18840   shlibpath_var=LD_LIBRARY_PATH
18841   shlibpath_overrides_runpath=yes
18842   ;;
18843
18844 openbsd*)
18845   version_type=sunos
18846   sys_lib_dlsearch_path_spec="/usr/lib"
18847   need_lib_prefix=no
18848   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18849   case $host_os in
18850     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18851     *)                         need_version=no  ;;
18852   esac
18853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18855   shlibpath_var=LD_LIBRARY_PATH
18856   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18857     case $host_os in
18858       openbsd2.[89] | openbsd2.[89].*)
18859         shlibpath_overrides_runpath=no
18860         ;;
18861       *)
18862         shlibpath_overrides_runpath=yes
18863         ;;
18864       esac
18865   else
18866     shlibpath_overrides_runpath=yes
18867   fi
18868   ;;
18869
18870 os2*)
18871   libname_spec='$name'
18872   shrext_cmds=".dll"
18873   need_lib_prefix=no
18874   library_names_spec='$libname${shared_ext} $libname.a'
18875   dynamic_linker='OS/2 ld.exe'
18876   shlibpath_var=LIBPATH
18877   ;;
18878
18879 osf3* | osf4* | osf5*)
18880   version_type=osf
18881   need_lib_prefix=no
18882   need_version=no
18883   soname_spec='${libname}${release}${shared_ext}$major'
18884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885   shlibpath_var=LD_LIBRARY_PATH
18886   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18887   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18888   ;;
18889
18890 rdos*)
18891   dynamic_linker=no
18892   ;;
18893
18894 solaris*)
18895   version_type=linux
18896   need_lib_prefix=no
18897   need_version=no
18898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899   soname_spec='${libname}${release}${shared_ext}$major'
18900   shlibpath_var=LD_LIBRARY_PATH
18901   shlibpath_overrides_runpath=yes
18902   hardcode_into_libs=yes
18903   # ldd complains unless libraries are executable
18904   postinstall_cmds='chmod +x $lib'
18905   ;;
18906
18907 sunos4*)
18908   version_type=sunos
18909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18910   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18911   shlibpath_var=LD_LIBRARY_PATH
18912   shlibpath_overrides_runpath=yes
18913   if test "$with_gnu_ld" = yes; then
18914     need_lib_prefix=no
18915   fi
18916   need_version=yes
18917   ;;
18918
18919 sysv4 | sysv4.3*)
18920   version_type=linux
18921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922   soname_spec='${libname}${release}${shared_ext}$major'
18923   shlibpath_var=LD_LIBRARY_PATH
18924   case $host_vendor in
18925     sni)
18926       shlibpath_overrides_runpath=no
18927       need_lib_prefix=no
18928       export_dynamic_flag_spec='${wl}-Blargedynsym'
18929       runpath_var=LD_RUN_PATH
18930       ;;
18931     siemens)
18932       need_lib_prefix=no
18933       ;;
18934     motorola)
18935       need_lib_prefix=no
18936       need_version=no
18937       shlibpath_overrides_runpath=no
18938       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18939       ;;
18940   esac
18941   ;;
18942
18943 sysv4*MP*)
18944   if test -d /usr/nec ;then
18945     version_type=linux
18946     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18947     soname_spec='$libname${shared_ext}.$major'
18948     shlibpath_var=LD_LIBRARY_PATH
18949   fi
18950   ;;
18951
18952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18953   version_type=freebsd-elf
18954   need_lib_prefix=no
18955   need_version=no
18956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18957   soname_spec='${libname}${release}${shared_ext}$major'
18958   shlibpath_var=LD_LIBRARY_PATH
18959   hardcode_into_libs=yes
18960   if test "$with_gnu_ld" = yes; then
18961     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18962     shlibpath_overrides_runpath=no
18963   else
18964     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18965     shlibpath_overrides_runpath=yes
18966     case $host_os in
18967       sco3.2v5*)
18968         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18969         ;;
18970     esac
18971   fi
18972   sys_lib_dlsearch_path_spec='/usr/lib'
18973   ;;
18974
18975 uts4*)
18976   version_type=linux
18977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978   soname_spec='${libname}${release}${shared_ext}$major'
18979   shlibpath_var=LD_LIBRARY_PATH
18980   ;;
18981
18982 *)
18983   dynamic_linker=no
18984   ;;
18985 esac
18986 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18987 echo "${ECHO_T}$dynamic_linker" >&6; }
18988 test "$dynamic_linker" = no && can_build_shared=no
18989
18990 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18991   echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18994 fi
18995
18996 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18997 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19001 fi
19002
19003 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19004
19005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19006 if test "$GCC" = yes; then
19007   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19008 fi
19009
19010 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19011 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19012 hardcode_action_GCJ=
19013 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19014    test -n "$runpath_var_GCJ" || \
19015    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19016
19017   # We can hardcode non-existant directories.
19018   if test "$hardcode_direct_GCJ" != no &&
19019      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19020      # have to relink, otherwise we might link with an installed library
19021      # when we should be linking with a yet-to-be-installed one
19022      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19023      test "$hardcode_minus_L_GCJ" != no; then
19024     # Linking always hardcodes the temporary library directory.
19025     hardcode_action_GCJ=relink
19026   else
19027     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19028     hardcode_action_GCJ=immediate
19029   fi
19030 else
19031   # We cannot hardcode anything, or else we can only hardcode existing
19032   # directories.
19033   hardcode_action_GCJ=unsupported
19034 fi
19035 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19036 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19037
19038 if test "$hardcode_action_GCJ" = relink; then
19039   # Fast installation is not supported
19040   enable_fast_install=no
19041 elif test "$shlibpath_overrides_runpath" = yes ||
19042      test "$enable_shared" = no; then
19043   # Fast installation is not necessary
19044   enable_fast_install=needless
19045 fi
19046
19047
19048 # The else clause should only fire when bootstrapping the
19049 # libtool distribution, otherwise you forgot to ship ltmain.sh
19050 # with your package, and you will get complaints that there are
19051 # no rules to generate ltmain.sh.
19052 if test -f "$ltmain"; then
19053   # See if we are running on zsh, and set the options which allow our commands through
19054   # without removal of \ escapes.
19055   if test -n "${ZSH_VERSION+set}" ; then
19056     setopt NO_GLOB_SUBST
19057   fi
19058   # Now quote all the things that may contain metacharacters while being
19059   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19060   # variables and quote the copies for generation of the libtool script.
19061   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19062     SED SHELL STRIP \
19063     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19064     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19065     deplibs_check_method reload_flag reload_cmds need_locks \
19066     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19067     lt_cv_sys_global_symbol_to_c_name_address \
19068     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19069     old_postinstall_cmds old_postuninstall_cmds \
19070     compiler_GCJ \
19071     CC_GCJ \
19072     LD_GCJ \
19073     lt_prog_compiler_wl_GCJ \
19074     lt_prog_compiler_pic_GCJ \
19075     lt_prog_compiler_static_GCJ \
19076     lt_prog_compiler_no_builtin_flag_GCJ \
19077     export_dynamic_flag_spec_GCJ \
19078     thread_safe_flag_spec_GCJ \
19079     whole_archive_flag_spec_GCJ \
19080     enable_shared_with_static_runtimes_GCJ \
19081     old_archive_cmds_GCJ \
19082     old_archive_from_new_cmds_GCJ \
19083     predep_objects_GCJ \
19084     postdep_objects_GCJ \
19085     predeps_GCJ \
19086     postdeps_GCJ \
19087     compiler_lib_search_path_GCJ \
19088     compiler_lib_search_dirs_GCJ \
19089     archive_cmds_GCJ \
19090     archive_expsym_cmds_GCJ \
19091     postinstall_cmds_GCJ \
19092     postuninstall_cmds_GCJ \
19093     old_archive_from_expsyms_cmds_GCJ \
19094     allow_undefined_flag_GCJ \
19095     no_undefined_flag_GCJ \
19096     export_symbols_cmds_GCJ \
19097     hardcode_libdir_flag_spec_GCJ \
19098     hardcode_libdir_flag_spec_ld_GCJ \
19099     hardcode_libdir_separator_GCJ \
19100     hardcode_automatic_GCJ \
19101     module_cmds_GCJ \
19102     module_expsym_cmds_GCJ \
19103     lt_cv_prog_compiler_c_o_GCJ \
19104     fix_srcfile_path_GCJ \
19105     exclude_expsyms_GCJ \
19106     include_expsyms_GCJ; do
19107
19108     case $var in
19109     old_archive_cmds_GCJ | \
19110     old_archive_from_new_cmds_GCJ | \
19111     archive_cmds_GCJ | \
19112     archive_expsym_cmds_GCJ | \
19113     module_cmds_GCJ | \
19114     module_expsym_cmds_GCJ | \
19115     old_archive_from_expsyms_cmds_GCJ | \
19116     export_symbols_cmds_GCJ | \
19117     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19118     postinstall_cmds | postuninstall_cmds | \
19119     old_postinstall_cmds | old_postuninstall_cmds | \
19120     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19121       # Double-quote double-evaled strings.
19122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19123       ;;
19124     *)
19125       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19126       ;;
19127     esac
19128   done
19129
19130   case $lt_echo in
19131   *'\$0 --fallback-echo"')
19132     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19133     ;;
19134   esac
19135
19136 cfgfile="$ofile"
19137
19138   cat <<__EOF__ >> "$cfgfile"
19139 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19140
19141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19142
19143 # Shell to use when invoking shell scripts.
19144 SHELL=$lt_SHELL
19145
19146 # Whether or not to build shared libraries.
19147 build_libtool_libs=$enable_shared
19148
19149 # Whether or not to build static libraries.
19150 build_old_libs=$enable_static
19151
19152 # Whether or not to add -lc for building shared libraries.
19153 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19154
19155 # Whether or not to disallow shared libs when runtime libs are static
19156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19157
19158 # Whether or not to optimize for fast installation.
19159 fast_install=$enable_fast_install
19160
19161 # The host system.
19162 host_alias=$host_alias
19163 host=$host
19164 host_os=$host_os
19165
19166 # The build system.
19167 build_alias=$build_alias
19168 build=$build
19169 build_os=$build_os
19170
19171 # An echo program that does not interpret backslashes.
19172 echo=$lt_echo
19173
19174 # The archiver.
19175 AR=$lt_AR
19176 AR_FLAGS=$lt_AR_FLAGS
19177
19178 # A C compiler.
19179 LTCC=$lt_LTCC
19180
19181 # LTCC compiler flags.
19182 LTCFLAGS=$lt_LTCFLAGS
19183
19184 # A language-specific compiler.
19185 CC=$lt_compiler_GCJ
19186
19187 # Is the compiler the GNU C compiler?
19188 with_gcc=$GCC_GCJ
19189
19190 # An ERE matcher.
19191 EGREP=$lt_EGREP
19192
19193 # The linker used to build libraries.
19194 LD=$lt_LD_GCJ
19195
19196 # Whether we need hard or soft links.
19197 LN_S=$lt_LN_S
19198
19199 # A BSD-compatible nm program.
19200 NM=$lt_NM
19201
19202 # A symbol stripping program
19203 STRIP=$lt_STRIP
19204
19205 # Used to examine libraries when file_magic_cmd begins "file"
19206 MAGIC_CMD=$MAGIC_CMD
19207
19208 # Used on cygwin: DLL creation program.
19209 DLLTOOL="$DLLTOOL"
19210
19211 # Used on cygwin: object dumper.
19212 OBJDUMP="$OBJDUMP"
19213
19214 # Used on cygwin: assembler.
19215 AS="$AS"
19216
19217 # The name of the directory that contains temporary libtool files.
19218 objdir=$objdir
19219
19220 # How to create reloadable object files.
19221 reload_flag=$lt_reload_flag
19222 reload_cmds=$lt_reload_cmds
19223
19224 # How to pass a linker flag through the compiler.
19225 wl=$lt_lt_prog_compiler_wl_GCJ
19226
19227 # Object file suffix (normally "o").
19228 objext="$ac_objext"
19229
19230 # Old archive suffix (normally "a").
19231 libext="$libext"
19232
19233 # Shared library suffix (normally ".so").
19234 shrext_cmds='$shrext_cmds'
19235
19236 # Executable file suffix (normally "").
19237 exeext="$exeext"
19238
19239 # Additional compiler flags for building library objects.
19240 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19241 pic_mode=$pic_mode
19242
19243 # What is the maximum length of a command?
19244 max_cmd_len=$lt_cv_sys_max_cmd_len
19245
19246 # Does compiler simultaneously support -c and -o options?
19247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19248
19249 # Must we lock files when doing compilation?
19250 need_locks=$lt_need_locks
19251
19252 # Do we need the lib prefix for modules?
19253 need_lib_prefix=$need_lib_prefix
19254
19255 # Do we need a version for libraries?
19256 need_version=$need_version
19257
19258 # Whether dlopen is supported.
19259 dlopen_support=$enable_dlopen
19260
19261 # Whether dlopen of programs is supported.
19262 dlopen_self=$enable_dlopen_self
19263
19264 # Whether dlopen of statically linked programs is supported.
19265 dlopen_self_static=$enable_dlopen_self_static
19266
19267 # Compiler flag to prevent dynamic linking.
19268 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19269
19270 # Compiler flag to turn off builtin functions.
19271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19272
19273 # Compiler flag to allow reflexive dlopens.
19274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19275
19276 # Compiler flag to generate shared objects directly from archives.
19277 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19278
19279 # Compiler flag to generate thread-safe objects.
19280 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19281
19282 # Library versioning type.
19283 version_type=$version_type
19284
19285 # Format of library name prefix.
19286 libname_spec=$lt_libname_spec
19287
19288 # List of archive names.  First name is the real one, the rest are links.
19289 # The last name is the one that the linker finds with -lNAME.
19290 library_names_spec=$lt_library_names_spec
19291
19292 # The coded name of the library, if different from the real name.
19293 soname_spec=$lt_soname_spec
19294
19295 # Commands used to build and install an old-style archive.
19296 RANLIB=$lt_RANLIB
19297 old_archive_cmds=$lt_old_archive_cmds_GCJ
19298 old_postinstall_cmds=$lt_old_postinstall_cmds
19299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19300
19301 # Create an old-style archive from a shared archive.
19302 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19303
19304 # Create a temporary old-style archive to link instead of a shared archive.
19305 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19306
19307 # Commands used to build and install a shared archive.
19308 archive_cmds=$lt_archive_cmds_GCJ
19309 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19310 postinstall_cmds=$lt_postinstall_cmds
19311 postuninstall_cmds=$lt_postuninstall_cmds
19312
19313 # Commands used to build a loadable module (assumed same as above if empty)
19314 module_cmds=$lt_module_cmds_GCJ
19315 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19316
19317 # Commands to strip libraries.
19318 old_striplib=$lt_old_striplib
19319 striplib=$lt_striplib
19320
19321 # Dependencies to place before the objects being linked to create a
19322 # shared library.
19323 predep_objects=$lt_predep_objects_GCJ
19324
19325 # Dependencies to place after the objects being linked to create a
19326 # shared library.
19327 postdep_objects=$lt_postdep_objects_GCJ
19328
19329 # Dependencies to place before the objects being linked to create a
19330 # shared library.
19331 predeps=$lt_predeps_GCJ
19332
19333 # Dependencies to place after the objects being linked to create a
19334 # shared library.
19335 postdeps=$lt_postdeps_GCJ
19336
19337 # The directories searched by this compiler when creating a shared
19338 # library
19339 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19340
19341 # The library search path used internally by the compiler when linking
19342 # a shared library.
19343 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19344
19345 # Method to check whether dependent libraries are shared objects.
19346 deplibs_check_method=$lt_deplibs_check_method
19347
19348 # Command to use when deplibs_check_method == file_magic.
19349 file_magic_cmd=$lt_file_magic_cmd
19350
19351 # Flag that allows shared libraries with undefined symbols to be built.
19352 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19353
19354 # Flag that forces no undefined symbols.
19355 no_undefined_flag=$lt_no_undefined_flag_GCJ
19356
19357 # Commands used to finish a libtool library installation in a directory.
19358 finish_cmds=$lt_finish_cmds
19359
19360 # Same as above, but a single script fragment to be evaled but not shown.
19361 finish_eval=$lt_finish_eval
19362
19363 # Take the output of nm and produce a listing of raw symbols and C names.
19364 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19365
19366 # Transform the output of nm in a proper C declaration
19367 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19368
19369 # Transform the output of nm in a C name address pair
19370 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19371
19372 # This is the shared library runtime path variable.
19373 runpath_var=$runpath_var
19374
19375 # This is the shared library path variable.
19376 shlibpath_var=$shlibpath_var
19377
19378 # Is shlibpath searched before the hard-coded library search path?
19379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19380
19381 # How to hardcode a shared library path into an executable.
19382 hardcode_action=$hardcode_action_GCJ
19383
19384 # Whether we should hardcode library paths into libraries.
19385 hardcode_into_libs=$hardcode_into_libs
19386
19387 # Flag to hardcode \$libdir into a binary during linking.
19388 # This must work even if \$libdir does not exist.
19389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19390
19391 # If ld is used when linking, flag to hardcode \$libdir into
19392 # a binary during linking. This must work even if \$libdir does
19393 # not exist.
19394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19395
19396 # Whether we need a single -rpath flag with a separated argument.
19397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19398
19399 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19400 # resulting binary.
19401 hardcode_direct=$hardcode_direct_GCJ
19402
19403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19404 # resulting binary.
19405 hardcode_minus_L=$hardcode_minus_L_GCJ
19406
19407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19408 # the resulting binary.
19409 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19410
19411 # Set to yes if building a shared library automatically hardcodes DIR into the library
19412 # and all subsequent libraries and executables linked against it.
19413 hardcode_automatic=$hardcode_automatic_GCJ
19414
19415 # Variables whose values should be saved in libtool wrapper scripts and
19416 # restored at relink time.
19417 variables_saved_for_relink="$variables_saved_for_relink"
19418
19419 # Whether libtool must link a program against all its dependency libraries.
19420 link_all_deplibs=$link_all_deplibs_GCJ
19421
19422 # Compile-time system search path for libraries
19423 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19424
19425 # Run-time system search path for libraries
19426 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19427
19428 # Fix the shell variable \$srcfile for the compiler.
19429 fix_srcfile_path=$lt_fix_srcfile_path
19430
19431 # Set to yes if exported symbols are required.
19432 always_export_symbols=$always_export_symbols_GCJ
19433
19434 # The commands to list exported symbols.
19435 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19436
19437 # The commands to extract the exported symbol list from a shared archive.
19438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19439
19440 # Symbols that should not be listed in the preloaded symbols.
19441 exclude_expsyms=$lt_exclude_expsyms_GCJ
19442
19443 # Symbols that must always be exported.
19444 include_expsyms=$lt_include_expsyms_GCJ
19445
19446 # ### END LIBTOOL TAG CONFIG: $tagname
19447
19448 __EOF__
19449
19450
19451 else
19452   # If there is no Makefile yet, we rely on a make rule to execute
19453   # `config.status --recheck' to rerun these tests and create the
19454   # libtool script then.
19455   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19456   if test -f "$ltmain_in"; then
19457     test -f Makefile && make "$ltmain"
19458   fi
19459 fi
19460
19461
19462 ac_ext=c
19463 ac_cpp='$CPP $CPPFLAGS'
19464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467
19468 CC="$lt_save_CC"
19469
19470         else
19471           tagname=""
19472         fi
19473         ;;
19474
19475       RC)
19476
19477
19478 # Source file extension for RC test sources.
19479 ac_ext=rc
19480
19481 # Object file extension for compiled RC test sources.
19482 objext=o
19483 objext_RC=$objext
19484
19485 # Code to be used in simple compile tests
19486 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19487
19488 # Code to be used in simple link tests
19489 lt_simple_link_test_code="$lt_simple_compile_test_code"
19490
19491 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19492
19493 # If no C compiler was specified, use CC.
19494 LTCC=${LTCC-"$CC"}
19495
19496 # If no C compiler flags were specified, use CFLAGS.
19497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19498
19499 # Allow CC to be a program name with arguments.
19500 compiler=$CC
19501
19502
19503 # save warnings/boilerplate of simple test code
19504 ac_outfile=conftest.$ac_objext
19505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19507 _lt_compiler_boilerplate=`cat conftest.err`
19508 $rm conftest*
19509
19510 ac_outfile=conftest.$ac_objext
19511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19513 _lt_linker_boilerplate=`cat conftest.err`
19514 $rm -r conftest*
19515
19516
19517 # Allow CC to be a program name with arguments.
19518 lt_save_CC="$CC"
19519 CC=${RC-"windres"}
19520 compiler=$CC
19521 compiler_RC=$CC
19522 for cc_temp in $compiler""; do
19523   case $cc_temp in
19524     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19525     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19526     \-*) ;;
19527     *) break;;
19528   esac
19529 done
19530 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19531
19532 lt_cv_prog_compiler_c_o_RC=yes
19533
19534 # The else clause should only fire when bootstrapping the
19535 # libtool distribution, otherwise you forgot to ship ltmain.sh
19536 # with your package, and you will get complaints that there are
19537 # no rules to generate ltmain.sh.
19538 if test -f "$ltmain"; then
19539   # See if we are running on zsh, and set the options which allow our commands through
19540   # without removal of \ escapes.
19541   if test -n "${ZSH_VERSION+set}" ; then
19542     setopt NO_GLOB_SUBST
19543   fi
19544   # Now quote all the things that may contain metacharacters while being
19545   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19546   # variables and quote the copies for generation of the libtool script.
19547   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19548     SED SHELL STRIP \
19549     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19550     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19551     deplibs_check_method reload_flag reload_cmds need_locks \
19552     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19553     lt_cv_sys_global_symbol_to_c_name_address \
19554     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19555     old_postinstall_cmds old_postuninstall_cmds \
19556     compiler_RC \
19557     CC_RC \
19558     LD_RC \
19559     lt_prog_compiler_wl_RC \
19560     lt_prog_compiler_pic_RC \
19561     lt_prog_compiler_static_RC \
19562     lt_prog_compiler_no_builtin_flag_RC \
19563     export_dynamic_flag_spec_RC \
19564     thread_safe_flag_spec_RC \
19565     whole_archive_flag_spec_RC \
19566     enable_shared_with_static_runtimes_RC \
19567     old_archive_cmds_RC \
19568     old_archive_from_new_cmds_RC \
19569     predep_objects_RC \
19570     postdep_objects_RC \
19571     predeps_RC \
19572     postdeps_RC \
19573     compiler_lib_search_path_RC \
19574     compiler_lib_search_dirs_RC \
19575     archive_cmds_RC \
19576     archive_expsym_cmds_RC \
19577     postinstall_cmds_RC \
19578     postuninstall_cmds_RC \
19579     old_archive_from_expsyms_cmds_RC \
19580     allow_undefined_flag_RC \
19581     no_undefined_flag_RC \
19582     export_symbols_cmds_RC \
19583     hardcode_libdir_flag_spec_RC \
19584     hardcode_libdir_flag_spec_ld_RC \
19585     hardcode_libdir_separator_RC \
19586     hardcode_automatic_RC \
19587     module_cmds_RC \
19588     module_expsym_cmds_RC \
19589     lt_cv_prog_compiler_c_o_RC \
19590     fix_srcfile_path_RC \
19591     exclude_expsyms_RC \
19592     include_expsyms_RC; do
19593
19594     case $var in
19595     old_archive_cmds_RC | \
19596     old_archive_from_new_cmds_RC | \
19597     archive_cmds_RC | \
19598     archive_expsym_cmds_RC | \
19599     module_cmds_RC | \
19600     module_expsym_cmds_RC | \
19601     old_archive_from_expsyms_cmds_RC | \
19602     export_symbols_cmds_RC | \
19603     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19604     postinstall_cmds | postuninstall_cmds | \
19605     old_postinstall_cmds | old_postuninstall_cmds | \
19606     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19607       # Double-quote double-evaled strings.
19608       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19609       ;;
19610     *)
19611       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19612       ;;
19613     esac
19614   done
19615
19616   case $lt_echo in
19617   *'\$0 --fallback-echo"')
19618     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19619     ;;
19620   esac
19621
19622 cfgfile="$ofile"
19623
19624   cat <<__EOF__ >> "$cfgfile"
19625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19626
19627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19628
19629 # Shell to use when invoking shell scripts.
19630 SHELL=$lt_SHELL
19631
19632 # Whether or not to build shared libraries.
19633 build_libtool_libs=$enable_shared
19634
19635 # Whether or not to build static libraries.
19636 build_old_libs=$enable_static
19637
19638 # Whether or not to add -lc for building shared libraries.
19639 build_libtool_need_lc=$archive_cmds_need_lc_RC
19640
19641 # Whether or not to disallow shared libs when runtime libs are static
19642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19643
19644 # Whether or not to optimize for fast installation.
19645 fast_install=$enable_fast_install
19646
19647 # The host system.
19648 host_alias=$host_alias
19649 host=$host
19650 host_os=$host_os
19651
19652 # The build system.
19653 build_alias=$build_alias
19654 build=$build
19655 build_os=$build_os
19656
19657 # An echo program that does not interpret backslashes.
19658 echo=$lt_echo
19659
19660 # The archiver.
19661 AR=$lt_AR
19662 AR_FLAGS=$lt_AR_FLAGS
19663
19664 # A C compiler.
19665 LTCC=$lt_LTCC
19666
19667 # LTCC compiler flags.
19668 LTCFLAGS=$lt_LTCFLAGS
19669
19670 # A language-specific compiler.
19671 CC=$lt_compiler_RC
19672
19673 # Is the compiler the GNU C compiler?
19674 with_gcc=$GCC_RC
19675
19676 # An ERE matcher.
19677 EGREP=$lt_EGREP
19678
19679 # The linker used to build libraries.
19680 LD=$lt_LD_RC
19681
19682 # Whether we need hard or soft links.
19683 LN_S=$lt_LN_S
19684
19685 # A BSD-compatible nm program.
19686 NM=$lt_NM
19687
19688 # A symbol stripping program
19689 STRIP=$lt_STRIP
19690
19691 # Used to examine libraries when file_magic_cmd begins "file"
19692 MAGIC_CMD=$MAGIC_CMD
19693
19694 # Used on cygwin: DLL creation program.
19695 DLLTOOL="$DLLTOOL"
19696
19697 # Used on cygwin: object dumper.
19698 OBJDUMP="$OBJDUMP"
19699
19700 # Used on cygwin: assembler.
19701 AS="$AS"
19702
19703 # The name of the directory that contains temporary libtool files.
19704 objdir=$objdir
19705
19706 # How to create reloadable object files.
19707 reload_flag=$lt_reload_flag
19708 reload_cmds=$lt_reload_cmds
19709
19710 # How to pass a linker flag through the compiler.
19711 wl=$lt_lt_prog_compiler_wl_RC
19712
19713 # Object file suffix (normally "o").
19714 objext="$ac_objext"
19715
19716 # Old archive suffix (normally "a").
19717 libext="$libext"
19718
19719 # Shared library suffix (normally ".so").
19720 shrext_cmds='$shrext_cmds'
19721
19722 # Executable file suffix (normally "").
19723 exeext="$exeext"
19724
19725 # Additional compiler flags for building library objects.
19726 pic_flag=$lt_lt_prog_compiler_pic_RC
19727 pic_mode=$pic_mode
19728
19729 # What is the maximum length of a command?
19730 max_cmd_len=$lt_cv_sys_max_cmd_len
19731
19732 # Does compiler simultaneously support -c and -o options?
19733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19734
19735 # Must we lock files when doing compilation?
19736 need_locks=$lt_need_locks
19737
19738 # Do we need the lib prefix for modules?
19739 need_lib_prefix=$need_lib_prefix
19740
19741 # Do we need a version for libraries?
19742 need_version=$need_version
19743
19744 # Whether dlopen is supported.
19745 dlopen_support=$enable_dlopen
19746
19747 # Whether dlopen of programs is supported.
19748 dlopen_self=$enable_dlopen_self
19749
19750 # Whether dlopen of statically linked programs is supported.
19751 dlopen_self_static=$enable_dlopen_self_static
19752
19753 # Compiler flag to prevent dynamic linking.
19754 link_static_flag=$lt_lt_prog_compiler_static_RC
19755
19756 # Compiler flag to turn off builtin functions.
19757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19758
19759 # Compiler flag to allow reflexive dlopens.
19760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19761
19762 # Compiler flag to generate shared objects directly from archives.
19763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19764
19765 # Compiler flag to generate thread-safe objects.
19766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19767
19768 # Library versioning type.
19769 version_type=$version_type
19770
19771 # Format of library name prefix.
19772 libname_spec=$lt_libname_spec
19773
19774 # List of archive names.  First name is the real one, the rest are links.
19775 # The last name is the one that the linker finds with -lNAME.
19776 library_names_spec=$lt_library_names_spec
19777
19778 # The coded name of the library, if different from the real name.
19779 soname_spec=$lt_soname_spec
19780
19781 # Commands used to build and install an old-style archive.
19782 RANLIB=$lt_RANLIB
19783 old_archive_cmds=$lt_old_archive_cmds_RC
19784 old_postinstall_cmds=$lt_old_postinstall_cmds
19785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19786
19787 # Create an old-style archive from a shared archive.
19788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19789
19790 # Create a temporary old-style archive to link instead of a shared archive.
19791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19792
19793 # Commands used to build and install a shared archive.
19794 archive_cmds=$lt_archive_cmds_RC
19795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19796 postinstall_cmds=$lt_postinstall_cmds
19797 postuninstall_cmds=$lt_postuninstall_cmds
19798
19799 # Commands used to build a loadable module (assumed same as above if empty)
19800 module_cmds=$lt_module_cmds_RC
19801 module_expsym_cmds=$lt_module_expsym_cmds_RC
19802
19803 # Commands to strip libraries.
19804 old_striplib=$lt_old_striplib
19805 striplib=$lt_striplib
19806
19807 # Dependencies to place before the objects being linked to create a
19808 # shared library.
19809 predep_objects=$lt_predep_objects_RC
19810
19811 # Dependencies to place after the objects being linked to create a
19812 # shared library.
19813 postdep_objects=$lt_postdep_objects_RC
19814
19815 # Dependencies to place before the objects being linked to create a
19816 # shared library.
19817 predeps=$lt_predeps_RC
19818
19819 # Dependencies to place after the objects being linked to create a
19820 # shared library.
19821 postdeps=$lt_postdeps_RC
19822
19823 # The directories searched by this compiler when creating a shared
19824 # library
19825 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19826
19827 # The library search path used internally by the compiler when linking
19828 # a shared library.
19829 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19830
19831 # Method to check whether dependent libraries are shared objects.
19832 deplibs_check_method=$lt_deplibs_check_method
19833
19834 # Command to use when deplibs_check_method == file_magic.
19835 file_magic_cmd=$lt_file_magic_cmd
19836
19837 # Flag that allows shared libraries with undefined symbols to be built.
19838 allow_undefined_flag=$lt_allow_undefined_flag_RC
19839
19840 # Flag that forces no undefined symbols.
19841 no_undefined_flag=$lt_no_undefined_flag_RC
19842
19843 # Commands used to finish a libtool library installation in a directory.
19844 finish_cmds=$lt_finish_cmds
19845
19846 # Same as above, but a single script fragment to be evaled but not shown.
19847 finish_eval=$lt_finish_eval
19848
19849 # Take the output of nm and produce a listing of raw symbols and C names.
19850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19851
19852 # Transform the output of nm in a proper C declaration
19853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19854
19855 # Transform the output of nm in a C name address pair
19856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19857
19858 # This is the shared library runtime path variable.
19859 runpath_var=$runpath_var
19860
19861 # This is the shared library path variable.
19862 shlibpath_var=$shlibpath_var
19863
19864 # Is shlibpath searched before the hard-coded library search path?
19865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19866
19867 # How to hardcode a shared library path into an executable.
19868 hardcode_action=$hardcode_action_RC
19869
19870 # Whether we should hardcode library paths into libraries.
19871 hardcode_into_libs=$hardcode_into_libs
19872
19873 # Flag to hardcode \$libdir into a binary during linking.
19874 # This must work even if \$libdir does not exist.
19875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19876
19877 # If ld is used when linking, flag to hardcode \$libdir into
19878 # a binary during linking. This must work even if \$libdir does
19879 # not exist.
19880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19881
19882 # Whether we need a single -rpath flag with a separated argument.
19883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19884
19885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19886 # resulting binary.
19887 hardcode_direct=$hardcode_direct_RC
19888
19889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19890 # resulting binary.
19891 hardcode_minus_L=$hardcode_minus_L_RC
19892
19893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19894 # the resulting binary.
19895 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19896
19897 # Set to yes if building a shared library automatically hardcodes DIR into the library
19898 # and all subsequent libraries and executables linked against it.
19899 hardcode_automatic=$hardcode_automatic_RC
19900
19901 # Variables whose values should be saved in libtool wrapper scripts and
19902 # restored at relink time.
19903 variables_saved_for_relink="$variables_saved_for_relink"
19904
19905 # Whether libtool must link a program against all its dependency libraries.
19906 link_all_deplibs=$link_all_deplibs_RC
19907
19908 # Compile-time system search path for libraries
19909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19910
19911 # Run-time system search path for libraries
19912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19913
19914 # Fix the shell variable \$srcfile for the compiler.
19915 fix_srcfile_path=$lt_fix_srcfile_path
19916
19917 # Set to yes if exported symbols are required.
19918 always_export_symbols=$always_export_symbols_RC
19919
19920 # The commands to list exported symbols.
19921 export_symbols_cmds=$lt_export_symbols_cmds_RC
19922
19923 # The commands to extract the exported symbol list from a shared archive.
19924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19925
19926 # Symbols that should not be listed in the preloaded symbols.
19927 exclude_expsyms=$lt_exclude_expsyms_RC
19928
19929 # Symbols that must always be exported.
19930 include_expsyms=$lt_include_expsyms_RC
19931
19932 # ### END LIBTOOL TAG CONFIG: $tagname
19933
19934 __EOF__
19935
19936
19937 else
19938   # If there is no Makefile yet, we rely on a make rule to execute
19939   # `config.status --recheck' to rerun these tests and create the
19940   # libtool script then.
19941   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19942   if test -f "$ltmain_in"; then
19943     test -f Makefile && make "$ltmain"
19944   fi
19945 fi
19946
19947
19948 ac_ext=c
19949 ac_cpp='$CPP $CPPFLAGS'
19950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19953
19954 CC="$lt_save_CC"
19955
19956         ;;
19957
19958       *)
19959         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19960 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19961    { (exit 1); exit 1; }; }
19962         ;;
19963       esac
19964
19965       # Append the new tag name to the list of available tags.
19966       if test -n "$tagname" ; then
19967       available_tags="$available_tags $tagname"
19968     fi
19969     fi
19970   done
19971   IFS="$lt_save_ifs"
19972
19973   # Now substitute the updated list of available tags.
19974   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19975     mv "${ofile}T" "$ofile"
19976     chmod +x "$ofile"
19977   else
19978     rm -f "${ofile}T"
19979     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19980 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19981    { (exit 1); exit 1; }; }
19982   fi
19983 fi
19984
19985
19986
19987 # This can be used to rebuild libtool when needed
19988 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19989
19990 # Always use our own libtool.
19991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19992
19993 # Prevent multiple expansion
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015 if test "x$CC" != xcc; then
20016   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20017 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20018 else
20019   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20020 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20021 fi
20022 set dummy $CC; ac_cc=`echo $2 |
20023                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20024 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033
20034 int
20035 main ()
20036 {
20037
20038   ;
20039   return 0;
20040 }
20041 _ACEOF
20042 # Make sure it works both with $CC and with simple cc.
20043 # We do the test twice because some compilers refuse to overwrite an
20044 # existing .o file with -o, though they will create one.
20045 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20046 rm -f conftest2.*
20047 if { (case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_try") 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); } &&
20056    test -f conftest2.$ac_objext && { (case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_try") 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); };
20065 then
20066   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20067   if test "x$CC" != xcc; then
20068     # Test first that cc exists at all.
20069     if { ac_try='cc -c conftest.$ac_ext >&5'
20070   { (case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_try") 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; }; then
20079       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20080       rm -f conftest2.*
20081       if { (case "(($ac_try" in
20082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083   *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086   (eval "$ac_try") 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } &&
20090          test -f conftest2.$ac_objext && { (case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095   (eval "$ac_try") 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); };
20099       then
20100         # cc works too.
20101         :
20102       else
20103         # cc exists but doesn't like -o.
20104         eval ac_cv_prog_cc_${ac_cc}_c_o=no
20105       fi
20106     fi
20107   fi
20108 else
20109   eval ac_cv_prog_cc_${ac_cc}_c_o=no
20110 fi
20111 rm -f core conftest*
20112
20113 fi
20114 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20115   { echo "$as_me:$LINENO: result: yes" >&5
20116 echo "${ECHO_T}yes" >&6; }
20117 else
20118   { echo "$as_me:$LINENO: result: no" >&5
20119 echo "${ECHO_T}no" >&6; }
20120
20121 cat >>confdefs.h <<\_ACEOF
20122 #define NO_MINUS_C_MINUS_O 1
20123 _ACEOF
20124
20125 fi
20126
20127 # FIXME: we rely on the cache variable name because
20128 # there is no other way.
20129 set dummy $CC
20130 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20131 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20132    # Losing compiler, so override with the script.
20133    # FIXME: It is wrong to rewrite CC.
20134    # But if we don't then we get into trouble of one sort or another.
20135    # A longer-term fix would be to have automake use am__CC in this case,
20136    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20137    CC="$am_aux_dir/compile $CC"
20138 fi
20139
20140
20141 # Extract the first word of "pkg-config", so it can be a program name with args.
20142 set dummy pkg-config; ac_word=$2
20143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20145 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
20146   echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148   if test -n "$HAVE_PKGCONFIG"; then
20149   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
20150 else
20151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20152 for as_dir in $PATH
20153 do
20154   IFS=$as_save_IFS
20155   test -z "$as_dir" && as_dir=.
20156   for ac_exec_ext in '' $ac_executable_extensions; do
20157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20158     ac_cv_prog_HAVE_PKGCONFIG="yes"
20159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20160     break 2
20161   fi
20162 done
20163 done
20164 IFS=$as_save_IFS
20165
20166   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
20167 fi
20168 fi
20169 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
20170 if test -n "$HAVE_PKGCONFIG"; then
20171   { echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
20172 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6; }
20173 else
20174   { echo "$as_me:$LINENO: result: no" >&5
20175 echo "${ECHO_T}no" >&6; }
20176 fi
20177
20178
20179 if test x"$HAVE_PKGCONFIG" = x"no"; then
20180   { { echo "$as_me:$LINENO: error: pkg-config is required!" >&5
20181 echo "$as_me: error: pkg-config is required!" >&2;}
20182    { (exit 1); exit 1; }; }
20183 fi
20184
20185
20186 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20187         if test -n "$ac_tool_prefix"; then
20188   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20189 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20192 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20193   echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195   case $PKG_CONFIG in
20196   [\\/]* | ?:[\\/]*)
20197   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20198   ;;
20199   *)
20200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20201 for as_dir in $PATH
20202 do
20203   IFS=$as_save_IFS
20204   test -z "$as_dir" && as_dir=.
20205   for ac_exec_ext in '' $ac_executable_extensions; do
20206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20207     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20209     break 2
20210   fi
20211 done
20212 done
20213 IFS=$as_save_IFS
20214
20215   ;;
20216 esac
20217 fi
20218 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20219 if test -n "$PKG_CONFIG"; then
20220   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20221 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20222 else
20223   { echo "$as_me:$LINENO: result: no" >&5
20224 echo "${ECHO_T}no" >&6; }
20225 fi
20226
20227
20228 fi
20229 if test -z "$ac_cv_path_PKG_CONFIG"; then
20230   ac_pt_PKG_CONFIG=$PKG_CONFIG
20231   # Extract the first word of "pkg-config", so it can be a program name with args.
20232 set dummy pkg-config; ac_word=$2
20233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20235 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20236   echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238   case $ac_pt_PKG_CONFIG in
20239   [\\/]* | ?:[\\/]*)
20240   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20241   ;;
20242   *)
20243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20244 for as_dir in $PATH
20245 do
20246   IFS=$as_save_IFS
20247   test -z "$as_dir" && as_dir=.
20248   for ac_exec_ext in '' $ac_executable_extensions; do
20249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20250     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20252     break 2
20253   fi
20254 done
20255 done
20256 IFS=$as_save_IFS
20257
20258   ;;
20259 esac
20260 fi
20261 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20262 if test -n "$ac_pt_PKG_CONFIG"; then
20263   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20264 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20265 else
20266   { echo "$as_me:$LINENO: result: no" >&5
20267 echo "${ECHO_T}no" >&6; }
20268 fi
20269
20270   if test "x$ac_pt_PKG_CONFIG" = x; then
20271     PKG_CONFIG=""
20272   else
20273     case $cross_compiling:$ac_tool_warned in
20274 yes:)
20275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20276 whose name does not start with the host triplet.  If you think this
20277 configuration is useful to you, please write to autoconf@gnu.org." >&5
20278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20279 whose name does not start with the host triplet.  If you think this
20280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20281 ac_tool_warned=yes ;;
20282 esac
20283     PKG_CONFIG=$ac_pt_PKG_CONFIG
20284   fi
20285 else
20286   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20287 fi
20288
20289 fi
20290 if test -n "$PKG_CONFIG"; then
20291         _pkg_min_version=0.19
20292         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20293 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20294         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20295                 { echo "$as_me:$LINENO: result: yes" >&5
20296 echo "${ECHO_T}yes" >&6; }
20297         else
20298                 { echo "$as_me:$LINENO: result: no" >&5
20299 echo "${ECHO_T}no" >&6; }
20300                 PKG_CONFIG=""
20301         fi
20302
20303 fi
20304
20305 ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile src/Makefile src/build.h lua/Makefile src/dbus/Makefile"
20306
20307
20308 uname=`uname`
20309
20310 case $uname in
20311   Linux*)
20312     WANT_SYSINFO=yes
20313     ;;
20314   FreeBSD*|GNU/kFreeBSD*)
20315     WANT_KVM=yes
20316     WANT_DEVSTAT=yes
20317     ;;
20318 #  NetBSD*)
20319 #    WANT_KVM=yes
20320 #    WANT_OSSLIB=yes
20321 #    ;;
20322
20323   OpenBSD*)
20324     WANT_KVM=yes
20325     WANT_OSSLIB=yes
20326     ;;
20327
20328 # Solaris doesn't work at all right now
20329 #  SunOS*)
20330 #    WANT_KSTAT=yes
20331 #    ;;
20332
20333   *)
20334     echo "Your operating system $uname isn't supported"
20335     echo "Feel free to help. :P"
20336     exit 1
20337     ;;
20338 esac
20339
20340
20341
20342 if test x$uname = xLinux; then
20343   BUILD_LINUX_TRUE=
20344   BUILD_LINUX_FALSE='#'
20345 else
20346   BUILD_LINUX_TRUE='#'
20347   BUILD_LINUX_FALSE=
20348 fi
20349
20350 #AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
20351
20352
20353 if test x$uname = xFreeBSD -o x$uname = xGNU/kFreeBSD; then
20354   BUILD_FREEBSD_TRUE=
20355   BUILD_FREEBSD_FALSE='#'
20356 else
20357   BUILD_FREEBSD_TRUE='#'
20358   BUILD_FREEBSD_FALSE=
20359 fi
20360
20361 #AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
20362
20363
20364 if test x$uname = xOpenBSD; then
20365   BUILD_OPENBSD_TRUE=
20366   BUILD_OPENBSD_FALSE='#'
20367 else
20368   BUILD_OPENBSD_TRUE='#'
20369   BUILD_OPENBSD_FALSE=
20370 fi
20371
20372
20373 BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
20374 BUILD_ARCH="$(uname -sr) ($(uname -m))"
20375
20376
20377
20378
20379
20380 # Check whether --enable-config_output was given.
20381 if test "${enable_config_output+set}" = set; then
20382   enableval=$enable_config_output; want_config_output="$enableval"
20383 else
20384   want_config_output=yes
20385 fi
20386
20387
20388
20389
20390 if test x$want_config_output = xyes; then
20391   BUILD_CONFIG_OUTPUT_TRUE=
20392   BUILD_CONFIG_OUTPUT_FALSE='#'
20393 else
20394   BUILD_CONFIG_OUTPUT_TRUE='#'
20395   BUILD_CONFIG_OUTPUT_FALSE=
20396 fi
20397
20398 if test x$want_config_output = xyes; then
20399
20400 cat >>confdefs.h <<\_ACEOF
20401 #define CONFIG_OUTPUT 1
20402 _ACEOF
20403
20404
20405 for ac_func in fopencookie
20406 do
20407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20421 #define $ac_func innocuous_$ac_func
20422
20423 /* System header to define __stub macros and hopefully few prototypes,
20424     which can conflict with char $ac_func (); below.
20425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426     <limits.h> exists even on freestanding compilers.  */
20427
20428 #ifdef __STDC__
20429 # include <limits.h>
20430 #else
20431 # include <assert.h>
20432 #endif
20433
20434 #undef $ac_func
20435
20436 /* Override any GCC internal prototype to avoid an error.
20437    Use char because int might match the return type of a GCC
20438    builtin and then its argument prototype would still apply.  */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 char $ac_func ();
20443 /* The GNU C library defines this for functions which it implements
20444     to always fail with ENOSYS.  Some functions are actually named
20445     something starting with __ and the normal name is an alias.  */
20446 #if defined __stub_$ac_func || defined __stub___$ac_func
20447 choke me
20448 #endif
20449
20450 int
20451 main ()
20452 {
20453 return $ac_func ();
20454   ;
20455   return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (ac_try="$ac_link"
20460 case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_link") 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } && {
20472          test -z "$ac_c_werror_flag" ||
20473          test ! -s conftest.err
20474        } && test -s conftest$ac_exeext &&
20475        $as_test_x conftest$ac_exeext; then
20476   eval "$as_ac_var=yes"
20477 else
20478   echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481         eval "$as_ac_var=no"
20482 fi
20483
20484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20485       conftest$ac_exeext conftest.$ac_ext
20486 fi
20487 ac_res=`eval echo '${'$as_ac_var'}'`
20488                { echo "$as_me:$LINENO: result: $ac_res" >&5
20489 echo "${ECHO_T}$ac_res" >&6; }
20490 if test `eval echo '${'$as_ac_var'}'` = yes; then
20491   cat >>confdefs.h <<_ACEOF
20492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20493 _ACEOF
20494
20495 fi
20496 done
20497
20498
20499 for ac_func in funopen
20500 do
20501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20505   echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507   cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20515 #define $ac_func innocuous_$ac_func
20516
20517 /* System header to define __stub macros and hopefully few prototypes,
20518     which can conflict with char $ac_func (); below.
20519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520     <limits.h> exists even on freestanding compilers.  */
20521
20522 #ifdef __STDC__
20523 # include <limits.h>
20524 #else
20525 # include <assert.h>
20526 #endif
20527
20528 #undef $ac_func
20529
20530 /* Override any GCC internal prototype to avoid an error.
20531    Use char because int might match the return type of a GCC
20532    builtin and then its argument prototype would still apply.  */
20533 #ifdef __cplusplus
20534 extern "C"
20535 #endif
20536 char $ac_func ();
20537 /* The GNU C library defines this for functions which it implements
20538     to always fail with ENOSYS.  Some functions are actually named
20539     something starting with __ and the normal name is an alias.  */
20540 #if defined __stub_$ac_func || defined __stub___$ac_func
20541 choke me
20542 #endif
20543
20544 int
20545 main ()
20546 {
20547 return $ac_func ();
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556   *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559   (eval "$ac_link") 2>conftest.er1
20560   ac_status=$?
20561   grep -v '^ *+' conftest.er1 >conftest.err
20562   rm -f conftest.er1
20563   cat conftest.err >&5
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); } && {
20566          test -z "$ac_c_werror_flag" ||
20567          test ! -s conftest.err
20568        } && test -s conftest$ac_exeext &&
20569        $as_test_x conftest$ac_exeext; then
20570   eval "$as_ac_var=yes"
20571 else
20572   echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575         eval "$as_ac_var=no"
20576 fi
20577
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579       conftest$ac_exeext conftest.$ac_ext
20580 fi
20581 ac_res=`eval echo '${'$as_ac_var'}'`
20582                { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20584 if test `eval echo '${'$as_ac_var'}'` = yes; then
20585   cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20587 _ACEOF
20588
20589 fi
20590 done
20591
20592 fi
20593
20594
20595 # Check whether --enable-own_window was given.
20596 if test "${enable_own_window+set}" = set; then
20597   enableval=$enable_own_window; dah="$enableval"
20598 else
20599   dah=yes
20600 fi
20601
20602
20603 if test $dah != "no"; then
20604
20605 cat >>confdefs.h <<\_ACEOF
20606 #define OWN_WINDOW 1
20607 _ACEOF
20608
20609 fi
20610
20611
20612 # Check whether --enable-ncurses was given.
20613 if test "${enable_ncurses+set}" = set; then
20614   enableval=$enable_ncurses; want_ncurses="$enableval"
20615 else
20616   want_ncurses=yes
20617 fi
20618
20619
20620
20621
20622 if test x$want_ncurses = xyes; then
20623   BUILD_NCURSES_TRUE=
20624   BUILD_NCURSES_FALSE='#'
20625 else
20626   BUILD_NCURSES_TRUE='#'
20627   BUILD_NCURSES_FALSE=
20628 fi
20629
20630 if test x$want_ncurses = xyes; then
20631       conky_LIBS="$conky_LIBS -lncurses"
20632
20633 cat >>confdefs.h <<\_ACEOF
20634 #define NCURSES 1
20635 _ACEOF
20636
20637 fi
20638
20639
20640
20641 # Check whether --enable-audacious was given.
20642 if test "${enable_audacious+set}" = set; then
20643   enableval=$enable_audacious; want_audacious="$enableval"
20644 else
20645   want_audacious=no
20646 fi
20647
20648
20649
20650
20651 if test x$want_audacious = xyes -o x$want_audacious = xlegacy; then
20652   BUILD_AUDACIOUS_TRUE=
20653   BUILD_AUDACIOUS_FALSE='#'
20654 else
20655   BUILD_AUDACIOUS_TRUE='#'
20656   BUILD_AUDACIOUS_FALSE=
20657 fi
20658
20659 if test x$want_audacious = xyes; then
20660
20661 pkg_failed=no
20662 { echo "$as_me:$LINENO: checking for Audacious" >&5
20663 echo $ECHO_N "checking for Audacious... $ECHO_C" >&6; }
20664
20665 if test -n "$PKG_CONFIG"; then
20666     if test -n "$Audacious_CFLAGS"; then
20667         pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
20668     else
20669         if test -n "$PKG_CONFIG" && \
20670     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0\"") >&5
20671   ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; then
20675   pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
20676 else
20677   pkg_failed=yes
20678 fi
20679     fi
20680 else
20681         pkg_failed=untried
20682 fi
20683 if test -n "$PKG_CONFIG"; then
20684     if test -n "$Audacious_LIBS"; then
20685         pkg_cv_Audacious_LIBS="$Audacious_LIBS"
20686     else
20687         if test -n "$PKG_CONFIG" && \
20688     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0\"") >&5
20689   ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
20690   ac_status=$?
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); }; then
20693   pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
20694 else
20695   pkg_failed=yes
20696 fi
20697     fi
20698 else
20699         pkg_failed=untried
20700 fi
20701
20702
20703
20704 if test $pkg_failed = yes; then
20705
20706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20707         _pkg_short_errors_supported=yes
20708 else
20709         _pkg_short_errors_supported=no
20710 fi
20711         if test $_pkg_short_errors_supported = yes; then
20712                 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0"`
20713         else
20714                 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0"`
20715         fi
20716         # Put the nasty error message in config.log where it belongs
20717         echo "$Audacious_PKG_ERRORS" >&5
20718
20719         { { echo "$as_me:$LINENO: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
20720
20721 $Audacious_PKG_ERRORS
20722
20723 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20724 installed software in a non-standard prefix.
20725
20726 Alternatively, you may set the environment variables Audacious_CFLAGS
20727 and Audacious_LIBS to avoid the need to call pkg-config.
20728 See the pkg-config man page for more details.
20729 " >&5
20730 echo "$as_me: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
20731
20732 $Audacious_PKG_ERRORS
20733
20734 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20735 installed software in a non-standard prefix.
20736
20737 Alternatively, you may set the environment variables Audacious_CFLAGS
20738 and Audacious_LIBS to avoid the need to call pkg-config.
20739 See the pkg-config man page for more details.
20740 " >&2;}
20741    { (exit 1); exit 1; }; }
20742 elif test $pkg_failed = untried; then
20743         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20744 is in your PATH or set the PKG_CONFIG environment variable to the full
20745 path to pkg-config.
20746
20747 Alternatively, you may set the environment variables Audacious_CFLAGS
20748 and Audacious_LIBS to avoid the need to call pkg-config.
20749 See the pkg-config man page for more details.
20750
20751 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20752 See \`config.log' for more details." >&5
20753 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20754 is in your PATH or set the PKG_CONFIG environment variable to the full
20755 path to pkg-config.
20756
20757 Alternatively, you may set the environment variables Audacious_CFLAGS
20758 and Audacious_LIBS to avoid the need to call pkg-config.
20759 See the pkg-config man page for more details.
20760
20761 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20762 See \`config.log' for more details." >&2;}
20763    { (exit 1); exit 1; }; }
20764 else
20765         Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
20766         Audacious_LIBS=$pkg_cv_Audacious_LIBS
20767         { echo "$as_me:$LINENO: result: yes" >&5
20768 echo "${ECHO_T}yes" >&6; }
20769         :
20770 fi
20771       conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
20772       conky_LIBS="$conky_LIBS $Audacious_LIBS"
20773       save_CPPFLAGS="$CPPFLAGS"
20774       CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
20775
20776
20777
20778
20779 for ac_header in audacious/audctrl.h audacious/dbus.h glib.h glib-object.h
20780 do
20781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20783   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20786   echo $ECHO_N "(cached) $ECHO_C" >&6
20787 fi
20788 ac_res=`eval echo '${'$as_ac_Header'}'`
20789                { echo "$as_me:$LINENO: result: $ac_res" >&5
20790 echo "${ECHO_T}$ac_res" >&6; }
20791 else
20792   # Is the header compilable?
20793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 $ac_includes_default
20802 #include <$ac_header>
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_compile") 2>conftest.er1
20812   ac_status=$?
20813   grep -v '^ *+' conftest.er1 >conftest.err
20814   rm -f conftest.er1
20815   cat conftest.err >&5
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } && {
20818          test -z "$ac_c_werror_flag" ||
20819          test ! -s conftest.err
20820        } && test -s conftest.$ac_objext; then
20821   ac_header_compiler=yes
20822 else
20823   echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826         ac_header_compiler=no
20827 fi
20828
20829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20831 echo "${ECHO_T}$ac_header_compiler" >&6; }
20832
20833 # Is the header present?
20834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h.  */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h.  */
20842 #include <$ac_header>
20843 _ACEOF
20844 if { (ac_try="$ac_cpp conftest.$ac_ext"
20845 case "(($ac_try" in
20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847   *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } >/dev/null && {
20857          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20858          test ! -s conftest.err
20859        }; then
20860   ac_header_preproc=yes
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865   ac_header_preproc=no
20866 fi
20867
20868 rm -f conftest.err conftest.$ac_ext
20869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20870 echo "${ECHO_T}$ac_header_preproc" >&6; }
20871
20872 # So?  What about this header?
20873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20874   yes:no: )
20875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20879     ac_header_preproc=yes
20880     ;;
20881   no:yes:* )
20882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20894     ( cat <<\_ASBOX
20895 ## --------------------------------------------- ##
20896 ## Report this to brenden1@users.sourceforge.net ##
20897 ## --------------------------------------------- ##
20898 _ASBOX
20899      ) | sed "s/^/$as_me: WARNING:     /" >&2
20900     ;;
20901 esac
20902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20905   echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907   eval "$as_ac_Header=\$ac_header_preproc"
20908 fi
20909 ac_res=`eval echo '${'$as_ac_Header'}'`
20910                { echo "$as_me:$LINENO: result: $ac_res" >&5
20911 echo "${ECHO_T}$ac_res" >&6; }
20912
20913 fi
20914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20915   cat >>confdefs.h <<_ACEOF
20916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20917 _ACEOF
20918
20919 else
20920   { { echo "$as_me:$LINENO: error: required header(s) not found" >&5
20921 echo "$as_me: error: required header(s) not found" >&2;}
20922    { (exit 1); exit 1; }; }
20923 fi
20924
20925 done
20926
20927       CPPFLAGS="$save_CPPFLAGS"
20928
20929 cat >>confdefs.h <<\_ACEOF
20930 #define AUDACIOUS 1
20931 _ACEOF
20932
20933 else if test x$want_audacious = xlegacy; then
20934
20935 pkg_failed=no
20936 { echo "$as_me:$LINENO: checking for Audacious" >&5
20937 echo $ECHO_N "checking for Audacious... $ECHO_C" >&6; }
20938
20939 if test -n "$PKG_CONFIG"; then
20940     if test -n "$Audacious_CFLAGS"; then
20941         pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
20942     else
20943         if test -n "$PKG_CONFIG" && \
20944     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\"") >&5
20945   ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; then
20949   pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious < 1.4.0 glib-2.0" 2>/dev/null`
20950 else
20951   pkg_failed=yes
20952 fi
20953     fi
20954 else
20955         pkg_failed=untried
20956 fi
20957 if test -n "$PKG_CONFIG"; then
20958     if test -n "$Audacious_LIBS"; then
20959         pkg_cv_Audacious_LIBS="$Audacious_LIBS"
20960     else
20961         if test -n "$PKG_CONFIG" && \
20962     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\"") >&5
20963   ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); }; then
20967   pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious < 1.4.0 glib-2.0" 2>/dev/null`
20968 else
20969   pkg_failed=yes
20970 fi
20971     fi
20972 else
20973         pkg_failed=untried
20974 fi
20975
20976
20977
20978 if test $pkg_failed = yes; then
20979
20980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20981         _pkg_short_errors_supported=yes
20982 else
20983         _pkg_short_errors_supported=no
20984 fi
20985         if test $_pkg_short_errors_supported = yes; then
20986                 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
20987         else
20988                 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
20989         fi
20990         # Put the nasty error message in config.log where it belongs
20991         echo "$Audacious_PKG_ERRORS" >&5
20992
20993         { { echo "$as_me:$LINENO: error: Package requirements (audacious < 1.4.0 glib-2.0) were not met:
20994
20995 $Audacious_PKG_ERRORS
20996
20997 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20998 installed software in a non-standard prefix.
20999
21000 Alternatively, you may set the environment variables Audacious_CFLAGS
21001 and Audacious_LIBS to avoid the need to call pkg-config.
21002 See the pkg-config man page for more details.
21003 " >&5
21004 echo "$as_me: error: Package requirements (audacious < 1.4.0 glib-2.0) were not met:
21005
21006 $Audacious_PKG_ERRORS
21007
21008 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21009 installed software in a non-standard prefix.
21010
21011 Alternatively, you may set the environment variables Audacious_CFLAGS
21012 and Audacious_LIBS to avoid the need to call pkg-config.
21013 See the pkg-config man page for more details.
21014 " >&2;}
21015    { (exit 1); exit 1; }; }
21016 elif test $pkg_failed = untried; then
21017         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21018 is in your PATH or set the PKG_CONFIG environment variable to the full
21019 path to pkg-config.
21020
21021 Alternatively, you may set the environment variables Audacious_CFLAGS
21022 and Audacious_LIBS to avoid the need to call pkg-config.
21023 See the pkg-config man page for more details.
21024
21025 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21026 See \`config.log' for more details." >&5
21027 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21028 is in your PATH or set the PKG_CONFIG environment variable to the full
21029 path to pkg-config.
21030
21031 Alternatively, you may set the environment variables Audacious_CFLAGS
21032 and Audacious_LIBS to avoid the need to call pkg-config.
21033 See the pkg-config man page for more details.
21034
21035 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21036 See \`config.log' for more details." >&2;}
21037    { (exit 1); exit 1; }; }
21038 else
21039         Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
21040         Audacious_LIBS=$pkg_cv_Audacious_LIBS
21041         { echo "$as_me:$LINENO: result: yes" >&5
21042 echo "${ECHO_T}yes" >&6; }
21043         :
21044 fi
21045       conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
21046       conky_LIBS="$conky_LIBS $Audacious_LIBS"
21047       save_CPPFLAGS="$CPPFLAGS"
21048       CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
21049
21050
21051 for ac_header in audacious/beepctrl.h glib.h
21052 do
21053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 fi
21060 ac_res=`eval echo '${'$as_ac_Header'}'`
21061                { echo "$as_me:$LINENO: result: $ac_res" >&5
21062 echo "${ECHO_T}$ac_res" >&6; }
21063 else
21064   # Is the header compilable?
21065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073 $ac_includes_default
21074 #include <$ac_header>
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_compile") 2>conftest.er1
21084   ac_status=$?
21085   grep -v '^ *+' conftest.er1 >conftest.err
21086   rm -f conftest.er1
21087   cat conftest.err >&5
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); } && {
21090          test -z "$ac_c_werror_flag" ||
21091          test ! -s conftest.err
21092        } && test -s conftest.$ac_objext; then
21093   ac_header_compiler=yes
21094 else
21095   echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098         ac_header_compiler=no
21099 fi
21100
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21103 echo "${ECHO_T}$ac_header_compiler" >&6; }
21104
21105 # Is the header present?
21106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 #include <$ac_header>
21115 _ACEOF
21116 if { (ac_try="$ac_cpp conftest.$ac_ext"
21117 case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21123   ac_status=$?
21124   grep -v '^ *+' conftest.er1 >conftest.err
21125   rm -f conftest.er1
21126   cat conftest.err >&5
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } >/dev/null && {
21129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21130          test ! -s conftest.err
21131        }; then
21132   ac_header_preproc=yes
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137   ac_header_preproc=no
21138 fi
21139
21140 rm -f conftest.err conftest.$ac_ext
21141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21142 echo "${ECHO_T}$ac_header_preproc" >&6; }
21143
21144 # So?  What about this header?
21145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21146   yes:no: )
21147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21151     ac_header_preproc=yes
21152     ;;
21153   no:yes:* )
21154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21166     ( cat <<\_ASBOX
21167 ## --------------------------------------------- ##
21168 ## Report this to brenden1@users.sourceforge.net ##
21169 ## --------------------------------------------- ##
21170 _ASBOX
21171      ) | sed "s/^/$as_me: WARNING:     /" >&2
21172     ;;
21173 esac
21174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21177   echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179   eval "$as_ac_Header=\$ac_header_preproc"
21180 fi
21181 ac_res=`eval echo '${'$as_ac_Header'}'`
21182                { echo "$as_me:$LINENO: result: $ac_res" >&5
21183 echo "${ECHO_T}$ac_res" >&6; }
21184
21185 fi
21186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21187   cat >>confdefs.h <<_ACEOF
21188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21189 _ACEOF
21190
21191 else
21192   { { echo "$as_me:$LINENO: error: required  header(s) not found" >&5
21193 echo "$as_me: error: required  header(s) not found" >&2;}
21194    { (exit 1); exit 1; }; }
21195 fi
21196
21197 done
21198
21199       CPPFLAGS="$save_CPPFLAGS"
21200
21201 cat >>confdefs.h <<\_ACEOF
21202 #define AUDACIOUS 1
21203 _ACEOF
21204
21205
21206 cat >>confdefs.h <<\_ACEOF
21207 #define AUDACIOUS_LEGACY 1
21208 _ACEOF
21209
21210       fi
21211 fi
21212
21213
21214
21215 # Check whether --enable-bmpx was given.
21216 if test "${enable_bmpx+set}" = set; then
21217   enableval=$enable_bmpx; want_bmpx="$enableval"
21218 else
21219   want_bmpx=no
21220 fi
21221
21222
21223
21224
21225 if test x$want_bmpx = xyes; then
21226   BUILD_BMPX_TRUE=
21227   BUILD_BMPX_FALSE='#'
21228 else
21229   BUILD_BMPX_TRUE='#'
21230   BUILD_BMPX_FALSE=
21231 fi
21232
21233 if test x$want_bmpx = xyes; then
21234
21235 pkg_failed=no
21236 { echo "$as_me:$LINENO: checking for BMPx" >&5
21237 echo $ECHO_N "checking for BMPx... $ECHO_C" >&6; }
21238
21239 if test -n "$PKG_CONFIG"; then
21240     if test -n "$BMPx_CFLAGS"; then
21241         pkg_cv_BMPx_CFLAGS="$BMPx_CFLAGS"
21242     else
21243         if test -n "$PKG_CONFIG" && \
21244     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\"") >&5
21245   ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; then
21249   pkg_cv_BMPx_CFLAGS=`$PKG_CONFIG --cflags "bmp-2.0 >= 0.14.0" 2>/dev/null`
21250 else
21251   pkg_failed=yes
21252 fi
21253     fi
21254 else
21255         pkg_failed=untried
21256 fi
21257 if test -n "$PKG_CONFIG"; then
21258     if test -n "$BMPx_LIBS"; then
21259         pkg_cv_BMPx_LIBS="$BMPx_LIBS"
21260     else
21261         if test -n "$PKG_CONFIG" && \
21262     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\"") >&5
21263   ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); }; then
21267   pkg_cv_BMPx_LIBS=`$PKG_CONFIG --libs "bmp-2.0 >= 0.14.0" 2>/dev/null`
21268 else
21269   pkg_failed=yes
21270 fi
21271     fi
21272 else
21273         pkg_failed=untried
21274 fi
21275
21276
21277
21278 if test $pkg_failed = yes; then
21279
21280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21281         _pkg_short_errors_supported=yes
21282 else
21283         _pkg_short_errors_supported=no
21284 fi
21285         if test $_pkg_short_errors_supported = yes; then
21286                 BMPx_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
21287         else
21288                 BMPx_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
21289         fi
21290         # Put the nasty error message in config.log where it belongs
21291         echo "$BMPx_PKG_ERRORS" >&5
21292
21293         { { echo "$as_me:$LINENO: error: Package requirements (bmp-2.0 >= 0.14.0) were not met:
21294
21295 $BMPx_PKG_ERRORS
21296
21297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21298 installed software in a non-standard prefix.
21299
21300 Alternatively, you may set the environment variables BMPx_CFLAGS
21301 and BMPx_LIBS to avoid the need to call pkg-config.
21302 See the pkg-config man page for more details.
21303 " >&5
21304 echo "$as_me: error: Package requirements (bmp-2.0 >= 0.14.0) were not met:
21305
21306 $BMPx_PKG_ERRORS
21307
21308 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21309 installed software in a non-standard prefix.
21310
21311 Alternatively, you may set the environment variables BMPx_CFLAGS
21312 and BMPx_LIBS to avoid the need to call pkg-config.
21313 See the pkg-config man page for more details.
21314 " >&2;}
21315    { (exit 1); exit 1; }; }
21316 elif test $pkg_failed = untried; then
21317         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21318 is in your PATH or set the PKG_CONFIG environment variable to the full
21319 path to pkg-config.
21320
21321 Alternatively, you may set the environment variables BMPx_CFLAGS
21322 and BMPx_LIBS to avoid the need to call pkg-config.
21323 See the pkg-config man page for more details.
21324
21325 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21326 See \`config.log' for more details." >&5
21327 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21328 is in your PATH or set the PKG_CONFIG environment variable to the full
21329 path to pkg-config.
21330
21331 Alternatively, you may set the environment variables BMPx_CFLAGS
21332 and BMPx_LIBS to avoid the need to call pkg-config.
21333 See the pkg-config man page for more details.
21334
21335 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21336 See \`config.log' for more details." >&2;}
21337    { (exit 1); exit 1; }; }
21338 else
21339         BMPx_CFLAGS=$pkg_cv_BMPx_CFLAGS
21340         BMPx_LIBS=$pkg_cv_BMPx_LIBS
21341         { echo "$as_me:$LINENO: result: yes" >&5
21342 echo "${ECHO_T}yes" >&6; }
21343         :
21344 fi
21345   conky_CFLAGS="$conky_CFLAGS $BMPx_CFLAGS"
21346   conky_LIBS="$conky_LIBS $BMPx_LIBS"
21347
21348 cat >>confdefs.h <<\_ACEOF
21349 #define BMPX 1
21350 _ACEOF
21351
21352 fi
21353
21354
21355
21356 # Check whether --enable-ibm was given.
21357 if test "${enable_ibm+set}" = set; then
21358   enableval=$enable_ibm; want_ibm="$enableval"
21359 else
21360   want_ibm=no
21361 fi
21362
21363
21364
21365
21366 if test x$want_ibm = xyes; then
21367   BUILD_IBM_TRUE=
21368   BUILD_IBM_FALSE='#'
21369 else
21370   BUILD_IBM_TRUE='#'
21371   BUILD_IBM_FALSE=
21372 fi
21373
21374 if test x$want_ibm = xyes; then
21375         if test x"$uname" != xLinux; then
21376                 { echo "$as_me:$LINENO: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&5
21377 echo "$as_me: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&6;}
21378                 want_ibm="not supported on $uname"
21379         else
21380
21381 cat >>confdefs.h <<\_ACEOF
21382 #define IBM 1
21383 _ACEOF
21384
21385         fi
21386 fi
21387
21388
21389
21390 # Check whether --enable-hddtemp was given.
21391 if test "${enable_hddtemp+set}" = set; then
21392   enableval=$enable_hddtemp; want_hddtemp="$enableval"
21393 else
21394   want_hddtemp=yes
21395 fi
21396
21397
21398
21399
21400 if test x$want_hddtemp = xyes; then
21401   BUILD_HDDTEMP_TRUE=
21402   BUILD_HDDTEMP_FALSE='#'
21403 else
21404   BUILD_HDDTEMP_TRUE='#'
21405   BUILD_HDDTEMP_FALSE=
21406 fi
21407
21408 if test x$want_hddtemp = xyes; then
21409   if test x"$uname" != xLinux; then
21410       { echo "$as_me:$LINENO: hddtemp not supported on $uname... disabling" >&5
21411 echo "$as_me: hddtemp not supported on $uname... disabling" >&6;}
21412       want_hddtemp="not supported on $uname"
21413   else
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HDDTEMP 1
21417 _ACEOF
21418
21419   fi
21420 fi
21421
21422
21423
21424 # Check whether --enable-apcupsd was given.
21425 if test "${enable_apcupsd+set}" = set; then
21426   enableval=$enable_apcupsd; want_apcupsd="$enableval"
21427 else
21428   want_apcupsd=yes
21429 fi
21430
21431
21432 if test x$want_apcupsd = xyes; then
21433   if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
21434       { echo "$as_me:$LINENO: apcupsd not supported on $uname... disabling" >&5
21435 echo "$as_me: apcupsd not supported on $uname... disabling" >&6;}
21436       want_apcupsd="not supported on $uname"
21437   else
21438
21439 cat >>confdefs.h <<\_ACEOF
21440 #define APCUPSD 1
21441 _ACEOF
21442
21443   fi
21444 fi
21445
21446
21447 if test x$want_apcupsd = xyes; then
21448   BUILD_APCUPSD_TRUE=
21449   BUILD_APCUPSD_FALSE='#'
21450 else
21451   BUILD_APCUPSD_TRUE='#'
21452   BUILD_APCUPSD_FALSE=
21453 fi
21454
21455
21456
21457
21458 # Check whether --enable-iostats was given.
21459 if test "${enable_iostats+set}" = set; then
21460   enableval=$enable_iostats; want_iostats="$enableval"
21461 else
21462   want_iostats=yes
21463 fi
21464
21465
21466 if test x$want_iostats = xyes; then
21467   if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
21468       { echo "$as_me:$LINENO: iostats not supported on $uname... disabling" >&5
21469 echo "$as_me: iostats not supported on $uname... disabling" >&6;}
21470       want_iostats="not supported on $uname"
21471   else
21472
21473 cat >>confdefs.h <<\_ACEOF
21474 #define IOSTATS 1
21475 _ACEOF
21476
21477   fi
21478 fi
21479
21480
21481
21482 # Check whether --enable-math was given.
21483 if test "${enable_math+set}" = set; then
21484   enableval=$enable_math; want_math="$enableval"
21485 else
21486   want_math=yes
21487 fi
21488
21489
21490
21491
21492 if test x$want_math = xyes; then
21493   BUILD_MATH_TRUE=
21494   BUILD_MATH_FALSE='#'
21495 else
21496   BUILD_MATH_TRUE='#'
21497   BUILD_MATH_FALSE=
21498 fi
21499
21500 if test x$want_math = xyes; then
21501   conky_LIBS="$conky_LIBS -lm"
21502
21503 cat >>confdefs.h <<\_ACEOF
21504 #define MATH 1
21505 _ACEOF
21506
21507 fi
21508
21509
21510 # Check whether --enable-mpd was given.
21511 if test "${enable_mpd+set}" = set; then
21512   enableval=$enable_mpd; want_mpd="$enableval"
21513 else
21514   want_mpd=yes
21515 fi
21516
21517
21518
21519
21520 if test x$want_mpd = xyes; then
21521   BUILD_MPD_TRUE=
21522   BUILD_MPD_FALSE='#'
21523 else
21524   BUILD_MPD_TRUE='#'
21525   BUILD_MPD_FALSE=
21526 fi
21527
21528 if test x$want_mpd = xyes; then
21529
21530 cat >>confdefs.h <<\_ACEOF
21531 #define MPD 1
21532 _ACEOF
21533
21534 fi
21535
21536
21537 # Check whether --enable-moc was given.
21538 if test "${enable_moc+set}" = set; then
21539   enableval=$enable_moc; want_moc="$enableval"
21540 else
21541   want_moc=yes
21542 fi
21543
21544
21545
21546
21547 if test x$want_moc = xyes; then
21548   BUILD_MOC_TRUE=
21549   BUILD_MOC_FALSE='#'
21550 else
21551   BUILD_MOC_TRUE='#'
21552   BUILD_MOC_FALSE=
21553 fi
21554
21555 if test x$want_moc = xyes; then
21556
21557 cat >>confdefs.h <<\_ACEOF
21558 #define MOC 1
21559 _ACEOF
21560
21561 fi
21562
21563
21564 # Check whether --enable-xmms2 was given.
21565 if test "${enable_xmms2+set}" = set; then
21566   enableval=$enable_xmms2; want_xmms2="$enableval"
21567 else
21568   want_xmms2=no
21569 fi
21570
21571
21572
21573
21574 if test x$want_xmms2 = xyes; then
21575   BUILD_XMMS2_TRUE=
21576   BUILD_XMMS2_FALSE='#'
21577 else
21578   BUILD_XMMS2_TRUE='#'
21579   BUILD_XMMS2_FALSE=
21580 fi
21581
21582 if test x$want_xmms2 = xyes; then
21583
21584 pkg_failed=no
21585 { echo "$as_me:$LINENO: checking for XMMS2" >&5
21586 echo $ECHO_N "checking for XMMS2... $ECHO_C" >&6; }
21587
21588 if test -n "$PKG_CONFIG"; then
21589     if test -n "$XMMS2_CFLAGS"; then
21590         pkg_cv_XMMS2_CFLAGS="$XMMS2_CFLAGS"
21591     else
21592         if test -n "$PKG_CONFIG" && \
21593     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\"") >&5
21594   ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); }; then
21598   pkg_cv_XMMS2_CFLAGS=`$PKG_CONFIG --cflags "xmms2-client >= 0.6" 2>/dev/null`
21599 else
21600   pkg_failed=yes
21601 fi
21602     fi
21603 else
21604         pkg_failed=untried
21605 fi
21606 if test -n "$PKG_CONFIG"; then
21607     if test -n "$XMMS2_LIBS"; then
21608         pkg_cv_XMMS2_LIBS="$XMMS2_LIBS"
21609     else
21610         if test -n "$PKG_CONFIG" && \
21611     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\"") >&5
21612   ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; then
21616   pkg_cv_XMMS2_LIBS=`$PKG_CONFIG --libs "xmms2-client >= 0.6" 2>/dev/null`
21617 else
21618   pkg_failed=yes
21619 fi
21620     fi
21621 else
21622         pkg_failed=untried
21623 fi
21624
21625
21626
21627 if test $pkg_failed = yes; then
21628
21629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21630         _pkg_short_errors_supported=yes
21631 else
21632         _pkg_short_errors_supported=no
21633 fi
21634         if test $_pkg_short_errors_supported = yes; then
21635                 XMMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
21636         else
21637                 XMMS2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
21638         fi
21639         # Put the nasty error message in config.log where it belongs
21640         echo "$XMMS2_PKG_ERRORS" >&5
21641
21642         { { echo "$as_me:$LINENO: error: Package requirements (xmms2-client >= 0.6) were not met:
21643
21644 $XMMS2_PKG_ERRORS
21645
21646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21647 installed software in a non-standard prefix.
21648
21649 Alternatively, you may set the environment variables XMMS2_CFLAGS
21650 and XMMS2_LIBS to avoid the need to call pkg-config.
21651 See the pkg-config man page for more details.
21652 " >&5
21653 echo "$as_me: error: Package requirements (xmms2-client >= 0.6) were not met:
21654
21655 $XMMS2_PKG_ERRORS
21656
21657 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21658 installed software in a non-standard prefix.
21659
21660 Alternatively, you may set the environment variables XMMS2_CFLAGS
21661 and XMMS2_LIBS to avoid the need to call pkg-config.
21662 See the pkg-config man page for more details.
21663 " >&2;}
21664    { (exit 1); exit 1; }; }
21665 elif test $pkg_failed = untried; then
21666         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21667 is in your PATH or set the PKG_CONFIG environment variable to the full
21668 path to pkg-config.
21669
21670 Alternatively, you may set the environment variables XMMS2_CFLAGS
21671 and XMMS2_LIBS to avoid the need to call pkg-config.
21672 See the pkg-config man page for more details.
21673
21674 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21675 See \`config.log' for more details." >&5
21676 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21677 is in your PATH or set the PKG_CONFIG environment variable to the full
21678 path to pkg-config.
21679
21680 Alternatively, you may set the environment variables XMMS2_CFLAGS
21681 and XMMS2_LIBS to avoid the need to call pkg-config.
21682 See the pkg-config man page for more details.
21683
21684 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21685 See \`config.log' for more details." >&2;}
21686    { (exit 1); exit 1; }; }
21687 else
21688         XMMS2_CFLAGS=$pkg_cv_XMMS2_CFLAGS
21689         XMMS2_LIBS=$pkg_cv_XMMS2_LIBS
21690         { echo "$as_me:$LINENO: result: yes" >&5
21691 echo "${ECHO_T}yes" >&6; }
21692         :
21693 fi
21694     conky_CFLAGS="$conky_CFLAGS $XMMS2_CFLAGS"
21695     conky_LIBS="$conky_LIBS $XMMS2_LIBS"
21696
21697 cat >>confdefs.h <<\_ACEOF
21698 #define XMMS2 1
21699 _ACEOF
21700
21701 fi
21702
21703
21704 # Check whether --enable-curl was given.
21705 if test "${enable_curl+set}" = set; then
21706   enableval=$enable_curl; want_curl="$enableval"
21707 else
21708   want_curl=no
21709 fi
21710
21711
21712
21713 # Check whether --enable-eve was given.
21714 if test "${enable_eve+set}" = set; then
21715   enableval=$enable_eve; want_eve="$enableval"
21716 else
21717   want_eve=no
21718 fi
21719
21720
21721
21722
21723 if test x$want_eve = xyes; then
21724   BUILD_EVE_TRUE=
21725   BUILD_EVE_FALSE='#'
21726 else
21727   BUILD_EVE_TRUE='#'
21728   BUILD_EVE_FALSE=
21729 fi
21730
21731 if test x$want_eve = xyes; then
21732         want_curl=yes
21733         want_libxml2=yes
21734
21735 cat >>confdefs.h <<\_ACEOF
21736 #define EVE 1
21737 _ACEOF
21738
21739
21740 cat >>confdefs.h <<\_ACEOF
21741 #define EVEURL_TRAINING "http://api.eve-online.com/char/SkillInTraining.xml.aspx"
21742 _ACEOF
21743
21744
21745 cat >>confdefs.h <<\_ACEOF
21746 #define EVEURL_SKILLTREE "http://api.eve-online.com/eve/Skilltree.xml.aspx"
21747 _ACEOF
21748
21749
21750 cat >>confdefs.h <<\_ACEOF
21751 #define MY_ENCODING "ISO-8859-1"
21752 _ACEOF
21753
21754
21755 cat >>confdefs.h <<\_ACEOF
21756 #define EVE_OUTPUT_FORMAT "%s %d in %s"
21757 _ACEOF
21758
21759 fi
21760
21761
21762 # Check whether --enable-rss was given.
21763 if test "${enable_rss+set}" = set; then
21764   enableval=$enable_rss; want_rss="$enableval"
21765 else
21766   want_rss=no
21767 fi
21768
21769 #
21770
21771
21772 if test x$want_rss = xyes; then
21773   BUILD_RSS_TRUE=
21774   BUILD_RSS_FALSE='#'
21775 else
21776   BUILD_RSS_TRUE='#'
21777   BUILD_RSS_FALSE=
21778 fi
21779
21780 if test x$want_rss = xyes; then
21781         WANT_GLIB=yes
21782         want_curl=yes
21783         want_libxml2=yes
21784
21785 cat >>confdefs.h <<\_ACEOF
21786 #define RSS 1
21787 _ACEOF
21788
21789 fi
21790
21791
21792 # Check whether --enable-weather-metar was given.
21793 if test "${enable_weather_metar+set}" = set; then
21794   enableval=$enable_weather_metar; want_metar="$enableval"
21795 else
21796   want_metar=no
21797 fi
21798
21799
21800 # Check whether --enable-weather-xoap was given.
21801 if test "${enable_weather_xoap+set}" = set; then
21802   enableval=$enable_weather_xoap; want_xoap="$enableval"
21803 else
21804   want_xoap=no
21805 fi
21806
21807 #
21808 if test x$want_xoap = xyes; then
21809         want_metar=yes
21810 fi
21811
21812
21813 if test x$want_metar = xyes; then
21814   BUILD_WEATHER_TRUE=
21815   BUILD_WEATHER_FALSE='#'
21816 else
21817   BUILD_WEATHER_TRUE='#'
21818   BUILD_WEATHER_FALSE=
21819 fi
21820
21821
21822
21823 if test x$want_xoap = xyes; then
21824   BUILD_XOAP_TRUE=
21825   BUILD_XOAP_FALSE='#'
21826 else
21827   BUILD_XOAP_TRUE='#'
21828   BUILD_XOAP_FALSE=
21829 fi
21830
21831 if test x$want_metar = xyes; then
21832         if test x$want_xoap = xyes; then
21833                 want_libxml2=yes
21834
21835 cat >>confdefs.h <<\_ACEOF
21836 #define XOAP 1
21837 _ACEOF
21838
21839
21840 cat >>confdefs.h <<\_ACEOF
21841 #define XOAP_FILE "$HOME/.xoaprc"
21842 _ACEOF
21843
21844         fi
21845         want_curl=yes
21846
21847 cat >>confdefs.h <<\_ACEOF
21848 #define WEATHER 1
21849 _ACEOF
21850
21851 fi
21852
21853
21854 # Check whether --enable-x11 was given.
21855 if test "${enable_x11+set}" = set; then
21856   enableval=$enable_x11; want_x11="$enableval"
21857 else
21858   want_x11=yes
21859 fi
21860
21861
21862
21863
21864 if test x$want_x11 = xyes; then
21865   BUILD_X11_TRUE=
21866   BUILD_X11_FALSE='#'
21867 else
21868   BUILD_X11_TRUE='#'
21869   BUILD_X11_FALSE=
21870 fi
21871
21872 if test "x$want_x11" = "xyes"; then
21873     if $PKG_CONFIG --exists x11; then
21874
21875 pkg_failed=no
21876 { echo "$as_me:$LINENO: checking for X11" >&5
21877 echo $ECHO_N "checking for X11... $ECHO_C" >&6; }
21878
21879 if test -n "$PKG_CONFIG"; then
21880     if test -n "$X11_CFLAGS"; then
21881         pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21882     else
21883         if test -n "$PKG_CONFIG" && \
21884     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
21885   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; then
21889   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
21890 else
21891   pkg_failed=yes
21892 fi
21893     fi
21894 else
21895         pkg_failed=untried
21896 fi
21897 if test -n "$PKG_CONFIG"; then
21898     if test -n "$X11_LIBS"; then
21899         pkg_cv_X11_LIBS="$X11_LIBS"
21900     else
21901         if test -n "$PKG_CONFIG" && \
21902     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
21903   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; then
21907   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
21908 else
21909   pkg_failed=yes
21910 fi
21911     fi
21912 else
21913         pkg_failed=untried
21914 fi
21915
21916
21917
21918 if test $pkg_failed = yes; then
21919
21920 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21921         _pkg_short_errors_supported=yes
21922 else
21923         _pkg_short_errors_supported=no
21924 fi
21925         if test $_pkg_short_errors_supported = yes; then
21926                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
21927         else
21928                 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
21929         fi
21930         # Put the nasty error message in config.log where it belongs
21931         echo "$X11_PKG_ERRORS" >&5
21932
21933         { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
21934
21935 $X11_PKG_ERRORS
21936
21937 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21938 installed software in a non-standard prefix.
21939
21940 Alternatively, you may set the environment variables X11_CFLAGS
21941 and X11_LIBS to avoid the need to call pkg-config.
21942 See the pkg-config man page for more details.
21943 " >&5
21944 echo "$as_me: error: Package requirements (x11) were not met:
21945
21946 $X11_PKG_ERRORS
21947
21948 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21949 installed software in a non-standard prefix.
21950
21951 Alternatively, you may set the environment variables X11_CFLAGS
21952 and X11_LIBS to avoid the need to call pkg-config.
21953 See the pkg-config man page for more details.
21954 " >&2;}
21955    { (exit 1); exit 1; }; }
21956 elif test $pkg_failed = untried; then
21957         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21958 is in your PATH or set the PKG_CONFIG environment variable to the full
21959 path to pkg-config.
21960
21961 Alternatively, you may set the environment variables X11_CFLAGS
21962 and X11_LIBS to avoid the need to call pkg-config.
21963 See the pkg-config man page for more details.
21964
21965 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21966 See \`config.log' for more details." >&5
21967 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21968 is in your PATH or set the PKG_CONFIG environment variable to the full
21969 path to pkg-config.
21970
21971 Alternatively, you may set the environment variables X11_CFLAGS
21972 and X11_LIBS to avoid the need to call pkg-config.
21973 See the pkg-config man page for more details.
21974
21975 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21976 See \`config.log' for more details." >&2;}
21977    { (exit 1); exit 1; }; }
21978 else
21979         X11_CFLAGS=$pkg_cv_X11_CFLAGS
21980         X11_LIBS=$pkg_cv_X11_LIBS
21981         { echo "$as_me:$LINENO: result: yes" >&5
21982 echo "${ECHO_T}yes" >&6; }
21983         :
21984 fi
21985       conky_CFLAGS="$conky_CFLAGS $X11_CFLAGS"
21986       conky_LIBS="$conky_LIBS $X11_LIBS"
21987     else
21988             { echo "$as_me:$LINENO: checking for X" >&5
21989 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21990
21991
21992 # Check whether --with-x was given.
21993 if test "${with_x+set}" = set; then
21994   withval=$with_x;
21995 fi
21996
21997 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21998 if test "x$with_x" = xno; then
21999   # The user explicitly disabled X.
22000   have_x=disabled
22001 else
22002   case $x_includes,$x_libraries in #(
22003     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22004 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22005    { (exit 1); exit 1; }; };; #(
22006     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   # One or both of the vars are not set, and there is no cached value.
22010 ac_x_includes=no ac_x_libraries=no
22011 rm -f -r conftest.dir
22012 if mkdir conftest.dir; then
22013   cd conftest.dir
22014   cat >Imakefile <<'_ACEOF'
22015 incroot:
22016         @echo incroot='${INCROOT}'
22017 usrlibdir:
22018         @echo usrlibdir='${USRLIBDIR}'
22019 libdir:
22020         @echo libdir='${LIBDIR}'
22021 _ACEOF
22022   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22023     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22024     for ac_var in incroot usrlibdir libdir; do
22025       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22026     done
22027     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22028     for ac_extension in a so sl; do
22029       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22030          test -f "$ac_im_libdir/libX11.$ac_extension"; then
22031         ac_im_usrlibdir=$ac_im_libdir; break
22032       fi
22033     done
22034     # Screen out bogus values from the imake configuration.  They are
22035     # bogus both because they are the default anyway, and because
22036     # using them would break gcc on systems where it needs fixed includes.
22037     case $ac_im_incroot in
22038         /usr/include) ac_x_includes= ;;
22039         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22040     esac
22041     case $ac_im_usrlibdir in
22042         /usr/lib | /lib) ;;
22043         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22044     esac
22045   fi
22046   cd ..
22047   rm -f -r conftest.dir
22048 fi
22049
22050 # Standard set of common directories for X headers.
22051 # Check X11 before X11Rn because it is often a symlink to the current release.
22052 ac_x_header_dirs='
22053 /usr/X11/include
22054 /usr/X11R6/include
22055 /usr/X11R5/include
22056 /usr/X11R4/include
22057
22058 /usr/include/X11
22059 /usr/include/X11R6
22060 /usr/include/X11R5
22061 /usr/include/X11R4
22062
22063 /usr/local/X11/include
22064 /usr/local/X11R6/include
22065 /usr/local/X11R5/include
22066 /usr/local/X11R4/include
22067
22068 /usr/local/include/X11
22069 /usr/local/include/X11R6
22070 /usr/local/include/X11R5
22071 /usr/local/include/X11R4
22072
22073 /usr/X386/include
22074 /usr/x386/include
22075 /usr/XFree86/include/X11
22076
22077 /usr/include
22078 /usr/local/include
22079 /usr/unsupported/include
22080 /usr/athena/include
22081 /usr/local/x11r5/include
22082 /usr/lpp/Xamples/include
22083
22084 /usr/openwin/include
22085 /usr/openwin/share/include'
22086
22087 if test "$ac_x_includes" = no; then
22088   # Guess where to find include files, by looking for Xlib.h.
22089   # First, try using that file with no special directory specified.
22090   cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h.  */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h.  */
22096 #include <X11/Xlib.h>
22097 _ACEOF
22098 if { (ac_try="$ac_cpp conftest.$ac_ext"
22099 case "(($ac_try" in
22100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101   *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22105   ac_status=$?
22106   grep -v '^ *+' conftest.er1 >conftest.err
22107   rm -f conftest.er1
22108   cat conftest.err >&5
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); } >/dev/null && {
22111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22112          test ! -s conftest.err
22113        }; then
22114   # We can compile using X headers with no special include directory.
22115 ac_x_includes=
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120   for ac_dir in $ac_x_header_dirs; do
22121   if test -r "$ac_dir/X11/Xlib.h"; then
22122     ac_x_includes=$ac_dir
22123     break
22124   fi
22125 done
22126 fi
22127
22128 rm -f conftest.err conftest.$ac_ext
22129 fi # $ac_x_includes = no
22130
22131 if test "$ac_x_libraries" = no; then
22132   # Check for the libraries.
22133   # See if we find them without any special options.
22134   # Don't add to $LIBS permanently.
22135   ac_save_LIBS=$LIBS
22136   LIBS="-lX11 $LIBS"
22137   cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 #include <X11/Xlib.h>
22144 int
22145 main ()
22146 {
22147 XrmInitialize ()
22148   ;
22149   return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest.$ac_objext conftest$ac_exeext
22153 if { (ac_try="$ac_link"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_link") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && {
22166          test -z "$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        } && test -s conftest$ac_exeext &&
22169        $as_test_x conftest$ac_exeext; then
22170   LIBS=$ac_save_LIBS
22171 # We can link X programs with no special library path.
22172 ac_x_libraries=
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177         LIBS=$ac_save_LIBS
22178 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22179 do
22180   # Don't even attempt the hair of trying to link an X program!
22181   for ac_extension in a so sl; do
22182     if test -r "$ac_dir/libX11.$ac_extension"; then
22183       ac_x_libraries=$ac_dir
22184       break 2
22185     fi
22186   done
22187 done
22188 fi
22189
22190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22191       conftest$ac_exeext conftest.$ac_ext
22192 fi # $ac_x_libraries = no
22193
22194 case $ac_x_includes,$ac_x_libraries in #(
22195   no,* | *,no | *\'*)
22196     # Didn't find X, or a directory has "'" in its name.
22197     ac_cv_have_x="have_x=no";; #(
22198   *)
22199     # Record where we found X for the cache.
22200     ac_cv_have_x="have_x=yes\
22201         ac_x_includes='$ac_x_includes'\
22202         ac_x_libraries='$ac_x_libraries'"
22203 esac
22204 fi
22205 ;; #(
22206     *) have_x=yes;;
22207   esac
22208   eval "$ac_cv_have_x"
22209 fi # $with_x != no
22210
22211 if test "$have_x" != yes; then
22212   { echo "$as_me:$LINENO: result: $have_x" >&5
22213 echo "${ECHO_T}$have_x" >&6; }
22214   no_x=yes
22215 else
22216   # If each of the values was on the command line, it overrides each guess.
22217   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22218   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22219   # Update the cache value to reflect the command line values.
22220   ac_cv_have_x="have_x=yes\
22221         ac_x_includes='$x_includes'\
22222         ac_x_libraries='$x_libraries'"
22223   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22224 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22225 fi
22226
22227       if test "$no_x" = yes; then
22228   # Not all programs may use this symbol, but it does not hurt to define it.
22229
22230 cat >>confdefs.h <<\_ACEOF
22231 #define X_DISPLAY_MISSING 1
22232 _ACEOF
22233
22234   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22235 else
22236   if test -n "$x_includes"; then
22237     X_CFLAGS="$X_CFLAGS -I$x_includes"
22238   fi
22239
22240   # It would also be nice to do this for all -L options, not just this one.
22241   if test -n "$x_libraries"; then
22242     X_LIBS="$X_LIBS -L$x_libraries"
22243     # For Solaris; some versions of Sun CC require a space after -R and
22244     # others require no space.  Words are not sufficient . . . .
22245     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22246 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22247     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22248     ac_xsave_c_werror_flag=$ac_c_werror_flag
22249     ac_c_werror_flag=yes
22250     cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256
22257 int
22258 main ()
22259 {
22260
22261   ;
22262   return 0;
22263 }
22264 _ACEOF
22265 rm -f conftest.$ac_objext conftest$ac_exeext
22266 if { (ac_try="$ac_link"
22267 case "(($ac_try" in
22268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269   *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272   (eval "$ac_link") 2>conftest.er1
22273   ac_status=$?
22274   grep -v '^ *+' conftest.er1 >conftest.err
22275   rm -f conftest.er1
22276   cat conftest.err >&5
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); } && {
22279          test -z "$ac_c_werror_flag" ||
22280          test ! -s conftest.err
22281        } && test -s conftest$ac_exeext &&
22282        $as_test_x conftest$ac_exeext; then
22283   { echo "$as_me:$LINENO: result: no" >&5
22284 echo "${ECHO_T}no" >&6; }
22285        X_LIBS="$X_LIBS -R$x_libraries"
22286 else
22287   echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290         LIBS="$ac_xsave_LIBS -R $x_libraries"
22291        cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297
22298 int
22299 main ()
22300 {
22301
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (ac_try="$ac_link"
22308 case "(($ac_try" in
22309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310   *) ac_try_echo=$ac_try;;
22311 esac
22312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313   (eval "$ac_link") 2>conftest.er1
22314   ac_status=$?
22315   grep -v '^ *+' conftest.er1 >conftest.err
22316   rm -f conftest.er1
22317   cat conftest.err >&5
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); } && {
22320          test -z "$ac_c_werror_flag" ||
22321          test ! -s conftest.err
22322        } && test -s conftest$ac_exeext &&
22323        $as_test_x conftest$ac_exeext; then
22324   { echo "$as_me:$LINENO: result: yes" >&5
22325 echo "${ECHO_T}yes" >&6; }
22326           X_LIBS="$X_LIBS -R $x_libraries"
22327 else
22328   echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331         { echo "$as_me:$LINENO: result: neither works" >&5
22332 echo "${ECHO_T}neither works" >&6; }
22333 fi
22334
22335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22336       conftest$ac_exeext conftest.$ac_ext
22337 fi
22338
22339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22340       conftest$ac_exeext conftest.$ac_ext
22341     ac_c_werror_flag=$ac_xsave_c_werror_flag
22342     LIBS=$ac_xsave_LIBS
22343   fi
22344
22345   # Check for system-dependent libraries X programs must link with.
22346   # Do this before checking for the system-independent R6 libraries
22347   # (-lICE), since we may need -lsocket or whatever for X linking.
22348
22349   if test "$ISC" = yes; then
22350     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22351   else
22352     # Martyn Johnson says this is needed for Ultrix, if the X
22353     # libraries were built with DECnet support.  And Karl Berry says
22354     # the Alpha needs dnet_stub (dnet does not exist).
22355     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22356     cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362
22363 /* Override any GCC internal prototype to avoid an error.
22364    Use char because int might match the return type of a GCC
22365    builtin and then its argument prototype would still apply.  */
22366 #ifdef __cplusplus
22367 extern "C"
22368 #endif
22369 char XOpenDisplay ();
22370 int
22371 main ()
22372 {
22373 return XOpenDisplay ();
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385   (eval "$ac_link") 2>conftest.er1
22386   ac_status=$?
22387   grep -v '^ *+' conftest.er1 >conftest.err
22388   rm -f conftest.er1
22389   cat conftest.err >&5
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); } && {
22392          test -z "$ac_c_werror_flag" ||
22393          test ! -s conftest.err
22394        } && test -s conftest$ac_exeext &&
22395        $as_test_x conftest$ac_exeext; then
22396   :
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22402 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22403 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22404   echo $ECHO_N "(cached) $ECHO_C" >&6
22405 else
22406   ac_check_lib_save_LIBS=$LIBS
22407 LIBS="-ldnet  $LIBS"
22408 cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h.  */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h.  */
22414
22415 /* Override any GCC internal prototype to avoid an error.
22416    Use char because int might match the return type of a GCC
22417    builtin and then its argument prototype would still apply.  */
22418 #ifdef __cplusplus
22419 extern "C"
22420 #endif
22421 char dnet_ntoa ();
22422 int
22423 main ()
22424 {
22425 return dnet_ntoa ();
22426   ;
22427   return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest.$ac_objext conftest$ac_exeext
22431 if { (ac_try="$ac_link"
22432 case "(($ac_try" in
22433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434   *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437   (eval "$ac_link") 2>conftest.er1
22438   ac_status=$?
22439   grep -v '^ *+' conftest.er1 >conftest.err
22440   rm -f conftest.er1
22441   cat conftest.err >&5
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); } && {
22444          test -z "$ac_c_werror_flag" ||
22445          test ! -s conftest.err
22446        } && test -s conftest$ac_exeext &&
22447        $as_test_x conftest$ac_exeext; then
22448   ac_cv_lib_dnet_dnet_ntoa=yes
22449 else
22450   echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453         ac_cv_lib_dnet_dnet_ntoa=no
22454 fi
22455
22456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22457       conftest$ac_exeext conftest.$ac_ext
22458 LIBS=$ac_check_lib_save_LIBS
22459 fi
22460 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22461 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22462 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22463   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22464 fi
22465
22466     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22467       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22468 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22469 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22470   echo $ECHO_N "(cached) $ECHO_C" >&6
22471 else
22472   ac_check_lib_save_LIBS=$LIBS
22473 LIBS="-ldnet_stub  $LIBS"
22474 cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h.  */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h.  */
22480
22481 /* Override any GCC internal prototype to avoid an error.
22482    Use char because int might match the return type of a GCC
22483    builtin and then its argument prototype would still apply.  */
22484 #ifdef __cplusplus
22485 extern "C"
22486 #endif
22487 char dnet_ntoa ();
22488 int
22489 main ()
22490 {
22491 return dnet_ntoa ();
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500   *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503   (eval "$ac_link") 2>conftest.er1
22504   ac_status=$?
22505   grep -v '^ *+' conftest.er1 >conftest.err
22506   rm -f conftest.er1
22507   cat conftest.err >&5
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } && {
22510          test -z "$ac_c_werror_flag" ||
22511          test ! -s conftest.err
22512        } && test -s conftest$ac_exeext &&
22513        $as_test_x conftest$ac_exeext; then
22514   ac_cv_lib_dnet_stub_dnet_ntoa=yes
22515 else
22516   echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22518
22519         ac_cv_lib_dnet_stub_dnet_ntoa=no
22520 fi
22521
22522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22523       conftest$ac_exeext conftest.$ac_ext
22524 LIBS=$ac_check_lib_save_LIBS
22525 fi
22526 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22527 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22528 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22529   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22530 fi
22531
22532     fi
22533 fi
22534
22535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22536       conftest$ac_exeext conftest.$ac_ext
22537     LIBS="$ac_xsave_LIBS"
22538
22539     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22540     # to get the SysV transport functions.
22541     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22542     # needs -lnsl.
22543     # The nsl library prevents programs from opening the X display
22544     # on Irix 5.2, according to T.E. Dickey.
22545     # The functions gethostbyname, getservbyname, and inet_addr are
22546     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22547     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22548 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22549 if test "${ac_cv_func_gethostbyname+set}" = set; then
22550   echo $ECHO_N "(cached) $ECHO_C" >&6
22551 else
22552   cat >conftest.$ac_ext <<_ACEOF
22553 /* confdefs.h.  */
22554 _ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h.  */
22558 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22560 #define gethostbyname innocuous_gethostbyname
22561
22562 /* System header to define __stub macros and hopefully few prototypes,
22563     which can conflict with char gethostbyname (); below.
22564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22565     <limits.h> exists even on freestanding compilers.  */
22566
22567 #ifdef __STDC__
22568 # include <limits.h>
22569 #else
22570 # include <assert.h>
22571 #endif
22572
22573 #undef gethostbyname
22574
22575 /* Override any GCC internal prototype to avoid an error.
22576    Use char because int might match the return type of a GCC
22577    builtin and then its argument prototype would still apply.  */
22578 #ifdef __cplusplus
22579 extern "C"
22580 #endif
22581 char gethostbyname ();
22582 /* The GNU C library defines this for functions which it implements
22583     to always fail with ENOSYS.  Some functions are actually named
22584     something starting with __ and the normal name is an alias.  */
22585 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22586 choke me
22587 #endif
22588
22589 int
22590 main ()
22591 {
22592 return gethostbyname ();
22593   ;
22594   return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (ac_try="$ac_link"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604   (eval "$ac_link") 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } && {
22611          test -z "$ac_c_werror_flag" ||
22612          test ! -s conftest.err
22613        } && test -s conftest$ac_exeext &&
22614        $as_test_x conftest$ac_exeext; then
22615   ac_cv_func_gethostbyname=yes
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         ac_cv_func_gethostbyname=no
22621 fi
22622
22623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22624       conftest$ac_exeext conftest.$ac_ext
22625 fi
22626 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22627 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22628
22629     if test $ac_cv_func_gethostbyname = no; then
22630       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22631 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22632 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22633   echo $ECHO_N "(cached) $ECHO_C" >&6
22634 else
22635   ac_check_lib_save_LIBS=$LIBS
22636 LIBS="-lnsl  $LIBS"
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643
22644 /* Override any GCC internal prototype to avoid an error.
22645    Use char because int might match the return type of a GCC
22646    builtin and then its argument prototype would still apply.  */
22647 #ifdef __cplusplus
22648 extern "C"
22649 #endif
22650 char gethostbyname ();
22651 int
22652 main ()
22653 {
22654 return gethostbyname ();
22655   ;
22656   return 0;
22657 }
22658 _ACEOF
22659 rm -f conftest.$ac_objext conftest$ac_exeext
22660 if { (ac_try="$ac_link"
22661 case "(($ac_try" in
22662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663   *) ac_try_echo=$ac_try;;
22664 esac
22665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666   (eval "$ac_link") 2>conftest.er1
22667   ac_status=$?
22668   grep -v '^ *+' conftest.er1 >conftest.err
22669   rm -f conftest.er1
22670   cat conftest.err >&5
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); } && {
22673          test -z "$ac_c_werror_flag" ||
22674          test ! -s conftest.err
22675        } && test -s conftest$ac_exeext &&
22676        $as_test_x conftest$ac_exeext; then
22677   ac_cv_lib_nsl_gethostbyname=yes
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682         ac_cv_lib_nsl_gethostbyname=no
22683 fi
22684
22685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22686       conftest$ac_exeext conftest.$ac_ext
22687 LIBS=$ac_check_lib_save_LIBS
22688 fi
22689 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22690 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22691 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22692   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22693 fi
22694
22695       if test $ac_cv_lib_nsl_gethostbyname = no; then
22696         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22697 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22698 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22699   echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701   ac_check_lib_save_LIBS=$LIBS
22702 LIBS="-lbsd  $LIBS"
22703 cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709
22710 /* Override any GCC internal prototype to avoid an error.
22711    Use char because int might match the return type of a GCC
22712    builtin and then its argument prototype would still apply.  */
22713 #ifdef __cplusplus
22714 extern "C"
22715 #endif
22716 char gethostbyname ();
22717 int
22718 main ()
22719 {
22720 return gethostbyname ();
22721   ;
22722   return 0;
22723 }
22724 _ACEOF
22725 rm -f conftest.$ac_objext conftest$ac_exeext
22726 if { (ac_try="$ac_link"
22727 case "(($ac_try" in
22728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729   *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732   (eval "$ac_link") 2>conftest.er1
22733   ac_status=$?
22734   grep -v '^ *+' conftest.er1 >conftest.err
22735   rm -f conftest.er1
22736   cat conftest.err >&5
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); } && {
22739          test -z "$ac_c_werror_flag" ||
22740          test ! -s conftest.err
22741        } && test -s conftest$ac_exeext &&
22742        $as_test_x conftest$ac_exeext; then
22743   ac_cv_lib_bsd_gethostbyname=yes
22744 else
22745   echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748         ac_cv_lib_bsd_gethostbyname=no
22749 fi
22750
22751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22752       conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22754 fi
22755 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22756 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22757 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22758   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22759 fi
22760
22761       fi
22762     fi
22763
22764     # lieder@skyler.mavd.honeywell.com says without -lsocket,
22765     # socket/setsockopt and other routines are undefined under SCO ODT
22766     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
22767     # on later versions), says Simon Leinen: it contains gethostby*
22768     # variants that don't use the name server (or something).  -lsocket
22769     # must be given before -lnsl if both are needed.  We assume that
22770     # if connect needs -lnsl, so does gethostbyname.
22771     { echo "$as_me:$LINENO: checking for connect" >&5
22772 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22773 if test "${ac_cv_func_connect+set}" = set; then
22774   echo $ECHO_N "(cached) $ECHO_C" >&6
22775 else
22776   cat >conftest.$ac_ext <<_ACEOF
22777 /* confdefs.h.  */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h.  */
22782 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22784 #define connect innocuous_connect
22785
22786 /* System header to define __stub macros and hopefully few prototypes,
22787     which can conflict with char connect (); below.
22788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22789     <limits.h> exists even on freestanding compilers.  */
22790
22791 #ifdef __STDC__
22792 # include <limits.h>
22793 #else
22794 # include <assert.h>
22795 #endif
22796
22797 #undef connect
22798
22799 /* Override any GCC internal prototype to avoid an error.
22800    Use char because int might match the return type of a GCC
22801    builtin and then its argument prototype would still apply.  */
22802 #ifdef __cplusplus
22803 extern "C"
22804 #endif
22805 char connect ();
22806 /* The GNU C library defines this for functions which it implements
22807     to always fail with ENOSYS.  Some functions are actually named
22808     something starting with __ and the normal name is an alias.  */
22809 #if defined __stub_connect || defined __stub___connect
22810 choke me
22811 #endif
22812
22813 int
22814 main ()
22815 {
22816 return connect ();
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825   *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828   (eval "$ac_link") 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } && {
22835          test -z "$ac_c_werror_flag" ||
22836          test ! -s conftest.err
22837        } && test -s conftest$ac_exeext &&
22838        $as_test_x conftest$ac_exeext; then
22839   ac_cv_func_connect=yes
22840 else
22841   echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844         ac_cv_func_connect=no
22845 fi
22846
22847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22848       conftest$ac_exeext conftest.$ac_ext
22849 fi
22850 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22851 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22852
22853     if test $ac_cv_func_connect = no; then
22854       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22855 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22856 if test "${ac_cv_lib_socket_connect+set}" = set; then
22857   echo $ECHO_N "(cached) $ECHO_C" >&6
22858 else
22859   ac_check_lib_save_LIBS=$LIBS
22860 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22861 cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867
22868 /* Override any GCC internal prototype to avoid an error.
22869    Use char because int might match the return type of a GCC
22870    builtin and then its argument prototype would still apply.  */
22871 #ifdef __cplusplus
22872 extern "C"
22873 #endif
22874 char connect ();
22875 int
22876 main ()
22877 {
22878 return connect ();
22879   ;
22880   return 0;
22881 }
22882 _ACEOF
22883 rm -f conftest.$ac_objext conftest$ac_exeext
22884 if { (ac_try="$ac_link"
22885 case "(($ac_try" in
22886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887   *) ac_try_echo=$ac_try;;
22888 esac
22889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890   (eval "$ac_link") 2>conftest.er1
22891   ac_status=$?
22892   grep -v '^ *+' conftest.er1 >conftest.err
22893   rm -f conftest.er1
22894   cat conftest.err >&5
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); } && {
22897          test -z "$ac_c_werror_flag" ||
22898          test ! -s conftest.err
22899        } && test -s conftest$ac_exeext &&
22900        $as_test_x conftest$ac_exeext; then
22901   ac_cv_lib_socket_connect=yes
22902 else
22903   echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22905
22906         ac_cv_lib_socket_connect=no
22907 fi
22908
22909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22910       conftest$ac_exeext conftest.$ac_ext
22911 LIBS=$ac_check_lib_save_LIBS
22912 fi
22913 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22914 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22915 if test $ac_cv_lib_socket_connect = yes; then
22916   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22917 fi
22918
22919     fi
22920
22921     # Guillermo Gomez says -lposix is necessary on A/UX.
22922     { echo "$as_me:$LINENO: checking for remove" >&5
22923 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22924 if test "${ac_cv_func_remove+set}" = set; then
22925   echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927   cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22935 #define remove innocuous_remove
22936
22937 /* System header to define __stub macros and hopefully few prototypes,
22938     which can conflict with char remove (); below.
22939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940     <limits.h> exists even on freestanding compilers.  */
22941
22942 #ifdef __STDC__
22943 # include <limits.h>
22944 #else
22945 # include <assert.h>
22946 #endif
22947
22948 #undef remove
22949
22950 /* Override any GCC internal prototype to avoid an error.
22951    Use char because int might match the return type of a GCC
22952    builtin and then its argument prototype would still apply.  */
22953 #ifdef __cplusplus
22954 extern "C"
22955 #endif
22956 char remove ();
22957 /* The GNU C library defines this for functions which it implements
22958     to always fail with ENOSYS.  Some functions are actually named
22959     something starting with __ and the normal name is an alias.  */
22960 #if defined __stub_remove || defined __stub___remove
22961 choke me
22962 #endif
22963
22964 int
22965 main ()
22966 {
22967 return remove ();
22968   ;
22969   return 0;
22970 }
22971 _ACEOF
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (ac_try="$ac_link"
22974 case "(($ac_try" in
22975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976   *) ac_try_echo=$ac_try;;
22977 esac
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979   (eval "$ac_link") 2>conftest.er1
22980   ac_status=$?
22981   grep -v '^ *+' conftest.er1 >conftest.err
22982   rm -f conftest.er1
22983   cat conftest.err >&5
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } && {
22986          test -z "$ac_c_werror_flag" ||
22987          test ! -s conftest.err
22988        } && test -s conftest$ac_exeext &&
22989        $as_test_x conftest$ac_exeext; then
22990   ac_cv_func_remove=yes
22991 else
22992   echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22994
22995         ac_cv_func_remove=no
22996 fi
22997
22998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22999       conftest$ac_exeext conftest.$ac_ext
23000 fi
23001 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23002 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23003
23004     if test $ac_cv_func_remove = no; then
23005       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23006 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23007 if test "${ac_cv_lib_posix_remove+set}" = set; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 else
23010   ac_check_lib_save_LIBS=$LIBS
23011 LIBS="-lposix  $LIBS"
23012 cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018
23019 /* Override any GCC internal prototype to avoid an error.
23020    Use char because int might match the return type of a GCC
23021    builtin and then its argument prototype would still apply.  */
23022 #ifdef __cplusplus
23023 extern "C"
23024 #endif
23025 char remove ();
23026 int
23027 main ()
23028 {
23029 return remove ();
23030   ;
23031   return 0;
23032 }
23033 _ACEOF
23034 rm -f conftest.$ac_objext conftest$ac_exeext
23035 if { (ac_try="$ac_link"
23036 case "(($ac_try" in
23037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23038   *) ac_try_echo=$ac_try;;
23039 esac
23040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23041   (eval "$ac_link") 2>conftest.er1
23042   ac_status=$?
23043   grep -v '^ *+' conftest.er1 >conftest.err
23044   rm -f conftest.er1
23045   cat conftest.err >&5
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); } && {
23048          test -z "$ac_c_werror_flag" ||
23049          test ! -s conftest.err
23050        } && test -s conftest$ac_exeext &&
23051        $as_test_x conftest$ac_exeext; then
23052   ac_cv_lib_posix_remove=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057         ac_cv_lib_posix_remove=no
23058 fi
23059
23060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23061       conftest$ac_exeext conftest.$ac_ext
23062 LIBS=$ac_check_lib_save_LIBS
23063 fi
23064 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23065 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23066 if test $ac_cv_lib_posix_remove = yes; then
23067   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23068 fi
23069
23070     fi
23071
23072     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23073     { echo "$as_me:$LINENO: checking for shmat" >&5
23074 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23075 if test "${ac_cv_func_shmat+set}" = set; then
23076   echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078   cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h.  */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h.  */
23084 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23086 #define shmat innocuous_shmat
23087
23088 /* System header to define __stub macros and hopefully few prototypes,
23089     which can conflict with char shmat (); below.
23090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23091     <limits.h> exists even on freestanding compilers.  */
23092
23093 #ifdef __STDC__
23094 # include <limits.h>
23095 #else
23096 # include <assert.h>
23097 #endif
23098
23099 #undef shmat
23100
23101 /* Override any GCC internal prototype to avoid an error.
23102    Use char because int might match the return type of a GCC
23103    builtin and then its argument prototype would still apply.  */
23104 #ifdef __cplusplus
23105 extern "C"
23106 #endif
23107 char shmat ();
23108 /* The GNU C library defines this for functions which it implements
23109     to always fail with ENOSYS.  Some functions are actually named
23110     something starting with __ and the normal name is an alias.  */
23111 #if defined __stub_shmat || defined __stub___shmat
23112 choke me
23113 #endif
23114
23115 int
23116 main ()
23117 {
23118 return shmat ();
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_link") 2>conftest.er1
23131   ac_status=$?
23132   grep -v '^ *+' conftest.er1 >conftest.err
23133   rm -f conftest.er1
23134   cat conftest.err >&5
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && {
23137          test -z "$ac_c_werror_flag" ||
23138          test ! -s conftest.err
23139        } && test -s conftest$ac_exeext &&
23140        $as_test_x conftest$ac_exeext; then
23141   ac_cv_func_shmat=yes
23142 else
23143   echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23145
23146         ac_cv_func_shmat=no
23147 fi
23148
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150       conftest$ac_exeext conftest.$ac_ext
23151 fi
23152 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23153 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
23154
23155     if test $ac_cv_func_shmat = no; then
23156       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23157 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
23158 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23159   echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161   ac_check_lib_save_LIBS=$LIBS
23162 LIBS="-lipc  $LIBS"
23163 cat >conftest.$ac_ext <<_ACEOF
23164 /* confdefs.h.  */
23165 _ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h.  */
23169
23170 /* Override any GCC internal prototype to avoid an error.
23171    Use char because int might match the return type of a GCC
23172    builtin and then its argument prototype would still apply.  */
23173 #ifdef __cplusplus
23174 extern "C"
23175 #endif
23176 char shmat ();
23177 int
23178 main ()
23179 {
23180 return shmat ();
23181   ;
23182   return 0;
23183 }
23184 _ACEOF
23185 rm -f conftest.$ac_objext conftest$ac_exeext
23186 if { (ac_try="$ac_link"
23187 case "(($ac_try" in
23188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189   *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192   (eval "$ac_link") 2>conftest.er1
23193   ac_status=$?
23194   grep -v '^ *+' conftest.er1 >conftest.err
23195   rm -f conftest.er1
23196   cat conftest.err >&5
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } && {
23199          test -z "$ac_c_werror_flag" ||
23200          test ! -s conftest.err
23201        } && test -s conftest$ac_exeext &&
23202        $as_test_x conftest$ac_exeext; then
23203   ac_cv_lib_ipc_shmat=yes
23204 else
23205   echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23207
23208         ac_cv_lib_ipc_shmat=no
23209 fi
23210
23211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23212       conftest$ac_exeext conftest.$ac_ext
23213 LIBS=$ac_check_lib_save_LIBS
23214 fi
23215 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23216 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23217 if test $ac_cv_lib_ipc_shmat = yes; then
23218   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23219 fi
23220
23221     fi
23222   fi
23223
23224   # Check for libraries that X11R6 Xt/Xaw programs need.
23225   ac_save_LDFLAGS=$LDFLAGS
23226   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23227   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23228   # check for ICE first), but we must link in the order -lSM -lICE or
23229   # we get undefined symbols.  So assume we have SM if we have ICE.
23230   # These have to be linked with before -lX11, unlike the other
23231   # libraries we check for below, so use a different variable.
23232   # John Interrante, Karl Berry
23233   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23234 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23235 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23236   echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23238   ac_check_lib_save_LIBS=$LIBS
23239 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23240 cat >conftest.$ac_ext <<_ACEOF
23241 /* confdefs.h.  */
23242 _ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h.  */
23246
23247 /* Override any GCC internal prototype to avoid an error.
23248    Use char because int might match the return type of a GCC
23249    builtin and then its argument prototype would still apply.  */
23250 #ifdef __cplusplus
23251 extern "C"
23252 #endif
23253 char IceConnectionNumber ();
23254 int
23255 main ()
23256 {
23257 return IceConnectionNumber ();
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest.$ac_objext conftest$ac_exeext
23263 if { (ac_try="$ac_link"
23264 case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269   (eval "$ac_link") 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } && {
23276          test -z "$ac_c_werror_flag" ||
23277          test ! -s conftest.err
23278        } && test -s conftest$ac_exeext &&
23279        $as_test_x conftest$ac_exeext; then
23280   ac_cv_lib_ICE_IceConnectionNumber=yes
23281 else
23282   echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23284
23285         ac_cv_lib_ICE_IceConnectionNumber=no
23286 fi
23287
23288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23289       conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23291 fi
23292 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23293 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23294 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23295   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23296 fi
23297
23298   LDFLAGS=$ac_save_LDFLAGS
23299
23300 fi
23301
23302       conky_CFLAGS="$conky_CFLAGS $X_CFLAGS"
23303       conky_LIBS="$conky_LIBS $X_LIBS"
23304       conky_LDFLAGS="$conky_LDFLAGS $conky_LIBS $X_PRE_LIBS"
23305       if test "x$no_x" = "xyes"; then
23306         { { echo "$as_me:$LINENO: error: Can't locate your X11 installation" >&5
23307 echo "$as_me: error: Can't locate your X11 installation" >&2;}
23308    { (exit 1); exit 1; }; }
23309       fi
23310
23311 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
23312 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
23313 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
23314   echo $ECHO_N "(cached) $ECHO_C" >&6
23315 else
23316   ac_check_lib_save_LIBS=$LIBS
23317 LIBS="-lX11  $LIBS"
23318 cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h.  */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h.  */
23324
23325 /* Override any GCC internal prototype to avoid an error.
23326    Use char because int might match the return type of a GCC
23327    builtin and then its argument prototype would still apply.  */
23328 #ifdef __cplusplus
23329 extern "C"
23330 #endif
23331 char XOpenDisplay ();
23332 int
23333 main ()
23334 {
23335 return XOpenDisplay ();
23336   ;
23337   return 0;
23338 }
23339 _ACEOF
23340 rm -f conftest.$ac_objext conftest$ac_exeext
23341 if { (ac_try="$ac_link"
23342 case "(($ac_try" in
23343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344   *) ac_try_echo=$ac_try;;
23345 esac
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347   (eval "$ac_link") 2>conftest.er1
23348   ac_status=$?
23349   grep -v '^ *+' conftest.er1 >conftest.err
23350   rm -f conftest.er1
23351   cat conftest.err >&5
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); } && {
23354          test -z "$ac_c_werror_flag" ||
23355          test ! -s conftest.err
23356        } && test -s conftest$ac_exeext &&
23357        $as_test_x conftest$ac_exeext; then
23358   ac_cv_lib_X11_XOpenDisplay=yes
23359 else
23360   echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363         ac_cv_lib_X11_XOpenDisplay=no
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23367       conftest$ac_exeext conftest.$ac_ext
23368 LIBS=$ac_check_lib_save_LIBS
23369 fi
23370 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
23371 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
23372 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
23373   cat >>confdefs.h <<_ACEOF
23374 #define HAVE_LIBX11 1
23375 _ACEOF
23376
23377   LIBS="-lX11 $LIBS"
23378
23379 else
23380   { { echo "$as_me:$LINENO: error: Could not find XOpenDisplay in -lX11" >&5
23381 echo "$as_me: error: Could not find XOpenDisplay in -lX11" >&2;}
23382    { (exit 1); exit 1; }; }
23383 fi
23384
23385     fi
23386
23387 cat >>confdefs.h <<\_ACEOF
23388 #define X11 1
23389 _ACEOF
23390
23391 fi
23392
23393
23394 # Check whether --enable-argb was given.
23395 if test "${enable_argb+set}" = set; then
23396   enableval=$enable_argb; want_argb="$enableval"
23397 else
23398   want_argb=yes
23399 fi
23400
23401
23402 if test x$want_argb = xyes; then
23403     if test "x$want_x11" != "xyes"; then
23404                 want_argb=no
23405     else
23406
23407 cat >>confdefs.h <<\_ACEOF
23408 #define USE_ARGB 1
23409 _ACEOF
23410
23411     fi
23412 fi
23413
23414
23415 # Check whether --enable-imlib2 was given.
23416 if test "${enable_imlib2+set}" = set; then
23417   enableval=$enable_imlib2; want_imlib2="$enableval"
23418 else
23419   want_imlib2=no
23420 fi
23421
23422 # Check whether --enable-lua-imlib2 was given.
23423 if test "${enable_lua_imlib2+set}" = set; then
23424   enableval=$enable_lua_imlib2; want_lua_imlib2="$enableval"
23425 else
23426   want_lua_imlib2=no
23427 fi
23428
23429
23430 # if lua-imlib2 is enabled, we must force imlib2
23431 if test x$want_lua_imlib2 = xyes; then
23432         want_imlib2=yes
23433 fi
23434
23435 if test x$want_imlib2 = xyes; then
23436         if test "x$want_x11" != "xyes"; then
23437                                 want_imlib2=no
23438         else
23439
23440 pkg_failed=no
23441 { echo "$as_me:$LINENO: checking for Imlib2" >&5
23442 echo $ECHO_N "checking for Imlib2... $ECHO_C" >&6; }
23443
23444 if test -n "$PKG_CONFIG"; then
23445     if test -n "$Imlib2_CFLAGS"; then
23446         pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
23447     else
23448         if test -n "$PKG_CONFIG" && \
23449     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
23450   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; then
23454   pkg_cv_Imlib2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
23455 else
23456   pkg_failed=yes
23457 fi
23458     fi
23459 else
23460         pkg_failed=untried
23461 fi
23462 if test -n "$PKG_CONFIG"; then
23463     if test -n "$Imlib2_LIBS"; then
23464         pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
23465     else
23466         if test -n "$PKG_CONFIG" && \
23467     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
23468   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; then
23472   pkg_cv_Imlib2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
23473 else
23474   pkg_failed=yes
23475 fi
23476     fi
23477 else
23478         pkg_failed=untried
23479 fi
23480
23481
23482
23483 if test $pkg_failed = yes; then
23484
23485 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23486         _pkg_short_errors_supported=yes
23487 else
23488         _pkg_short_errors_supported=no
23489 fi
23490         if test $_pkg_short_errors_supported = yes; then
23491                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
23492         else
23493                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
23494         fi
23495         # Put the nasty error message in config.log where it belongs
23496         echo "$Imlib2_PKG_ERRORS" >&5
23497
23498         { { echo "$as_me:$LINENO: error: Package requirements (imlib2) were not met:
23499
23500 $Imlib2_PKG_ERRORS
23501
23502 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23503 installed software in a non-standard prefix.
23504
23505 Alternatively, you may set the environment variables Imlib2_CFLAGS
23506 and Imlib2_LIBS to avoid the need to call pkg-config.
23507 See the pkg-config man page for more details.
23508 " >&5
23509 echo "$as_me: error: Package requirements (imlib2) were not met:
23510
23511 $Imlib2_PKG_ERRORS
23512
23513 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23514 installed software in a non-standard prefix.
23515
23516 Alternatively, you may set the environment variables Imlib2_CFLAGS
23517 and Imlib2_LIBS to avoid the need to call pkg-config.
23518 See the pkg-config man page for more details.
23519 " >&2;}
23520    { (exit 1); exit 1; }; }
23521 elif test $pkg_failed = untried; then
23522         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23523 is in your PATH or set the PKG_CONFIG environment variable to the full
23524 path to pkg-config.
23525
23526 Alternatively, you may set the environment variables Imlib2_CFLAGS
23527 and Imlib2_LIBS to avoid the need to call pkg-config.
23528 See the pkg-config man page for more details.
23529
23530 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23531 See \`config.log' for more details." >&5
23532 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23533 is in your PATH or set the PKG_CONFIG environment variable to the full
23534 path to pkg-config.
23535
23536 Alternatively, you may set the environment variables Imlib2_CFLAGS
23537 and Imlib2_LIBS to avoid the need to call pkg-config.
23538 See the pkg-config man page for more details.
23539
23540 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23541 See \`config.log' for more details." >&2;}
23542    { (exit 1); exit 1; }; }
23543 else
23544         Imlib2_CFLAGS=$pkg_cv_Imlib2_CFLAGS
23545         Imlib2_LIBS=$pkg_cv_Imlib2_LIBS
23546         { echo "$as_me:$LINENO: result: yes" >&5
23547 echo "${ECHO_T}yes" >&6; }
23548         :
23549 fi
23550                 conky_CFLAGS="$conky_CFLAGS $Imlib2_CFLAGS"
23551                 conky_LIBS="$conky_LIBS $Imlib2_LIBS"
23552
23553 cat >>confdefs.h <<\_ACEOF
23554 #define IMLIB2 1
23555 _ACEOF
23556
23557         fi
23558 fi
23559
23560
23561 if test x$want_imlib2 = xyes; then
23562   BUILD_IMLIB2_TRUE=
23563   BUILD_IMLIB2_FALSE='#'
23564 else
23565   BUILD_IMLIB2_TRUE='#'
23566   BUILD_IMLIB2_FALSE=
23567 fi
23568
23569
23570
23571 # Check whether --enable-lua was given.
23572 if test "${enable_lua+set}" = set; then
23573   enableval=$enable_lua; want_lua="$enableval"
23574 else
23575   want_lua=yes
23576 fi
23577
23578 # Check whether --enable-lua-cairo was given.
23579 if test "${enable_lua_cairo+set}" = set; then
23580   enableval=$enable_lua_cairo; want_lua_cairo="$enableval"
23581 else
23582   want_lua_cairo=no
23583 fi
23584
23585 need_tolua=no
23586 if test x$want_lua_cairo = xyes -o x$want_lua_imlib2 = xyes; then
23587         need_tolua=yes
23588         want_lua=yes
23589 fi
23590
23591
23592
23593 if test x$want_lua = xyes; then
23594   BUILD_LUA_TRUE=
23595   BUILD_LUA_FALSE='#'
23596 else
23597   BUILD_LUA_TRUE='#'
23598   BUILD_LUA_FALSE=
23599 fi
23600
23601 if test x$want_lua = xyes; then
23602
23603 pkg_failed=no
23604 { echo "$as_me:$LINENO: checking for LUA" >&5
23605 echo $ECHO_N "checking for LUA... $ECHO_C" >&6; }
23606
23607 if test -n "$PKG_CONFIG"; then
23608     if test -n "$LUA_CFLAGS"; then
23609         pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23610     else
23611         if test -n "$PKG_CONFIG" && \
23612     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23613   ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23614   ac_status=$?
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); }; then
23617   pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23618 else
23619   pkg_failed=yes
23620 fi
23621     fi
23622 else
23623         pkg_failed=untried
23624 fi
23625 if test -n "$PKG_CONFIG"; then
23626     if test -n "$LUA_LIBS"; then
23627         pkg_cv_LUA_LIBS="$LUA_LIBS"
23628     else
23629         if test -n "$PKG_CONFIG" && \
23630     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23631   ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23632   ac_status=$?
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); }; then
23635   pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23636 else
23637   pkg_failed=yes
23638 fi
23639     fi
23640 else
23641         pkg_failed=untried
23642 fi
23643
23644
23645
23646 if test $pkg_failed = yes; then
23647
23648 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23649         _pkg_short_errors_supported=yes
23650 else
23651         _pkg_short_errors_supported=no
23652 fi
23653         if test $_pkg_short_errors_supported = yes; then
23654                 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
23655         else
23656                 LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
23657         fi
23658         # Put the nasty error message in config.log where it belongs
23659         echo "$LUA_PKG_ERRORS" >&5
23660
23661         { echo "$as_me:$LINENO: result: no" >&5
23662 echo "${ECHO_T}no" >&6; }
23663
23664
23665 pkg_failed=no
23666 { echo "$as_me:$LINENO: checking for LUA51" >&5
23667 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23668
23669 if test -n "$PKG_CONFIG"; then
23670     if test -n "$LUA51_CFLAGS"; then
23671         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23672     else
23673         if test -n "$PKG_CONFIG" && \
23674     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23675   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); }; then
23679   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
23680 else
23681   pkg_failed=yes
23682 fi
23683     fi
23684 else
23685         pkg_failed=untried
23686 fi
23687 if test -n "$PKG_CONFIG"; then
23688     if test -n "$LUA51_LIBS"; then
23689         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23690     else
23691         if test -n "$PKG_CONFIG" && \
23692     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23693   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23694   ac_status=$?
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); }; then
23697   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
23698 else
23699   pkg_failed=yes
23700 fi
23701     fi
23702 else
23703         pkg_failed=untried
23704 fi
23705
23706
23707
23708 if test $pkg_failed = yes; then
23709
23710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23711         _pkg_short_errors_supported=yes
23712 else
23713         _pkg_short_errors_supported=no
23714 fi
23715         if test $_pkg_short_errors_supported = yes; then
23716                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
23717         else
23718                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
23719         fi
23720         # Put the nasty error message in config.log where it belongs
23721         echo "$LUA51_PKG_ERRORS" >&5
23722
23723         { echo "$as_me:$LINENO: result: no" >&5
23724 echo "${ECHO_T}no" >&6; }
23725
23726
23727 pkg_failed=no
23728 { echo "$as_me:$LINENO: checking for LUA51" >&5
23729 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23730
23731 if test -n "$PKG_CONFIG"; then
23732     if test -n "$LUA51_CFLAGS"; then
23733         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23734     else
23735         if test -n "$PKG_CONFIG" && \
23736     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23737   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23738   ac_status=$?
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); }; then
23741   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
23742 else
23743   pkg_failed=yes
23744 fi
23745     fi
23746 else
23747         pkg_failed=untried
23748 fi
23749 if test -n "$PKG_CONFIG"; then
23750     if test -n "$LUA51_LIBS"; then
23751         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23752     else
23753         if test -n "$PKG_CONFIG" && \
23754     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23755   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; then
23759   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
23760 else
23761   pkg_failed=yes
23762 fi
23763     fi
23764 else
23765         pkg_failed=untried
23766 fi
23767
23768
23769
23770 if test $pkg_failed = yes; then
23771
23772 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23773         _pkg_short_errors_supported=yes
23774 else
23775         _pkg_short_errors_supported=no
23776 fi
23777         if test $_pkg_short_errors_supported = yes; then
23778                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23779         else
23780                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23781         fi
23782         # Put the nasty error message in config.log where it belongs
23783         echo "$LUA51_PKG_ERRORS" >&5
23784
23785         { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
23786
23787 $LUA51_PKG_ERRORS
23788
23789 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23790 installed software in a non-standard prefix.
23791
23792 Alternatively, you may set the environment variables LUA51_CFLAGS
23793 and LUA51_LIBS to avoid the need to call pkg-config.
23794 See the pkg-config man page for more details.
23795 " >&5
23796 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
23797
23798 $LUA51_PKG_ERRORS
23799
23800 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23801 installed software in a non-standard prefix.
23802
23803 Alternatively, you may set the environment variables LUA51_CFLAGS
23804 and LUA51_LIBS to avoid the need to call pkg-config.
23805 See the pkg-config man page for more details.
23806 " >&2;}
23807    { (exit 1); exit 1; }; }
23808 elif test $pkg_failed = untried; then
23809         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23810 is in your PATH or set the PKG_CONFIG environment variable to the full
23811 path to pkg-config.
23812
23813 Alternatively, you may set the environment variables LUA51_CFLAGS
23814 and LUA51_LIBS to avoid the need to call pkg-config.
23815 See the pkg-config man page for more details.
23816
23817 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23818 See \`config.log' for more details." >&5
23819 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23820 is in your PATH or set the PKG_CONFIG environment variable to the full
23821 path to pkg-config.
23822
23823 Alternatively, you may set the environment variables LUA51_CFLAGS
23824 and LUA51_LIBS to avoid the need to call pkg-config.
23825 See the pkg-config man page for more details.
23826
23827 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23828 See \`config.log' for more details." >&2;}
23829    { (exit 1); exit 1; }; }
23830 else
23831         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
23832         LUA51_LIBS=$pkg_cv_LUA51_LIBS
23833         { echo "$as_me:$LINENO: result: yes" >&5
23834 echo "${ECHO_T}yes" >&6; }
23835         :
23836 fi
23837
23838 elif test $pkg_failed = untried; then
23839
23840
23841 pkg_failed=no
23842 { echo "$as_me:$LINENO: checking for LUA51" >&5
23843 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23844
23845 if test -n "$PKG_CONFIG"; then
23846     if test -n "$LUA51_CFLAGS"; then
23847         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23848     else
23849         if test -n "$PKG_CONFIG" && \
23850     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23851   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23852   ac_status=$?
23853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854   (exit $ac_status); }; then
23855   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
23856 else
23857   pkg_failed=yes
23858 fi
23859     fi
23860 else
23861         pkg_failed=untried
23862 fi
23863 if test -n "$PKG_CONFIG"; then
23864     if test -n "$LUA51_LIBS"; then
23865         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23866     else
23867         if test -n "$PKG_CONFIG" && \
23868     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23869   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23870   ac_status=$?
23871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872   (exit $ac_status); }; then
23873   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
23874 else
23875   pkg_failed=yes
23876 fi
23877     fi
23878 else
23879         pkg_failed=untried
23880 fi
23881
23882
23883
23884 if test $pkg_failed = yes; then
23885
23886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23887         _pkg_short_errors_supported=yes
23888 else
23889         _pkg_short_errors_supported=no
23890 fi
23891         if test $_pkg_short_errors_supported = yes; then
23892                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23893         else
23894                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23895         fi
23896         # Put the nasty error message in config.log where it belongs
23897         echo "$LUA51_PKG_ERRORS" >&5
23898
23899         { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
23900
23901 $LUA51_PKG_ERRORS
23902
23903 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23904 installed software in a non-standard prefix.
23905
23906 Alternatively, you may set the environment variables LUA51_CFLAGS
23907 and LUA51_LIBS to avoid the need to call pkg-config.
23908 See the pkg-config man page for more details.
23909 " >&5
23910 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
23911
23912 $LUA51_PKG_ERRORS
23913
23914 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23915 installed software in a non-standard prefix.
23916
23917 Alternatively, you may set the environment variables LUA51_CFLAGS
23918 and LUA51_LIBS to avoid the need to call pkg-config.
23919 See the pkg-config man page for more details.
23920 " >&2;}
23921    { (exit 1); exit 1; }; }
23922 elif test $pkg_failed = untried; then
23923         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23924 is in your PATH or set the PKG_CONFIG environment variable to the full
23925 path to pkg-config.
23926
23927 Alternatively, you may set the environment variables LUA51_CFLAGS
23928 and LUA51_LIBS to avoid the need to call pkg-config.
23929 See the pkg-config man page for more details.
23930
23931 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23932 See \`config.log' for more details." >&5
23933 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23934 is in your PATH or set the PKG_CONFIG environment variable to the full
23935 path to pkg-config.
23936
23937 Alternatively, you may set the environment variables LUA51_CFLAGS
23938 and LUA51_LIBS to avoid the need to call pkg-config.
23939 See the pkg-config man page for more details.
23940
23941 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23942 See \`config.log' for more details." >&2;}
23943    { (exit 1); exit 1; }; }
23944 else
23945         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
23946         LUA51_LIBS=$pkg_cv_LUA51_LIBS
23947         { echo "$as_me:$LINENO: result: yes" >&5
23948 echo "${ECHO_T}yes" >&6; }
23949         :
23950 fi
23951
23952 else
23953         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
23954         LUA51_LIBS=$pkg_cv_LUA51_LIBS
23955         { echo "$as_me:$LINENO: result: yes" >&5
23956 echo "${ECHO_T}yes" >&6; }
23957
23958 fi
23959
23960 elif test $pkg_failed = untried; then
23961
23962
23963 pkg_failed=no
23964 { echo "$as_me:$LINENO: checking for LUA51" >&5
23965 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23966
23967 if test -n "$PKG_CONFIG"; then
23968     if test -n "$LUA51_CFLAGS"; then
23969         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23970     else
23971         if test -n "$PKG_CONFIG" && \
23972     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23973   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23974   ac_status=$?
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); }; then
23977   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
23978 else
23979   pkg_failed=yes
23980 fi
23981     fi
23982 else
23983         pkg_failed=untried
23984 fi
23985 if test -n "$PKG_CONFIG"; then
23986     if test -n "$LUA51_LIBS"; then
23987         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23988     else
23989         if test -n "$PKG_CONFIG" && \
23990     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23991   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23992   ac_status=$?
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); }; then
23995   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
23996 else
23997   pkg_failed=yes
23998 fi
23999     fi
24000 else
24001         pkg_failed=untried
24002 fi
24003
24004
24005
24006 if test $pkg_failed = yes; then
24007
24008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24009         _pkg_short_errors_supported=yes
24010 else
24011         _pkg_short_errors_supported=no
24012 fi
24013         if test $_pkg_short_errors_supported = yes; then
24014                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
24015         else
24016                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
24017         fi
24018         # Put the nasty error message in config.log where it belongs
24019         echo "$LUA51_PKG_ERRORS" >&5
24020
24021         { echo "$as_me:$LINENO: result: no" >&5
24022 echo "${ECHO_T}no" >&6; }
24023
24024
24025 pkg_failed=no
24026 { echo "$as_me:$LINENO: checking for LUA51" >&5
24027 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
24028
24029 if test -n "$PKG_CONFIG"; then
24030     if test -n "$LUA51_CFLAGS"; then
24031         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
24032     else
24033         if test -n "$PKG_CONFIG" && \
24034     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24035   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24036   ac_status=$?
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); }; then
24039   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
24040 else
24041   pkg_failed=yes
24042 fi
24043     fi
24044 else
24045         pkg_failed=untried
24046 fi
24047 if test -n "$PKG_CONFIG"; then
24048     if test -n "$LUA51_LIBS"; then
24049         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
24050     else
24051         if test -n "$PKG_CONFIG" && \
24052     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24053   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24054   ac_status=$?
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); }; then
24057   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
24058 else
24059   pkg_failed=yes
24060 fi
24061     fi
24062 else
24063         pkg_failed=untried
24064 fi
24065
24066
24067
24068 if test $pkg_failed = yes; then
24069
24070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24071         _pkg_short_errors_supported=yes
24072 else
24073         _pkg_short_errors_supported=no
24074 fi
24075         if test $_pkg_short_errors_supported = yes; then
24076                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24077         else
24078                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24079         fi
24080         # Put the nasty error message in config.log where it belongs
24081         echo "$LUA51_PKG_ERRORS" >&5
24082
24083         { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
24084
24085 $LUA51_PKG_ERRORS
24086
24087 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24088 installed software in a non-standard prefix.
24089
24090 Alternatively, you may set the environment variables LUA51_CFLAGS
24091 and LUA51_LIBS to avoid the need to call pkg-config.
24092 See the pkg-config man page for more details.
24093 " >&5
24094 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
24095
24096 $LUA51_PKG_ERRORS
24097
24098 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24099 installed software in a non-standard prefix.
24100
24101 Alternatively, you may set the environment variables LUA51_CFLAGS
24102 and LUA51_LIBS to avoid the need to call pkg-config.
24103 See the pkg-config man page for more details.
24104 " >&2;}
24105    { (exit 1); exit 1; }; }
24106 elif test $pkg_failed = untried; then
24107         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24108 is in your PATH or set the PKG_CONFIG environment variable to the full
24109 path to pkg-config.
24110
24111 Alternatively, you may set the environment variables LUA51_CFLAGS
24112 and LUA51_LIBS to avoid the need to call pkg-config.
24113 See the pkg-config man page for more details.
24114
24115 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24116 See \`config.log' for more details." >&5
24117 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24118 is in your PATH or set the PKG_CONFIG environment variable to the full
24119 path to pkg-config.
24120
24121 Alternatively, you may set the environment variables LUA51_CFLAGS
24122 and LUA51_LIBS to avoid the need to call pkg-config.
24123 See the pkg-config man page for more details.
24124
24125 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24126 See \`config.log' for more details." >&2;}
24127    { (exit 1); exit 1; }; }
24128 else
24129         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
24130         LUA51_LIBS=$pkg_cv_LUA51_LIBS
24131         { echo "$as_me:$LINENO: result: yes" >&5
24132 echo "${ECHO_T}yes" >&6; }
24133         :
24134 fi
24135
24136 elif test $pkg_failed = untried; then
24137
24138
24139 pkg_failed=no
24140 { echo "$as_me:$LINENO: checking for LUA51" >&5
24141 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
24142
24143 if test -n "$PKG_CONFIG"; then
24144     if test -n "$LUA51_CFLAGS"; then
24145         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
24146     else
24147         if test -n "$PKG_CONFIG" && \
24148     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24149   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; then
24153   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
24154 else
24155   pkg_failed=yes
24156 fi
24157     fi
24158 else
24159         pkg_failed=untried
24160 fi
24161 if test -n "$PKG_CONFIG"; then
24162     if test -n "$LUA51_LIBS"; then
24163         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
24164     else
24165         if test -n "$PKG_CONFIG" && \
24166     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24167   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24168   ac_status=$?
24169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); }; then
24171   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
24172 else
24173   pkg_failed=yes
24174 fi
24175     fi
24176 else
24177         pkg_failed=untried
24178 fi
24179
24180
24181
24182 if test $pkg_failed = yes; then
24183
24184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24185         _pkg_short_errors_supported=yes
24186 else
24187         _pkg_short_errors_supported=no
24188 fi
24189         if test $_pkg_short_errors_supported = yes; then
24190                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24191         else
24192                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24193         fi
24194         # Put the nasty error message in config.log where it belongs
24195         echo "$LUA51_PKG_ERRORS" >&5
24196
24197         { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
24198
24199 $LUA51_PKG_ERRORS
24200
24201 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24202 installed software in a non-standard prefix.
24203
24204 Alternatively, you may set the environment variables LUA51_CFLAGS
24205 and LUA51_LIBS to avoid the need to call pkg-config.
24206 See the pkg-config man page for more details.
24207 " >&5
24208 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
24209
24210 $LUA51_PKG_ERRORS
24211
24212 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24213 installed software in a non-standard prefix.
24214
24215 Alternatively, you may set the environment variables LUA51_CFLAGS
24216 and LUA51_LIBS to avoid the need to call pkg-config.
24217 See the pkg-config man page for more details.
24218 " >&2;}
24219    { (exit 1); exit 1; }; }
24220 elif test $pkg_failed = untried; then
24221         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24222 is in your PATH or set the PKG_CONFIG environment variable to the full
24223 path to pkg-config.
24224
24225 Alternatively, you may set the environment variables LUA51_CFLAGS
24226 and LUA51_LIBS to avoid the need to call pkg-config.
24227 See the pkg-config man page for more details.
24228
24229 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24230 See \`config.log' for more details." >&5
24231 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24232 is in your PATH or set the PKG_CONFIG environment variable to the full
24233 path to pkg-config.
24234
24235 Alternatively, you may set the environment variables LUA51_CFLAGS
24236 and LUA51_LIBS to avoid the need to call pkg-config.
24237 See the pkg-config man page for more details.
24238
24239 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24240 See \`config.log' for more details." >&2;}
24241    { (exit 1); exit 1; }; }
24242 else
24243         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
24244         LUA51_LIBS=$pkg_cv_LUA51_LIBS
24245         { echo "$as_me:$LINENO: result: yes" >&5
24246 echo "${ECHO_T}yes" >&6; }
24247         :
24248 fi
24249
24250 else
24251         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
24252         LUA51_LIBS=$pkg_cv_LUA51_LIBS
24253         { echo "$as_me:$LINENO: result: yes" >&5
24254 echo "${ECHO_T}yes" >&6; }
24255
24256 fi
24257
24258 else
24259         LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
24260         LUA_LIBS=$pkg_cv_LUA_LIBS
24261         { echo "$as_me:$LINENO: result: yes" >&5
24262 echo "${ECHO_T}yes" >&6; }
24263
24264 fi
24265         conky_CFLAGS="$conky_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
24266         conky_LIBS="$conky_LIBS $LUA_LIBS $LUA51_LIBS"
24267
24268         if test x$need_tolua = xyes; then
24269
24270 cat >>confdefs.h <<\_ACEOF
24271 #define LUA_EXTRAS 1
24272 _ACEOF
24273
24274                 if test "x$want_x11" != "xyes"; then
24275                                                 want_lua_cairo=no
24276                 else
24277                         if test x$want_lua_cairo = xyes; then
24278
24279 pkg_failed=no
24280 { echo "$as_me:$LINENO: checking for cairo" >&5
24281 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
24282
24283 if test -n "$PKG_CONFIG"; then
24284     if test -n "$cairo_CFLAGS"; then
24285         pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
24286     else
24287         if test -n "$PKG_CONFIG" && \
24288     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
24289   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
24290   ac_status=$?
24291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292   (exit $ac_status); }; then
24293   pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
24294 else
24295   pkg_failed=yes
24296 fi
24297     fi
24298 else
24299         pkg_failed=untried
24300 fi
24301 if test -n "$PKG_CONFIG"; then
24302     if test -n "$cairo_LIBS"; then
24303         pkg_cv_cairo_LIBS="$cairo_LIBS"
24304     else
24305         if test -n "$PKG_CONFIG" && \
24306     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
24307   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
24308   ac_status=$?
24309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); }; then
24311   pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
24312 else
24313   pkg_failed=yes
24314 fi
24315     fi
24316 else
24317         pkg_failed=untried
24318 fi
24319
24320
24321
24322 if test $pkg_failed = yes; then
24323
24324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24325         _pkg_short_errors_supported=yes
24326 else
24327         _pkg_short_errors_supported=no
24328 fi
24329         if test $_pkg_short_errors_supported = yes; then
24330                 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
24331         else
24332                 cairo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
24333         fi
24334         # Put the nasty error message in config.log where it belongs
24335         echo "$cairo_PKG_ERRORS" >&5
24336
24337         { { echo "$as_me:$LINENO: error: Package requirements (cairo) were not met:
24338
24339 $cairo_PKG_ERRORS
24340
24341 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24342 installed software in a non-standard prefix.
24343
24344 Alternatively, you may set the environment variables cairo_CFLAGS
24345 and cairo_LIBS to avoid the need to call pkg-config.
24346 See the pkg-config man page for more details.
24347 " >&5
24348 echo "$as_me: error: Package requirements (cairo) were not met:
24349
24350 $cairo_PKG_ERRORS
24351
24352 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24353 installed software in a non-standard prefix.
24354
24355 Alternatively, you may set the environment variables cairo_CFLAGS
24356 and cairo_LIBS to avoid the need to call pkg-config.
24357 See the pkg-config man page for more details.
24358 " >&2;}
24359    { (exit 1); exit 1; }; }
24360 elif test $pkg_failed = untried; then
24361         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24362 is in your PATH or set the PKG_CONFIG environment variable to the full
24363 path to pkg-config.
24364
24365 Alternatively, you may set the environment variables cairo_CFLAGS
24366 and cairo_LIBS to avoid the need to call pkg-config.
24367 See the pkg-config man page for more details.
24368
24369 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24370 See \`config.log' for more details." >&5
24371 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24372 is in your PATH or set the PKG_CONFIG environment variable to the full
24373 path to pkg-config.
24374
24375 Alternatively, you may set the environment variables cairo_CFLAGS
24376 and cairo_LIBS to avoid the need to call pkg-config.
24377 See the pkg-config man page for more details.
24378
24379 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24380 See \`config.log' for more details." >&2;}
24381    { (exit 1); exit 1; }; }
24382 else
24383         cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
24384         cairo_LIBS=$pkg_cv_cairo_LIBS
24385         { echo "$as_me:$LINENO: result: yes" >&5
24386 echo "${ECHO_T}yes" >&6; }
24387         :
24388 fi
24389
24390 pkg_failed=no
24391 { echo "$as_me:$LINENO: checking for cairo_xlib" >&5
24392 echo $ECHO_N "checking for cairo_xlib... $ECHO_C" >&6; }
24393
24394 if test -n "$PKG_CONFIG"; then
24395     if test -n "$cairo_xlib_CFLAGS"; then
24396         pkg_cv_cairo_xlib_CFLAGS="$cairo_xlib_CFLAGS"
24397     else
24398         if test -n "$PKG_CONFIG" && \
24399     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\"") >&5
24400   ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
24401   ac_status=$?
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); }; then
24404   pkg_cv_cairo_xlib_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib" 2>/dev/null`
24405 else
24406   pkg_failed=yes
24407 fi
24408     fi
24409 else
24410         pkg_failed=untried
24411 fi
24412 if test -n "$PKG_CONFIG"; then
24413     if test -n "$cairo_xlib_LIBS"; then
24414         pkg_cv_cairo_xlib_LIBS="$cairo_xlib_LIBS"
24415     else
24416         if test -n "$PKG_CONFIG" && \
24417     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\"") >&5
24418   ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
24419   ac_status=$?
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); }; then
24422   pkg_cv_cairo_xlib_LIBS=`$PKG_CONFIG --libs "cairo-xlib" 2>/dev/null`
24423 else
24424   pkg_failed=yes
24425 fi
24426     fi
24427 else
24428         pkg_failed=untried
24429 fi
24430
24431
24432
24433 if test $pkg_failed = yes; then
24434
24435 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24436         _pkg_short_errors_supported=yes
24437 else
24438         _pkg_short_errors_supported=no
24439 fi
24440         if test $_pkg_short_errors_supported = yes; then
24441                 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-xlib"`
24442         else
24443                 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib"`
24444         fi
24445         # Put the nasty error message in config.log where it belongs
24446         echo "$cairo_xlib_PKG_ERRORS" >&5
24447
24448         { { echo "$as_me:$LINENO: error: Package requirements (cairo-xlib) were not met:
24449
24450 $cairo_xlib_PKG_ERRORS
24451
24452 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24453 installed software in a non-standard prefix.
24454
24455 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24456 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24457 See the pkg-config man page for more details.
24458 " >&5
24459 echo "$as_me: error: Package requirements (cairo-xlib) were not met:
24460
24461 $cairo_xlib_PKG_ERRORS
24462
24463 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24464 installed software in a non-standard prefix.
24465
24466 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24467 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24468 See the pkg-config man page for more details.
24469 " >&2;}
24470    { (exit 1); exit 1; }; }
24471 elif test $pkg_failed = untried; then
24472         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24473 is in your PATH or set the PKG_CONFIG environment variable to the full
24474 path to pkg-config.
24475
24476 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24477 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24478 See the pkg-config man page for more details.
24479
24480 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24481 See \`config.log' for more details." >&5
24482 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24483 is in your PATH or set the PKG_CONFIG environment variable to the full
24484 path to pkg-config.
24485
24486 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24487 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24488 See the pkg-config man page for more details.
24489
24490 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24491 See \`config.log' for more details." >&2;}
24492    { (exit 1); exit 1; }; }
24493 else
24494         cairo_xlib_CFLAGS=$pkg_cv_cairo_xlib_CFLAGS
24495         cairo_xlib_LIBS=$pkg_cv_cairo_xlib_LIBS
24496         { echo "$as_me:$LINENO: result: yes" >&5
24497 echo "${ECHO_T}yes" >&6; }
24498         :
24499 fi
24500
24501 cat >>confdefs.h <<\_ACEOF
24502 #define HAVE_LUA_CAIRO 1
24503 _ACEOF
24504
24505                                 libcairo_CFLAGS="$libcairo_CFLAGS $cairo_CFLAGS $cairo_xlib_CFLAGS"
24506                                 libcairo_LIBS="$libcairo_LIBS $cairo_LIBS $cairo_xlib_LIBS"
24507                         fi
24508                         if test x$want_imlib2 = xyes; then
24509
24510 cat >>confdefs.h <<\_ACEOF
24511 #define HAVE_LUA_IMLIB2 1
24512 _ACEOF
24513
24514                         fi
24515                 fi
24516                 for ac_prog in tolua++ tolua++5.1 tolua++-5.1
24517 do
24518   # Extract the first word of "$ac_prog", so it can be a program name with args.
24519 set dummy $ac_prog; ac_word=$2
24520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24522 if test "${ac_cv_prog_toluapp+set}" = set; then
24523   echo $ECHO_N "(cached) $ECHO_C" >&6
24524 else
24525   if test -n "$toluapp"; then
24526   ac_cv_prog_toluapp="$toluapp" # Let the user override the test.
24527 else
24528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24529 for as_dir in $PATH
24530 do
24531   IFS=$as_save_IFS
24532   test -z "$as_dir" && as_dir=.
24533   for ac_exec_ext in '' $ac_executable_extensions; do
24534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24535     ac_cv_prog_toluapp="$ac_prog"
24536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24537     break 2
24538   fi
24539 done
24540 done
24541 IFS=$as_save_IFS
24542
24543 fi
24544 fi
24545 toluapp=$ac_cv_prog_toluapp
24546 if test -n "$toluapp"; then
24547   { echo "$as_me:$LINENO: result: $toluapp" >&5
24548 echo "${ECHO_T}$toluapp" >&6; }
24549 else
24550   { echo "$as_me:$LINENO: result: no" >&5
24551 echo "${ECHO_T}no" >&6; }
24552 fi
24553
24554
24555   test -n "$toluapp" && break
24556 done
24557 test -n "$toluapp" || toluapp="no"
24558
24559                 if test x$toluapp = xno; then
24560                         { { echo "$as_me:$LINENO: error: tolua++, tolua++5.1, or tolua++-5.1 is required for Lua extras." >&5
24561 echo "$as_me: error: tolua++, tolua++5.1, or tolua++-5.1 is required for Lua extras." >&2;}
24562    { (exit 1); exit 1; }; }
24563                 else
24564                         { echo "$as_me:$LINENO: checking for library containing tolua_error" >&5
24565 echo $ECHO_N "checking for library containing tolua_error... $ECHO_C" >&6; }
24566 if test "${ac_cv_search_tolua_error+set}" = set; then
24567   echo $ECHO_N "(cached) $ECHO_C" >&6
24568 else
24569   ac_func_search_save_LIBS=$LIBS
24570 cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h.  */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h.  */
24576
24577 /* Override any GCC internal prototype to avoid an error.
24578    Use char because int might match the return type of a GCC
24579    builtin and then its argument prototype would still apply.  */
24580 #ifdef __cplusplus
24581 extern "C"
24582 #endif
24583 char tolua_error ();
24584 int
24585 main ()
24586 {
24587 return tolua_error ();
24588   ;
24589   return 0;
24590 }
24591 _ACEOF
24592 for ac_lib in '' tolua++-5.1 tolua++ tolua++5.1; do
24593   if test -z "$ac_lib"; then
24594     ac_res="none required"
24595   else
24596     ac_res=-l$ac_lib
24597     LIBS="-l$ac_lib $LUA_LIBS $LUA51_LIBS $ac_func_search_save_LIBS"
24598   fi
24599   rm -f conftest.$ac_objext conftest$ac_exeext
24600 if { (ac_try="$ac_link"
24601 case "(($ac_try" in
24602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603   *) ac_try_echo=$ac_try;;
24604 esac
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606   (eval "$ac_link") 2>conftest.er1
24607   ac_status=$?
24608   grep -v '^ *+' conftest.er1 >conftest.err
24609   rm -f conftest.er1
24610   cat conftest.err >&5
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); } && {
24613          test -z "$ac_c_werror_flag" ||
24614          test ! -s conftest.err
24615        } && test -s conftest$ac_exeext &&
24616        $as_test_x conftest$ac_exeext; then
24617   ac_cv_search_tolua_error=$ac_res
24618 else
24619   echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622
24623 fi
24624
24625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24626       conftest$ac_exeext
24627   if test "${ac_cv_search_tolua_error+set}" = set; then
24628   break
24629 fi
24630 done
24631 if test "${ac_cv_search_tolua_error+set}" = set; then
24632   :
24633 else
24634   ac_cv_search_tolua_error=no
24635 fi
24636 rm conftest.$ac_ext
24637 LIBS=$ac_func_search_save_LIBS
24638 fi
24639 { echo "$as_me:$LINENO: result: $ac_cv_search_tolua_error" >&5
24640 echo "${ECHO_T}$ac_cv_search_tolua_error" >&6; }
24641 ac_res=$ac_cv_search_tolua_error
24642 if test "$ac_res" != no; then
24643   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24644
24645                                                         tolua_LIBS="${LIBS}"
24646
24647                                                         tolua_CFLAGS="${CFLAGS}"
24648
24649
24650 else
24651   { { echo "$as_me:$LINENO: error: tolua_error not found" >&5
24652 echo "$as_me: error: tolua_error not found" >&2;}
24653    { (exit 1); exit 1; }; }
24654 fi
24655
24656                 fi
24657                 conky_LIBS="$conky_LIBS $tolua_LIBS"
24658                 tolua_CFLAGS="$tolua_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
24659                 tolua_LIBS="$tolua_LIBS $LUA_LIBS $LUA51_LIBS"
24660         fi
24661
24662 cat >>confdefs.h <<\_ACEOF
24663 #define HAVE_LUA 1
24664 _ACEOF
24665
24666 fi
24667
24668
24669 if test x$want_lua_cairo = xyes; then
24670   BUILD_LUA_CAIRO_TRUE=
24671   BUILD_LUA_CAIRO_FALSE='#'
24672 else
24673   BUILD_LUA_CAIRO_TRUE='#'
24674   BUILD_LUA_CAIRO_FALSE=
24675 fi
24676
24677
24678
24679 if test x$want_lua_imlib2 = xyes; then
24680   BUILD_LUA_IMLIB2_TRUE=
24681   BUILD_LUA_IMLIB2_FALSE='#'
24682 else
24683   BUILD_LUA_IMLIB2_TRUE='#'
24684   BUILD_LUA_IMLIB2_FALSE=
24685 fi
24686
24687
24688
24689 # Check whether --enable-wlan was given.
24690 if test "${enable_wlan+set}" = set; then
24691   enableval=$enable_wlan; want_wlan="$enableval"
24692 else
24693   want_wlan=no
24694 fi
24695
24696
24697
24698
24699 if test x$want_wlan = xyes; then
24700   BUILD_WLAN_TRUE=
24701   BUILD_WLAN_FALSE='#'
24702 else
24703   BUILD_WLAN_TRUE='#'
24704   BUILD_WLAN_FALSE=
24705 fi
24706
24707 if test x$want_wlan = xyes; then
24708
24709 for ac_header in iwlib.h
24710 do
24711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24713   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24716   echo $ECHO_N "(cached) $ECHO_C" >&6
24717 fi
24718 ac_res=`eval echo '${'$as_ac_Header'}'`
24719                { echo "$as_me:$LINENO: result: $ac_res" >&5
24720 echo "${ECHO_T}$ac_res" >&6; }
24721 else
24722   # Is the header compilable?
24723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24725 cat >conftest.$ac_ext <<_ACEOF
24726 /* confdefs.h.  */
24727 _ACEOF
24728 cat confdefs.h >>conftest.$ac_ext
24729 cat >>conftest.$ac_ext <<_ACEOF
24730 /* end confdefs.h.  */
24731 $ac_includes_default
24732 #include <$ac_header>
24733 _ACEOF
24734 rm -f conftest.$ac_objext
24735 if { (ac_try="$ac_compile"
24736 case "(($ac_try" in
24737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738   *) ac_try_echo=$ac_try;;
24739 esac
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741   (eval "$ac_compile") 2>conftest.er1
24742   ac_status=$?
24743   grep -v '^ *+' conftest.er1 >conftest.err
24744   rm -f conftest.er1
24745   cat conftest.err >&5
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); } && {
24748          test -z "$ac_c_werror_flag" ||
24749          test ! -s conftest.err
24750        } && test -s conftest.$ac_objext; then
24751   ac_header_compiler=yes
24752 else
24753   echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756         ac_header_compiler=no
24757 fi
24758
24759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24761 echo "${ECHO_T}$ac_header_compiler" >&6; }
24762
24763 # Is the header present?
24764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24766 cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 #include <$ac_header>
24773 _ACEOF
24774 if { (ac_try="$ac_cpp conftest.$ac_ext"
24775 case "(($ac_try" in
24776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777   *) ac_try_echo=$ac_try;;
24778 esac
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24781   ac_status=$?
24782   grep -v '^ *+' conftest.er1 >conftest.err
24783   rm -f conftest.er1
24784   cat conftest.err >&5
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); } >/dev/null && {
24787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24788          test ! -s conftest.err
24789        }; then
24790   ac_header_preproc=yes
24791 else
24792   echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795   ac_header_preproc=no
24796 fi
24797
24798 rm -f conftest.err conftest.$ac_ext
24799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24800 echo "${ECHO_T}$ac_header_preproc" >&6; }
24801
24802 # So?  What about this header?
24803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24804   yes:no: )
24805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24809     ac_header_preproc=yes
24810     ;;
24811   no:yes:* )
24812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24824     ( cat <<\_ASBOX
24825 ## --------------------------------------------- ##
24826 ## Report this to brenden1@users.sourceforge.net ##
24827 ## --------------------------------------------- ##
24828 _ASBOX
24829      ) | sed "s/^/$as_me: WARNING:     /" >&2
24830     ;;
24831 esac
24832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24835   echo $ECHO_N "(cached) $ECHO_C" >&6
24836 else
24837   eval "$as_ac_Header=\$ac_header_preproc"
24838 fi
24839 ac_res=`eval echo '${'$as_ac_Header'}'`
24840                { echo "$as_me:$LINENO: result: $ac_res" >&5
24841 echo "${ECHO_T}$ac_res" >&6; }
24842
24843 fi
24844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24845   cat >>confdefs.h <<_ACEOF
24846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24847 _ACEOF
24848
24849 else
24850   { { echo "$as_me:$LINENO: error: iwlib.h header not found" >&5
24851 echo "$as_me: error: iwlib.h header not found" >&2;}
24852    { (exit 1); exit 1; }; }
24853 fi
24854
24855 done
24856
24857   { echo "$as_me:$LINENO: checking for iw_sockets_open in -liw" >&5
24858 echo $ECHO_N "checking for iw_sockets_open in -liw... $ECHO_C" >&6; }
24859 if test "${ac_cv_lib_iw_iw_sockets_open+set}" = set; then
24860   echo $ECHO_N "(cached) $ECHO_C" >&6
24861 else
24862   ac_check_lib_save_LIBS=$LIBS
24863 LIBS="-liw $conky_LIBS $LIBS"
24864 cat >conftest.$ac_ext <<_ACEOF
24865 /* confdefs.h.  */
24866 _ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h.  */
24870
24871 /* Override any GCC internal prototype to avoid an error.
24872    Use char because int might match the return type of a GCC
24873    builtin and then its argument prototype would still apply.  */
24874 #ifdef __cplusplus
24875 extern "C"
24876 #endif
24877 char iw_sockets_open ();
24878 int
24879 main ()
24880 {
24881 return iw_sockets_open ();
24882   ;
24883   return 0;
24884 }
24885 _ACEOF
24886 rm -f conftest.$ac_objext conftest$ac_exeext
24887 if { (ac_try="$ac_link"
24888 case "(($ac_try" in
24889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890   *) ac_try_echo=$ac_try;;
24891 esac
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893   (eval "$ac_link") 2>conftest.er1
24894   ac_status=$?
24895   grep -v '^ *+' conftest.er1 >conftest.err
24896   rm -f conftest.er1
24897   cat conftest.err >&5
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); } && {
24900          test -z "$ac_c_werror_flag" ||
24901          test ! -s conftest.err
24902        } && test -s conftest$ac_exeext &&
24903        $as_test_x conftest$ac_exeext; then
24904   ac_cv_lib_iw_iw_sockets_open=yes
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909         ac_cv_lib_iw_iw_sockets_open=no
24910 fi
24911
24912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24913       conftest$ac_exeext conftest.$ac_ext
24914 LIBS=$ac_check_lib_save_LIBS
24915 fi
24916 { echo "$as_me:$LINENO: result: $ac_cv_lib_iw_iw_sockets_open" >&5
24917 echo "${ECHO_T}$ac_cv_lib_iw_iw_sockets_open" >&6; }
24918 if test $ac_cv_lib_iw_iw_sockets_open = yes; then
24919   conky_LIBS="-liw $conky_LIBS"
24920 else
24921   { { echo "$as_me:$LINENO: error: iw_sockets_open not found" >&5
24922 echo "$as_me: error: iw_sockets_open not found" >&2;}
24923    { (exit 1); exit 1; }; }
24924 fi
24925
24926
24927 cat >>confdefs.h <<\_ACEOF
24928 #define HAVE_IWLIB 1
24929 _ACEOF
24930
24931 fi
24932
24933
24934 # Check whether --enable-portmon was given.
24935 if test "${enable_portmon+set}" = set; then
24936   enableval=$enable_portmon; want_portmon="$enableval"
24937 else
24938   want_portmon=yes
24939 fi
24940
24941
24942 if test x"$want_portmon" = xyes; then
24943   if test x"$uname" != xLinux; then
24944       { echo "$as_me:$LINENO: port monitors not supported on $uname... disabling" >&5
24945 echo "$as_me: port monitors not supported on $uname... disabling" >&6;}
24946       want_portmon="not supported on $uname"
24947   else
24948
24949 for ac_func in getnameinfo
24950 do
24951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24955   echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957   cat >conftest.$ac_ext <<_ACEOF
24958 /* confdefs.h.  */
24959 _ACEOF
24960 cat confdefs.h >>conftest.$ac_ext
24961 cat >>conftest.$ac_ext <<_ACEOF
24962 /* end confdefs.h.  */
24963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24965 #define $ac_func innocuous_$ac_func
24966
24967 /* System header to define __stub macros and hopefully few prototypes,
24968     which can conflict with char $ac_func (); below.
24969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24970     <limits.h> exists even on freestanding compilers.  */
24971
24972 #ifdef __STDC__
24973 # include <limits.h>
24974 #else
24975 # include <assert.h>
24976 #endif
24977
24978 #undef $ac_func
24979
24980 /* Override any GCC internal prototype to avoid an error.
24981    Use char because int might match the return type of a GCC
24982    builtin and then its argument prototype would still apply.  */
24983 #ifdef __cplusplus
24984 extern "C"
24985 #endif
24986 char $ac_func ();
24987 /* The GNU C library defines this for functions which it implements
24988     to always fail with ENOSYS.  Some functions are actually named
24989     something starting with __ and the normal name is an alias.  */
24990 #if defined __stub_$ac_func || defined __stub___$ac_func
24991 choke me
24992 #endif
24993
24994 int
24995 main ()
24996 {
24997 return $ac_func ();
24998   ;
24999   return 0;
25000 }
25001 _ACEOF
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (ac_try="$ac_link"
25004 case "(($ac_try" in
25005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006   *) ac_try_echo=$ac_try;;
25007 esac
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009   (eval "$ac_link") 2>conftest.er1
25010   ac_status=$?
25011   grep -v '^ *+' conftest.er1 >conftest.err
25012   rm -f conftest.er1
25013   cat conftest.err >&5
25014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015   (exit $ac_status); } && {
25016          test -z "$ac_c_werror_flag" ||
25017          test ! -s conftest.err
25018        } && test -s conftest$ac_exeext &&
25019        $as_test_x conftest$ac_exeext; then
25020   eval "$as_ac_var=yes"
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025         eval "$as_ac_var=no"
25026 fi
25027
25028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25029       conftest$ac_exeext conftest.$ac_ext
25030 fi
25031 ac_res=`eval echo '${'$as_ac_var'}'`
25032                { echo "$as_me:$LINENO: result: $ac_res" >&5
25033 echo "${ECHO_T}$ac_res" >&6; }
25034 if test `eval echo '${'$as_ac_var'}'` = yes; then
25035   cat >>confdefs.h <<_ACEOF
25036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25037 _ACEOF
25038
25039 else
25040   { { echo "$as_me:$LINENO: error: getnameinfo function not found" >&5
25041 echo "$as_me: error: getnameinfo function not found" >&2;}
25042    { (exit 1); exit 1; }; }
25043 fi
25044 done
25045
25046
25047
25048
25049
25050
25051 for ac_header in netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h
25052 do
25053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25058   echo $ECHO_N "(cached) $ECHO_C" >&6
25059 fi
25060 ac_res=`eval echo '${'$as_ac_Header'}'`
25061                { echo "$as_me:$LINENO: result: $ac_res" >&5
25062 echo "${ECHO_T}$ac_res" >&6; }
25063 else
25064   # Is the header compilable?
25065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25067 cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h.  */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h.  */
25073 $ac_includes_default
25074 #include <$ac_header>
25075 _ACEOF
25076 rm -f conftest.$ac_objext
25077 if { (ac_try="$ac_compile"
25078 case "(($ac_try" in
25079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080   *) ac_try_echo=$ac_try;;
25081 esac
25082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083   (eval "$ac_compile") 2>conftest.er1
25084   ac_status=$?
25085   grep -v '^ *+' conftest.er1 >conftest.err
25086   rm -f conftest.er1
25087   cat conftest.err >&5
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); } && {
25090          test -z "$ac_c_werror_flag" ||
25091          test ! -s conftest.err
25092        } && test -s conftest.$ac_objext; then
25093   ac_header_compiler=yes
25094 else
25095   echo "$as_me: failed program was:" >&5
25096 sed 's/^/| /' conftest.$ac_ext >&5
25097
25098         ac_header_compiler=no
25099 fi
25100
25101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25103 echo "${ECHO_T}$ac_header_compiler" >&6; }
25104
25105 # Is the header present?
25106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25108 cat >conftest.$ac_ext <<_ACEOF
25109 /* confdefs.h.  */
25110 _ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h.  */
25114 #include <$ac_header>
25115 _ACEOF
25116 if { (ac_try="$ac_cpp conftest.$ac_ext"
25117 case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25123   ac_status=$?
25124   grep -v '^ *+' conftest.er1 >conftest.err
25125   rm -f conftest.er1
25126   cat conftest.err >&5
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); } >/dev/null && {
25129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25130          test ! -s conftest.err
25131        }; then
25132   ac_header_preproc=yes
25133 else
25134   echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25136
25137   ac_header_preproc=no
25138 fi
25139
25140 rm -f conftest.err conftest.$ac_ext
25141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25142 echo "${ECHO_T}$ac_header_preproc" >&6; }
25143
25144 # So?  What about this header?
25145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25146   yes:no: )
25147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25151     ac_header_preproc=yes
25152     ;;
25153   no:yes:* )
25154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25166     ( cat <<\_ASBOX
25167 ## --------------------------------------------- ##
25168 ## Report this to brenden1@users.sourceforge.net ##
25169 ## --------------------------------------------- ##
25170 _ASBOX
25171      ) | sed "s/^/$as_me: WARNING:     /" >&2
25172     ;;
25173 esac
25174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25177   echo $ECHO_N "(cached) $ECHO_C" >&6
25178 else
25179   eval "$as_ac_Header=\$ac_header_preproc"
25180 fi
25181 ac_res=`eval echo '${'$as_ac_Header'}'`
25182                { echo "$as_me:$LINENO: result: $ac_res" >&5
25183 echo "${ECHO_T}$ac_res" >&6; }
25184
25185 fi
25186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25187   cat >>confdefs.h <<_ACEOF
25188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25189 _ACEOF
25190
25191 else
25192   PORT_MONITORS_MISSING=yes
25193 fi
25194
25195 done
25196
25197         if test x"$PORT_MONITORS_MISSING" = xyes; then
25198               { { echo "$as_me:$LINENO: error: missing a needed network header for port monitoring" >&5
25199 echo "$as_me: error: missing a needed network header for port monitoring" >&2;}
25200    { (exit 1); exit 1; }; }
25201         fi
25202         WANT_GLIB=yes
25203
25204 cat >>confdefs.h <<\_ACEOF
25205 #define TCP_PORT_MONITOR 1
25206 _ACEOF
25207
25208   fi
25209 fi
25210
25211
25212 if test x"$want_portmon" = xyes; then
25213   BUILD_PORT_MONITORS_TRUE=
25214   BUILD_PORT_MONITORS_FALSE='#'
25215 else
25216   BUILD_PORT_MONITORS_TRUE='#'
25217   BUILD_PORT_MONITORS_FALSE=
25218 fi
25219
25220
25221
25222
25223
25224
25225       if test "X$prefix" = "XNONE"; then
25226     acl_final_prefix="$ac_default_prefix"
25227   else
25228     acl_final_prefix="$prefix"
25229   fi
25230   if test "X$exec_prefix" = "XNONE"; then
25231     acl_final_exec_prefix='${prefix}'
25232   else
25233     acl_final_exec_prefix="$exec_prefix"
25234   fi
25235   acl_save_prefix="$prefix"
25236   prefix="$acl_final_prefix"
25237   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
25238   prefix="$acl_save_prefix"
25239
25240
25241 # Check whether --with-gnu-ld was given.
25242 if test "${with_gnu_ld+set}" = set; then
25243   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
25244 else
25245   with_gnu_ld=no
25246 fi
25247
25248 # Prepare PATH_SEPARATOR.
25249 # The user is always right.
25250 if test "${PATH_SEPARATOR+set}" != set; then
25251   echo "#! /bin/sh" >conf$$.sh
25252   echo  "exit 0"   >>conf$$.sh
25253   chmod +x conf$$.sh
25254   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25255     PATH_SEPARATOR=';'
25256   else
25257     PATH_SEPARATOR=:
25258   fi
25259   rm -f conf$$.sh
25260 fi
25261 ac_prog=ld
25262 if test "$GCC" = yes; then
25263   # Check if gcc -print-prog-name=ld gives a path.
25264   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
25265 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
25266   case $host in
25267   *-*-mingw*)
25268     # gcc leaves a trailing carriage return which upsets mingw
25269     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
25270   *)
25271     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
25272   esac
25273   case $ac_prog in
25274     # Accept absolute paths.
25275     [\\/]* | [A-Za-z]:[\\/]*)
25276       re_direlt='/[^/][^/]*/\.\./'
25277       # Canonicalize the path of ld
25278       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
25279       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
25280         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
25281       done
25282       test -z "$LD" && LD="$ac_prog"
25283       ;;
25284   "")
25285     # If it fails, then pretend we aren't using GCC.
25286     ac_prog=ld
25287     ;;
25288   *)
25289     # If it is relative, then search for the first ld in PATH.
25290     with_gnu_ld=unknown
25291     ;;
25292   esac
25293 elif test "$with_gnu_ld" = yes; then
25294   { echo "$as_me:$LINENO: checking for GNU ld" >&5
25295 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
25296 else
25297   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
25298 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
25299 fi
25300 if test "${acl_cv_path_LD+set}" = set; then
25301   echo $ECHO_N "(cached) $ECHO_C" >&6
25302 else
25303   if test -z "$LD"; then
25304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
25305   for ac_dir in $PATH; do
25306     test -z "$ac_dir" && ac_dir=.
25307     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
25308       acl_cv_path_LD="$ac_dir/$ac_prog"
25309       # Check to see if the program is GNU ld.  I'd rather use --version,
25310       # but apparently some GNU ld's only accept -v.
25311       # Break only if it was the GNU/non-GNU ld that we prefer.
25312       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
25313       *GNU* | *'with BFD'*)
25314         test "$with_gnu_ld" != no && break ;;
25315       *)
25316         test "$with_gnu_ld" != yes && break ;;
25317       esac
25318     fi
25319   done
25320   IFS="$ac_save_ifs"
25321 else
25322   acl_cv_path_LD="$LD" # Let the user override the test with a path.
25323 fi
25324 fi
25325
25326 LD="$acl_cv_path_LD"
25327 if test -n "$LD"; then
25328   { echo "$as_me:$LINENO: result: $LD" >&5
25329 echo "${ECHO_T}$LD" >&6; }
25330 else
25331   { echo "$as_me:$LINENO: result: no" >&5
25332 echo "${ECHO_T}no" >&6; }
25333 fi
25334 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
25335 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
25336    { (exit 1); exit 1; }; }
25337 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
25338 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
25339 if test "${acl_cv_prog_gnu_ld+set}" = set; then
25340   echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
25343 case `$LD -v 2>&1 </dev/null` in
25344 *GNU* | *'with BFD'*)
25345   acl_cv_prog_gnu_ld=yes ;;
25346 *)
25347   acl_cv_prog_gnu_ld=no ;;
25348 esac
25349 fi
25350 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
25351 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
25352 with_gnu_ld=$acl_cv_prog_gnu_ld
25353
25354
25355
25356
25357                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
25358 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
25359 if test "${acl_cv_rpath+set}" = set; then
25360   echo $ECHO_N "(cached) $ECHO_C" >&6
25361 else
25362
25363     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
25364     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
25365     . ./conftest.sh
25366     rm -f ./conftest.sh
25367     acl_cv_rpath=done
25368
25369 fi
25370 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
25371 echo "${ECHO_T}$acl_cv_rpath" >&6; }
25372   wl="$acl_cv_wl"
25373   acl_libext="$acl_cv_libext"
25374   acl_shlibext="$acl_cv_shlibext"
25375   acl_libname_spec="$acl_cv_libname_spec"
25376   acl_library_names_spec="$acl_cv_library_names_spec"
25377   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
25378   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
25379   acl_hardcode_direct="$acl_cv_hardcode_direct"
25380   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
25381     # Check whether --enable-rpath was given.
25382 if test "${enable_rpath+set}" = set; then
25383   enableval=$enable_rpath; :
25384 else
25385   enable_rpath=yes
25386 fi
25387
25388
25389
25390                   acl_libdirstem=lib
25391   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
25392   if test -n "$searchpath"; then
25393     acl_save_IFS="${IFS=        }"; IFS=":"
25394     for searchdir in $searchpath; do
25395       if test -d "$searchdir"; then
25396         case "$searchdir" in
25397           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
25398           *) searchdir=`cd "$searchdir" && pwd`
25399              case "$searchdir" in
25400                */lib64 ) acl_libdirstem=lib64 ;;
25401              esac ;;
25402         esac
25403       fi
25404     done
25405     IFS="$acl_save_IFS"
25406   fi
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416     use_additional=yes
25417
25418   acl_save_prefix="$prefix"
25419   prefix="$acl_final_prefix"
25420   acl_save_exec_prefix="$exec_prefix"
25421   exec_prefix="$acl_final_exec_prefix"
25422
25423     eval additional_includedir=\"$includedir\"
25424     eval additional_libdir=\"$libdir\"
25425
25426   exec_prefix="$acl_save_exec_prefix"
25427   prefix="$acl_save_prefix"
25428
25429
25430 # Check whether --with-libiconv-prefix was given.
25431 if test "${with_libiconv_prefix+set}" = set; then
25432   withval=$with_libiconv_prefix;
25433     if test "X$withval" = "Xno"; then
25434       use_additional=no
25435     else
25436       if test "X$withval" = "X"; then
25437
25438   acl_save_prefix="$prefix"
25439   prefix="$acl_final_prefix"
25440   acl_save_exec_prefix="$exec_prefix"
25441   exec_prefix="$acl_final_exec_prefix"
25442
25443           eval additional_includedir=\"$includedir\"
25444           eval additional_libdir=\"$libdir\"
25445
25446   exec_prefix="$acl_save_exec_prefix"
25447   prefix="$acl_save_prefix"
25448
25449       else
25450         additional_includedir="$withval/include"
25451         additional_libdir="$withval/$acl_libdirstem"
25452       fi
25453     fi
25454
25455 fi
25456
25457       LIBICONV=
25458   LTLIBICONV=
25459   INCICONV=
25460   LIBICONV_PREFIX=
25461   rpathdirs=
25462   ltrpathdirs=
25463   names_already_handled=
25464   names_next_round='iconv '
25465   while test -n "$names_next_round"; do
25466     names_this_round="$names_next_round"
25467     names_next_round=
25468     for name in $names_this_round; do
25469       already_handled=
25470       for n in $names_already_handled; do
25471         if test "$n" = "$name"; then
25472           already_handled=yes
25473           break
25474         fi
25475       done
25476       if test -z "$already_handled"; then
25477         names_already_handled="$names_already_handled $name"
25478                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25479         eval value=\"\$HAVE_LIB$uppername\"
25480         if test -n "$value"; then
25481           if test "$value" = yes; then
25482             eval value=\"\$LIB$uppername\"
25483             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25484             eval value=\"\$LTLIB$uppername\"
25485             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25486           else
25487                                     :
25488           fi
25489         else
25490                               found_dir=
25491           found_la=
25492           found_so=
25493           found_a=
25494           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
25495           if test -n "$acl_shlibext"; then
25496             shrext=".$acl_shlibext"             # typically: shrext=.so
25497           else
25498             shrext=
25499           fi
25500           if test $use_additional = yes; then
25501             dir="$additional_libdir"
25502                                     if test -n "$acl_shlibext"; then
25503               if test -f "$dir/$libname$shrext"; then
25504                 found_dir="$dir"
25505                 found_so="$dir/$libname$shrext"
25506               else
25507                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25508                   ver=`(cd "$dir" && \
25509                         for f in "$libname$shrext".*; do echo "$f"; done \
25510                         | sed -e "s,^$libname$shrext\\\\.,," \
25511                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25512                         | sed 1q ) 2>/dev/null`
25513                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25514                     found_dir="$dir"
25515                     found_so="$dir/$libname$shrext.$ver"
25516                   fi
25517                 else
25518                   eval library_names=\"$acl_library_names_spec\"
25519                   for f in $library_names; do
25520                     if test -f "$dir/$f"; then
25521                       found_dir="$dir"
25522                       found_so="$dir/$f"
25523                       break
25524                     fi
25525                   done
25526                 fi
25527               fi
25528             fi
25529                         if test "X$found_dir" = "X"; then
25530               if test -f "$dir/$libname.$acl_libext"; then
25531                 found_dir="$dir"
25532                 found_a="$dir/$libname.$acl_libext"
25533               fi
25534             fi
25535             if test "X$found_dir" != "X"; then
25536               if test -f "$dir/$libname.la"; then
25537                 found_la="$dir/$libname.la"
25538               fi
25539             fi
25540           fi
25541           if test "X$found_dir" = "X"; then
25542             for x in $LDFLAGS $LTLIBICONV; do
25543
25544   acl_save_prefix="$prefix"
25545   prefix="$acl_final_prefix"
25546   acl_save_exec_prefix="$exec_prefix"
25547   exec_prefix="$acl_final_exec_prefix"
25548   eval x=\"$x\"
25549   exec_prefix="$acl_save_exec_prefix"
25550   prefix="$acl_save_prefix"
25551
25552               case "$x" in
25553                 -L*)
25554                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25555                                     if test -n "$acl_shlibext"; then
25556                     if test -f "$dir/$libname$shrext"; then
25557                       found_dir="$dir"
25558                       found_so="$dir/$libname$shrext"
25559                     else
25560                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25561                         ver=`(cd "$dir" && \
25562                               for f in "$libname$shrext".*; do echo "$f"; done \
25563                               | sed -e "s,^$libname$shrext\\\\.,," \
25564                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25565                               | sed 1q ) 2>/dev/null`
25566                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25567                           found_dir="$dir"
25568                           found_so="$dir/$libname$shrext.$ver"
25569                         fi
25570                       else
25571                         eval library_names=\"$acl_library_names_spec\"
25572                         for f in $library_names; do
25573                           if test -f "$dir/$f"; then
25574                             found_dir="$dir"
25575                             found_so="$dir/$f"
25576                             break
25577                           fi
25578                         done
25579                       fi
25580                     fi
25581                   fi
25582                                     if test "X$found_dir" = "X"; then
25583                     if test -f "$dir/$libname.$acl_libext"; then
25584                       found_dir="$dir"
25585                       found_a="$dir/$libname.$acl_libext"
25586                     fi
25587                   fi
25588                   if test "X$found_dir" != "X"; then
25589                     if test -f "$dir/$libname.la"; then
25590                       found_la="$dir/$libname.la"
25591                     fi
25592                   fi
25593                   ;;
25594               esac
25595               if test "X$found_dir" != "X"; then
25596                 break
25597               fi
25598             done
25599           fi
25600           if test "X$found_dir" != "X"; then
25601                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25602             if test "X$found_so" != "X"; then
25603                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
25604                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25605               else
25606                                                                                 haveit=
25607                 for x in $ltrpathdirs; do
25608                   if test "X$x" = "X$found_dir"; then
25609                     haveit=yes
25610                     break
25611                   fi
25612                 done
25613                 if test -z "$haveit"; then
25614                   ltrpathdirs="$ltrpathdirs $found_dir"
25615                 fi
25616                                 if test "$acl_hardcode_direct" = yes; then
25617                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25618                 else
25619                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25620                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25621                                                             haveit=
25622                     for x in $rpathdirs; do
25623                       if test "X$x" = "X$found_dir"; then
25624                         haveit=yes
25625                         break
25626                       fi
25627                     done
25628                     if test -z "$haveit"; then
25629                       rpathdirs="$rpathdirs $found_dir"
25630                     fi
25631                   else
25632                                                                                 haveit=
25633                     for x in $LDFLAGS $LIBICONV; do
25634
25635   acl_save_prefix="$prefix"
25636   prefix="$acl_final_prefix"
25637   acl_save_exec_prefix="$exec_prefix"
25638   exec_prefix="$acl_final_exec_prefix"
25639   eval x=\"$x\"
25640   exec_prefix="$acl_save_exec_prefix"
25641   prefix="$acl_save_prefix"
25642
25643                       if test "X$x" = "X-L$found_dir"; then
25644                         haveit=yes
25645                         break
25646                       fi
25647                     done
25648                     if test -z "$haveit"; then
25649                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25650                     fi
25651                     if test "$acl_hardcode_minus_L" != no; then
25652                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25653                     else
25654                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25655                     fi
25656                   fi
25657                 fi
25658               fi
25659             else
25660               if test "X$found_a" != "X"; then
25661                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25662               else
25663                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25664               fi
25665             fi
25666                         additional_includedir=
25667             case "$found_dir" in
25668               */$acl_libdirstem | */$acl_libdirstem/)
25669                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25670                 LIBICONV_PREFIX="$basedir"
25671                 additional_includedir="$basedir/include"
25672                 ;;
25673             esac
25674             if test "X$additional_includedir" != "X"; then
25675                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25676                 haveit=
25677                 if test "X$additional_includedir" = "X/usr/local/include"; then
25678                   if test -n "$GCC"; then
25679                     case $host_os in
25680                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25681                     esac
25682                   fi
25683                 fi
25684                 if test -z "$haveit"; then
25685                   for x in $CPPFLAGS $INCICONV; do
25686
25687   acl_save_prefix="$prefix"
25688   prefix="$acl_final_prefix"
25689   acl_save_exec_prefix="$exec_prefix"
25690   exec_prefix="$acl_final_exec_prefix"
25691   eval x=\"$x\"
25692   exec_prefix="$acl_save_exec_prefix"
25693   prefix="$acl_save_prefix"
25694
25695                     if test "X$x" = "X-I$additional_includedir"; then
25696                       haveit=yes
25697                       break
25698                     fi
25699                   done
25700                   if test -z "$haveit"; then
25701                     if test -d "$additional_includedir"; then
25702                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
25703                     fi
25704                   fi
25705                 fi
25706               fi
25707             fi
25708                         if test -n "$found_la"; then
25709                                                         save_libdir="$libdir"
25710               case "$found_la" in
25711                 */* | *\\*) . "$found_la" ;;
25712                 *) . "./$found_la" ;;
25713               esac
25714               libdir="$save_libdir"
25715                             for dep in $dependency_libs; do
25716                 case "$dep" in
25717                   -L*)
25718                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25719                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25720                       haveit=
25721                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25722                         if test -n "$GCC"; then
25723                           case $host_os in
25724                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25725                           esac
25726                         fi
25727                       fi
25728                       if test -z "$haveit"; then
25729                         haveit=
25730                         for x in $LDFLAGS $LIBICONV; do
25731
25732   acl_save_prefix="$prefix"
25733   prefix="$acl_final_prefix"
25734   acl_save_exec_prefix="$exec_prefix"
25735   exec_prefix="$acl_final_exec_prefix"
25736   eval x=\"$x\"
25737   exec_prefix="$acl_save_exec_prefix"
25738   prefix="$acl_save_prefix"
25739
25740                           if test "X$x" = "X-L$additional_libdir"; then
25741                             haveit=yes
25742                             break
25743                           fi
25744                         done
25745                         if test -z "$haveit"; then
25746                           if test -d "$additional_libdir"; then
25747                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
25748                           fi
25749                         fi
25750                         haveit=
25751                         for x in $LDFLAGS $LTLIBICONV; do
25752
25753   acl_save_prefix="$prefix"
25754   prefix="$acl_final_prefix"
25755   acl_save_exec_prefix="$exec_prefix"
25756   exec_prefix="$acl_final_exec_prefix"
25757   eval x=\"$x\"
25758   exec_prefix="$acl_save_exec_prefix"
25759   prefix="$acl_save_prefix"
25760
25761                           if test "X$x" = "X-L$additional_libdir"; then
25762                             haveit=yes
25763                             break
25764                           fi
25765                         done
25766                         if test -z "$haveit"; then
25767                           if test -d "$additional_libdir"; then
25768                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
25769                           fi
25770                         fi
25771                       fi
25772                     fi
25773                     ;;
25774                   -R*)
25775                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25776                     if test "$enable_rpath" != no; then
25777                                                                   haveit=
25778                       for x in $rpathdirs; do
25779                         if test "X$x" = "X$dir"; then
25780                           haveit=yes
25781                           break
25782                         fi
25783                       done
25784                       if test -z "$haveit"; then
25785                         rpathdirs="$rpathdirs $dir"
25786                       fi
25787                                                                   haveit=
25788                       for x in $ltrpathdirs; do
25789                         if test "X$x" = "X$dir"; then
25790                           haveit=yes
25791                           break
25792                         fi
25793                       done
25794                       if test -z "$haveit"; then
25795                         ltrpathdirs="$ltrpathdirs $dir"
25796                       fi
25797                     fi
25798                     ;;
25799                   -l*)
25800                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25801                     ;;
25802                   *.la)
25803                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25804                     ;;
25805                   *)
25806                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25807                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25808                     ;;
25809                 esac
25810               done
25811             fi
25812           else
25813                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25814             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25815           fi
25816         fi
25817       fi
25818     done
25819   done
25820   if test "X$rpathdirs" != "X"; then
25821     if test -n "$acl_hardcode_libdir_separator"; then
25822                         alldirs=
25823       for found_dir in $rpathdirs; do
25824         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
25825       done
25826             acl_save_libdir="$libdir"
25827       libdir="$alldirs"
25828       eval flag=\"$acl_hardcode_libdir_flag_spec\"
25829       libdir="$acl_save_libdir"
25830       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25831     else
25832             for found_dir in $rpathdirs; do
25833         acl_save_libdir="$libdir"
25834         libdir="$found_dir"
25835         eval flag=\"$acl_hardcode_libdir_flag_spec\"
25836         libdir="$acl_save_libdir"
25837         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25838       done
25839     fi
25840   fi
25841   if test "X$ltrpathdirs" != "X"; then
25842             for found_dir in $ltrpathdirs; do
25843       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25844     done
25845   fi
25846
25847
25848
25849
25850
25851
25852
25853           am_save_CPPFLAGS="$CPPFLAGS"
25854
25855   for element in $INCICONV; do
25856     haveit=
25857     for x in $CPPFLAGS; do
25858
25859   acl_save_prefix="$prefix"
25860   prefix="$acl_final_prefix"
25861   acl_save_exec_prefix="$exec_prefix"
25862   exec_prefix="$acl_final_exec_prefix"
25863   eval x=\"$x\"
25864   exec_prefix="$acl_save_exec_prefix"
25865   prefix="$acl_save_prefix"
25866
25867       if test "X$x" = "X$element"; then
25868         haveit=yes
25869         break
25870       fi
25871     done
25872     if test -z "$haveit"; then
25873       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25874     fi
25875   done
25876
25877
25878   { echo "$as_me:$LINENO: checking for iconv" >&5
25879 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
25880 if test "${am_cv_func_iconv+set}" = set; then
25881   echo $ECHO_N "(cached) $ECHO_C" >&6
25882 else
25883
25884     am_cv_func_iconv="no, consider installing GNU libiconv"
25885     am_cv_lib_iconv=no
25886     cat >conftest.$ac_ext <<_ACEOF
25887 /* confdefs.h.  */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h.  */
25892 #include <stdlib.h>
25893 #include <iconv.h>
25894 int
25895 main ()
25896 {
25897 iconv_t cd = iconv_open("","");
25898        iconv(cd,NULL,NULL,NULL,NULL);
25899        iconv_close(cd);
25900   ;
25901   return 0;
25902 }
25903 _ACEOF
25904 rm -f conftest.$ac_objext conftest$ac_exeext
25905 if { (ac_try="$ac_link"
25906 case "(($ac_try" in
25907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908   *) ac_try_echo=$ac_try;;
25909 esac
25910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911   (eval "$ac_link") 2>conftest.er1
25912   ac_status=$?
25913   grep -v '^ *+' conftest.er1 >conftest.err
25914   rm -f conftest.er1
25915   cat conftest.err >&5
25916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917   (exit $ac_status); } && {
25918          test -z "$ac_c_werror_flag" ||
25919          test ! -s conftest.err
25920        } && test -s conftest$ac_exeext &&
25921        $as_test_x conftest$ac_exeext; then
25922   am_cv_func_iconv=yes
25923 else
25924   echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25926
25927
25928 fi
25929
25930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25931       conftest$ac_exeext conftest.$ac_ext
25932     if test "$am_cv_func_iconv" != yes; then
25933       am_save_LIBS="$LIBS"
25934       LIBS="$LIBS $LIBICONV"
25935       cat >conftest.$ac_ext <<_ACEOF
25936 /* confdefs.h.  */
25937 _ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h.  */
25941 #include <stdlib.h>
25942 #include <iconv.h>
25943 int
25944 main ()
25945 {
25946 iconv_t cd = iconv_open("","");
25947          iconv(cd,NULL,NULL,NULL,NULL);
25948          iconv_close(cd);
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 rm -f conftest.$ac_objext conftest$ac_exeext
25954 if { (ac_try="$ac_link"
25955 case "(($ac_try" in
25956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25957   *) ac_try_echo=$ac_try;;
25958 esac
25959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25960   (eval "$ac_link") 2>conftest.er1
25961   ac_status=$?
25962   grep -v '^ *+' conftest.er1 >conftest.err
25963   rm -f conftest.er1
25964   cat conftest.err >&5
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); } && {
25967          test -z "$ac_c_werror_flag" ||
25968          test ! -s conftest.err
25969        } && test -s conftest$ac_exeext &&
25970        $as_test_x conftest$ac_exeext; then
25971   am_cv_lib_iconv=yes
25972         am_cv_func_iconv=yes
25973 else
25974   echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25976
25977
25978 fi
25979
25980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25981       conftest$ac_exeext conftest.$ac_ext
25982       LIBS="$am_save_LIBS"
25983     fi
25984
25985 fi
25986 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25987 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
25988   if test "$am_cv_func_iconv" = yes; then
25989     { echo "$as_me:$LINENO: checking for working iconv" >&5
25990 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
25991 if test "${am_cv_func_iconv_works+set}" = set; then
25992   echo $ECHO_N "(cached) $ECHO_C" >&6
25993 else
25994
25995             am_save_LIBS="$LIBS"
25996       if test $am_cv_lib_iconv = yes; then
25997         LIBS="$LIBS $LIBICONV"
25998       fi
25999       if test "$cross_compiling" = yes; then
26000   case "$host_os" in
26001            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
26002            *)            am_cv_func_iconv_works="guessing yes" ;;
26003          esac
26004 else
26005   cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h.  */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h.  */
26011
26012 #include <iconv.h>
26013 #include <string.h>
26014 int main ()
26015 {
26016   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
26017      returns.  */
26018   {
26019     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26020     if (cd_utf8_to_88591 != (iconv_t)(-1))
26021       {
26022         static const char input[] = "\342\202\254"; /* EURO SIGN */
26023         char buf[10];
26024         const char *inptr = input;
26025         size_t inbytesleft = strlen (input);
26026         char *outptr = buf;
26027         size_t outbytesleft = sizeof (buf);
26028         size_t res = iconv (cd_utf8_to_88591,
26029                             (char **) &inptr, &inbytesleft,
26030                             &outptr, &outbytesleft);
26031         if (res == 0)
26032           return 1;
26033       }
26034   }
26035 #if 0 /* This bug could be worked around by the caller.  */
26036   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
26037   {
26038     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26039     if (cd_88591_to_utf8 != (iconv_t)(-1))
26040       {
26041         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26042         char buf[50];
26043         const char *inptr = input;
26044         size_t inbytesleft = strlen (input);
26045         char *outptr = buf;
26046         size_t outbytesleft = sizeof (buf);
26047         size_t res = iconv (cd_88591_to_utf8,
26048                             (char **) &inptr, &inbytesleft,
26049                             &outptr, &outbytesleft);
26050         if ((int)res > 0)
26051           return 1;
26052       }
26053   }
26054 #endif
26055   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26056      provided.  */
26057   if (/* Try standardized names.  */
26058       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
26059       /* Try IRIX, OSF/1 names.  */
26060       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
26061       /* Try AIX names.  */
26062       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
26063       /* Try HP-UX names.  */
26064       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
26065     return 1;
26066   return 0;
26067 }
26068 _ACEOF
26069 rm -f conftest$ac_exeext
26070 if { (ac_try="$ac_link"
26071 case "(($ac_try" in
26072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073   *) ac_try_echo=$ac_try;;
26074 esac
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076   (eval "$ac_link") 2>&5
26077   ac_status=$?
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26080   { (case "(($ac_try" in
26081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082   *) ac_try_echo=$ac_try;;
26083 esac
26084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26085   (eval "$ac_try") 2>&5
26086   ac_status=$?
26087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088   (exit $ac_status); }; }; then
26089   am_cv_func_iconv_works=yes
26090 else
26091   echo "$as_me: program exited with status $ac_status" >&5
26092 echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095 ( exit $ac_status )
26096 am_cv_func_iconv_works=no
26097 fi
26098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26099 fi
26100
26101
26102       LIBS="$am_save_LIBS"
26103
26104 fi
26105 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
26106 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
26107     case "$am_cv_func_iconv_works" in
26108       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
26109       *)   am_func_iconv=yes ;;
26110     esac
26111   else
26112     am_func_iconv=no am_cv_lib_iconv=no
26113   fi
26114   if test "$am_func_iconv" = yes; then
26115
26116 cat >>confdefs.h <<\_ACEOF
26117 #define HAVE_ICONV 1
26118 _ACEOF
26119
26120   fi
26121   if test "$am_cv_lib_iconv" = yes; then
26122     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26123 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
26124     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
26125 echo "${ECHO_T}$LIBICONV" >&6; }
26126   else
26127             CPPFLAGS="$am_save_CPPFLAGS"
26128     LIBICONV=
26129     LTLIBICONV=
26130   fi
26131
26132
26133
26134   if test "$am_cv_func_iconv" = yes; then
26135     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
26136 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
26137     if test "${am_cv_proto_iconv+set}" = set; then
26138   echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140
26141       cat >conftest.$ac_ext <<_ACEOF
26142 /* confdefs.h.  */
26143 _ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h.  */
26147
26148 #include <stdlib.h>
26149 #include <iconv.h>
26150 extern
26151 #ifdef __cplusplus
26152 "C"
26153 #endif
26154 #if defined(__STDC__) || defined(__cplusplus)
26155 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26156 #else
26157 size_t iconv();
26158 #endif
26159
26160 int
26161 main ()
26162 {
26163
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest.$ac_objext
26169 if { (ac_try="$ac_compile"
26170 case "(($ac_try" in
26171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172   *) ac_try_echo=$ac_try;;
26173 esac
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175   (eval "$ac_compile") 2>conftest.er1
26176   ac_status=$?
26177   grep -v '^ *+' conftest.er1 >conftest.err
26178   rm -f conftest.er1
26179   cat conftest.err >&5
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); } && {
26182          test -z "$ac_c_werror_flag" ||
26183          test ! -s conftest.err
26184        } && test -s conftest.$ac_objext; then
26185   am_cv_proto_iconv_arg1=""
26186 else
26187   echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190         am_cv_proto_iconv_arg1="const"
26191 fi
26192
26193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
26195 fi
26196
26197     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26198     { echo "$as_me:$LINENO: result: ${ac_t:-
26199          }$am_cv_proto_iconv" >&5
26200 echo "${ECHO_T}${ac_t:-
26201          }$am_cv_proto_iconv" >&6; }
26202
26203 cat >>confdefs.h <<_ACEOF
26204 #define ICONV_CONST $am_cv_proto_iconv_arg1
26205 _ACEOF
26206
26207   fi
26208
26209 if test "$am_cv_func_iconv" != yes; then
26210   { echo "$as_me:$LINENO: WARNING: Could not find libiconv" >&5
26211 echo "$as_me: WARNING: Could not find libiconv" >&2;}
26212 else
26213   conky_LIBS="$conky_LIBS $LIBICONV"
26214 fi
26215
26216
26217 if test "$am_cv_func_iconv" = yes; then
26218   BUILD_ICONV_TRUE=
26219   BUILD_ICONV_FALSE='#'
26220 else
26221   BUILD_ICONV_TRUE='#'
26222   BUILD_ICONV_FALSE=
26223 fi
26224
26225
26226
26227 # Check whether --enable-double_buffer was given.
26228 if test "${enable_double_buffer+set}" = set; then
26229   enableval=$enable_double_buffer; want_double_buffer="$enableval"
26230 else
26231   want_double_buffer=yes
26232 fi
26233
26234
26235 if test "x$want_double_buffer" = "xyes"; then
26236     if test "x$want_x11" != "xyes"; then
26237             want_double_buffer=no
26238     else
26239       if $PKG_CONFIG --exists xext; then
26240
26241 pkg_failed=no
26242 { echo "$as_me:$LINENO: checking for Xext" >&5
26243 echo $ECHO_N "checking for Xext... $ECHO_C" >&6; }
26244
26245 if test -n "$PKG_CONFIG"; then
26246     if test -n "$Xext_CFLAGS"; then
26247         pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
26248     else
26249         if test -n "$PKG_CONFIG" && \
26250     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
26251   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; then
26255   pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
26256 else
26257   pkg_failed=yes
26258 fi
26259     fi
26260 else
26261         pkg_failed=untried
26262 fi
26263 if test -n "$PKG_CONFIG"; then
26264     if test -n "$Xext_LIBS"; then
26265         pkg_cv_Xext_LIBS="$Xext_LIBS"
26266     else
26267         if test -n "$PKG_CONFIG" && \
26268     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
26269   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
26270   ac_status=$?
26271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); }; then
26273   pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
26274 else
26275   pkg_failed=yes
26276 fi
26277     fi
26278 else
26279         pkg_failed=untried
26280 fi
26281
26282
26283
26284 if test $pkg_failed = yes; then
26285
26286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26287         _pkg_short_errors_supported=yes
26288 else
26289         _pkg_short_errors_supported=no
26290 fi
26291         if test $_pkg_short_errors_supported = yes; then
26292                 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
26293         else
26294                 Xext_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
26295         fi
26296         # Put the nasty error message in config.log where it belongs
26297         echo "$Xext_PKG_ERRORS" >&5
26298
26299         { { echo "$as_me:$LINENO: error: Package requirements (xext) were not met:
26300
26301 $Xext_PKG_ERRORS
26302
26303 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26304 installed software in a non-standard prefix.
26305
26306 Alternatively, you may set the environment variables Xext_CFLAGS
26307 and Xext_LIBS to avoid the need to call pkg-config.
26308 See the pkg-config man page for more details.
26309 " >&5
26310 echo "$as_me: error: Package requirements (xext) were not met:
26311
26312 $Xext_PKG_ERRORS
26313
26314 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26315 installed software in a non-standard prefix.
26316
26317 Alternatively, you may set the environment variables Xext_CFLAGS
26318 and Xext_LIBS to avoid the need to call pkg-config.
26319 See the pkg-config man page for more details.
26320 " >&2;}
26321    { (exit 1); exit 1; }; }
26322 elif test $pkg_failed = untried; then
26323         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
26324 is in your PATH or set the PKG_CONFIG environment variable to the full
26325 path to pkg-config.
26326
26327 Alternatively, you may set the environment variables Xext_CFLAGS
26328 and Xext_LIBS to avoid the need to call pkg-config.
26329 See the pkg-config man page for more details.
26330
26331 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26332 See \`config.log' for more details." >&5
26333 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
26334 is in your PATH or set the PKG_CONFIG environment variable to the full
26335 path to pkg-config.
26336
26337 Alternatively, you may set the environment variables Xext_CFLAGS
26338 and Xext_LIBS to avoid the need to call pkg-config.
26339 See the pkg-config man page for more details.
26340
26341 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26342 See \`config.log' for more details." >&2;}
26343    { (exit 1); exit 1; }; }
26344 else
26345         Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
26346         Xext_LIBS=$pkg_cv_Xext_LIBS
26347         { echo "$as_me:$LINENO: result: yes" >&5
26348 echo "${ECHO_T}yes" >&6; }
26349         :
26350 fi
26351         conky_CFLAGS="$conky_CFLAGS $Xext_CFLAGS"
26352         conky_LIBS="$conky_LIBS $Xext_LIBS"
26353       else
26354                 { echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
26355 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6; }
26356 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
26357   echo $ECHO_N "(cached) $ECHO_C" >&6
26358 else
26359   ac_check_lib_save_LIBS=$LIBS
26360 LIBS="-lXext  $LIBS"
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367
26368 /* Override any GCC internal prototype to avoid an error.
26369    Use char because int might match the return type of a GCC
26370    builtin and then its argument prototype would still apply.  */
26371 #ifdef __cplusplus
26372 extern "C"
26373 #endif
26374 char XdbeQueryExtension ();
26375 int
26376 main ()
26377 {
26378 return XdbeQueryExtension ();
26379   ;
26380   return 0;
26381 }
26382 _ACEOF
26383 rm -f conftest.$ac_objext conftest$ac_exeext
26384 if { (ac_try="$ac_link"
26385 case "(($ac_try" in
26386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26387   *) ac_try_echo=$ac_try;;
26388 esac
26389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26390   (eval "$ac_link") 2>conftest.er1
26391   ac_status=$?
26392   grep -v '^ *+' conftest.er1 >conftest.err
26393   rm -f conftest.er1
26394   cat conftest.err >&5
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); } && {
26397          test -z "$ac_c_werror_flag" ||
26398          test ! -s conftest.err
26399        } && test -s conftest$ac_exeext &&
26400        $as_test_x conftest$ac_exeext; then
26401   ac_cv_lib_Xext_XdbeQueryExtension=yes
26402 else
26403   echo "$as_me: failed program was:" >&5
26404 sed 's/^/| /' conftest.$ac_ext >&5
26405
26406         ac_cv_lib_Xext_XdbeQueryExtension=no
26407 fi
26408
26409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26410       conftest$ac_exeext conftest.$ac_ext
26411 LIBS=$ac_check_lib_save_LIBS
26412 fi
26413 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
26414 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
26415 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
26416   conky_LIBS="$conky_LIBS -lXext"
26417 else
26418   { { echo "$as_me:$LINENO: error: Could not find XdbeQueryExtension in -lXext" >&5
26419 echo "$as_me: error: Could not find XdbeQueryExtension in -lXext" >&2;}
26420    { (exit 1); exit 1; }; }
26421 fi
26422
26423       fi
26424
26425 cat >>confdefs.h <<\_ACEOF
26426 #define HAVE_XDBE 1
26427 _ACEOF
26428
26429     fi
26430 fi
26431
26432
26433
26434 # Check whether --enable-xdamage was given.
26435 if test "${enable_xdamage+set}" = set; then
26436   enableval=$enable_xdamage; want_xdamage="$enableval"
26437 else
26438   want_xdamage=yes
26439 fi
26440
26441
26442 if test "x$want_xdamage" = "xyes"; then
26443     if test "x$want_x11" != "xyes"; then
26444             want_xdamage=no
26445     else
26446       if $PKG_CONFIG --exists xdamage; then
26447
26448 pkg_failed=no
26449 { echo "$as_me:$LINENO: checking for XDamage" >&5
26450 echo $ECHO_N "checking for XDamage... $ECHO_C" >&6; }
26451
26452 if test -n "$PKG_CONFIG"; then
26453     if test -n "$XDamage_CFLAGS"; then
26454         pkg_cv_XDamage_CFLAGS="$XDamage_CFLAGS"
26455     else
26456         if test -n "$PKG_CONFIG" && \
26457     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdamage\"") >&5
26458   ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
26459   ac_status=$?
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); }; then
26462   pkg_cv_XDamage_CFLAGS=`$PKG_CONFIG --cflags "xdamage" 2>/dev/null`
26463 else
26464   pkg_failed=yes
26465 fi
26466     fi
26467 else
26468         pkg_failed=untried
26469 fi
26470 if test -n "$PKG_CONFIG"; then
26471     if test -n "$XDamage_LIBS"; then
26472         pkg_cv_XDamage_LIBS="$XDamage_LIBS"
26473     else
26474         if test -n "$PKG_CONFIG" && \
26475     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdamage\"") >&5
26476   ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
26477   ac_status=$?
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); }; then
26480   pkg_cv_XDamage_LIBS=`$PKG_CONFIG --libs "xdamage" 2>/dev/null`
26481 else
26482   pkg_failed=yes
26483 fi
26484     fi
26485 else
26486         pkg_failed=untried
26487 fi
26488
26489
26490
26491 if test $pkg_failed = yes; then
26492
26493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26494         _pkg_short_errors_supported=yes
26495 else
26496         _pkg_short_errors_supported=no
26497 fi
26498         if test $_pkg_short_errors_supported = yes; then
26499                 XDamage_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdamage"`
26500         else
26501                 XDamage_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdamage"`
26502         fi
26503         # Put the nasty error message in config.log where it belongs
26504         echo "$XDamage_PKG_ERRORS" >&5
26505
26506         { { echo "$as_me:$LINENO: error: Package requirements (xdamage) were not met:
26507
26508 $XDamage_PKG_ERRORS
26509
26510 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26511 installed software in a non-standard prefix.
26512
26513 Alternatively, you may set the environment variables XDamage_CFLAGS
26514 and XDamage_LIBS to avoid the need to call pkg-config.
26515 See the pkg-config man page for more details.
26516 " >&5
26517 echo "$as_me: error: Package requirements (xdamage) were not met:
26518
26519 $XDamage_PKG_ERRORS
26520
26521 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26522 installed software in a non-standard prefix.
26523
26524 Alternatively, you may set the environment variables XDamage_CFLAGS
26525 and XDamage_LIBS to avoid the need to call pkg-config.
26526 See the pkg-config man page for more details.
26527 " >&2;}
26528    { (exit 1); exit 1; }; }
26529 elif test $pkg_failed = untried; then
26530         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
26531 is in your PATH or set the PKG_CONFIG environment variable to the full
26532 path to pkg-config.
26533
26534 Alternatively, you may set the environment variables XDamage_CFLAGS
26535 and XDamage_LIBS to avoid the need to call pkg-config.
26536 See the pkg-config man page for more details.
26537
26538 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26539 See \`config.log' for more details." >&5
26540 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
26541 is in your PATH or set the PKG_CONFIG environment variable to the full
26542 path to pkg-config.
26543
26544 Alternatively, you may set the environment variables XDamage_CFLAGS
26545 and XDamage_LIBS to avoid the need to call pkg-config.
26546 See the pkg-config man page for more details.
26547
26548 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26549 See \`config.log' for more details." >&2;}
26550    { (exit 1); exit 1; }; }
26551 else
26552         XDamage_CFLAGS=$pkg_cv_XDamage_CFLAGS
26553         XDamage_LIBS=$pkg_cv_XDamage_LIBS
26554         { echo "$as_me:$LINENO: result: yes" >&5
26555 echo "${ECHO_T}yes" >&6; }
26556         :
26557 fi
26558         conky_CFLAGS="$conky_CFLAGS $XDamage_CFLAGS"
26559         conky_LIBS="$conky_LIBS $XDamage_LIBS"
26560       else
26561                         { echo "$as_me:$LINENO: checking for XDamageQueryExtension in -lXdamage" >&5
26562 echo $ECHO_N "checking for XDamageQueryExtension in -lXdamage... $ECHO_C" >&6; }
26563 if test "${ac_cv_lib_Xdamage_XDamageQueryExtension+set}" = set; then
26564   echo $ECHO_N "(cached) $ECHO_C" >&6
26565 else
26566   ac_check_lib_save_LIBS=$LIBS
26567 LIBS="-lXdamage  $LIBS"
26568 cat >conftest.$ac_ext <<_ACEOF
26569 /* confdefs.h.  */
26570 _ACEOF
26571 cat confdefs.h >>conftest.$ac_ext
26572 cat >>conftest.$ac_ext <<_ACEOF
26573 /* end confdefs.h.  */
26574
26575 /* Override any GCC internal prototype to avoid an error.
26576    Use char because int might match the return type of a GCC
26577    builtin and then its argument prototype would still apply.  */
26578 #ifdef __cplusplus
26579 extern "C"
26580 #endif
26581 char XDamageQueryExtension ();
26582 int
26583 main ()
26584 {
26585 return XDamageQueryExtension ();
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 rm -f conftest.$ac_objext conftest$ac_exeext
26591 if { (ac_try="$ac_link"
26592 case "(($ac_try" in
26593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26594   *) ac_try_echo=$ac_try;;
26595 esac
26596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26597   (eval "$ac_link") 2>conftest.er1
26598   ac_status=$?
26599   grep -v '^ *+' conftest.er1 >conftest.err
26600   rm -f conftest.er1
26601   cat conftest.err >&5
26602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603   (exit $ac_status); } && {
26604          test -z "$ac_c_werror_flag" ||
26605          test ! -s conftest.err
26606        } && test -s conftest$ac_exeext &&
26607        $as_test_x conftest$ac_exeext; then
26608   ac_cv_lib_Xdamage_XDamageQueryExtension=yes
26609 else
26610   echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26612
26613         ac_cv_lib_Xdamage_XDamageQueryExtension=no
26614 fi
26615
26616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26617       conftest$ac_exeext conftest.$ac_ext
26618 LIBS=$ac_check_lib_save_LIBS
26619 fi
26620 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
26621 echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6; }
26622 if test $ac_cv_lib_Xdamage_XDamageQueryExtension = yes; then
26623   conky_LIBS="$conky_LIBS -lXdamage"
26624 else
26625   { { echo "$as_me:$LINENO: error: Could not find XDamageQueryExtension in -lXdamage" >&5
26626 echo "$as_me: error: Could not find XDamageQueryExtension in -lXdamage" >&2;}
26627    { (exit 1); exit 1; }; }
26628 fi
26629
26630       fi
26631
26632 cat >>confdefs.h <<\_ACEOF
26633 #define HAVE_XDAMAGE 1
26634 _ACEOF
26635
26636     fi
26637 fi
26638
26639
26640
26641 # Check whether --enable-xft was given.
26642 if test "${enable_xft+set}" = set; then
26643   enableval=$enable_xft; want_xft="$enableval"
26644 else
26645   want_xft=yes
26646 fi
26647
26648
26649 if test x$want_xft = "xyes"; then
26650     if test "x$want_x11" != "xyes"; then
26651             want_xft=no
26652     else
26653
26654 pkg_failed=no
26655 { echo "$as_me:$LINENO: checking for Xft" >&5
26656 echo $ECHO_N "checking for Xft... $ECHO_C" >&6; }
26657
26658 if test -n "$PKG_CONFIG"; then
26659     if test -n "$Xft_CFLAGS"; then
26660         pkg_cv_Xft_CFLAGS="$Xft_CFLAGS"
26661     else
26662         if test -n "$PKG_CONFIG" && \
26663     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
26664   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
26665   ac_status=$?
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); }; then
26668   pkg_cv_Xft_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
26669 else
26670   pkg_failed=yes
26671 fi
26672     fi
26673 else
26674         pkg_failed=untried
26675 fi
26676 if test -n "$PKG_CONFIG"; then
26677     if test -n "$Xft_LIBS"; then
26678         pkg_cv_Xft_LIBS="$Xft_LIBS"
26679     else
26680         if test -n "$PKG_CONFIG" && \
26681     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
26682   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
26683   ac_status=$?
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); }; then
26686   pkg_cv_Xft_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
26687 else
26688   pkg_failed=yes
26689 fi
26690     fi
26691 else
26692         pkg_failed=untried
26693 fi
26694
26695
26696
26697 if test $pkg_failed = yes; then
26698
26699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26700         _pkg_short_errors_supported=yes
26701 else
26702         _pkg_short_errors_supported=no
26703 fi
26704         if test $_pkg_short_errors_supported = yes; then
26705                 Xft_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft"`
26706         else
26707                 Xft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
26708         fi
26709         # Put the nasty error message in config.log where it belongs
26710         echo "$Xft_PKG_ERRORS" >&5
26711
26712         { { echo "$as_me:$LINENO: error: Package requirements (xft) were not met:
26713
26714 $Xft_PKG_ERRORS
26715
26716 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26717 installed software in a non-standard prefix.
26718
26719 Alternatively, you may set the environment variables Xft_CFLAGS
26720 and Xft_LIBS to avoid the need to call pkg-config.
26721 See the pkg-config man page for more details.
26722 " >&5
26723 echo "$as_me: error: Package requirements (xft) were not met:
26724
26725 $Xft_PKG_ERRORS
26726
26727 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26728 installed software in a non-standard prefix.
26729
26730 Alternatively, you may set the environment variables Xft_CFLAGS
26731 and Xft_LIBS to avoid the need to call pkg-config.
26732 See the pkg-config man page for more details.
26733 " >&2;}
26734    { (exit 1); exit 1; }; }
26735 elif test $pkg_failed = untried; then
26736         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
26737 is in your PATH or set the PKG_CONFIG environment variable to the full
26738 path to pkg-config.
26739
26740 Alternatively, you may set the environment variables Xft_CFLAGS
26741 and Xft_LIBS to avoid the need to call pkg-config.
26742 See the pkg-config man page for more details.
26743
26744 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26745 See \`config.log' for more details." >&5
26746 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
26747 is in your PATH or set the PKG_CONFIG environment variable to the full
26748 path to pkg-config.
26749
26750 Alternatively, you may set the environment variables Xft_CFLAGS
26751 and Xft_LIBS to avoid the need to call pkg-config.
26752 See the pkg-config man page for more details.
26753
26754 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26755 See \`config.log' for more details." >&2;}
26756    { (exit 1); exit 1; }; }
26757 else
26758         Xft_CFLAGS=$pkg_cv_Xft_CFLAGS
26759         Xft_LIBS=$pkg_cv_Xft_LIBS
26760         { echo "$as_me:$LINENO: result: yes" >&5
26761 echo "${ECHO_T}yes" >&6; }
26762         :
26763 fi
26764       conky_CFLAGS="$conky_CFLAGS $Xft_CFLAGS"
26765       conky_LIBS="$conky_LIBS $Xft_LIBS"
26766
26767 cat >>confdefs.h <<\_ACEOF
26768 #define XFT 1
26769 _ACEOF
26770
26771     fi
26772 fi
26773
26774
26775 # Check whether --enable-nvidia was given.
26776 if test "${enable_nvidia+set}" = set; then
26777   enableval=$enable_nvidia; want_nvidia="$enableval"
26778 else
26779   want_nvidia=no
26780 fi
26781
26782 if test x$want_nvidia = xyes; then
26783     if test "x$want_x11" != "xyes"; then
26784                 # do nada
26785                 want_nvidia=no
26786         else
26787
26788 for ac_header in NVCtrl/NVCtrl.h
26789 do
26790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26792   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26795   echo $ECHO_N "(cached) $ECHO_C" >&6
26796 fi
26797 ac_res=`eval echo '${'$as_ac_Header'}'`
26798                { echo "$as_me:$LINENO: result: $ac_res" >&5
26799 echo "${ECHO_T}$ac_res" >&6; }
26800 else
26801   # Is the header compilable?
26802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26804 cat >conftest.$ac_ext <<_ACEOF
26805 /* confdefs.h.  */
26806 _ACEOF
26807 cat confdefs.h >>conftest.$ac_ext
26808 cat >>conftest.$ac_ext <<_ACEOF
26809 /* end confdefs.h.  */
26810 $ac_includes_default
26811 #include <$ac_header>
26812 _ACEOF
26813 rm -f conftest.$ac_objext
26814 if { (ac_try="$ac_compile"
26815 case "(($ac_try" in
26816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817   *) ac_try_echo=$ac_try;;
26818 esac
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820   (eval "$ac_compile") 2>conftest.er1
26821   ac_status=$?
26822   grep -v '^ *+' conftest.er1 >conftest.err
26823   rm -f conftest.er1
26824   cat conftest.err >&5
26825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); } && {
26827          test -z "$ac_c_werror_flag" ||
26828          test ! -s conftest.err
26829        } && test -s conftest.$ac_objext; then
26830   ac_header_compiler=yes
26831 else
26832   echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26834
26835         ac_header_compiler=no
26836 fi
26837
26838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26840 echo "${ECHO_T}$ac_header_compiler" >&6; }
26841
26842 # Is the header present?
26843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26845 cat >conftest.$ac_ext <<_ACEOF
26846 /* confdefs.h.  */
26847 _ACEOF
26848 cat confdefs.h >>conftest.$ac_ext
26849 cat >>conftest.$ac_ext <<_ACEOF
26850 /* end confdefs.h.  */
26851 #include <$ac_header>
26852 _ACEOF
26853 if { (ac_try="$ac_cpp conftest.$ac_ext"
26854 case "(($ac_try" in
26855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856   *) ac_try_echo=$ac_try;;
26857 esac
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26860   ac_status=$?
26861   grep -v '^ *+' conftest.er1 >conftest.err
26862   rm -f conftest.er1
26863   cat conftest.err >&5
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); } >/dev/null && {
26866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26867          test ! -s conftest.err
26868        }; then
26869   ac_header_preproc=yes
26870 else
26871   echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874   ac_header_preproc=no
26875 fi
26876
26877 rm -f conftest.err conftest.$ac_ext
26878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26879 echo "${ECHO_T}$ac_header_preproc" >&6; }
26880
26881 # So?  What about this header?
26882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26883   yes:no: )
26884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26888     ac_header_preproc=yes
26889     ;;
26890   no:yes:* )
26891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26903     ( cat <<\_ASBOX
26904 ## --------------------------------------------- ##
26905 ## Report this to brenden1@users.sourceforge.net ##
26906 ## --------------------------------------------- ##
26907 _ASBOX
26908      ) | sed "s/^/$as_me: WARNING:     /" >&2
26909     ;;
26910 esac
26911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26914   echo $ECHO_N "(cached) $ECHO_C" >&6
26915 else
26916   eval "$as_ac_Header=\$ac_header_preproc"
26917 fi
26918 ac_res=`eval echo '${'$as_ac_Header'}'`
26919                { echo "$as_me:$LINENO: result: $ac_res" >&5
26920 echo "${ECHO_T}$ac_res" >&6; }
26921
26922 fi
26923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26924   cat >>confdefs.h <<_ACEOF
26925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26926 _ACEOF
26927
26928 else
26929   { { echo "$as_me:$LINENO: error: NVCtrl/NVCtrl.h header not found" >&5
26930 echo "$as_me: error: NVCtrl/NVCtrl.h header not found" >&2;}
26931    { (exit 1); exit 1; }; }
26932 fi
26933
26934 done
26935
26936                 conky_LIBS="$conky_LIBS -lXNVCtrl"
26937
26938 cat >>confdefs.h <<\_ACEOF
26939 #define NVIDIA 1
26940 _ACEOF
26941
26942         fi
26943 fi
26944
26945
26946 if test x$want_nvidia = xyes; then
26947   BUILD_NVIDIA_TRUE=
26948   BUILD_NVIDIA_FALSE='#'
26949 else
26950   BUILD_NVIDIA_TRUE='#'
26951   BUILD_NVIDIA_FALSE=
26952 fi
26953
26954
26955
26956 if test x$WANT_GLIB = xyes; then
26957
26958 pkg_failed=no
26959 { echo "$as_me:$LINENO: checking for GLib2" >&5
26960 echo $ECHO_N "checking for GLib2... $ECHO_C" >&6; }
26961
26962 if test -n "$PKG_CONFIG"; then
26963     if test -n "$GLib2_CFLAGS"; then
26964         pkg_cv_GLib2_CFLAGS="$GLib2_CFLAGS"
26965     else
26966         if test -n "$PKG_CONFIG" && \
26967     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
26968   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
26969   ac_status=$?
26970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); }; then
26972   pkg_cv_GLib2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
26973 else
26974   pkg_failed=yes
26975 fi
26976     fi
26977 else
26978         pkg_failed=untried
26979 fi
26980 if test -n "$PKG_CONFIG"; then
26981     if test -n "$GLib2_LIBS"; then
26982         pkg_cv_GLib2_LIBS="$GLib2_LIBS"
26983     else
26984         if test -n "$PKG_CONFIG" && \
26985     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
26986   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
26987   ac_status=$?
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); }; then
26990   pkg_cv_GLib2_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
26991 else
26992   pkg_failed=yes
26993 fi
26994     fi
26995 else
26996         pkg_failed=untried
26997 fi
26998
26999
27000
27001 if test $pkg_failed = yes; then
27002
27003 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27004         _pkg_short_errors_supported=yes
27005 else
27006         _pkg_short_errors_supported=no
27007 fi
27008         if test $_pkg_short_errors_supported = yes; then
27009                 GLib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
27010         else
27011                 GLib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
27012         fi
27013         # Put the nasty error message in config.log where it belongs
27014         echo "$GLib2_PKG_ERRORS" >&5
27015
27016         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
27017
27018 $GLib2_PKG_ERRORS
27019
27020 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27021 installed software in a non-standard prefix.
27022
27023 Alternatively, you may set the environment variables GLib2_CFLAGS
27024 and GLib2_LIBS to avoid the need to call pkg-config.
27025 See the pkg-config man page for more details.
27026 " >&5
27027 echo "$as_me: error: Package requirements (glib-2.0) were not met:
27028
27029 $GLib2_PKG_ERRORS
27030
27031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27032 installed software in a non-standard prefix.
27033
27034 Alternatively, you may set the environment variables GLib2_CFLAGS
27035 and GLib2_LIBS to avoid the need to call pkg-config.
27036 See the pkg-config man page for more details.
27037 " >&2;}
27038    { (exit 1); exit 1; }; }
27039 elif test $pkg_failed = untried; then
27040         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
27041 is in your PATH or set the PKG_CONFIG environment variable to the full
27042 path to pkg-config.
27043
27044 Alternatively, you may set the environment variables GLib2_CFLAGS
27045 and GLib2_LIBS to avoid the need to call pkg-config.
27046 See the pkg-config man page for more details.
27047
27048 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27049 See \`config.log' for more details." >&5
27050 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
27051 is in your PATH or set the PKG_CONFIG environment variable to the full
27052 path to pkg-config.
27053
27054 Alternatively, you may set the environment variables GLib2_CFLAGS
27055 and GLib2_LIBS to avoid the need to call pkg-config.
27056 See the pkg-config man page for more details.
27057
27058 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27059 See \`config.log' for more details." >&2;}
27060    { (exit 1); exit 1; }; }
27061 else
27062         GLib2_CFLAGS=$pkg_cv_GLib2_CFLAGS
27063         GLib2_LIBS=$pkg_cv_GLib2_LIBS
27064         { echo "$as_me:$LINENO: result: yes" >&5
27065 echo "${ECHO_T}yes" >&6; }
27066         :
27067 fi
27068         conky_CFLAGS="$conky_CFLAGS $GLib2_CFLAGS"
27069         conky_LIBS="$conky_LIBS $GLib2_LIBS"
27070 fi
27071
27072
27073 if test x$want_curl = xyes; then
27074
27075 pkg_failed=no
27076 { echo "$as_me:$LINENO: checking for libcurl" >&5
27077 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
27078
27079 if test -n "$PKG_CONFIG"; then
27080     if test -n "$libcurl_CFLAGS"; then
27081         pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
27082     else
27083         if test -n "$PKG_CONFIG" && \
27084     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
27085   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; then
27089   pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
27090 else
27091   pkg_failed=yes
27092 fi
27093     fi
27094 else
27095         pkg_failed=untried
27096 fi
27097 if test -n "$PKG_CONFIG"; then
27098     if test -n "$libcurl_LIBS"; then
27099         pkg_cv_libcurl_LIBS="$libcurl_LIBS"
27100     else
27101         if test -n "$PKG_CONFIG" && \
27102     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
27103   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
27104   ac_status=$?
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); }; then
27107   pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
27108 else
27109   pkg_failed=yes
27110 fi
27111     fi
27112 else
27113         pkg_failed=untried
27114 fi
27115
27116
27117
27118 if test $pkg_failed = yes; then
27119
27120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27121         _pkg_short_errors_supported=yes
27122 else
27123         _pkg_short_errors_supported=no
27124 fi
27125         if test $_pkg_short_errors_supported = yes; then
27126                 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
27127         else
27128                 libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
27129         fi
27130         # Put the nasty error message in config.log where it belongs
27131         echo "$libcurl_PKG_ERRORS" >&5
27132
27133         { { echo "$as_me:$LINENO: error: Package requirements (libcurl) were not met:
27134
27135 $libcurl_PKG_ERRORS
27136
27137 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27138 installed software in a non-standard prefix.
27139
27140 Alternatively, you may set the environment variables libcurl_CFLAGS
27141 and libcurl_LIBS to avoid the need to call pkg-config.
27142 See the pkg-config man page for more details.
27143 " >&5
27144 echo "$as_me: error: Package requirements (libcurl) were not met:
27145
27146 $libcurl_PKG_ERRORS
27147
27148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27149 installed software in a non-standard prefix.
27150
27151 Alternatively, you may set the environment variables libcurl_CFLAGS
27152 and libcurl_LIBS to avoid the need to call pkg-config.
27153 See the pkg-config man page for more details.
27154 " >&2;}
27155    { (exit 1); exit 1; }; }
27156 elif test $pkg_failed = untried; then
27157         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
27158 is in your PATH or set the PKG_CONFIG environment variable to the full
27159 path to pkg-config.
27160
27161 Alternatively, you may set the environment variables libcurl_CFLAGS
27162 and libcurl_LIBS to avoid the need to call pkg-config.
27163 See the pkg-config man page for more details.
27164
27165 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27166 See \`config.log' for more details." >&5
27167 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
27168 is in your PATH or set the PKG_CONFIG environment variable to the full
27169 path to pkg-config.
27170
27171 Alternatively, you may set the environment variables libcurl_CFLAGS
27172 and libcurl_LIBS to avoid the need to call pkg-config.
27173 See the pkg-config man page for more details.
27174
27175 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27176 See \`config.log' for more details." >&2;}
27177    { (exit 1); exit 1; }; }
27178 else
27179         libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
27180         libcurl_LIBS=$pkg_cv_libcurl_LIBS
27181         { echo "$as_me:$LINENO: result: yes" >&5
27182 echo "${ECHO_T}yes" >&6; }
27183         :
27184 fi
27185         conky_CFLAGS="$conky_CFLAGS $libcurl_CFLAGS"
27186         conky_LIBS="$conky_LIBS $libcurl_LIBS"
27187
27188 cat >>confdefs.h <<\_ACEOF
27189 #define HAVE_CURL 1
27190 _ACEOF
27191
27192 fi
27193
27194
27195 if test x$want_curl = xyes; then
27196   BUILD_CURL_TRUE=
27197   BUILD_CURL_FALSE='#'
27198 else
27199   BUILD_CURL_TRUE='#'
27200   BUILD_CURL_FALSE=
27201 fi
27202
27203
27204
27205 if test x$want_libxml2 = xyes; then
27206
27207 pkg_failed=no
27208 { echo "$as_me:$LINENO: checking for libxml2" >&5
27209 echo $ECHO_N "checking for libxml2... $ECHO_C" >&6; }
27210
27211 if test -n "$PKG_CONFIG"; then
27212     if test -n "$libxml2_CFLAGS"; then
27213         pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
27214     else
27215         if test -n "$PKG_CONFIG" && \
27216     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
27217   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; then
27221   pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
27222 else
27223   pkg_failed=yes
27224 fi
27225     fi
27226 else
27227         pkg_failed=untried
27228 fi
27229 if test -n "$PKG_CONFIG"; then
27230     if test -n "$libxml2_LIBS"; then
27231         pkg_cv_libxml2_LIBS="$libxml2_LIBS"
27232     else
27233         if test -n "$PKG_CONFIG" && \
27234     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
27235   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
27236   ac_status=$?
27237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238   (exit $ac_status); }; then
27239   pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
27240 else
27241   pkg_failed=yes
27242 fi
27243     fi
27244 else
27245         pkg_failed=untried
27246 fi
27247
27248
27249
27250 if test $pkg_failed = yes; then
27251
27252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27253         _pkg_short_errors_supported=yes
27254 else
27255         _pkg_short_errors_supported=no
27256 fi
27257         if test $_pkg_short_errors_supported = yes; then
27258                 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
27259         else
27260                 libxml2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
27261         fi
27262         # Put the nasty error message in config.log where it belongs
27263         echo "$libxml2_PKG_ERRORS" >&5
27264
27265         { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0) were not met:
27266
27267 $libxml2_PKG_ERRORS
27268
27269 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27270 installed software in a non-standard prefix.
27271
27272 Alternatively, you may set the environment variables libxml2_CFLAGS
27273 and libxml2_LIBS to avoid the need to call pkg-config.
27274 See the pkg-config man page for more details.
27275 " >&5
27276 echo "$as_me: error: Package requirements (libxml-2.0) were not met:
27277
27278 $libxml2_PKG_ERRORS
27279
27280 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27281 installed software in a non-standard prefix.
27282
27283 Alternatively, you may set the environment variables libxml2_CFLAGS
27284 and libxml2_LIBS to avoid the need to call pkg-config.
27285 See the pkg-config man page for more details.
27286 " >&2;}
27287    { (exit 1); exit 1; }; }
27288 elif test $pkg_failed = untried; then
27289         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
27290 is in your PATH or set the PKG_CONFIG environment variable to the full
27291 path to pkg-config.
27292
27293 Alternatively, you may set the environment variables libxml2_CFLAGS
27294 and libxml2_LIBS to avoid the need to call pkg-config.
27295 See the pkg-config man page for more details.
27296
27297 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27298 See \`config.log' for more details." >&5
27299 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
27300 is in your PATH or set the PKG_CONFIG environment variable to the full
27301 path to pkg-config.
27302
27303 Alternatively, you may set the environment variables libxml2_CFLAGS
27304 and libxml2_LIBS to avoid the need to call pkg-config.
27305 See the pkg-config man page for more details.
27306
27307 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27308 See \`config.log' for more details." >&2;}
27309    { (exit 1); exit 1; }; }
27310 else
27311         libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
27312         libxml2_LIBS=$pkg_cv_libxml2_LIBS
27313         { echo "$as_me:$LINENO: result: yes" >&5
27314 echo "${ECHO_T}yes" >&6; }
27315         :
27316 fi
27317         conky_CFLAGS="$conky_CFLAGS $libxml2_CFLAGS"
27318         conky_LIBS="$conky_LIBS $libxml2_LIBS"
27319 fi
27320
27321
27322 if test x$WANT_KVM = xyes; then
27323   { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
27324 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
27325 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
27326   echo $ECHO_N "(cached) $ECHO_C" >&6
27327 else
27328   ac_check_lib_save_LIBS=$LIBS
27329 LIBS="-lkvm  $LIBS"
27330 cat >conftest.$ac_ext <<_ACEOF
27331 /* confdefs.h.  */
27332 _ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h.  */
27336
27337 /* Override any GCC internal prototype to avoid an error.
27338    Use char because int might match the return type of a GCC
27339    builtin and then its argument prototype would still apply.  */
27340 #ifdef __cplusplus
27341 extern "C"
27342 #endif
27343 char kvm_open ();
27344 int
27345 main ()
27346 {
27347 return kvm_open ();
27348   ;
27349   return 0;
27350 }
27351 _ACEOF
27352 rm -f conftest.$ac_objext conftest$ac_exeext
27353 if { (ac_try="$ac_link"
27354 case "(($ac_try" in
27355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356   *) ac_try_echo=$ac_try;;
27357 esac
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359   (eval "$ac_link") 2>conftest.er1
27360   ac_status=$?
27361   grep -v '^ *+' conftest.er1 >conftest.err
27362   rm -f conftest.er1
27363   cat conftest.err >&5
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); } && {
27366          test -z "$ac_c_werror_flag" ||
27367          test ! -s conftest.err
27368        } && test -s conftest$ac_exeext &&
27369        $as_test_x conftest$ac_exeext; then
27370   ac_cv_lib_kvm_kvm_open=yes
27371 else
27372   echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.$ac_ext >&5
27374
27375         ac_cv_lib_kvm_kvm_open=no
27376 fi
27377
27378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27379       conftest$ac_exeext conftest.$ac_ext
27380 LIBS=$ac_check_lib_save_LIBS
27381 fi
27382 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
27383 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
27384 if test $ac_cv_lib_kvm_kvm_open = yes; then
27385   conky_LIBS="$conky_LIBS -lkvm"
27386 else
27387   { { echo "$as_me:$LINENO: error: Could not find kvm_open in -lkvm." >&5
27388 echo "$as_me: error: Could not find kvm_open in -lkvm." >&2;}
27389    { (exit 1); exit 1; }; }
27390
27391 fi
27392
27393 fi
27394
27395
27396 if test x$WANT_DEVSTAT = xyes; then
27397   { echo "$as_me:$LINENO: checking for devstat_getversion in -ldevstat" >&5
27398 echo $ECHO_N "checking for devstat_getversion in -ldevstat... $ECHO_C" >&6; }
27399 if test "${ac_cv_lib_devstat_devstat_getversion+set}" = set; then
27400   echo $ECHO_N "(cached) $ECHO_C" >&6
27401 else
27402   ac_check_lib_save_LIBS=$LIBS
27403 LIBS="-ldevstat  $LIBS"
27404 cat >conftest.$ac_ext <<_ACEOF
27405 /* confdefs.h.  */
27406 _ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h.  */
27410
27411 /* Override any GCC internal prototype to avoid an error.
27412    Use char because int might match the return type of a GCC
27413    builtin and then its argument prototype would still apply.  */
27414 #ifdef __cplusplus
27415 extern "C"
27416 #endif
27417 char devstat_getversion ();
27418 int
27419 main ()
27420 {
27421 return devstat_getversion ();
27422   ;
27423   return 0;
27424 }
27425 _ACEOF
27426 rm -f conftest.$ac_objext conftest$ac_exeext
27427 if { (ac_try="$ac_link"
27428 case "(($ac_try" in
27429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430   *) ac_try_echo=$ac_try;;
27431 esac
27432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433   (eval "$ac_link") 2>conftest.er1
27434   ac_status=$?
27435   grep -v '^ *+' conftest.er1 >conftest.err
27436   rm -f conftest.er1
27437   cat conftest.err >&5
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); } && {
27440          test -z "$ac_c_werror_flag" ||
27441          test ! -s conftest.err
27442        } && test -s conftest$ac_exeext &&
27443        $as_test_x conftest$ac_exeext; then
27444   ac_cv_lib_devstat_devstat_getversion=yes
27445 else
27446   echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27448
27449         ac_cv_lib_devstat_devstat_getversion=no
27450 fi
27451
27452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27453       conftest$ac_exeext conftest.$ac_ext
27454 LIBS=$ac_check_lib_save_LIBS
27455 fi
27456 { echo "$as_me:$LINENO: result: $ac_cv_lib_devstat_devstat_getversion" >&5
27457 echo "${ECHO_T}$ac_cv_lib_devstat_devstat_getversion" >&6; }
27458 if test $ac_cv_lib_devstat_devstat_getversion = yes; then
27459   conky_LIBS="$conky_LIBS -ldevstat"
27460 else
27461   { { echo "$as_me:$LINENO: error: Cound not find devstat_getversion in -ldevstat." >&5
27462 echo "$as_me: error: Cound not find devstat_getversion in -ldevstat." >&2;}
27463    { (exit 1); exit 1; }; }
27464
27465 fi
27466
27467 fi
27468
27469
27470 if test x$WANT_OSSLIB = xyes; then
27471     { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
27472 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
27473 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
27474   echo $ECHO_N "(cached) $ECHO_C" >&6
27475 else
27476   ac_check_lib_save_LIBS=$LIBS
27477 LIBS="-lossaudio  $LIBS"
27478 cat >conftest.$ac_ext <<_ACEOF
27479 /* confdefs.h.  */
27480 _ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h.  */
27484
27485 /* Override any GCC internal prototype to avoid an error.
27486    Use char because int might match the return type of a GCC
27487    builtin and then its argument prototype would still apply.  */
27488 #ifdef __cplusplus
27489 extern "C"
27490 #endif
27491 char _oss_ioctl ();
27492 int
27493 main ()
27494 {
27495 return _oss_ioctl ();
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507   (eval "$ac_link") 2>conftest.er1
27508   ac_status=$?
27509   grep -v '^ *+' conftest.er1 >conftest.err
27510   rm -f conftest.er1
27511   cat conftest.err >&5
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); } && {
27514          test -z "$ac_c_werror_flag" ||
27515          test ! -s conftest.err
27516        } && test -s conftest$ac_exeext &&
27517        $as_test_x conftest$ac_exeext; then
27518   ac_cv_lib_ossaudio__oss_ioctl=yes
27519 else
27520   echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27522
27523         ac_cv_lib_ossaudio__oss_ioctl=no
27524 fi
27525
27526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27527       conftest$ac_exeext conftest.$ac_ext
27528 LIBS=$ac_check_lib_save_LIBS
27529 fi
27530 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
27531 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
27532 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
27533   conky_LIBS="$conky_LIBS -lossaudio"
27534 else
27535   { { echo "$as_me:$LINENO: error: Could not find oss_ioctl in -lossaudio." >&5
27536 echo "$as_me: error: Could not find oss_ioctl in -lossaudio." >&2;}
27537    { (exit 1); exit 1; }; }
27538
27539 fi
27540
27541 fi
27542
27543 # Check whether --enable-alsa was given.
27544 if test "${enable_alsa+set}" = set; then
27545   enableval=$enable_alsa; want_alsa="$enableval"
27546 else
27547   want_alsa=yes
27548 fi
27549
27550
27551 if test x$want_alsa = xyes; then
27552     if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
27553   { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
27554 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
27555 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
27556   echo $ECHO_N "(cached) $ECHO_C" >&6
27557 fi
27558 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
27559 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
27560 else
27561   # Is the header compilable?
27562 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
27563 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
27564 cat >conftest.$ac_ext <<_ACEOF
27565 /* confdefs.h.  */
27566 _ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h.  */
27570 $ac_includes_default
27571 #include <alsa/asoundlib.h>
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (ac_try="$ac_compile"
27575 case "(($ac_try" in
27576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577   *) ac_try_echo=$ac_try;;
27578 esac
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580   (eval "$ac_compile") 2>conftest.er1
27581   ac_status=$?
27582   grep -v '^ *+' conftest.er1 >conftest.err
27583   rm -f conftest.er1
27584   cat conftest.err >&5
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); } && {
27587          test -z "$ac_c_werror_flag" ||
27588          test ! -s conftest.err
27589        } && test -s conftest.$ac_objext; then
27590   ac_header_compiler=yes
27591 else
27592   echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27594
27595         ac_header_compiler=no
27596 fi
27597
27598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27600 echo "${ECHO_T}$ac_header_compiler" >&6; }
27601
27602 # Is the header present?
27603 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
27604 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
27605 cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h.  */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h.  */
27611 #include <alsa/asoundlib.h>
27612 _ACEOF
27613 if { (ac_try="$ac_cpp conftest.$ac_ext"
27614 case "(($ac_try" in
27615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616   *) ac_try_echo=$ac_try;;
27617 esac
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27620   ac_status=$?
27621   grep -v '^ *+' conftest.er1 >conftest.err
27622   rm -f conftest.er1
27623   cat conftest.err >&5
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } >/dev/null && {
27626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27627          test ! -s conftest.err
27628        }; then
27629   ac_header_preproc=yes
27630 else
27631   echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634   ac_header_preproc=no
27635 fi
27636
27637 rm -f conftest.err conftest.$ac_ext
27638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27639 echo "${ECHO_T}$ac_header_preproc" >&6; }
27640
27641 # So?  What about this header?
27642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27643   yes:no: )
27644     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27645 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27646     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
27647 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
27648     ac_header_preproc=yes
27649     ;;
27650   no:yes:* )
27651     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
27652 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
27653     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&5
27654 echo "$as_me: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&2;}
27655     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
27656 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
27657     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&5
27658 echo "$as_me: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27659     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
27660 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
27661     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
27662 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
27663     ( cat <<\_ASBOX
27664 ## --------------------------------------------- ##
27665 ## Report this to brenden1@users.sourceforge.net ##
27666 ## --------------------------------------------- ##
27667 _ASBOX
27668      ) | sed "s/^/$as_me: WARNING:     /" >&2
27669     ;;
27670 esac
27671 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
27672 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
27673 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
27674   echo $ECHO_N "(cached) $ECHO_C" >&6
27675 else
27676   ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
27677 fi
27678 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
27679 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
27680
27681 fi
27682 if test $ac_cv_header_alsa_asoundlib_h = yes; then
27683   :
27684 else
27685   want_alsa=no
27686 fi
27687
27688
27689 fi
27690 if test x$want_alsa = xyes; then
27691     { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
27692 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
27693 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
27694   echo $ECHO_N "(cached) $ECHO_C" >&6
27695 else
27696   ac_check_lib_save_LIBS=$LIBS
27697 LIBS="-lasound  $LIBS"
27698 cat >conftest.$ac_ext <<_ACEOF
27699 /* confdefs.h.  */
27700 _ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h.  */
27704
27705 /* Override any GCC internal prototype to avoid an error.
27706    Use char because int might match the return type of a GCC
27707    builtin and then its argument prototype would still apply.  */
27708 #ifdef __cplusplus
27709 extern "C"
27710 #endif
27711 char snd_pcm_open ();
27712 int
27713 main ()
27714 {
27715 return snd_pcm_open ();
27716   ;
27717   return 0;
27718 }
27719 _ACEOF
27720 rm -f conftest.$ac_objext conftest$ac_exeext
27721 if { (ac_try="$ac_link"
27722 case "(($ac_try" in
27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724   *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727   (eval "$ac_link") 2>conftest.er1
27728   ac_status=$?
27729   grep -v '^ *+' conftest.er1 >conftest.err
27730   rm -f conftest.er1
27731   cat conftest.err >&5
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); } && {
27734          test -z "$ac_c_werror_flag" ||
27735          test ! -s conftest.err
27736        } && test -s conftest$ac_exeext &&
27737        $as_test_x conftest$ac_exeext; then
27738   ac_cv_lib_asound_snd_pcm_open=yes
27739 else
27740   echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743         ac_cv_lib_asound_snd_pcm_open=no
27744 fi
27745
27746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27747       conftest$ac_exeext conftest.$ac_ext
27748 LIBS=$ac_check_lib_save_LIBS
27749 fi
27750 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
27751 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
27752 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
27753   conky_LIBS="$conky_LIBS -lasound"
27754 else
27755   want_alsa=no
27756 fi
27757
27758 fi
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775 for ac_header in signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h \
27776       sys/statfs.h sys/param.h pthread.h semaphore.h assert.h errno.h time.h
27777 do
27778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27780   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27783   echo $ECHO_N "(cached) $ECHO_C" >&6
27784 fi
27785 ac_res=`eval echo '${'$as_ac_Header'}'`
27786                { echo "$as_me:$LINENO: result: $ac_res" >&5
27787 echo "${ECHO_T}$ac_res" >&6; }
27788 else
27789   # Is the header compilable?
27790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27792 cat >conftest.$ac_ext <<_ACEOF
27793 /* confdefs.h.  */
27794 _ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h.  */
27798 $ac_includes_default
27799 #include <$ac_header>
27800 _ACEOF
27801 rm -f conftest.$ac_objext
27802 if { (ac_try="$ac_compile"
27803 case "(($ac_try" in
27804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805   *) ac_try_echo=$ac_try;;
27806 esac
27807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27808   (eval "$ac_compile") 2>conftest.er1
27809   ac_status=$?
27810   grep -v '^ *+' conftest.er1 >conftest.err
27811   rm -f conftest.er1
27812   cat conftest.err >&5
27813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814   (exit $ac_status); } && {
27815          test -z "$ac_c_werror_flag" ||
27816          test ! -s conftest.err
27817        } && test -s conftest.$ac_objext; then
27818   ac_header_compiler=yes
27819 else
27820   echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27822
27823         ac_header_compiler=no
27824 fi
27825
27826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27828 echo "${ECHO_T}$ac_header_compiler" >&6; }
27829
27830 # Is the header present?
27831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27833 cat >conftest.$ac_ext <<_ACEOF
27834 /* confdefs.h.  */
27835 _ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h.  */
27839 #include <$ac_header>
27840 _ACEOF
27841 if { (ac_try="$ac_cpp conftest.$ac_ext"
27842 case "(($ac_try" in
27843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844   *) ac_try_echo=$ac_try;;
27845 esac
27846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27848   ac_status=$?
27849   grep -v '^ *+' conftest.er1 >conftest.err
27850   rm -f conftest.er1
27851   cat conftest.err >&5
27852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } >/dev/null && {
27854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27855          test ! -s conftest.err
27856        }; then
27857   ac_header_preproc=yes
27858 else
27859   echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27861
27862   ac_header_preproc=no
27863 fi
27864
27865 rm -f conftest.err conftest.$ac_ext
27866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27867 echo "${ECHO_T}$ac_header_preproc" >&6; }
27868
27869 # So?  What about this header?
27870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27871   yes:no: )
27872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27876     ac_header_preproc=yes
27877     ;;
27878   no:yes:* )
27879     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27881     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27882 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27883     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27885     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27886 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27889     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27891     ( cat <<\_ASBOX
27892 ## --------------------------------------------- ##
27893 ## Report this to brenden1@users.sourceforge.net ##
27894 ## --------------------------------------------- ##
27895 _ASBOX
27896      ) | sed "s/^/$as_me: WARNING:     /" >&2
27897     ;;
27898 esac
27899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27902   echo $ECHO_N "(cached) $ECHO_C" >&6
27903 else
27904   eval "$as_ac_Header=\$ac_header_preproc"
27905 fi
27906 ac_res=`eval echo '${'$as_ac_Header'}'`
27907                { echo "$as_me:$LINENO: result: $ac_res" >&5
27908 echo "${ECHO_T}$ac_res" >&6; }
27909
27910 fi
27911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27912   cat >>confdefs.h <<_ACEOF
27913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27914 _ACEOF
27915
27916 fi
27917
27918 done
27919
27920
27921 for ac_header in sys/mount.h
27922 do
27923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27927   echo $ECHO_N "(cached) $ECHO_C" >&6
27928 else
27929   cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935 #ifdef HAVE_SYS_PARAM_H
27936       #include <sys/param.h>
27937       #endif
27938
27939
27940 #include <$ac_header>
27941 _ACEOF
27942 rm -f conftest.$ac_objext
27943 if { (ac_try="$ac_compile"
27944 case "(($ac_try" in
27945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27946   *) ac_try_echo=$ac_try;;
27947 esac
27948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27949   (eval "$ac_compile") 2>conftest.er1
27950   ac_status=$?
27951   grep -v '^ *+' conftest.er1 >conftest.err
27952   rm -f conftest.er1
27953   cat conftest.err >&5
27954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955   (exit $ac_status); } && {
27956          test -z "$ac_c_werror_flag" ||
27957          test ! -s conftest.err
27958        } && test -s conftest.$ac_objext; then
27959   eval "$as_ac_Header=yes"
27960 else
27961   echo "$as_me: failed program was:" >&5
27962 sed 's/^/| /' conftest.$ac_ext >&5
27963
27964         eval "$as_ac_Header=no"
27965 fi
27966
27967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27968 fi
27969 ac_res=`eval echo '${'$as_ac_Header'}'`
27970                { echo "$as_me:$LINENO: result: $ac_res" >&5
27971 echo "${ECHO_T}$ac_res" >&6; }
27972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973   cat >>confdefs.h <<_ACEOF
27974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27975 _ACEOF
27976
27977 fi
27978
27979 done
27980
27981 # check if we have inotify support
27982 # DML #AC_CHECK_HEADERS([sys/inotify.h])
27983
27984
27985
27986 cat >>confdefs.h <<\_ACEOF
27987 #define DEFAULTNETDEV "eth0"
27988 _ACEOF
27989
27990
27991 cat >>confdefs.h <<\_ACEOF
27992 #define CONFIG_FILE "$HOME/.conkyrc"
27993 _ACEOF
27994
27995
27996 cat >>confdefs.h <<\_ACEOF
27997 #define MAX_SPECIALS_DEFAULT 512
27998 _ACEOF
27999
28000
28001 cat >>confdefs.h <<\_ACEOF
28002 #define MAX_USER_TEXT_DEFAULT 16384
28003 _ACEOF
28004
28005
28006 cat >>confdefs.h <<\_ACEOF
28007 #define DEFAULT_TEXT_BUFFER_SIZE 256
28008 _ACEOF
28009
28010
28011 cat >>confdefs.h <<\_ACEOF
28012 #define MAX_NET_INTERFACES 16
28013 _ACEOF
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026 for ac_func in calloc malloc free popen sysinfo getloadavg memrchr strndup gethostbyname_r
28027 do
28028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28032   echo $ECHO_N "(cached) $ECHO_C" >&6
28033 else
28034   cat >conftest.$ac_ext <<_ACEOF
28035 /* confdefs.h.  */
28036 _ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h.  */
28040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28042 #define $ac_func innocuous_$ac_func
28043
28044 /* System header to define __stub macros and hopefully few prototypes,
28045     which can conflict with char $ac_func (); below.
28046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28047     <limits.h> exists even on freestanding compilers.  */
28048
28049 #ifdef __STDC__
28050 # include <limits.h>
28051 #else
28052 # include <assert.h>
28053 #endif
28054
28055 #undef $ac_func
28056
28057 /* Override any GCC internal prototype to avoid an error.
28058    Use char because int might match the return type of a GCC
28059    builtin and then its argument prototype would still apply.  */
28060 #ifdef __cplusplus
28061 extern "C"
28062 #endif
28063 char $ac_func ();
28064 /* The GNU C library defines this for functions which it implements
28065     to always fail with ENOSYS.  Some functions are actually named
28066     something starting with __ and the normal name is an alias.  */
28067 #if defined __stub_$ac_func || defined __stub___$ac_func
28068 choke me
28069 #endif
28070
28071 int
28072 main ()
28073 {
28074 return $ac_func ();
28075   ;
28076   return 0;
28077 }
28078 _ACEOF
28079 rm -f conftest.$ac_objext conftest$ac_exeext
28080 if { (ac_try="$ac_link"
28081 case "(($ac_try" in
28082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083   *) ac_try_echo=$ac_try;;
28084 esac
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086   (eval "$ac_link") 2>conftest.er1
28087   ac_status=$?
28088   grep -v '^ *+' conftest.er1 >conftest.err
28089   rm -f conftest.er1
28090   cat conftest.err >&5
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); } && {
28093          test -z "$ac_c_werror_flag" ||
28094          test ! -s conftest.err
28095        } && test -s conftest$ac_exeext &&
28096        $as_test_x conftest$ac_exeext; then
28097   eval "$as_ac_var=yes"
28098 else
28099   echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28101
28102         eval "$as_ac_var=no"
28103 fi
28104
28105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28106       conftest$ac_exeext conftest.$ac_ext
28107 fi
28108 ac_res=`eval echo '${'$as_ac_var'}'`
28109                { echo "$as_me:$LINENO: result: $ac_res" >&5
28110 echo "${ECHO_T}$ac_res" >&6; }
28111 if test `eval echo '${'$as_ac_var'}'` = yes; then
28112   cat >>confdefs.h <<_ACEOF
28113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28114 _ACEOF
28115
28116 fi
28117 done
28118
28119 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
28120 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
28121 if test "${ac_cv_search_clock_gettime+set}" = set; then
28122   echo $ECHO_N "(cached) $ECHO_C" >&6
28123 else
28124   ac_func_search_save_LIBS=$LIBS
28125 cat >conftest.$ac_ext <<_ACEOF
28126 /* confdefs.h.  */
28127 _ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h.  */
28131
28132 /* Override any GCC internal prototype to avoid an error.
28133    Use char because int might match the return type of a GCC
28134    builtin and then its argument prototype would still apply.  */
28135 #ifdef __cplusplus
28136 extern "C"
28137 #endif
28138 char clock_gettime ();
28139 int
28140 main ()
28141 {
28142 return clock_gettime ();
28143   ;
28144   return 0;
28145 }
28146 _ACEOF
28147 for ac_lib in '' rt; do
28148   if test -z "$ac_lib"; then
28149     ac_res="none required"
28150   else
28151     ac_res=-l$ac_lib
28152     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28153   fi
28154   rm -f conftest.$ac_objext conftest$ac_exeext
28155 if { (ac_try="$ac_link"
28156 case "(($ac_try" in
28157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158   *) ac_try_echo=$ac_try;;
28159 esac
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161   (eval "$ac_link") 2>conftest.er1
28162   ac_status=$?
28163   grep -v '^ *+' conftest.er1 >conftest.err
28164   rm -f conftest.er1
28165   cat conftest.err >&5
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); } && {
28168          test -z "$ac_c_werror_flag" ||
28169          test ! -s conftest.err
28170        } && test -s conftest$ac_exeext &&
28171        $as_test_x conftest$ac_exeext; then
28172   ac_cv_search_clock_gettime=$ac_res
28173 else
28174   echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28176
28177
28178 fi
28179
28180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28181       conftest$ac_exeext
28182   if test "${ac_cv_search_clock_gettime+set}" = set; then
28183   break
28184 fi
28185 done
28186 if test "${ac_cv_search_clock_gettime+set}" = set; then
28187   :
28188 else
28189   ac_cv_search_clock_gettime=no
28190 fi
28191 rm conftest.$ac_ext
28192 LIBS=$ac_func_search_save_LIBS
28193 fi
28194 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
28195 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
28196 ac_res=$ac_cv_search_clock_gettime
28197 if test "$ac_res" != no; then
28198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28199   conky_LIBS="$conky_LIBS $LIBS"
28200
28201 cat >>confdefs.h <<\_ACEOF
28202 #define HAVE_CLOCK_GETTIME 1
28203 _ACEOF
28204
28205 else
28206
28207 for ac_func in gettimeofday
28208 do
28209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28213   echo $ECHO_N "(cached) $ECHO_C" >&6
28214 else
28215   cat >conftest.$ac_ext <<_ACEOF
28216 /* confdefs.h.  */
28217 _ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h.  */
28221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28223 #define $ac_func innocuous_$ac_func
28224
28225 /* System header to define __stub macros and hopefully few prototypes,
28226     which can conflict with char $ac_func (); below.
28227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28228     <limits.h> exists even on freestanding compilers.  */
28229
28230 #ifdef __STDC__
28231 # include <limits.h>
28232 #else
28233 # include <assert.h>
28234 #endif
28235
28236 #undef $ac_func
28237
28238 /* Override any GCC internal prototype to avoid an error.
28239    Use char because int might match the return type of a GCC
28240    builtin and then its argument prototype would still apply.  */
28241 #ifdef __cplusplus
28242 extern "C"
28243 #endif
28244 char $ac_func ();
28245 /* The GNU C library defines this for functions which it implements
28246     to always fail with ENOSYS.  Some functions are actually named
28247     something starting with __ and the normal name is an alias.  */
28248 #if defined __stub_$ac_func || defined __stub___$ac_func
28249 choke me
28250 #endif
28251
28252 int
28253 main ()
28254 {
28255 return $ac_func ();
28256   ;
28257   return 0;
28258 }
28259 _ACEOF
28260 rm -f conftest.$ac_objext conftest$ac_exeext
28261 if { (ac_try="$ac_link"
28262 case "(($ac_try" in
28263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264   *) ac_try_echo=$ac_try;;
28265 esac
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267   (eval "$ac_link") 2>conftest.er1
28268   ac_status=$?
28269   grep -v '^ *+' conftest.er1 >conftest.err
28270   rm -f conftest.er1
28271   cat conftest.err >&5
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); } && {
28274          test -z "$ac_c_werror_flag" ||
28275          test ! -s conftest.err
28276        } && test -s conftest$ac_exeext &&
28277        $as_test_x conftest$ac_exeext; then
28278   eval "$as_ac_var=yes"
28279 else
28280   echo "$as_me: failed program was:" >&5
28281 sed 's/^/| /' conftest.$ac_ext >&5
28282
28283         eval "$as_ac_var=no"
28284 fi
28285
28286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28287       conftest$ac_exeext conftest.$ac_ext
28288 fi
28289 ac_res=`eval echo '${'$as_ac_var'}'`
28290                { echo "$as_me:$LINENO: result: $ac_res" >&5
28291 echo "${ECHO_T}$ac_res" >&6; }
28292 if test `eval echo '${'$as_ac_var'}'` = yes; then
28293   cat >>confdefs.h <<_ACEOF
28294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28295 _ACEOF
28296
28297 else
28298   { { echo "$as_me:$LINENO: error: gettimeofday() not available!" >&5
28299 echo "$as_me: error: gettimeofday() not available!" >&2;}
28300    { (exit 1); exit 1; }; }
28301 fi
28302 done
28303
28304 fi
28305
28306
28307
28308 { echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
28309 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6; }
28310 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
28311   echo $ECHO_N "(cached) $ECHO_C" >&6
28312 else
28313   cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h.  */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h.  */
28319 #include <sys/statfs.h>
28320
28321 int
28322 main ()
28323 {
28324 static struct statfs ac_aggr;
28325 if (ac_aggr.f_fstypename)
28326 return 0;
28327   ;
28328   return 0;
28329 }
28330 _ACEOF
28331 rm -f conftest.$ac_objext
28332 if { (ac_try="$ac_compile"
28333 case "(($ac_try" in
28334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335   *) ac_try_echo=$ac_try;;
28336 esac
28337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338   (eval "$ac_compile") 2>conftest.er1
28339   ac_status=$?
28340   grep -v '^ *+' conftest.er1 >conftest.err
28341   rm -f conftest.er1
28342   cat conftest.err >&5
28343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344   (exit $ac_status); } && {
28345          test -z "$ac_c_werror_flag" ||
28346          test ! -s conftest.err
28347        } && test -s conftest.$ac_objext; then
28348   ac_cv_member_struct_statfs_f_fstypename=yes
28349 else
28350   echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28352
28353         cat >conftest.$ac_ext <<_ACEOF
28354 /* confdefs.h.  */
28355 _ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h.  */
28359 #include <sys/statfs.h>
28360
28361 int
28362 main ()
28363 {
28364 static struct statfs ac_aggr;
28365 if (sizeof ac_aggr.f_fstypename)
28366 return 0;
28367   ;
28368   return 0;
28369 }
28370 _ACEOF
28371 rm -f conftest.$ac_objext
28372 if { (ac_try="$ac_compile"
28373 case "(($ac_try" in
28374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375   *) ac_try_echo=$ac_try;;
28376 esac
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378   (eval "$ac_compile") 2>conftest.er1
28379   ac_status=$?
28380   grep -v '^ *+' conftest.er1 >conftest.err
28381   rm -f conftest.er1
28382   cat conftest.err >&5
28383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384   (exit $ac_status); } && {
28385          test -z "$ac_c_werror_flag" ||
28386          test ! -s conftest.err
28387        } && test -s conftest.$ac_objext; then
28388   ac_cv_member_struct_statfs_f_fstypename=yes
28389 else
28390   echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28392
28393         ac_cv_member_struct_statfs_f_fstypename=no
28394 fi
28395
28396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28397 fi
28398
28399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28400 fi
28401 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
28402 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6; }
28403 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
28404
28405 cat >>confdefs.h <<\_ACEOF
28406 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
28407 _ACEOF
28408
28409 fi
28410
28411
28412
28413 if test "${ac_cv_header_zlib_h+set}" = set; then
28414   { echo "$as_me:$LINENO: checking for zlib.h" >&5
28415 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28416 if test "${ac_cv_header_zlib_h+set}" = set; then
28417   echo $ECHO_N "(cached) $ECHO_C" >&6
28418 fi
28419 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28420 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28421 else
28422   # Is the header compilable?
28423 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28424 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28425 cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h.  */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h.  */
28431 $ac_includes_default
28432 #include <zlib.h>
28433 _ACEOF
28434 rm -f conftest.$ac_objext
28435 if { (ac_try="$ac_compile"
28436 case "(($ac_try" in
28437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28438   *) ac_try_echo=$ac_try;;
28439 esac
28440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28441   (eval "$ac_compile") 2>conftest.er1
28442   ac_status=$?
28443   grep -v '^ *+' conftest.er1 >conftest.err
28444   rm -f conftest.er1
28445   cat conftest.err >&5
28446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447   (exit $ac_status); } && {
28448          test -z "$ac_c_werror_flag" ||
28449          test ! -s conftest.err
28450        } && test -s conftest.$ac_objext; then
28451   ac_header_compiler=yes
28452 else
28453   echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28455
28456         ac_header_compiler=no
28457 fi
28458
28459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28461 echo "${ECHO_T}$ac_header_compiler" >&6; }
28462
28463 # Is the header present?
28464 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28465 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28466 cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h.  */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h.  */
28472 #include <zlib.h>
28473 _ACEOF
28474 if { (ac_try="$ac_cpp conftest.$ac_ext"
28475 case "(($ac_try" in
28476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477   *) ac_try_echo=$ac_try;;
28478 esac
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28481   ac_status=$?
28482   grep -v '^ *+' conftest.er1 >conftest.err
28483   rm -f conftest.er1
28484   cat conftest.err >&5
28485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486   (exit $ac_status); } >/dev/null && {
28487          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28488          test ! -s conftest.err
28489        }; then
28490   ac_header_preproc=yes
28491 else
28492   echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28494
28495   ac_header_preproc=no
28496 fi
28497
28498 rm -f conftest.err conftest.$ac_ext
28499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28500 echo "${ECHO_T}$ac_header_preproc" >&6; }
28501
28502 # So?  What about this header?
28503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28504   yes:no: )
28505     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28506 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28507     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28508 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28509     ac_header_preproc=yes
28510     ;;
28511   no:yes:* )
28512     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28513 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28514     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
28515 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
28516     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28517 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28518     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
28519 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28520     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28521 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28522     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28523 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28524     ( cat <<\_ASBOX
28525 ## --------------------------------------------- ##
28526 ## Report this to brenden1@users.sourceforge.net ##
28527 ## --------------------------------------------- ##
28528 _ASBOX
28529      ) | sed "s/^/$as_me: WARNING:     /" >&2
28530     ;;
28531 esac
28532 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28533 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28534 if test "${ac_cv_header_zlib_h+set}" = set; then
28535   echo $ECHO_N "(cached) $ECHO_C" >&6
28536 else
28537   ac_cv_header_zlib_h=$ac_header_preproc
28538 fi
28539 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28540 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28541
28542 fi
28543 if test $ac_cv_header_zlib_h = yes; then
28544   :
28545 else
28546   { { echo "$as_me:$LINENO: error: zlib is missing; please install the headers first" >&5
28547 echo "$as_me: error: zlib is missing; please install the headers first" >&2;}
28548    { (exit 1); exit 1; }; }
28549 fi
28550
28551
28552
28553
28554
28555
28556
28557
28558 for ac_prog in db2x_xsltproc
28559 do
28560   # Extract the first word of "$ac_prog", so it can be a program name with args.
28561 set dummy $ac_prog; ac_word=$2
28562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28564 if test "${ac_cv_prog_db2x_xsltproc_cmd+set}" = set; then
28565   echo $ECHO_N "(cached) $ECHO_C" >&6
28566 else
28567   if test -n "$db2x_xsltproc_cmd"; then
28568   ac_cv_prog_db2x_xsltproc_cmd="$db2x_xsltproc_cmd" # Let the user override the test.
28569 else
28570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28571 for as_dir in $PATH
28572 do
28573   IFS=$as_save_IFS
28574   test -z "$as_dir" && as_dir=.
28575   for ac_exec_ext in '' $ac_executable_extensions; do
28576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28577     ac_cv_prog_db2x_xsltproc_cmd="$ac_prog"
28578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28579     break 2
28580   fi
28581 done
28582 done
28583 IFS=$as_save_IFS
28584
28585 fi
28586 fi
28587 db2x_xsltproc_cmd=$ac_cv_prog_db2x_xsltproc_cmd
28588 if test -n "$db2x_xsltproc_cmd"; then
28589   { echo "$as_me:$LINENO: result: $db2x_xsltproc_cmd" >&5
28590 echo "${ECHO_T}$db2x_xsltproc_cmd" >&6; }
28591 else
28592   { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594 fi
28595
28596
28597   test -n "$db2x_xsltproc_cmd" && break
28598 done
28599
28600 for ac_prog in db2x_manxml
28601 do
28602   # Extract the first word of "$ac_prog", so it can be a program name with args.
28603 set dummy $ac_prog; ac_word=$2
28604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28606 if test "${ac_cv_prog_db2x_manxml_cmd+set}" = set; then
28607   echo $ECHO_N "(cached) $ECHO_C" >&6
28608 else
28609   if test -n "$db2x_manxml_cmd"; then
28610   ac_cv_prog_db2x_manxml_cmd="$db2x_manxml_cmd" # Let the user override the test.
28611 else
28612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28613 for as_dir in $PATH
28614 do
28615   IFS=$as_save_IFS
28616   test -z "$as_dir" && as_dir=.
28617   for ac_exec_ext in '' $ac_executable_extensions; do
28618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28619     ac_cv_prog_db2x_manxml_cmd="$ac_prog"
28620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28621     break 2
28622   fi
28623 done
28624 done
28625 IFS=$as_save_IFS
28626
28627 fi
28628 fi
28629 db2x_manxml_cmd=$ac_cv_prog_db2x_manxml_cmd
28630 if test -n "$db2x_manxml_cmd"; then
28631   { echo "$as_me:$LINENO: result: $db2x_manxml_cmd" >&5
28632 echo "${ECHO_T}$db2x_manxml_cmd" >&6; }
28633 else
28634   { echo "$as_me:$LINENO: result: no" >&5
28635 echo "${ECHO_T}no" >&6; }
28636 fi
28637
28638
28639   test -n "$db2x_manxml_cmd" && break
28640 done
28641
28642 for ac_prog in xsltproc
28643 do
28644   # Extract the first word of "$ac_prog", so it can be a program name with args.
28645 set dummy $ac_prog; ac_word=$2
28646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28648 if test "${ac_cv_prog_xsltproc_cmd+set}" = set; then
28649   echo $ECHO_N "(cached) $ECHO_C" >&6
28650 else
28651   if test -n "$xsltproc_cmd"; then
28652   ac_cv_prog_xsltproc_cmd="$xsltproc_cmd" # Let the user override the test.
28653 else
28654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28655 for as_dir in $PATH
28656 do
28657   IFS=$as_save_IFS
28658   test -z "$as_dir" && as_dir=.
28659   for ac_exec_ext in '' $ac_executable_extensions; do
28660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28661     ac_cv_prog_xsltproc_cmd="$ac_prog"
28662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28663     break 2
28664   fi
28665 done
28666 done
28667 IFS=$as_save_IFS
28668
28669 fi
28670 fi
28671 xsltproc_cmd=$ac_cv_prog_xsltproc_cmd
28672 if test -n "$xsltproc_cmd"; then
28673   { echo "$as_me:$LINENO: result: $xsltproc_cmd" >&5
28674 echo "${ECHO_T}$xsltproc_cmd" >&6; }
28675 else
28676   { echo "$as_me:$LINENO: result: no" >&5
28677 echo "${ECHO_T}no" >&6; }
28678 fi
28679
28680
28681   test -n "$xsltproc_cmd" && break
28682 done
28683
28684 if test x$db2x_xsltproc_cmd = "x" -o x$xsltproc_cmd = "x"; then
28685
28686
28687 if false; then
28688   HAVE_DOCSTUFF_TRUE=
28689   HAVE_DOCSTUFF_FALSE='#'
28690 else
28691   HAVE_DOCSTUFF_TRUE='#'
28692   HAVE_DOCSTUFF_FALSE=
28693 fi
28694
28695 else
28696
28697
28698 if true; then
28699   HAVE_DOCSTUFF_TRUE=
28700   HAVE_DOCSTUFF_FALSE='#'
28701 else
28702   HAVE_DOCSTUFF_TRUE='#'
28703   HAVE_DOCSTUFF_FALSE=
28704 fi
28705
28706 fi
28707
28708
28709 if test x$WANT_KSTAT = xyes; then
28710   dah=no
28711   { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
28712 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
28713 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
28714   echo $ECHO_N "(cached) $ECHO_C" >&6
28715 else
28716   ac_check_lib_save_LIBS=$LIBS
28717 LIBS="-lkstat  $LIBS"
28718 cat >conftest.$ac_ext <<_ACEOF
28719 /* confdefs.h.  */
28720 _ACEOF
28721 cat confdefs.h >>conftest.$ac_ext
28722 cat >>conftest.$ac_ext <<_ACEOF
28723 /* end confdefs.h.  */
28724
28725 /* Override any GCC internal prototype to avoid an error.
28726    Use char because int might match the return type of a GCC
28727    builtin and then its argument prototype would still apply.  */
28728 #ifdef __cplusplus
28729 extern "C"
28730 #endif
28731 char kstat_open ();
28732 int
28733 main ()
28734 {
28735 return kstat_open ();
28736   ;
28737   return 0;
28738 }
28739 _ACEOF
28740 rm -f conftest.$ac_objext conftest$ac_exeext
28741 if { (ac_try="$ac_link"
28742 case "(($ac_try" in
28743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28744   *) ac_try_echo=$ac_try;;
28745 esac
28746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28747   (eval "$ac_link") 2>conftest.er1
28748   ac_status=$?
28749   grep -v '^ *+' conftest.er1 >conftest.err
28750   rm -f conftest.er1
28751   cat conftest.err >&5
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); } && {
28754          test -z "$ac_c_werror_flag" ||
28755          test ! -s conftest.err
28756        } && test -s conftest$ac_exeext &&
28757        $as_test_x conftest$ac_exeext; then
28758   ac_cv_lib_kstat_kstat_open=yes
28759 else
28760   echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28762
28763         ac_cv_lib_kstat_kstat_open=no
28764 fi
28765
28766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28767       conftest$ac_exeext conftest.$ac_ext
28768 LIBS=$ac_check_lib_save_LIBS
28769 fi
28770 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
28771 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
28772 if test $ac_cv_lib_kstat_kstat_open = yes; then
28773   dah=yes
28774 fi
28775
28776
28777   if test x$dah = xyes; then
28778
28779 cat >>confdefs.h <<\_ACEOF
28780 #define HAVE_KSTAT 1
28781 _ACEOF
28782
28783     conky_LDFLAGS="$conky_LDFLAGS -lkstat"
28784   fi
28785 fi
28786
28787
28788
28789
28790 { echo "$as_me:$LINENO: checking if $LD accepts -O1" >&5
28791 echo $ECHO_N "checking if $LD accepts -O1... $ECHO_C" >&6; }
28792 case `$LD -O1 -v 2>&1 </dev/null` in
28793 *GNU* | *BSD*)
28794   conky_LDFLAGS="$conky_LDFLAGS -Wl,-O1"
28795   { echo "$as_me:$LINENO: result: yes" >&5
28796 echo "${ECHO_T}yes" >&6; }
28797   ;;
28798 *)
28799   { echo "$as_me:$LINENO: result: no" >&5
28800 echo "${ECHO_T}no" >&6; }
28801   ;;
28802 esac
28803
28804
28805
28806 conky_CFLAGS="$conky_CFLAGS -Wall -W"
28807
28808
28809 # Check whether --enable-debug was given.
28810 if test "${enable_debug+set}" = set; then
28811   enableval=$enable_debug; want_debug="$enableval"
28812 else
28813   want_debug=no
28814 fi
28815
28816
28817 if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
28818   conky_CFLAGS="$conky_CFLAGS -g3 -O0"
28819
28820 cat >>confdefs.h <<\_ACEOF
28821 #define DEBUG 1
28822 _ACEOF
28823
28824 fi
28825
28826
28827 # Check whether --enable-testing was given.
28828 if test "${enable_testing+set}" = set; then
28829   enableval=$enable_testing; want_testing="$enableval"
28830 else
28831   want_testing=no
28832 fi
28833
28834
28835 if test "x$want_testing" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
28836   if test "x$want_debug" = "xyes"; then
28837     conky_CFLAGS="$conky_CFLAGS -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
28838
28839 cat >>confdefs.h <<\_ACEOF
28840 #define TESTING
28841 _ACEOF
28842
28843   else
28844     conky_CFLAGS="$conky_CFLAGS -O0 -g3 -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
28845
28846 cat >>confdefs.h <<\_ACEOF
28847 #define TESTING
28848 _ACEOF
28849
28850   fi
28851 fi
28852
28853
28854 # Check whether --enable-profiling was given.
28855 if test "${enable_profiling+set}" = set; then
28856   enableval=$enable_profiling; want_profiling="$enableval"
28857 else
28858   want_profiling=no
28859 fi
28860
28861
28862 if test "x$want_profiling" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
28863   if test "x$want_debug" = "xyes"; then
28864     conky_CFLAGS="$conky_CFLAGS -pg -fprofile-arcs -ftest-coverage"
28865   else
28866     conky_CFLAGS="$conky_CFLAGS -g3 -pg -fprofile-arcs -ftest-coverage"
28867   fi
28868
28869 cat >>confdefs.h <<\_ACEOF
28870 #define PROFILING
28871 _ACEOF
28872
28873 fi
28874
28875
28876
28877
28878
28879 cat >confcache <<\_ACEOF
28880 # This file is a shell script that caches the results of configure
28881 # tests run on this system so they can be shared between configure
28882 # scripts and configure runs, see configure's option --config-cache.
28883 # It is not useful on other systems.  If it contains results you don't
28884 # want to keep, you may remove or edit it.
28885 #
28886 # config.status only pays attention to the cache file if you give it
28887 # the --recheck option to rerun configure.
28888 #
28889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28891 # following values.
28892
28893 _ACEOF
28894
28895 # The following way of writing the cache mishandles newlines in values,
28896 # but we know of no workaround that is simple, portable, and efficient.
28897 # So, we kill variables containing newlines.
28898 # Ultrix sh set writes to stderr and can't be redirected directly,
28899 # and sets the high bit in the cache file unless we assign to the vars.
28900 (
28901   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28902     eval ac_val=\$$ac_var
28903     case $ac_val in #(
28904     *${as_nl}*)
28905       case $ac_var in #(
28906       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28907 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28908       esac
28909       case $ac_var in #(
28910       _ | IFS | as_nl) ;; #(
28911       *) $as_unset $ac_var ;;
28912       esac ;;
28913     esac
28914   done
28915
28916   (set) 2>&1 |
28917     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28918     *${as_nl}ac_space=\ *)
28919       # `set' does not quote correctly, so add quotes (double-quote
28920       # substitution turns \\\\ into \\, and sed turns \\ into \).
28921       sed -n \
28922         "s/'/'\\\\''/g;
28923           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28924       ;; #(
28925     *)
28926       # `set' quotes correctly as required by POSIX, so do not add quotes.
28927       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28928       ;;
28929     esac |
28930     sort
28931 ) |
28932   sed '
28933      /^ac_cv_env_/b end
28934      t clear
28935      :clear
28936      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28937      t end
28938      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28939      :end' >>confcache
28940 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28941   if test -w "$cache_file"; then
28942     test "x$cache_file" != "x/dev/null" &&
28943       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28944 echo "$as_me: updating cache $cache_file" >&6;}
28945     cat confcache >$cache_file
28946   else
28947     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28948 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28949   fi
28950 fi
28951 rm -f confcache
28952
28953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28954 # Let make expand exec_prefix.
28955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28956
28957 DEFS=-DHAVE_CONFIG_H
28958
28959 ac_libobjs=
28960 ac_ltlibobjs=
28961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28962   # 1. Remove the extension, and $U if already installed.
28963   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28964   ac_i=`echo "$ac_i" | sed "$ac_script"`
28965   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28966   #    will be set to the directory where LIBOBJS objects are built.
28967   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28968   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28969 done
28970 LIBOBJS=$ac_libobjs
28971
28972 LTLIBOBJS=$ac_ltlibobjs
28973
28974
28975 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28976   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28977 Usually this means the macro was only invoked conditionally." >&5
28978 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28979 Usually this means the macro was only invoked conditionally." >&2;}
28980    { (exit 1); exit 1; }; }
28981 fi
28982 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28983   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28984 Usually this means the macro was only invoked conditionally." >&5
28985 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28986 Usually this means the macro was only invoked conditionally." >&2;}
28987    { (exit 1); exit 1; }; }
28988 fi
28989 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28990   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28991 Usually this means the macro was only invoked conditionally." >&5
28992 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28993 Usually this means the macro was only invoked conditionally." >&2;}
28994    { (exit 1); exit 1; }; }
28995 fi
28996 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
28997   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUX\" was never defined.
28998 Usually this means the macro was only invoked conditionally." >&5
28999 echo "$as_me: error: conditional \"BUILD_LINUX\" was never defined.
29000 Usually this means the macro was only invoked conditionally." >&2;}
29001    { (exit 1); exit 1; }; }
29002 fi
29003 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
29004   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FREEBSD\" was never defined.
29005 Usually this means the macro was only invoked conditionally." >&5
29006 echo "$as_me: error: conditional \"BUILD_FREEBSD\" was never defined.
29007 Usually this means the macro was only invoked conditionally." >&2;}
29008    { (exit 1); exit 1; }; }
29009 fi
29010 if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then
29011   { { echo "$as_me:$LINENO: error: conditional \"BUILD_OPENBSD\" was never defined.
29012 Usually this means the macro was only invoked conditionally." >&5
29013 echo "$as_me: error: conditional \"BUILD_OPENBSD\" was never defined.
29014 Usually this means the macro was only invoked conditionally." >&2;}
29015    { (exit 1); exit 1; }; }
29016 fi
29017 if test -z "${BUILD_CONFIG_OUTPUT_TRUE}" && test -z "${BUILD_CONFIG_OUTPUT_FALSE}"; then
29018   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CONFIG_OUTPUT\" was never defined.
29019 Usually this means the macro was only invoked conditionally." >&5
29020 echo "$as_me: error: conditional \"BUILD_CONFIG_OUTPUT\" was never defined.
29021 Usually this means the macro was only invoked conditionally." >&2;}
29022    { (exit 1); exit 1; }; }
29023 fi
29024 if test -z "${BUILD_NCURSES_TRUE}" && test -z "${BUILD_NCURSES_FALSE}"; then
29025   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NCURSES\" was never defined.
29026 Usually this means the macro was only invoked conditionally." >&5
29027 echo "$as_me: error: conditional \"BUILD_NCURSES\" was never defined.
29028 Usually this means the macro was only invoked conditionally." >&2;}
29029    { (exit 1); exit 1; }; }
29030 fi
29031 if test -z "${BUILD_AUDACIOUS_TRUE}" && test -z "${BUILD_AUDACIOUS_FALSE}"; then
29032   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AUDACIOUS\" was never defined.
29033 Usually this means the macro was only invoked conditionally." >&5
29034 echo "$as_me: error: conditional \"BUILD_AUDACIOUS\" was never defined.
29035 Usually this means the macro was only invoked conditionally." >&2;}
29036    { (exit 1); exit 1; }; }
29037 fi
29038 if test -z "${BUILD_BMPX_TRUE}" && test -z "${BUILD_BMPX_FALSE}"; then
29039   { { echo "$as_me:$LINENO: error: conditional \"BUILD_BMPX\" was never defined.
29040 Usually this means the macro was only invoked conditionally." >&5
29041 echo "$as_me: error: conditional \"BUILD_BMPX\" was never defined.
29042 Usually this means the macro was only invoked conditionally." >&2;}
29043    { (exit 1); exit 1; }; }
29044 fi
29045 if test -z "${BUILD_IBM_TRUE}" && test -z "${BUILD_IBM_FALSE}"; then
29046   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IBM\" was never defined.
29047 Usually this means the macro was only invoked conditionally." >&5
29048 echo "$as_me: error: conditional \"BUILD_IBM\" was never defined.
29049 Usually this means the macro was only invoked conditionally." >&2;}
29050    { (exit 1); exit 1; }; }
29051 fi
29052 if test -z "${BUILD_HDDTEMP_TRUE}" && test -z "${BUILD_HDDTEMP_FALSE}"; then
29053   { { echo "$as_me:$LINENO: error: conditional \"BUILD_HDDTEMP\" was never defined.
29054 Usually this means the macro was only invoked conditionally." >&5
29055 echo "$as_me: error: conditional \"BUILD_HDDTEMP\" was never defined.
29056 Usually this means the macro was only invoked conditionally." >&2;}
29057    { (exit 1); exit 1; }; }
29058 fi
29059 if test -z "${BUILD_APCUPSD_TRUE}" && test -z "${BUILD_APCUPSD_FALSE}"; then
29060   { { echo "$as_me:$LINENO: error: conditional \"BUILD_APCUPSD\" was never defined.
29061 Usually this means the macro was only invoked conditionally." >&5
29062 echo "$as_me: error: conditional \"BUILD_APCUPSD\" was never defined.
29063 Usually this means the macro was only invoked conditionally." >&2;}
29064    { (exit 1); exit 1; }; }
29065 fi
29066 if test -z "${BUILD_MATH_TRUE}" && test -z "${BUILD_MATH_FALSE}"; then
29067   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MATH\" was never defined.
29068 Usually this means the macro was only invoked conditionally." >&5
29069 echo "$as_me: error: conditional \"BUILD_MATH\" was never defined.
29070 Usually this means the macro was only invoked conditionally." >&2;}
29071    { (exit 1); exit 1; }; }
29072 fi
29073 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
29074   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MPD\" was never defined.
29075 Usually this means the macro was only invoked conditionally." >&5
29076 echo "$as_me: error: conditional \"BUILD_MPD\" was never defined.
29077 Usually this means the macro was only invoked conditionally." >&2;}
29078    { (exit 1); exit 1; }; }
29079 fi
29080 if test -z "${BUILD_MOC_TRUE}" && test -z "${BUILD_MOC_FALSE}"; then
29081   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MOC\" was never defined.
29082 Usually this means the macro was only invoked conditionally." >&5
29083 echo "$as_me: error: conditional \"BUILD_MOC\" was never defined.
29084 Usually this means the macro was only invoked conditionally." >&2;}
29085    { (exit 1); exit 1; }; }
29086 fi
29087 if test -z "${BUILD_XMMS2_TRUE}" && test -z "${BUILD_XMMS2_FALSE}"; then
29088   { { echo "$as_me:$LINENO: error: conditional \"BUILD_XMMS2\" was never defined.
29089 Usually this means the macro was only invoked conditionally." >&5
29090 echo "$as_me: error: conditional \"BUILD_XMMS2\" was never defined.
29091 Usually this means the macro was only invoked conditionally." >&2;}
29092    { (exit 1); exit 1; }; }
29093 fi
29094 if test -z "${BUILD_EVE_TRUE}" && test -z "${BUILD_EVE_FALSE}"; then
29095   { { echo "$as_me:$LINENO: error: conditional \"BUILD_EVE\" was never defined.
29096 Usually this means the macro was only invoked conditionally." >&5
29097 echo "$as_me: error: conditional \"BUILD_EVE\" was never defined.
29098 Usually this means the macro was only invoked conditionally." >&2;}
29099    { (exit 1); exit 1; }; }
29100 fi
29101 if test -z "${BUILD_RSS_TRUE}" && test -z "${BUILD_RSS_FALSE}"; then
29102   { { echo "$as_me:$LINENO: error: conditional \"BUILD_RSS\" was never defined.
29103 Usually this means the macro was only invoked conditionally." >&5
29104 echo "$as_me: error: conditional \"BUILD_RSS\" was never defined.
29105 Usually this means the macro was only invoked conditionally." >&2;}
29106    { (exit 1); exit 1; }; }
29107 fi
29108 if test -z "${BUILD_WEATHER_TRUE}" && test -z "${BUILD_WEATHER_FALSE}"; then
29109   { { echo "$as_me:$LINENO: error: conditional \"BUILD_WEATHER\" was never defined.
29110 Usually this means the macro was only invoked conditionally." >&5
29111 echo "$as_me: error: conditional \"BUILD_WEATHER\" was never defined.
29112 Usually this means the macro was only invoked conditionally." >&2;}
29113    { (exit 1); exit 1; }; }
29114 fi
29115 if test -z "${BUILD_XOAP_TRUE}" && test -z "${BUILD_XOAP_FALSE}"; then
29116   { { echo "$as_me:$LINENO: error: conditional \"BUILD_XOAP\" was never defined.
29117 Usually this means the macro was only invoked conditionally." >&5
29118 echo "$as_me: error: conditional \"BUILD_XOAP\" was never defined.
29119 Usually this means the macro was only invoked conditionally." >&2;}
29120    { (exit 1); exit 1; }; }
29121 fi
29122 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
29123   { { echo "$as_me:$LINENO: error: conditional \"BUILD_X11\" was never defined.
29124 Usually this means the macro was only invoked conditionally." >&5
29125 echo "$as_me: error: conditional \"BUILD_X11\" was never defined.
29126 Usually this means the macro was only invoked conditionally." >&2;}
29127    { (exit 1); exit 1; }; }
29128 fi
29129 if test -z "${BUILD_IMLIB2_TRUE}" && test -z "${BUILD_IMLIB2_FALSE}"; then
29130   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMLIB2\" was never defined.
29131 Usually this means the macro was only invoked conditionally." >&5
29132 echo "$as_me: error: conditional \"BUILD_IMLIB2\" was never defined.
29133 Usually this means the macro was only invoked conditionally." >&2;}
29134    { (exit 1); exit 1; }; }
29135 fi
29136 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
29137   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
29138 Usually this means the macro was only invoked conditionally." >&5
29139 echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
29140 Usually this means the macro was only invoked conditionally." >&2;}
29141    { (exit 1); exit 1; }; }
29142 fi
29143 if test -z "${BUILD_LUA_CAIRO_TRUE}" && test -z "${BUILD_LUA_CAIRO_FALSE}"; then
29144   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LUA_CAIRO\" was never defined.
29145 Usually this means the macro was only invoked conditionally." >&5
29146 echo "$as_me: error: conditional \"BUILD_LUA_CAIRO\" was never defined.
29147 Usually this means the macro was only invoked conditionally." >&2;}
29148    { (exit 1); exit 1; }; }
29149 fi
29150 if test -z "${BUILD_LUA_IMLIB2_TRUE}" && test -z "${BUILD_LUA_IMLIB2_FALSE}"; then
29151   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LUA_IMLIB2\" was never defined.
29152 Usually this means the macro was only invoked conditionally." >&5
29153 echo "$as_me: error: conditional \"BUILD_LUA_IMLIB2\" was never defined.
29154 Usually this means the macro was only invoked conditionally." >&2;}
29155    { (exit 1); exit 1; }; }
29156 fi
29157 if test -z "${BUILD_WLAN_TRUE}" && test -z "${BUILD_WLAN_FALSE}"; then
29158   { { echo "$as_me:$LINENO: error: conditional \"BUILD_WLAN\" was never defined.
29159 Usually this means the macro was only invoked conditionally." >&5
29160 echo "$as_me: error: conditional \"BUILD_WLAN\" was never defined.
29161 Usually this means the macro was only invoked conditionally." >&2;}
29162    { (exit 1); exit 1; }; }
29163 fi
29164 if test -z "${BUILD_PORT_MONITORS_TRUE}" && test -z "${BUILD_PORT_MONITORS_FALSE}"; then
29165   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PORT_MONITORS\" was never defined.
29166 Usually this means the macro was only invoked conditionally." >&5
29167 echo "$as_me: error: conditional \"BUILD_PORT_MONITORS\" was never defined.
29168 Usually this means the macro was only invoked conditionally." >&2;}
29169    { (exit 1); exit 1; }; }
29170 fi
29171 if test -z "${BUILD_ICONV_TRUE}" && test -z "${BUILD_ICONV_FALSE}"; then
29172   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ICONV\" was never defined.
29173 Usually this means the macro was only invoked conditionally." >&5
29174 echo "$as_me: error: conditional \"BUILD_ICONV\" was never defined.
29175 Usually this means the macro was only invoked conditionally." >&2;}
29176    { (exit 1); exit 1; }; }
29177 fi
29178 if test -z "${BUILD_NVIDIA_TRUE}" && test -z "${BUILD_NVIDIA_FALSE}"; then
29179   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NVIDIA\" was never defined.
29180 Usually this means the macro was only invoked conditionally." >&5
29181 echo "$as_me: error: conditional \"BUILD_NVIDIA\" was never defined.
29182 Usually this means the macro was only invoked conditionally." >&2;}
29183    { (exit 1); exit 1; }; }
29184 fi
29185 if test -z "${BUILD_CURL_TRUE}" && test -z "${BUILD_CURL_FALSE}"; then
29186   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CURL\" was never defined.
29187 Usually this means the macro was only invoked conditionally." >&5
29188 echo "$as_me: error: conditional \"BUILD_CURL\" was never defined.
29189 Usually this means the macro was only invoked conditionally." >&2;}
29190    { (exit 1); exit 1; }; }
29191 fi
29192 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
29193   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29194 Usually this means the macro was only invoked conditionally." >&5
29195 echo "$as_me: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29196 Usually this means the macro was only invoked conditionally." >&2;}
29197    { (exit 1); exit 1; }; }
29198 fi
29199 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
29200   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29201 Usually this means the macro was only invoked conditionally." >&5
29202 echo "$as_me: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29203 Usually this means the macro was only invoked conditionally." >&2;}
29204    { (exit 1); exit 1; }; }
29205 fi
29206
29207 : ${CONFIG_STATUS=./config.status}
29208 ac_clean_files_save=$ac_clean_files
29209 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29210 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29211 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29212 cat >$CONFIG_STATUS <<_ACEOF
29213 #! $SHELL
29214 # Generated by $as_me.
29215 # Run this file to recreate the current configuration.
29216 # Compiler output produced by configure, useful for debugging
29217 # configure, is in config.log if it exists.
29218
29219 debug=false
29220 ac_cs_recheck=false
29221 ac_cs_silent=false
29222 SHELL=\${CONFIG_SHELL-$SHELL}
29223 _ACEOF
29224
29225 cat >>$CONFIG_STATUS <<\_ACEOF
29226 ## --------------------- ##
29227 ## M4sh Initialization.  ##
29228 ## --------------------- ##
29229
29230 # Be more Bourne compatible
29231 DUALCASE=1; export DUALCASE # for MKS sh
29232 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29233   emulate sh
29234   NULLCMD=:
29235   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29236   # is contrary to our usage.  Disable this feature.
29237   alias -g '${1+"$@"}'='"$@"'
29238   setopt NO_GLOB_SUBST
29239 else
29240   case `(set -o) 2>/dev/null` in
29241   *posix*) set -o posix ;;
29242 esac
29243
29244 fi
29245
29246
29247
29248
29249 # PATH needs CR
29250 # Avoid depending upon Character Ranges.
29251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29254 as_cr_digits='0123456789'
29255 as_cr_alnum=$as_cr_Letters$as_cr_digits
29256
29257 # The user is always right.
29258 if test "${PATH_SEPARATOR+set}" != set; then
29259   echo "#! /bin/sh" >conf$$.sh
29260   echo  "exit 0"   >>conf$$.sh
29261   chmod +x conf$$.sh
29262   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29263     PATH_SEPARATOR=';'
29264   else
29265     PATH_SEPARATOR=:
29266   fi
29267   rm -f conf$$.sh
29268 fi
29269
29270 # Support unset when possible.
29271 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29272   as_unset=unset
29273 else
29274   as_unset=false
29275 fi
29276
29277
29278 # IFS
29279 # We need space, tab and new line, in precisely that order.  Quoting is
29280 # there to prevent editors from complaining about space-tab.
29281 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29282 # splitting by setting IFS to empty value.)
29283 as_nl='
29284 '
29285 IFS=" ""        $as_nl"
29286
29287 # Find who we are.  Look in the path if we contain no directory separator.
29288 case $0 in
29289   *[\\/]* ) as_myself=$0 ;;
29290   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29291 for as_dir in $PATH
29292 do
29293   IFS=$as_save_IFS
29294   test -z "$as_dir" && as_dir=.
29295   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29296 done
29297 IFS=$as_save_IFS
29298
29299      ;;
29300 esac
29301 # We did not find ourselves, most probably we were run as `sh COMMAND'
29302 # in which case we are not to be found in the path.
29303 if test "x$as_myself" = x; then
29304   as_myself=$0
29305 fi
29306 if test ! -f "$as_myself"; then
29307   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29308   { (exit 1); exit 1; }
29309 fi
29310
29311 # Work around bugs in pre-3.0 UWIN ksh.
29312 for as_var in ENV MAIL MAILPATH
29313 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29314 done
29315 PS1='$ '
29316 PS2='> '
29317 PS4='+ '
29318
29319 # NLS nuisances.
29320 for as_var in \
29321   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29322   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29323   LC_TELEPHONE LC_TIME
29324 do
29325   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29326     eval $as_var=C; export $as_var
29327   else
29328     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29329   fi
29330 done
29331
29332 # Required to use basename.
29333 if expr a : '\(a\)' >/dev/null 2>&1 &&
29334    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29335   as_expr=expr
29336 else
29337   as_expr=false
29338 fi
29339
29340 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29341   as_basename=basename
29342 else
29343   as_basename=false
29344 fi
29345
29346
29347 # Name of the executable.
29348 as_me=`$as_basename -- "$0" ||
29349 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29350          X"$0" : 'X\(//\)$' \| \
29351          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29352 echo X/"$0" |
29353     sed '/^.*\/\([^/][^/]*\)\/*$/{
29354             s//\1/
29355             q
29356           }
29357           /^X\/\(\/\/\)$/{
29358             s//\1/
29359             q
29360           }
29361           /^X\/\(\/\).*/{
29362             s//\1/
29363             q
29364           }
29365           s/.*/./; q'`
29366
29367 # CDPATH.
29368 $as_unset CDPATH
29369
29370
29371
29372   as_lineno_1=$LINENO
29373   as_lineno_2=$LINENO
29374   test "x$as_lineno_1" != "x$as_lineno_2" &&
29375   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29376
29377   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29378   # uniformly replaced by the line number.  The first 'sed' inserts a
29379   # line-number line after each line using $LINENO; the second 'sed'
29380   # does the real work.  The second script uses 'N' to pair each
29381   # line-number line with the line containing $LINENO, and appends
29382   # trailing '-' during substitution so that $LINENO is not a special
29383   # case at line end.
29384   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29385   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29386   # E. McMahon (1931-1989) for sed's syntax.  :-)
29387   sed -n '
29388     p
29389     /[$]LINENO/=
29390   ' <$as_myself |
29391     sed '
29392       s/[$]LINENO.*/&-/
29393       t lineno
29394       b
29395       :lineno
29396       N
29397       :loop
29398       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29399       t loop
29400       s/-\n.*//
29401     ' >$as_me.lineno &&
29402   chmod +x "$as_me.lineno" ||
29403     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29404    { (exit 1); exit 1; }; }
29405
29406   # Don't try to exec as it changes $[0], causing all sort of problems
29407   # (the dirname of $[0] is not the place where we might find the
29408   # original and so on.  Autoconf is especially sensitive to this).
29409   . "./$as_me.lineno"
29410   # Exit status is that of the last command.
29411   exit
29412 }
29413
29414
29415 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29416   as_dirname=dirname
29417 else
29418   as_dirname=false
29419 fi
29420
29421 ECHO_C= ECHO_N= ECHO_T=
29422 case `echo -n x` in
29423 -n*)
29424   case `echo 'x\c'` in
29425   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29426   *)   ECHO_C='\c';;
29427   esac;;
29428 *)
29429   ECHO_N='-n';;
29430 esac
29431
29432 if expr a : '\(a\)' >/dev/null 2>&1 &&
29433    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29434   as_expr=expr
29435 else
29436   as_expr=false
29437 fi
29438
29439 rm -f conf$$ conf$$.exe conf$$.file
29440 if test -d conf$$.dir; then
29441   rm -f conf$$.dir/conf$$.file
29442 else
29443   rm -f conf$$.dir
29444   mkdir conf$$.dir
29445 fi
29446 echo >conf$$.file
29447 if ln -s conf$$.file conf$$ 2>/dev/null; then
29448   as_ln_s='ln -s'
29449   # ... but there are two gotchas:
29450   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29451   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29452   # In both cases, we have to default to `cp -p'.
29453   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29454     as_ln_s='cp -p'
29455 elif ln conf$$.file conf$$ 2>/dev/null; then
29456   as_ln_s=ln
29457 else
29458   as_ln_s='cp -p'
29459 fi
29460 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29461 rmdir conf$$.dir 2>/dev/null
29462
29463 if mkdir -p . 2>/dev/null; then
29464   as_mkdir_p=:
29465 else
29466   test -d ./-p && rmdir ./-p
29467   as_mkdir_p=false
29468 fi
29469
29470 if test -x / >/dev/null 2>&1; then
29471   as_test_x='test -x'
29472 else
29473   if ls -dL / >/dev/null 2>&1; then
29474     as_ls_L_option=L
29475   else
29476     as_ls_L_option=
29477   fi
29478   as_test_x='
29479     eval sh -c '\''
29480       if test -d "$1"; then
29481         test -d "$1/.";
29482       else
29483         case $1 in
29484         -*)set "./$1";;
29485         esac;
29486         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29487         ???[sx]*):;;*)false;;esac;fi
29488     '\'' sh
29489   '
29490 fi
29491 as_executable_p=$as_test_x
29492
29493 # Sed expression to map a string onto a valid CPP name.
29494 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29495
29496 # Sed expression to map a string onto a valid variable name.
29497 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29498
29499
29500 exec 6>&1
29501
29502 # Save the log message, to keep $[0] and so on meaningful, and to
29503 # report actual input values of CONFIG_FILES etc. instead of their
29504 # values after options handling.
29505 ac_log="
29506 This file was extended by Conky $as_me 1.8.5_pre2390, which was
29507 generated by GNU Autoconf 2.61.  Invocation command line was
29508
29509   CONFIG_FILES    = $CONFIG_FILES
29510   CONFIG_HEADERS  = $CONFIG_HEADERS
29511   CONFIG_LINKS    = $CONFIG_LINKS
29512   CONFIG_COMMANDS = $CONFIG_COMMANDS
29513   $ $0 $@
29514
29515 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29516 "
29517
29518 _ACEOF
29519
29520 cat >>$CONFIG_STATUS <<_ACEOF
29521 # Files that config.status was made for.
29522 config_files="$ac_config_files"
29523 config_headers="$ac_config_headers"
29524 config_commands="$ac_config_commands"
29525
29526 _ACEOF
29527
29528 cat >>$CONFIG_STATUS <<\_ACEOF
29529 ac_cs_usage="\
29530 \`$as_me' instantiates files from templates according to the
29531 current configuration.
29532
29533 Usage: $0 [OPTIONS] [FILE]...
29534
29535   -h, --help       print this help, then exit
29536   -V, --version    print version number and configuration settings, then exit
29537   -q, --quiet      do not print progress messages
29538   -d, --debug      don't remove temporary files
29539       --recheck    update $as_me by reconfiguring in the same conditions
29540   --file=FILE[:TEMPLATE]
29541                    instantiate the configuration file FILE
29542   --header=FILE[:TEMPLATE]
29543                    instantiate the configuration header FILE
29544
29545 Configuration files:
29546 $config_files
29547
29548 Configuration headers:
29549 $config_headers
29550
29551 Configuration commands:
29552 $config_commands
29553
29554 Report bugs to <bug-autoconf@gnu.org>."
29555
29556 _ACEOF
29557 cat >>$CONFIG_STATUS <<_ACEOF
29558 ac_cs_version="\\
29559 Conky config.status 1.8.5_pre2390
29560 configured by $0, generated by GNU Autoconf 2.61,
29561   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29562
29563 Copyright (C) 2006 Free Software Foundation, Inc.
29564 This config.status script is free software; the Free Software Foundation
29565 gives unlimited permission to copy, distribute and modify it."
29566
29567 ac_pwd='$ac_pwd'
29568 srcdir='$srcdir'
29569 INSTALL='$INSTALL'
29570 _ACEOF
29571
29572 cat >>$CONFIG_STATUS <<\_ACEOF
29573 # If no file are specified by the user, then we need to provide default
29574 # value.  By we need to know if files were specified by the user.
29575 ac_need_defaults=:
29576 while test $# != 0
29577 do
29578   case $1 in
29579   --*=*)
29580     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29581     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29582     ac_shift=:
29583     ;;
29584   *)
29585     ac_option=$1
29586     ac_optarg=$2
29587     ac_shift=shift
29588     ;;
29589   esac
29590
29591   case $ac_option in
29592   # Handling of the options.
29593   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29594     ac_cs_recheck=: ;;
29595   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29596     echo "$ac_cs_version"; exit ;;
29597   --debug | --debu | --deb | --de | --d | -d )
29598     debug=: ;;
29599   --file | --fil | --fi | --f )
29600     $ac_shift
29601     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29602     ac_need_defaults=false;;
29603   --header | --heade | --head | --hea )
29604     $ac_shift
29605     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29606     ac_need_defaults=false;;
29607   --he | --h)
29608     # Conflict between --help and --header
29609     { echo "$as_me: error: ambiguous option: $1
29610 Try \`$0 --help' for more information." >&2
29611    { (exit 1); exit 1; }; };;
29612   --help | --hel | -h )
29613     echo "$ac_cs_usage"; exit ;;
29614   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29615   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29616     ac_cs_silent=: ;;
29617
29618   # This is an error.
29619   -*) { echo "$as_me: error: unrecognized option: $1
29620 Try \`$0 --help' for more information." >&2
29621    { (exit 1); exit 1; }; } ;;
29622
29623   *) ac_config_targets="$ac_config_targets $1"
29624      ac_need_defaults=false ;;
29625
29626   esac
29627   shift
29628 done
29629
29630 ac_configure_extra_args=
29631
29632 if $ac_cs_silent; then
29633   exec 6>/dev/null
29634   ac_configure_extra_args="$ac_configure_extra_args --silent"
29635 fi
29636
29637 _ACEOF
29638 cat >>$CONFIG_STATUS <<_ACEOF
29639 if \$ac_cs_recheck; then
29640   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29641   CONFIG_SHELL=$SHELL
29642   export CONFIG_SHELL
29643   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29644 fi
29645
29646 _ACEOF
29647 cat >>$CONFIG_STATUS <<\_ACEOF
29648 exec 5>>config.log
29649 {
29650   echo
29651   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29652 ## Running $as_me. ##
29653 _ASBOX
29654   echo "$ac_log"
29655 } >&5
29656
29657 _ACEOF
29658 cat >>$CONFIG_STATUS <<_ACEOF
29659 #
29660 # INIT-COMMANDS
29661 #
29662 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29663
29664 _ACEOF
29665
29666 cat >>$CONFIG_STATUS <<\_ACEOF
29667
29668 # Handling of arguments.
29669 for ac_config_target in $ac_config_targets
29670 do
29671   case $ac_config_target in
29672     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
29673     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29674     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29675     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
29676     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29677     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29678     "src/build.h") CONFIG_FILES="$CONFIG_FILES src/build.h" ;;
29679     "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
29680     "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
29681
29682   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29684    { (exit 1); exit 1; }; };;
29685   esac
29686 done
29687
29688
29689 # If the user did not use the arguments to specify the items to instantiate,
29690 # then the envvar interface is used.  Set only those that are not.
29691 # We use the long form for the default assignment because of an extremely
29692 # bizarre bug on SunOS 4.1.3.
29693 if $ac_need_defaults; then
29694   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29695   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29696   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29697 fi
29698
29699 # Have a temporary directory for convenience.  Make it in the build tree
29700 # simply because there is no reason against having it here, and in addition,
29701 # creating and moving files from /tmp can sometimes cause problems.
29702 # Hook for its removal unless debugging.
29703 # Note that there is a small window in which the directory will not be cleaned:
29704 # after its creation but before its name has been assigned to `$tmp'.
29705 $debug ||
29706 {
29707   tmp=
29708   trap 'exit_status=$?
29709   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29710 ' 0
29711   trap '{ (exit 1); exit 1; }' 1 2 13 15
29712 }
29713 # Create a (secure) tmp directory for tmp files.
29714
29715 {
29716   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29717   test -n "$tmp" && test -d "$tmp"
29718 }  ||
29719 {
29720   tmp=./conf$$-$RANDOM
29721   (umask 077 && mkdir "$tmp")
29722 } ||
29723 {
29724    echo "$me: cannot create a temporary directory in ." >&2
29725    { (exit 1); exit 1; }
29726 }
29727
29728 #
29729 # Set up the sed scripts for CONFIG_FILES section.
29730 #
29731
29732 # No need to generate the scripts if there are no CONFIG_FILES.
29733 # This happens for instance when ./config.status config.h
29734 if test -n "$CONFIG_FILES"; then
29735
29736 _ACEOF
29737
29738
29739
29740 ac_delim='%!_!# '
29741 for ac_last_try in false false false false false :; do
29742   cat >conf$$subs.sed <<_ACEOF
29743 SHELL!$SHELL$ac_delim
29744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29750 exec_prefix!$exec_prefix$ac_delim
29751 prefix!$prefix$ac_delim
29752 program_transform_name!$program_transform_name$ac_delim
29753 bindir!$bindir$ac_delim
29754 sbindir!$sbindir$ac_delim
29755 libexecdir!$libexecdir$ac_delim
29756 datarootdir!$datarootdir$ac_delim
29757 datadir!$datadir$ac_delim
29758 sysconfdir!$sysconfdir$ac_delim
29759 sharedstatedir!$sharedstatedir$ac_delim
29760 localstatedir!$localstatedir$ac_delim
29761 includedir!$includedir$ac_delim
29762 oldincludedir!$oldincludedir$ac_delim
29763 docdir!$docdir$ac_delim
29764 infodir!$infodir$ac_delim
29765 htmldir!$htmldir$ac_delim
29766 dvidir!$dvidir$ac_delim
29767 pdfdir!$pdfdir$ac_delim
29768 psdir!$psdir$ac_delim
29769 libdir!$libdir$ac_delim
29770 localedir!$localedir$ac_delim
29771 mandir!$mandir$ac_delim
29772 DEFS!$DEFS$ac_delim
29773 ECHO_C!$ECHO_C$ac_delim
29774 ECHO_N!$ECHO_N$ac_delim
29775 ECHO_T!$ECHO_T$ac_delim
29776 LIBS!$LIBS$ac_delim
29777 build_alias!$build_alias$ac_delim
29778 host_alias!$host_alias$ac_delim
29779 target_alias!$target_alias$ac_delim
29780 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29781 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29782 INSTALL_DATA!$INSTALL_DATA$ac_delim
29783 CYGPATH_W!$CYGPATH_W$ac_delim
29784 PACKAGE!$PACKAGE$ac_delim
29785 VERSION!$VERSION$ac_delim
29786 ACLOCAL!$ACLOCAL$ac_delim
29787 AUTOCONF!$AUTOCONF$ac_delim
29788 AUTOMAKE!$AUTOMAKE$ac_delim
29789 AUTOHEADER!$AUTOHEADER$ac_delim
29790 MAKEINFO!$MAKEINFO$ac_delim
29791 AMTAR!$AMTAR$ac_delim
29792 install_sh!$install_sh$ac_delim
29793 STRIP!$STRIP$ac_delim
29794 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29795 mkdir_p!$mkdir_p$ac_delim
29796 AWK!$AWK$ac_delim
29797 SET_MAKE!$SET_MAKE$ac_delim
29798 am__leading_dot!$am__leading_dot$ac_delim
29799 CFLAGS!$CFLAGS$ac_delim
29800 CC!$CC$ac_delim
29801 LDFLAGS!$LDFLAGS$ac_delim
29802 CPPFLAGS!$CPPFLAGS$ac_delim
29803 ac_ct_CC!$ac_ct_CC$ac_delim
29804 EXEEXT!$EXEEXT$ac_delim
29805 OBJEXT!$OBJEXT$ac_delim
29806 DEPDIR!$DEPDIR$ac_delim
29807 am__include!$am__include$ac_delim
29808 am__quote!$am__quote$ac_delim
29809 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29810 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29811 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29812 CCDEPMODE!$CCDEPMODE$ac_delim
29813 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29814 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29815 SED!$SED$ac_delim
29816 build!$build$ac_delim
29817 build_cpu!$build_cpu$ac_delim
29818 build_vendor!$build_vendor$ac_delim
29819 build_os!$build_os$ac_delim
29820 host!$host$ac_delim
29821 host_cpu!$host_cpu$ac_delim
29822 host_vendor!$host_vendor$ac_delim
29823 host_os!$host_os$ac_delim
29824 GREP!$GREP$ac_delim
29825 EGREP!$EGREP$ac_delim
29826 LN_S!$LN_S$ac_delim
29827 ECHO!$ECHO$ac_delim
29828 AR!$AR$ac_delim
29829 RANLIB!$RANLIB$ac_delim
29830 DSYMUTIL!$DSYMUTIL$ac_delim
29831 NMEDIT!$NMEDIT$ac_delim
29832 CPP!$CPP$ac_delim
29833 CXX!$CXX$ac_delim
29834 CXXFLAGS!$CXXFLAGS$ac_delim
29835 ac_ct_CXX!$ac_ct_CXX$ac_delim
29836 CXXDEPMODE!$CXXDEPMODE$ac_delim
29837 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29838 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29839 CXXCPP!$CXXCPP$ac_delim
29840 _ACEOF
29841
29842   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29843     break
29844   elif $ac_last_try; then
29845     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29847    { (exit 1); exit 1; }; }
29848   else
29849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29850   fi
29851 done
29852
29853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29854 if test -n "$ac_eof"; then
29855   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29856   ac_eof=`expr $ac_eof + 1`
29857 fi
29858
29859 cat >>$CONFIG_STATUS <<_ACEOF
29860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29862 _ACEOF
29863 sed '
29864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29865 s/^/s,@/; s/!/@,|#_!!_#|/
29866 :n
29867 t n
29868 s/'"$ac_delim"'$/,g/; t
29869 s/$/\\/; p
29870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29871 ' >>$CONFIG_STATUS <conf$$subs.sed
29872 rm -f conf$$subs.sed
29873 cat >>$CONFIG_STATUS <<_ACEOF
29874 CEOF$ac_eof
29875 _ACEOF
29876
29877
29878 ac_delim='%!_!# '
29879 for ac_last_try in false false false false false :; do
29880   cat >conf$$subs.sed <<_ACEOF
29881 F77!$F77$ac_delim
29882 FFLAGS!$FFLAGS$ac_delim
29883 ac_ct_F77!$ac_ct_F77$ac_delim
29884 LIBTOOL!$LIBTOOL$ac_delim
29885 HAVE_PKGCONFIG!$HAVE_PKGCONFIG$ac_delim
29886 PKG_CONFIG!$PKG_CONFIG$ac_delim
29887 BUILD_LINUX_TRUE!$BUILD_LINUX_TRUE$ac_delim
29888 BUILD_LINUX_FALSE!$BUILD_LINUX_FALSE$ac_delim
29889 BUILD_FREEBSD_TRUE!$BUILD_FREEBSD_TRUE$ac_delim
29890 BUILD_FREEBSD_FALSE!$BUILD_FREEBSD_FALSE$ac_delim
29891 BUILD_OPENBSD_TRUE!$BUILD_OPENBSD_TRUE$ac_delim
29892 BUILD_OPENBSD_FALSE!$BUILD_OPENBSD_FALSE$ac_delim
29893 BUILD_DATE!$BUILD_DATE$ac_delim
29894 BUILD_ARCH!$BUILD_ARCH$ac_delim
29895 BUILD_CONFIG_OUTPUT_TRUE!$BUILD_CONFIG_OUTPUT_TRUE$ac_delim
29896 BUILD_CONFIG_OUTPUT_FALSE!$BUILD_CONFIG_OUTPUT_FALSE$ac_delim
29897 BUILD_NCURSES_TRUE!$BUILD_NCURSES_TRUE$ac_delim
29898 BUILD_NCURSES_FALSE!$BUILD_NCURSES_FALSE$ac_delim
29899 BUILD_AUDACIOUS_TRUE!$BUILD_AUDACIOUS_TRUE$ac_delim
29900 BUILD_AUDACIOUS_FALSE!$BUILD_AUDACIOUS_FALSE$ac_delim
29901 Audacious_CFLAGS!$Audacious_CFLAGS$ac_delim
29902 Audacious_LIBS!$Audacious_LIBS$ac_delim
29903 BUILD_BMPX_TRUE!$BUILD_BMPX_TRUE$ac_delim
29904 BUILD_BMPX_FALSE!$BUILD_BMPX_FALSE$ac_delim
29905 BMPx_CFLAGS!$BMPx_CFLAGS$ac_delim
29906 BMPx_LIBS!$BMPx_LIBS$ac_delim
29907 BUILD_IBM_TRUE!$BUILD_IBM_TRUE$ac_delim
29908 BUILD_IBM_FALSE!$BUILD_IBM_FALSE$ac_delim
29909 BUILD_HDDTEMP_TRUE!$BUILD_HDDTEMP_TRUE$ac_delim
29910 BUILD_HDDTEMP_FALSE!$BUILD_HDDTEMP_FALSE$ac_delim
29911 BUILD_APCUPSD_TRUE!$BUILD_APCUPSD_TRUE$ac_delim
29912 BUILD_APCUPSD_FALSE!$BUILD_APCUPSD_FALSE$ac_delim
29913 BUILD_MATH_TRUE!$BUILD_MATH_TRUE$ac_delim
29914 BUILD_MATH_FALSE!$BUILD_MATH_FALSE$ac_delim
29915 BUILD_MPD_TRUE!$BUILD_MPD_TRUE$ac_delim
29916 BUILD_MPD_FALSE!$BUILD_MPD_FALSE$ac_delim
29917 BUILD_MOC_TRUE!$BUILD_MOC_TRUE$ac_delim
29918 BUILD_MOC_FALSE!$BUILD_MOC_FALSE$ac_delim
29919 BUILD_XMMS2_TRUE!$BUILD_XMMS2_TRUE$ac_delim
29920 BUILD_XMMS2_FALSE!$BUILD_XMMS2_FALSE$ac_delim
29921 XMMS2_CFLAGS!$XMMS2_CFLAGS$ac_delim
29922 XMMS2_LIBS!$XMMS2_LIBS$ac_delim
29923 BUILD_EVE_TRUE!$BUILD_EVE_TRUE$ac_delim
29924 BUILD_EVE_FALSE!$BUILD_EVE_FALSE$ac_delim
29925 BUILD_RSS_TRUE!$BUILD_RSS_TRUE$ac_delim
29926 BUILD_RSS_FALSE!$BUILD_RSS_FALSE$ac_delim
29927 BUILD_WEATHER_TRUE!$BUILD_WEATHER_TRUE$ac_delim
29928 BUILD_WEATHER_FALSE!$BUILD_WEATHER_FALSE$ac_delim
29929 BUILD_XOAP_TRUE!$BUILD_XOAP_TRUE$ac_delim
29930 BUILD_XOAP_FALSE!$BUILD_XOAP_FALSE$ac_delim
29931 BUILD_X11_TRUE!$BUILD_X11_TRUE$ac_delim
29932 BUILD_X11_FALSE!$BUILD_X11_FALSE$ac_delim
29933 X11_CFLAGS!$X11_CFLAGS$ac_delim
29934 X11_LIBS!$X11_LIBS$ac_delim
29935 XMKMF!$XMKMF$ac_delim
29936 X_CFLAGS!$X_CFLAGS$ac_delim
29937 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
29938 X_LIBS!$X_LIBS$ac_delim
29939 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
29940 Imlib2_CFLAGS!$Imlib2_CFLAGS$ac_delim
29941 Imlib2_LIBS!$Imlib2_LIBS$ac_delim
29942 BUILD_IMLIB2_TRUE!$BUILD_IMLIB2_TRUE$ac_delim
29943 BUILD_IMLIB2_FALSE!$BUILD_IMLIB2_FALSE$ac_delim
29944 BUILD_LUA_TRUE!$BUILD_LUA_TRUE$ac_delim
29945 BUILD_LUA_FALSE!$BUILD_LUA_FALSE$ac_delim
29946 LUA_CFLAGS!$LUA_CFLAGS$ac_delim
29947 LUA_LIBS!$LUA_LIBS$ac_delim
29948 LUA51_CFLAGS!$LUA51_CFLAGS$ac_delim
29949 LUA51_LIBS!$LUA51_LIBS$ac_delim
29950 cairo_CFLAGS!$cairo_CFLAGS$ac_delim
29951 cairo_LIBS!$cairo_LIBS$ac_delim
29952 cairo_xlib_CFLAGS!$cairo_xlib_CFLAGS$ac_delim
29953 cairo_xlib_LIBS!$cairo_xlib_LIBS$ac_delim
29954 toluapp!$toluapp$ac_delim
29955 tolua_LIBS!$tolua_LIBS$ac_delim
29956 tolua_CFLAGS!$tolua_CFLAGS$ac_delim
29957 BUILD_LUA_CAIRO_TRUE!$BUILD_LUA_CAIRO_TRUE$ac_delim
29958 BUILD_LUA_CAIRO_FALSE!$BUILD_LUA_CAIRO_FALSE$ac_delim
29959 BUILD_LUA_IMLIB2_TRUE!$BUILD_LUA_IMLIB2_TRUE$ac_delim
29960 BUILD_LUA_IMLIB2_FALSE!$BUILD_LUA_IMLIB2_FALSE$ac_delim
29961 BUILD_WLAN_TRUE!$BUILD_WLAN_TRUE$ac_delim
29962 BUILD_WLAN_FALSE!$BUILD_WLAN_FALSE$ac_delim
29963 BUILD_PORT_MONITORS_TRUE!$BUILD_PORT_MONITORS_TRUE$ac_delim
29964 BUILD_PORT_MONITORS_FALSE!$BUILD_PORT_MONITORS_FALSE$ac_delim
29965 LIBICONV!$LIBICONV$ac_delim
29966 LTLIBICONV!$LTLIBICONV$ac_delim
29967 BUILD_ICONV_TRUE!$BUILD_ICONV_TRUE$ac_delim
29968 BUILD_ICONV_FALSE!$BUILD_ICONV_FALSE$ac_delim
29969 Xext_CFLAGS!$Xext_CFLAGS$ac_delim
29970 Xext_LIBS!$Xext_LIBS$ac_delim
29971 XDamage_CFLAGS!$XDamage_CFLAGS$ac_delim
29972 XDamage_LIBS!$XDamage_LIBS$ac_delim
29973 Xft_CFLAGS!$Xft_CFLAGS$ac_delim
29974 Xft_LIBS!$Xft_LIBS$ac_delim
29975 BUILD_NVIDIA_TRUE!$BUILD_NVIDIA_TRUE$ac_delim
29976 BUILD_NVIDIA_FALSE!$BUILD_NVIDIA_FALSE$ac_delim
29977 GLib2_CFLAGS!$GLib2_CFLAGS$ac_delim
29978 _ACEOF
29979
29980   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29981     break
29982   elif $ac_last_try; then
29983     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29984 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29985    { (exit 1); exit 1; }; }
29986   else
29987     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29988   fi
29989 done
29990
29991 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29992 if test -n "$ac_eof"; then
29993   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29994   ac_eof=`expr $ac_eof + 1`
29995 fi
29996
29997 cat >>$CONFIG_STATUS <<_ACEOF
29998 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30000 _ACEOF
30001 sed '
30002 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30003 s/^/s,@/; s/!/@,|#_!!_#|/
30004 :n
30005 t n
30006 s/'"$ac_delim"'$/,g/; t
30007 s/$/\\/; p
30008 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30009 ' >>$CONFIG_STATUS <conf$$subs.sed
30010 rm -f conf$$subs.sed
30011 cat >>$CONFIG_STATUS <<_ACEOF
30012 CEOF$ac_eof
30013 _ACEOF
30014
30015
30016 ac_delim='%!_!# '
30017 for ac_last_try in false false false false false :; do
30018   cat >conf$$subs.sed <<_ACEOF
30019 GLib2_LIBS!$GLib2_LIBS$ac_delim
30020 libcurl_CFLAGS!$libcurl_CFLAGS$ac_delim
30021 libcurl_LIBS!$libcurl_LIBS$ac_delim
30022 BUILD_CURL_TRUE!$BUILD_CURL_TRUE$ac_delim
30023 BUILD_CURL_FALSE!$BUILD_CURL_FALSE$ac_delim
30024 libxml2_CFLAGS!$libxml2_CFLAGS$ac_delim
30025 libxml2_LIBS!$libxml2_LIBS$ac_delim
30026 db2x_xsltproc_cmd!$db2x_xsltproc_cmd$ac_delim
30027 db2x_manxml_cmd!$db2x_manxml_cmd$ac_delim
30028 xsltproc_cmd!$xsltproc_cmd$ac_delim
30029 HAVE_DOCSTUFF_TRUE!$HAVE_DOCSTUFF_TRUE$ac_delim
30030 HAVE_DOCSTUFF_FALSE!$HAVE_DOCSTUFF_FALSE$ac_delim
30031 conky_CFLAGS!$conky_CFLAGS$ac_delim
30032 conky_LIBS!$conky_LIBS$ac_delim
30033 LIBOBJS!$LIBOBJS$ac_delim
30034 LTLIBOBJS!$LTLIBOBJS$ac_delim
30035 _ACEOF
30036
30037   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
30038     break
30039   elif $ac_last_try; then
30040     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30041 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30042    { (exit 1); exit 1; }; }
30043   else
30044     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30045   fi
30046 done
30047
30048 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30049 if test -n "$ac_eof"; then
30050   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30051   ac_eof=`expr $ac_eof + 1`
30052 fi
30053
30054 cat >>$CONFIG_STATUS <<_ACEOF
30055 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30057 _ACEOF
30058 sed '
30059 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30060 s/^/s,@/; s/!/@,|#_!!_#|/
30061 :n
30062 t n
30063 s/'"$ac_delim"'$/,g/; t
30064 s/$/\\/; p
30065 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30066 ' >>$CONFIG_STATUS <conf$$subs.sed
30067 rm -f conf$$subs.sed
30068 cat >>$CONFIG_STATUS <<_ACEOF
30069 :end
30070 s/|#_!!_#|//g
30071 CEOF$ac_eof
30072 _ACEOF
30073
30074
30075 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30076 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30077 # trailing colons and then remove the whole line if VPATH becomes empty
30078 # (actually we leave an empty line to preserve line numbers).
30079 if test "x$srcdir" = x.; then
30080   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30081 s/:*\$(srcdir):*/:/
30082 s/:*\${srcdir}:*/:/
30083 s/:*@srcdir@:*/:/
30084 s/^\([^=]*=[     ]*\):*/\1/
30085 s/:*$//
30086 s/^[^=]*=[       ]*$//
30087 }'
30088 fi
30089
30090 cat >>$CONFIG_STATUS <<\_ACEOF
30091 fi # test -n "$CONFIG_FILES"
30092
30093
30094 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30095 do
30096   case $ac_tag in
30097   :[FHLC]) ac_mode=$ac_tag; continue;;
30098   esac
30099   case $ac_mode$ac_tag in
30100   :[FHL]*:*);;
30101   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30102 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30103    { (exit 1); exit 1; }; };;
30104   :[FH]-) ac_tag=-:-;;
30105   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30106   esac
30107   ac_save_IFS=$IFS
30108   IFS=:
30109   set x $ac_tag
30110   IFS=$ac_save_IFS
30111   shift
30112   ac_file=$1
30113   shift
30114
30115   case $ac_mode in
30116   :L) ac_source=$1;;
30117   :[FH])
30118     ac_file_inputs=
30119     for ac_f
30120     do
30121       case $ac_f in
30122       -) ac_f="$tmp/stdin";;
30123       *) # Look for the file first in the build tree, then in the source tree
30124          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30125          # because $ac_f cannot contain `:'.
30126          test -f "$ac_f" ||
30127            case $ac_f in
30128            [\\/$]*) false;;
30129            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30130            esac ||
30131            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30132 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30133    { (exit 1); exit 1; }; };;
30134       esac
30135       ac_file_inputs="$ac_file_inputs $ac_f"
30136     done
30137
30138     # Let's still pretend it is `configure' which instantiates (i.e., don't
30139     # use $as_me), people would be surprised to read:
30140     #    /* config.h.  Generated by config.status.  */
30141     configure_input="Generated from "`IFS=:
30142           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30143     if test x"$ac_file" != x-; then
30144       configure_input="$ac_file.  $configure_input"
30145       { echo "$as_me:$LINENO: creating $ac_file" >&5
30146 echo "$as_me: creating $ac_file" >&6;}
30147     fi
30148
30149     case $ac_tag in
30150     *:-:* | *:-) cat >"$tmp/stdin";;
30151     esac
30152     ;;
30153   esac
30154
30155   ac_dir=`$as_dirname -- "$ac_file" ||
30156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30157          X"$ac_file" : 'X\(//\)[^/]' \| \
30158          X"$ac_file" : 'X\(//\)$' \| \
30159          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30160 echo X"$ac_file" |
30161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30162             s//\1/
30163             q
30164           }
30165           /^X\(\/\/\)[^/].*/{
30166             s//\1/
30167             q
30168           }
30169           /^X\(\/\/\)$/{
30170             s//\1/
30171             q
30172           }
30173           /^X\(\/\).*/{
30174             s//\1/
30175             q
30176           }
30177           s/.*/./; q'`
30178   { as_dir="$ac_dir"
30179   case $as_dir in #(
30180   -*) as_dir=./$as_dir;;
30181   esac
30182   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30183     as_dirs=
30184     while :; do
30185       case $as_dir in #(
30186       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30187       *) as_qdir=$as_dir;;
30188       esac
30189       as_dirs="'$as_qdir' $as_dirs"
30190       as_dir=`$as_dirname -- "$as_dir" ||
30191 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30192          X"$as_dir" : 'X\(//\)[^/]' \| \
30193          X"$as_dir" : 'X\(//\)$' \| \
30194          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30195 echo X"$as_dir" |
30196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30197             s//\1/
30198             q
30199           }
30200           /^X\(\/\/\)[^/].*/{
30201             s//\1/
30202             q
30203           }
30204           /^X\(\/\/\)$/{
30205             s//\1/
30206             q
30207           }
30208           /^X\(\/\).*/{
30209             s//\1/
30210             q
30211           }
30212           s/.*/./; q'`
30213       test -d "$as_dir" && break
30214     done
30215     test -z "$as_dirs" || eval "mkdir $as_dirs"
30216   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30217 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30218    { (exit 1); exit 1; }; }; }
30219   ac_builddir=.
30220
30221 case "$ac_dir" in
30222 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30223 *)
30224   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30225   # A ".." for each directory in $ac_dir_suffix.
30226   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30227   case $ac_top_builddir_sub in
30228   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30229   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30230   esac ;;
30231 esac
30232 ac_abs_top_builddir=$ac_pwd
30233 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30234 # for backward compatibility:
30235 ac_top_builddir=$ac_top_build_prefix
30236
30237 case $srcdir in
30238   .)  # We are building in place.
30239     ac_srcdir=.
30240     ac_top_srcdir=$ac_top_builddir_sub
30241     ac_abs_top_srcdir=$ac_pwd ;;
30242   [\\/]* | ?:[\\/]* )  # Absolute name.
30243     ac_srcdir=$srcdir$ac_dir_suffix;
30244     ac_top_srcdir=$srcdir
30245     ac_abs_top_srcdir=$srcdir ;;
30246   *) # Relative name.
30247     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30248     ac_top_srcdir=$ac_top_build_prefix$srcdir
30249     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30250 esac
30251 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30252
30253
30254   case $ac_mode in
30255   :F)
30256   #
30257   # CONFIG_FILE
30258   #
30259
30260   case $INSTALL in
30261   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30262   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30263   esac
30264 _ACEOF
30265
30266 cat >>$CONFIG_STATUS <<\_ACEOF
30267 # If the template does not know about datarootdir, expand it.
30268 # FIXME: This hack should be removed a few years after 2.60.
30269 ac_datarootdir_hack=; ac_datarootdir_seen=
30270
30271 case `sed -n '/datarootdir/ {
30272   p
30273   q
30274 }
30275 /@datadir@/p
30276 /@docdir@/p
30277 /@infodir@/p
30278 /@localedir@/p
30279 /@mandir@/p
30280 ' $ac_file_inputs` in
30281 *datarootdir*) ac_datarootdir_seen=yes;;
30282 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30283   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30284 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30285 _ACEOF
30286 cat >>$CONFIG_STATUS <<_ACEOF
30287   ac_datarootdir_hack='
30288   s&@datadir@&$datadir&g
30289   s&@docdir@&$docdir&g
30290   s&@infodir@&$infodir&g
30291   s&@localedir@&$localedir&g
30292   s&@mandir@&$mandir&g
30293     s&\\\${datarootdir}&$datarootdir&g' ;;
30294 esac
30295 _ACEOF
30296
30297 # Neutralize VPATH when `$srcdir' = `.'.
30298 # Shell code in configure.ac might set extrasub.
30299 # FIXME: do we really want to maintain this feature?
30300 cat >>$CONFIG_STATUS <<_ACEOF
30301   sed "$ac_vpsub
30302 $extrasub
30303 _ACEOF
30304 cat >>$CONFIG_STATUS <<\_ACEOF
30305 :t
30306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30307 s&@configure_input@&$configure_input&;t t
30308 s&@top_builddir@&$ac_top_builddir_sub&;t t
30309 s&@srcdir@&$ac_srcdir&;t t
30310 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30311 s&@top_srcdir@&$ac_top_srcdir&;t t
30312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30313 s&@builddir@&$ac_builddir&;t t
30314 s&@abs_builddir@&$ac_abs_builddir&;t t
30315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30316 s&@INSTALL@&$ac_INSTALL&;t t
30317 $ac_datarootdir_hack
30318 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30319
30320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30321   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30322   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30323   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30324 which seems to be undefined.  Please make sure it is defined." >&5
30325 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30326 which seems to be undefined.  Please make sure it is defined." >&2;}
30327
30328   rm -f "$tmp/stdin"
30329   case $ac_file in
30330   -) cat "$tmp/out"; rm -f "$tmp/out";;
30331   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30332   esac
30333  ;;
30334   :H)
30335   #
30336   # CONFIG_HEADER
30337   #
30338 _ACEOF
30339
30340 # Transform confdefs.h into a sed script `conftest.defines', that
30341 # substitutes the proper values into config.h.in to produce config.h.
30342 rm -f conftest.defines conftest.tail
30343 # First, append a space to every undef/define line, to ease matching.
30344 echo 's/$/ /' >conftest.defines
30345 # Then, protect against being on the right side of a sed subst, or in
30346 # an unquoted here document, in config.status.  If some macros were
30347 # called several times there might be several #defines for the same
30348 # symbol, which is useless.  But do not sort them, since the last
30349 # AC_DEFINE must be honored.
30350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30351 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30352 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30353 # PARAMS is the parameter list in the macro definition--in most cases, it's
30354 # just an empty string.
30355 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30356 ac_dB='\\)[      (].*,\\1define\\2'
30357 ac_dC=' '
30358 ac_dD=' ,'
30359
30360 uniq confdefs.h |
30361   sed -n '
30362         t rset
30363         :rset
30364         s/^[     ]*#[    ]*define[       ][      ]*//
30365         t ok
30366         d
30367         :ok
30368         s/[\\&,]/\\&/g
30369         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30370         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30371   ' >>conftest.defines
30372
30373 # Remove the space that was appended to ease matching.
30374 # Then replace #undef with comments.  This is necessary, for
30375 # example, in the case of _POSIX_SOURCE, which is predefined and required
30376 # on some systems where configure will not decide to define it.
30377 # (The regexp can be short, since the line contains either #define or #undef.)
30378 echo 's/ $//
30379 s,^[     #]*u.*,/* & */,' >>conftest.defines
30380
30381 # Break up conftest.defines:
30382 ac_max_sed_lines=50
30383
30384 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30385 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30386 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30387 # et cetera.
30388 ac_in='$ac_file_inputs'
30389 ac_out='"$tmp/out1"'
30390 ac_nxt='"$tmp/out2"'
30391
30392 while :
30393 do
30394   # Write a here document:
30395     cat >>$CONFIG_STATUS <<_ACEOF
30396     # First, check the format of the line:
30397     cat >"\$tmp/defines.sed" <<\\CEOF
30398 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30399 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30400 b
30401 :def
30402 _ACEOF
30403   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30404   echo 'CEOF
30405     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30406   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30407   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30408   grep . conftest.tail >/dev/null || break
30409   rm -f conftest.defines
30410   mv conftest.tail conftest.defines
30411 done
30412 rm -f conftest.defines conftest.tail
30413
30414 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30415 cat >>$CONFIG_STATUS <<\_ACEOF
30416   if test x"$ac_file" != x-; then
30417     echo "/* $configure_input  */" >"$tmp/config.h"
30418     cat "$ac_result" >>"$tmp/config.h"
30419     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30420       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30421 echo "$as_me: $ac_file is unchanged" >&6;}
30422     else
30423       rm -f $ac_file
30424       mv "$tmp/config.h" $ac_file
30425     fi
30426   else
30427     echo "/* $configure_input  */"
30428     cat "$ac_result"
30429   fi
30430   rm -f "$tmp/out12"
30431 # Compute $ac_file's index in $config_headers.
30432 _am_stamp_count=1
30433 for _am_header in $config_headers :; do
30434   case $_am_header in
30435     $ac_file | $ac_file:* )
30436       break ;;
30437     * )
30438       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30439   esac
30440 done
30441 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30442 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30443          X$ac_file : 'X\(//\)[^/]' \| \
30444          X$ac_file : 'X\(//\)$' \| \
30445          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30446 echo X$ac_file |
30447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30448             s//\1/
30449             q
30450           }
30451           /^X\(\/\/\)[^/].*/{
30452             s//\1/
30453             q
30454           }
30455           /^X\(\/\/\)$/{
30456             s//\1/
30457             q
30458           }
30459           /^X\(\/\).*/{
30460             s//\1/
30461             q
30462           }
30463           s/.*/./; q'`/stamp-h$_am_stamp_count
30464  ;;
30465
30466   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30467 echo "$as_me: executing $ac_file commands" >&6;}
30468  ;;
30469   esac
30470
30471
30472   case $ac_file$ac_mode in
30473     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30474   # Strip MF so we end up with the name of the file.
30475   mf=`echo "$mf" | sed -e 's/:.*$//'`
30476   # Check whether this is an Automake generated Makefile or not.
30477   # We used to match only the files named `Makefile.in', but
30478   # some people rename them; so instead we look at the file content.
30479   # Grep'ing the first line is not enough: some people post-process
30480   # each Makefile.in and add a new line on top of each file to say so.
30481   # So let's grep whole file.
30482   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30483     dirpart=`$as_dirname -- "$mf" ||
30484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30485          X"$mf" : 'X\(//\)[^/]' \| \
30486          X"$mf" : 'X\(//\)$' \| \
30487          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30488 echo X"$mf" |
30489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30490             s//\1/
30491             q
30492           }
30493           /^X\(\/\/\)[^/].*/{
30494             s//\1/
30495             q
30496           }
30497           /^X\(\/\/\)$/{
30498             s//\1/
30499             q
30500           }
30501           /^X\(\/\).*/{
30502             s//\1/
30503             q
30504           }
30505           s/.*/./; q'`
30506   else
30507     continue
30508   fi
30509   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
30510   # Extract the definition of DEP_FILES from the Makefile without
30511   # running `make'.
30512   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30513   test -z "$DEPDIR" && continue
30514   # When using ansi2knr, U may be empty or an underscore; expand it
30515   U=`sed -n 's/^U = //p' < "$mf"`
30516   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30517   # We invoke sed twice because it is the simplest approach to
30518   # changing $(DEPDIR) to its actual value in the expansion.
30519   for file in `sed -n '
30520     /^DEP_FILES = .*\\\\$/ {
30521       s/^DEP_FILES = //
30522       :loop
30523         s/\\\\$//
30524         p
30525         n
30526         /\\\\$/ b loop
30527       p
30528     }
30529     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30530        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30531     # Make sure the directory exists.
30532     test -f "$dirpart/$file" && continue
30533     fdir=`$as_dirname -- "$file" ||
30534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30535          X"$file" : 'X\(//\)[^/]' \| \
30536          X"$file" : 'X\(//\)$' \| \
30537          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30538 echo X"$file" |
30539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30540             s//\1/
30541             q
30542           }
30543           /^X\(\/\/\)[^/].*/{
30544             s//\1/
30545             q
30546           }
30547           /^X\(\/\/\)$/{
30548             s//\1/
30549             q
30550           }
30551           /^X\(\/\).*/{
30552             s//\1/
30553             q
30554           }
30555           s/.*/./; q'`
30556     { as_dir=$dirpart/$fdir
30557   case $as_dir in #(
30558   -*) as_dir=./$as_dir;;
30559   esac
30560   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30561     as_dirs=
30562     while :; do
30563       case $as_dir in #(
30564       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30565       *) as_qdir=$as_dir;;
30566       esac
30567       as_dirs="'$as_qdir' $as_dirs"
30568       as_dir=`$as_dirname -- "$as_dir" ||
30569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30570          X"$as_dir" : 'X\(//\)[^/]' \| \
30571          X"$as_dir" : 'X\(//\)$' \| \
30572          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30573 echo X"$as_dir" |
30574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30575             s//\1/
30576             q
30577           }
30578           /^X\(\/\/\)[^/].*/{
30579             s//\1/
30580             q
30581           }
30582           /^X\(\/\/\)$/{
30583             s//\1/
30584             q
30585           }
30586           /^X\(\/\).*/{
30587             s//\1/
30588             q
30589           }
30590           s/.*/./; q'`
30591       test -d "$as_dir" && break
30592     done
30593     test -z "$as_dirs" || eval "mkdir $as_dirs"
30594   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30596    { (exit 1); exit 1; }; }; }
30597     # echo "creating $dirpart/$file"
30598     echo '# dummy' > "$dirpart/$file"
30599   done
30600 done
30601  ;;
30602
30603   esac
30604 done # for ac_tag
30605
30606
30607 { (exit 0); exit 0; }
30608 _ACEOF
30609 chmod +x $CONFIG_STATUS
30610 ac_clean_files=$ac_clean_files_save
30611
30612
30613 # configure is writing to config.log, and then calls config.status.
30614 # config.status does its own redirection, appending to config.log.
30615 # Unfortunately, on DOS this fails, as config.log is still kept open
30616 # by configure, so config.status won't be able to write to it; its
30617 # output is simply discarded.  So we exec the FD to /dev/null,
30618 # effectively closing config.log, so it can be properly (re)opened and
30619 # appended to by config.status.  When coming back to configure, we
30620 # need to make the FD available again.
30621 if test "$no_create" != yes; then
30622   ac_cs_success=:
30623   ac_config_status_args=
30624   test "$silent" = yes &&
30625     ac_config_status_args="$ac_config_status_args --quiet"
30626   exec 5>/dev/null
30627   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30628   exec 5>>config.log
30629   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30630   # would make configure fail if this is the last instruction.
30631   $ac_cs_success || { (exit 1); exit 1; }
30632 fi
30633
30634
30635 cat << EOF
30636
30637 $PACKAGE $VERSION configured successfully:
30638
30639  Installing into:   $prefix
30640  System config dir: $sysconfdir
30641  C compiler flags:  $conky_CFLAGS
30642  Libraries:         $conky_LIBS
30643  Linker flags:      $conky_LDFLAGS
30644
30645  * X11:
30646   X11 support:      $want_x11
30647   XDamage support:  $want_xdamage
30648   XDBE support:     $want_double_buffer
30649   Xft support:      $want_xft
30650   ARGB support      $want_argb
30651
30652  * Music detection:
30653   Audacious:        $want_audacious
30654   BMPx:             $want_bmpx
30655   MPD:              $want_mpd
30656   MOC:              $want_moc
30657   XMMS2:            $want_xmms2
30658
30659  * General:
30660   math:             $want_math
30661   hddtemp:          $want_hddtemp
30662   portmon:          $want_portmon
30663   RSS:              $want_rss
30664   Curl:             $want_curl
30665   Weather
30666     METAR:          $want_metar
30667     XOAP:           $want_xoap
30668   wireless:         $want_wlan
30669   IBM:              $want_ibm
30670   nvidia:           $want_nvidia
30671   eve-online:       $want_eve
30672   config-output:    $want_config_output
30673   Imlib2:           $want_imlib2
30674   ALSA mixer:       $want_alsa
30675   apcupsd:          $want_apcupsd
30676   I/O stats:        $want_iostats
30677   ncurses:          $want_ncurses
30678
30679  * Lua ($want_lua) bindings:
30680   Cairo:            $want_lua_cairo
30681   Imlib2:           $want_lua_imlib2
30682
30683 EOF