ec56fb3b16140ed866157f65b559068605a80c61
[platform/upstream/syncevolution.git] / src / synthesis / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="src/sysync/engineinterface.cpp"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 CXX
830 CXXFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CXX
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CXXDEPMODE
843 am__fastdepCXX_TRUE
844 am__fastdepCXX_FALSE
845 build
846 build_cpu
847 build_vendor
848 build_os
849 host
850 host_cpu
851 host_vendor
852 host_os
853 CC
854 CFLAGS
855 ac_ct_CC
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 SED
860 GREP
861 EGREP
862 LN_S
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 CPP
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 PKG_CONFIG
875 FOOBAR_CFLAGS
876 FOOBAR_LIBS
877 SQLITE3_CFLAGS
878 SQLITE3_LIBS
879 PCRE_CFLAGS
880 PCRE_LIBS
881 LIBICAL_CFLAGS
882 LIBICAL_LIBS
883 LIBECAL_CFLAGS
884 LIBECAL_LIBS
885 XMLPARSE_LIBS
886 XMLPARSE_CFLAGS
887 COND_XMLPARSE_TRUE
888 COND_XMLPARSE_FALSE
889 COND_STATIC_TRUE
890 COND_STATIC_FALSE
891 LIBOBJS
892 LTLIBOBJS'
893 ac_subst_files=''
894       ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CXX
898 CXXFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CCC
903 CC
904 CFLAGS
905 CPP
906 CXXCPP
907 F77
908 FFLAGS
909 PKG_CONFIG
910 FOOBAR_CFLAGS
911 FOOBAR_LIBS
912 SQLITE3_CFLAGS
913 SQLITE3_LIBS
914 PCRE_CFLAGS
915 PCRE_LIBS
916 LIBICAL_CFLAGS
917 LIBICAL_LIBS
918 LIBECAL_CFLAGS
919 LIBECAL_LIBS'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *)    ac_optarg=yes ;;
982   esac
983
984   # Accept the important Cygnus configure options, so we can diagnose typos.
985
986   case $ac_dashdash$ac_option in
987   --)
988     ac_dashdash=yes ;;
989
990   -bindir | --bindir | --bindi | --bind | --bin | --bi)
991     ac_prev=bindir ;;
992   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993     bindir=$ac_optarg ;;
994
995   -build | --build | --buil | --bui | --bu)
996     ac_prev=build_alias ;;
997   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998     build_alias=$ac_optarg ;;
999
1000   -cache-file | --cache-file | --cache-fil | --cache-fi \
1001   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002     ac_prev=cache_file ;;
1003   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005     cache_file=$ac_optarg ;;
1006
1007   --config-cache | -C)
1008     cache_file=config.cache ;;
1009
1010   -datadir | --datadir | --datadi | --datad)
1011     ac_prev=datadir ;;
1012   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013     datadir=$ac_optarg ;;
1014
1015   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016   | --dataroo | --dataro | --datar)
1017     ac_prev=datarootdir ;;
1018   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020     datarootdir=$ac_optarg ;;
1021
1022   -disable-* | --disable-*)
1023     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027    { (exit 1); exit 1; }; }
1028     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029     eval enable_$ac_feature=no ;;
1030
1031   -docdir | --docdir | --docdi | --doc | --do)
1032     ac_prev=docdir ;;
1033   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034     docdir=$ac_optarg ;;
1035
1036   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037     ac_prev=dvidir ;;
1038   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039     dvidir=$ac_optarg ;;
1040
1041   -enable-* | --enable-*)
1042     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046    { (exit 1); exit 1; }; }
1047     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048     eval enable_$ac_feature=\$ac_optarg ;;
1049
1050   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052   | --exec | --exe | --ex)
1053     ac_prev=exec_prefix ;;
1054   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056   | --exec=* | --exe=* | --ex=*)
1057     exec_prefix=$ac_optarg ;;
1058
1059   -gas | --gas | --ga | --g)
1060     # Obsolete; use --with-gas.
1061     with_gas=yes ;;
1062
1063   -help | --help | --hel | --he | -h)
1064     ac_init_help=long ;;
1065   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066     ac_init_help=recursive ;;
1067   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068     ac_init_help=short ;;
1069
1070   -host | --host | --hos | --ho)
1071     ac_prev=host_alias ;;
1072   -host=* | --host=* | --hos=* | --ho=*)
1073     host_alias=$ac_optarg ;;
1074
1075   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076     ac_prev=htmldir ;;
1077   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078   | --ht=*)
1079     htmldir=$ac_optarg ;;
1080
1081   -includedir | --includedir | --includedi | --included | --include \
1082   | --includ | --inclu | --incl | --inc)
1083     ac_prev=includedir ;;
1084   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085   | --includ=* | --inclu=* | --incl=* | --inc=*)
1086     includedir=$ac_optarg ;;
1087
1088   -infodir | --infodir | --infodi | --infod | --info | --inf)
1089     ac_prev=infodir ;;
1090   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091     infodir=$ac_optarg ;;
1092
1093   -libdir | --libdir | --libdi | --libd)
1094     ac_prev=libdir ;;
1095   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096     libdir=$ac_optarg ;;
1097
1098   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099   | --libexe | --libex | --libe)
1100     ac_prev=libexecdir ;;
1101   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102   | --libexe=* | --libex=* | --libe=*)
1103     libexecdir=$ac_optarg ;;
1104
1105   -localedir | --localedir | --localedi | --localed | --locale)
1106     ac_prev=localedir ;;
1107   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108     localedir=$ac_optarg ;;
1109
1110   -localstatedir | --localstatedir | --localstatedi | --localstated \
1111   | --localstate | --localstat | --localsta | --localst | --locals)
1112     ac_prev=localstatedir ;;
1113   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115     localstatedir=$ac_optarg ;;
1116
1117   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118     ac_prev=mandir ;;
1119   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120     mandir=$ac_optarg ;;
1121
1122   -nfp | --nfp | --nf)
1123     # Obsolete; use --without-fp.
1124     with_fp=no ;;
1125
1126   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127   | --no-cr | --no-c | -n)
1128     no_create=yes ;;
1129
1130   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132     no_recursion=yes ;;
1133
1134   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136   | --oldin | --oldi | --old | --ol | --o)
1137     ac_prev=oldincludedir ;;
1138   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141     oldincludedir=$ac_optarg ;;
1142
1143   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144     ac_prev=prefix ;;
1145   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146     prefix=$ac_optarg ;;
1147
1148   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149   | --program-pre | --program-pr | --program-p)
1150     ac_prev=program_prefix ;;
1151   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153     program_prefix=$ac_optarg ;;
1154
1155   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156   | --program-suf | --program-su | --program-s)
1157     ac_prev=program_suffix ;;
1158   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160     program_suffix=$ac_optarg ;;
1161
1162   -program-transform-name | --program-transform-name \
1163   | --program-transform-nam | --program-transform-na \
1164   | --program-transform-n | --program-transform- \
1165   | --program-transform | --program-transfor \
1166   | --program-transfo | --program-transf \
1167   | --program-trans | --program-tran \
1168   | --progr-tra | --program-tr | --program-t)
1169     ac_prev=program_transform_name ;;
1170   -program-transform-name=* | --program-transform-name=* \
1171   | --program-transform-nam=* | --program-transform-na=* \
1172   | --program-transform-n=* | --program-transform-=* \
1173   | --program-transform=* | --program-transfor=* \
1174   | --program-transfo=* | --program-transf=* \
1175   | --program-trans=* | --program-tran=* \
1176   | --progr-tra=* | --program-tr=* | --program-t=*)
1177     program_transform_name=$ac_optarg ;;
1178
1179   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180     ac_prev=pdfdir ;;
1181   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182     pdfdir=$ac_optarg ;;
1183
1184   -psdir | --psdir | --psdi | --psd | --ps)
1185     ac_prev=psdir ;;
1186   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187     psdir=$ac_optarg ;;
1188
1189   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190   | -silent | --silent | --silen | --sile | --sil)
1191     silent=yes ;;
1192
1193   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194     ac_prev=sbindir ;;
1195   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196   | --sbi=* | --sb=*)
1197     sbindir=$ac_optarg ;;
1198
1199   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201   | --sharedst | --shareds | --shared | --share | --shar \
1202   | --sha | --sh)
1203     ac_prev=sharedstatedir ;;
1204   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207   | --sha=* | --sh=*)
1208     sharedstatedir=$ac_optarg ;;
1209
1210   -site | --site | --sit)
1211     ac_prev=site ;;
1212   -site=* | --site=* | --sit=*)
1213     site=$ac_optarg ;;
1214
1215   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216     ac_prev=srcdir ;;
1217   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218     srcdir=$ac_optarg ;;
1219
1220   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221   | --syscon | --sysco | --sysc | --sys | --sy)
1222     ac_prev=sysconfdir ;;
1223   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225     sysconfdir=$ac_optarg ;;
1226
1227   -target | --target | --targe | --targ | --tar | --ta | --t)
1228     ac_prev=target_alias ;;
1229   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230     target_alias=$ac_optarg ;;
1231
1232   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233     verbose=yes ;;
1234
1235   -version | --version | --versio | --versi | --vers | -V)
1236     ac_init_version=: ;;
1237
1238   -with-* | --with-*)
1239     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       { echo "$as_me: error: invalid package name: $ac_package" >&2
1243    { (exit 1); exit 1; }; }
1244     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245     eval with_$ac_package=\$ac_optarg ;;
1246
1247   -without-* | --without-*)
1248     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251       { echo "$as_me: error: invalid package name: $ac_package" >&2
1252    { (exit 1); exit 1; }; }
1253     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254     eval with_$ac_package=no ;;
1255
1256   --x)
1257     # Obsolete; use --with-x.
1258     with_x=yes ;;
1259
1260   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261   | --x-incl | --x-inc | --x-in | --x-i)
1262     ac_prev=x_includes ;;
1263   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265     x_includes=$ac_optarg ;;
1266
1267   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269     ac_prev=x_libraries ;;
1270   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272     x_libraries=$ac_optarg ;;
1273
1274   -*) { echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276    { (exit 1); exit 1; }; }
1277     ;;
1278
1279   *=*)
1280     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284    { (exit 1); exit 1; }; }
1285     eval $ac_envvar=\$ac_optarg
1286     export $ac_envvar ;;
1287
1288   *)
1289     # FIXME: should be removed in autoconf 3.0.
1290     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294     ;;
1295
1296   esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301   { echo "$as_me: error: missing argument to $ac_option" >&2
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 # Be sure to have absolute directory names.
1306 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307                 datadir sysconfdir sharedstatedir localstatedir includedir \
1308                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309                 libdir localedir mandir
1310 do
1311   eval ac_val=\$$ac_var
1312   case $ac_val in
1313     [\\/$]* | ?:[\\/]* )  continue;;
1314     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315   esac
1316   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317    { (exit 1); exit 1; }; }
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329   if test "x$build_alias" = x; then
1330     cross_compiling=maybe
1331     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332     If a cross compiler is detected then cross compile mode will be used." >&2
1333   elif test "x$build_alias" != "x$host_alias"; then
1334     cross_compiling=yes
1335   fi
1336 fi
1337
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341 test "$silent" = yes && exec 6>/dev/null
1342
1343
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347   { echo "$as_me: error: Working directory cannot be determined" >&2
1348    { (exit 1); exit 1; }; }
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350   { echo "$as_me: error: pwd does not report name of working directory" >&2
1351    { (exit 1); exit 1; }; }
1352
1353
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356   ac_srcdir_defaulted=yes
1357   # Try the directory containing this script, then the parent directory.
1358   ac_confdir=`$as_dirname -- "$0" ||
1359 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360          X"$0" : 'X\(//\)[^/]' \| \
1361          X"$0" : 'X\(//\)$' \| \
1362          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363 echo X"$0" |
1364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)[^/].*/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\).*/{
1377             s//\1/
1378             q
1379           }
1380           s/.*/./; q'`
1381   srcdir=$ac_confdir
1382   if test ! -r "$srcdir/$ac_unique_file"; then
1383     srcdir=..
1384   fi
1385 else
1386   ac_srcdir_defaulted=no
1387 fi
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391    { (exit 1); exit 1; }; }
1392 fi
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396    { (exit 1); exit 1; }; }
1397         pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400   srcdir=.
1401 fi
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410   eval ac_env_${ac_var}_value=\$${ac_var}
1411   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1414
1415 #
1416 # Report the --help message.
1417 #
1418 if test "$ac_init_help" = "long"; then
1419   # Omit some internal or obsolete options to make the list less imposing.
1420   # This message is too long to be a string in the A/UX 3.1 sh.
1421   cat <<_ACEOF
1422 \`configure' configures this package to adapt to many kinds of systems.
1423
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE.  See below for descriptions of some of the useful variables.
1428
1429 Defaults for the options are specified in brackets.
1430
1431 Configuration:
1432   -h, --help              display this help and exit
1433       --help=short        display options specific to this package
1434       --help=recursive    display the short help of all the included packages
1435   -V, --version           display version information and exit
1436   -q, --quiet, --silent   do not print \`checking...' messages
1437       --cache-file=FILE   cache test results in FILE [disabled]
1438   -C, --config-cache      alias for \`--cache-file=config.cache'
1439   -n, --no-create         do not create output files
1440       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1441
1442 Installation directories:
1443   --prefix=PREFIX         install architecture-independent files in PREFIX
1444                           [$ac_default_prefix]
1445   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1446                           [PREFIX]
1447
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1452
1453 For better control, use the options below.
1454
1455 Fine tuning of the installation directories:
1456   --bindir=DIR           user executables [EPREFIX/bin]
1457   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1458   --libexecdir=DIR       program executables [EPREFIX/libexec]
1459   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1460   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1461   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1462   --libdir=DIR           object code libraries [EPREFIX/lib]
1463   --includedir=DIR       C header files [PREFIX/include]
1464   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1465   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1466   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1467   --infodir=DIR          info documentation [DATAROOTDIR/info]
1468   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1469   --mandir=DIR           man documentation [DATAROOTDIR/man]
1470   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1471   --htmldir=DIR          html documentation [DOCDIR]
1472   --dvidir=DIR           dvi documentation [DOCDIR]
1473   --pdfdir=DIR           pdf documentation [DOCDIR]
1474   --psdir=DIR            ps documentation [DOCDIR]
1475 _ACEOF
1476
1477   cat <<\_ACEOF
1478
1479 Program names:
1480   --program-prefix=PREFIX            prepend PREFIX to installed program names
1481   --program-suffix=SUFFIX            append SUFFIX to installed program names
1482   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1483
1484 System types:
1485   --build=BUILD     configure for building on BUILD [guessed]
1486   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491
1492   cat <<\_ACEOF
1493
1494 Optional Features:
1495   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497   --disable-dependency-tracking  speeds up one-time build
1498   --enable-dependency-tracking   do not reject slow dependency extractors
1499   --enable-shared[=PKGS]  build shared libraries [default=yes]
1500   --enable-static[=PKGS]  build static libraries [default=yes]
1501   --enable-fast-install[=PKGS]
1502                           optimize for fast installation [default=yes]
1503   --disable-libtool-lock  avoid locking (might break parallel builds)
1504   --enable-sqlite         enable the sqlite-based ODBC backend, depends on
1505                           libsqlite3, enabled by default
1506   --enable-regex          enable regular expression support in scripts,
1507                           depends on libpcre, enabled by default
1508   --enable-libical        use libical (if necessary, the one in libecal) to
1509                           improve time zone support, enabled by default if
1510                           necessary libs are found
1511   --enable-evolution-compatibility
1512                           build executables which only call Evolution via
1513                           dlopen/dlsym: this avoids all hard dependencies on
1514                           EDS shared objects, but might lead to crashes when
1515                           their ABI changes
1516
1517 Optional Packages:
1518   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521   --with-pic              try to use only PIC/non-PIC objects [default=use
1522                           both]
1523   --with-tags[=TAGS]      include additional configurations [automatic]
1524   --with-xmltok=<builtin|system|path>
1525                           Chooses which xmltok/xmlparse gets used. "builtin" =
1526                           compile code into libsynthesis. "system" = use
1527                           header files and libxmlparse from standard search
1528                           paths. "path" = use header files in "path/include"
1529                           and libxmlparse in "path/lib". Default is system if
1530                           header files are found, otherwise builtin.
1531   --with-expat=<system|path>
1532                           Choose expat as the XML parser library. Replaces
1533                           --with-xmltok. "system" = use header files and
1534                           libexpat from standard search paths. "path" = use
1535                           header files in "path/include", and libexpat in
1536                           "path/lib".
1537
1538 Some influential environment variables:
1539   CXX         C++ compiler command
1540   CXXFLAGS    C++ compiler flags
1541   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1542               nonstandard directory <lib dir>
1543   LIBS        libraries to pass to the linker, e.g. -l<library>
1544   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1545               you have headers in a nonstandard directory <include dir>
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   CPP         C preprocessor
1549   CXXCPP      C++ preprocessor
1550   F77         Fortran 77 compiler command
1551   FFLAGS      Fortran 77 compiler flags
1552   PKG_CONFIG  path to pkg-config utility
1553   FOOBAR_CFLAGS
1554               C compiler flags for FOOBAR, overriding pkg-config
1555   FOOBAR_LIBS linker flags for FOOBAR, overriding pkg-config
1556   SQLITE3_CFLAGS
1557               C compiler flags for SQLITE3, overriding pkg-config
1558   SQLITE3_LIBS
1559               linker flags for SQLITE3, overriding pkg-config
1560   PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1561   PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1562   LIBICAL_CFLAGS
1563               C compiler flags for LIBICAL, overriding pkg-config
1564   LIBICAL_LIBS
1565               linker flags for LIBICAL, overriding pkg-config
1566   LIBECAL_CFLAGS
1567               C compiler flags for LIBECAL, overriding pkg-config
1568   LIBECAL_LIBS
1569               linker flags for LIBECAL, overriding pkg-config
1570
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1573
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" || continue
1582     ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588   # A ".." for each directory in $ac_dir_suffix.
1589   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590   case $ac_top_builddir_sub in
1591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593   esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601   .)  # We are building in place.
1602     ac_srcdir=.
1603     ac_top_srcdir=$ac_top_builddir_sub
1604     ac_abs_top_srcdir=$ac_pwd ;;
1605   [\\/]* | ?:[\\/]* )  # Absolute name.
1606     ac_srcdir=$srcdir$ac_dir_suffix;
1607     ac_top_srcdir=$srcdir
1608     ac_abs_top_srcdir=$srcdir ;;
1609   *) # Relative name.
1610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611     ac_top_srcdir=$ac_top_build_prefix$srcdir
1612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616     cd "$ac_dir" || { ac_status=$?; continue; }
1617     # Check for guested configure.
1618     if test -f "$ac_srcdir/configure.gnu"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621     elif test -f "$ac_srcdir/configure"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure" --help=recursive
1624     else
1625       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626     fi || ac_status=$?
1627     cd "$ac_pwd" || { ac_status=$?; break; }
1628   done
1629 fi
1630
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633   cat <<\_ACEOF
1634 configure
1635 generated by GNU Autoconf 2.61
1636
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642   exit
1643 fi
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1647
1648 It was created by $as_me, which was
1649 generated by GNU Autoconf 2.61.  Invocation command line was
1650
1651   $ $0 $@
1652
1653 _ACEOF
1654 exec 5>>config.log
1655 {
1656 cat <<_ASUNAME
1657 ## --------- ##
1658 ## Platform. ##
1659 ## --------- ##
1660
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1669
1670 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1671 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1674 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1675 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1676 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1677
1678 _ASUNAME
1679
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   echo "PATH: $as_dir"
1686 done
1687 IFS=$as_save_IFS
1688
1689 } >&5
1690
1691 cat >&5 <<_ACEOF
1692
1693
1694 ## ----------- ##
1695 ## Core tests. ##
1696 ## ----------- ##
1697
1698 _ACEOF
1699
1700
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_configure_args=
1707 ac_configure_args0=
1708 ac_configure_args1=
1709 ac_must_keep_next=false
1710 for ac_pass in 1 2
1711 do
1712   for ac_arg
1713   do
1714     case $ac_arg in
1715     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717     | -silent | --silent | --silen | --sile | --sil)
1718       continue ;;
1719     *\'*)
1720       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721     esac
1722     case $ac_pass in
1723     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724     2)
1725       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726       if test $ac_must_keep_next = true; then
1727         ac_must_keep_next=false # Got value, back to normal.
1728       else
1729         case $ac_arg in
1730           *=* | --config-cache | -C | -disable-* | --disable-* \
1731           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733           | -with-* | --with-* | -without-* | --without-* | --x)
1734             case "$ac_configure_args0 " in
1735               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736             esac
1737             ;;
1738           -* ) ac_must_keep_next=true ;;
1739         esac
1740       fi
1741       ac_configure_args="$ac_configure_args '$ac_arg'"
1742       ;;
1743     esac
1744   done
1745 done
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log.  We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755   # Save into config.log some information that might help in debugging.
1756   {
1757     echo
1758
1759     cat <<\_ASBOX
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1763 _ASBOX
1764     echo
1765     # The following way of writing the cache mishandles newlines in values,
1766 (
1767   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768     eval ac_val=\$$ac_var
1769     case $ac_val in #(
1770     *${as_nl}*)
1771       case $ac_var in #(
1772       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774       esac
1775       case $ac_var in #(
1776       _ | IFS | as_nl) ;; #(
1777       *) $as_unset $ac_var ;;
1778       esac ;;
1779     esac
1780   done
1781   (set) 2>&1 |
1782     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783     *${as_nl}ac_space=\ *)
1784       sed -n \
1785         "s/'\''/'\''\\\\'\'''\''/g;
1786           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787       ;; #(
1788     *)
1789       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790       ;;
1791     esac |
1792     sort
1793 )
1794     echo
1795
1796     cat <<\_ASBOX
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1800 _ASBOX
1801     echo
1802     for ac_var in $ac_subst_vars
1803     do
1804       eval ac_val=\$$ac_var
1805       case $ac_val in
1806       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807       esac
1808       echo "$ac_var='\''$ac_val'\''"
1809     done | sort
1810     echo
1811
1812     if test -n "$ac_subst_files"; then
1813       cat <<\_ASBOX
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1817 _ASBOX
1818       echo
1819       for ac_var in $ac_subst_files
1820       do
1821         eval ac_val=\$$ac_var
1822         case $ac_val in
1823         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824         esac
1825         echo "$ac_var='\''$ac_val'\''"
1826       done | sort
1827       echo
1828     fi
1829
1830     if test -s confdefs.h; then
1831       cat <<\_ASBOX
1832 ## ----------- ##
1833 ## confdefs.h. ##
1834 ## ----------- ##
1835 _ASBOX
1836       echo
1837       cat confdefs.h
1838       echo
1839     fi
1840     test "$ac_signal" != 0 &&
1841       echo "$as_me: caught signal $ac_signal"
1842     echo "$as_me: exit $exit_status"
1843   } >&5
1844   rm -f core *.core core.conftest.* &&
1845     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846     exit $exit_status
1847 ' 0
1848 for ac_signal in 1 2 13 15; do
1849   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 done
1851 ac_signal=0
1852
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1855
1856 # Predefined preprocessor variables.
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 _ACEOF
1881
1882
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886   set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 else
1890   set x "$ac_default_prefix/share/config.site" \
1891         "$ac_default_prefix/etc/config.site"
1892 fi
1893 shift
1894 for ac_site_file
1895 do
1896   if test -r "$ac_site_file"; then
1897     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899     sed 's/^/| /' "$ac_site_file" >&5
1900     . "$ac_site_file"
1901   fi
1902 done
1903
1904 if test -r "$cache_file"; then
1905   # Some versions of bash will fail to source /dev/null (special
1906   # files actually), so we avoid doing that.
1907   if test -f "$cache_file"; then
1908     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1910     case $cache_file in
1911       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912       *)                      . "./$cache_file";;
1913     esac
1914   fi
1915 else
1916   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1918   >$cache_file
1919 fi
1920
1921 # Check that the precious variables saved in the cache have kept the same
1922 # value.
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926   eval ac_new_set=\$ac_env_${ac_var}_set
1927   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928   eval ac_new_val=\$ac_env_${ac_var}_value
1929   case $ac_old_set,$ac_new_set in
1930     set,)
1931       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,set)
1935       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937       ac_cache_corrupted=: ;;
1938     ,);;
1939     *)
1940       if test "x$ac_old_val" != "x$ac_new_val"; then
1941         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1944 echo "$as_me:   former value:  $ac_old_val" >&2;}
1945         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1946 echo "$as_me:   current value: $ac_new_val" >&2;}
1947         ac_cache_corrupted=:
1948       fi;;
1949   esac
1950   # Pass precious variables to config.status.
1951   if test "$ac_new_set" = set; then
1952     case $ac_new_val in
1953     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954     *) ac_arg=$ac_var=$ac_new_val ;;
1955     esac
1956     case " $ac_configure_args " in
1957       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1958       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959     esac
1960   fi
1961 done
1962 if $ac_cache_corrupted; then
1963   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986 ac_ext=c
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991
1992
1993
1994 am__api_version='1.10'
1995
1996 ac_aux_dir=
1997 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1998   if test -f "$ac_dir/install-sh"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/install-sh -c"
2001     break
2002   elif test -f "$ac_dir/install.sh"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/install.sh -c"
2005     break
2006   elif test -f "$ac_dir/shtool"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/shtool install -c"
2009     break
2010   fi
2011 done
2012 if test -z "$ac_aux_dir"; then
2013   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2025
2026
2027 # Find a good install program.  We prefer a C program (faster),
2028 # so one script is as good as another.  But avoid the broken or
2029 # incompatible versions:
2030 # SysV /etc/install, /usr/sbin/install
2031 # SunOS /usr/etc/install
2032 # IRIX /sbin/install
2033 # AIX /bin/install
2034 # AmigaOS /C/install, which installs bootblocks on floppy discs
2035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2038 # OS/2's system install, which has a completely different semantic
2039 # ./install, which can be erroneously created by make from ./install.sh.
2040 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2042 if test -z "$INSTALL"; then
2043 if test "${ac_cv_path_install+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   # Account for people who put trailing slashes in PATH elements.
2052 case $as_dir/ in
2053   ./ | .// | /cC/* | \
2054   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2056   /usr/ucb/* ) ;;
2057   *)
2058     # OSF1 and SCO ODT 3.0 have their own names for install.
2059     # Don't use installbsd from OSF since it installs stuff as root
2060     # by default.
2061     for ac_prog in ginstall scoinst install; do
2062       for ac_exec_ext in '' $ac_executable_extensions; do
2063         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064           if test $ac_prog = install &&
2065             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066             # AIX install.  It has an incompatible calling convention.
2067             :
2068           elif test $ac_prog = install &&
2069             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070             # program-specific install script used by HP pwplus--don't use.
2071             :
2072           else
2073             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2074             break 3
2075           fi
2076         fi
2077       done
2078     done
2079     ;;
2080 esac
2081 done
2082 IFS=$as_save_IFS
2083
2084
2085 fi
2086   if test "${ac_cv_path_install+set}" = set; then
2087     INSTALL=$ac_cv_path_install
2088   else
2089     # As a last resort, use the slow shell script.  Don't cache a
2090     # value for INSTALL within a source directory, because that will
2091     # break other packages using the cache if that directory is
2092     # removed, or if the value is a relative name.
2093     INSTALL=$ac_install_sh
2094   fi
2095 fi
2096 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2097 echo "${ECHO_T}$INSTALL" >&6; }
2098
2099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100 # It thinks the first close brace ends the variable substitution.
2101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2102
2103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2104
2105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2106
2107 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2109 # Just in case
2110 sleep 1
2111 echo timestamp > conftest.file
2112 # Do `set' in a subshell so we don't clobber the current shell's
2113 # arguments.  Must try -L first in case configure is actually a
2114 # symlink; some systems play weird games with the mod time of symlinks
2115 # (eg FreeBSD returns the mod time of the symlink's containing
2116 # directory).
2117 if (
2118    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2119    if test "$*" = "X"; then
2120       # -L didn't work.
2121       set X `ls -t $srcdir/configure conftest.file`
2122    fi
2123    rm -f conftest.file
2124    if test "$*" != "X $srcdir/configure conftest.file" \
2125       && test "$*" != "X conftest.file $srcdir/configure"; then
2126
2127       # If neither matched, then we have a broken ls.  This can happen
2128       # if, for instance, CONFIG_SHELL is bash and it inherits a
2129       # broken ls alias from the environment.  This has actually
2130       # happened.  Such a system could not be considered "sane".
2131       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2132 alias in your environment" >&5
2133 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2134 alias in your environment" >&2;}
2135    { (exit 1); exit 1; }; }
2136    fi
2137
2138    test "$2" = conftest.file
2139    )
2140 then
2141    # Ok.
2142    :
2143 else
2144    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2145 Check your system clock" >&5
2146 echo "$as_me: error: newly created file is older than distributed files!
2147 Check your system clock" >&2;}
2148    { (exit 1); exit 1; }; }
2149 fi
2150 { echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6; }
2152 test "$program_prefix" != NONE &&
2153   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2154 # Use a double $ so make ignores it.
2155 test "$program_suffix" != NONE &&
2156   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2157 # Double any \ or $.  echo might interpret backslashes.
2158 # By default was `s,x,x', remove it if useless.
2159 cat <<\_ACEOF >conftest.sed
2160 s/[\\$]/&&/g;s/;s,x,x,$//
2161 _ACEOF
2162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2163 rm -f conftest.sed
2164
2165 # expand $ac_aux_dir to an absolute path
2166 am_aux_dir=`cd $ac_aux_dir && pwd`
2167
2168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2169 # Use eval to expand $SHELL
2170 if eval "$MISSING --run true"; then
2171   am_missing_run="$MISSING --run "
2172 else
2173   am_missing_run=
2174   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2176 fi
2177
2178 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2179 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2180 if test -z "$MKDIR_P"; then
2181   if test "${ac_cv_path_mkdir+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_prog in mkdir gmkdir; do
2190          for ac_exec_ext in '' $ac_executable_extensions; do
2191            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2192            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2193              'mkdir (GNU coreutils) '* | \
2194              'mkdir (coreutils) '* | \
2195              'mkdir (fileutils) '4.1*)
2196                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2197                break 3;;
2198            esac
2199          done
2200        done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205
2206   if test "${ac_cv_path_mkdir+set}" = set; then
2207     MKDIR_P="$ac_cv_path_mkdir -p"
2208   else
2209     # As a last resort, use the slow shell script.  Don't cache a
2210     # value for MKDIR_P within a source directory, because that will
2211     # break other packages using the cache if that directory is
2212     # removed, or if the value is a relative name.
2213     test -d ./--version && rmdir ./--version
2214     MKDIR_P="$ac_install_sh -d"
2215   fi
2216 fi
2217 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2218 echo "${ECHO_T}$MKDIR_P" >&6; }
2219
2220 mkdir_p="$MKDIR_P"
2221 case $mkdir_p in
2222   [\\/$]* | ?:[\\/]*) ;;
2223   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2224 esac
2225
2226 for ac_prog in gawk mawk nawk awk
2227 do
2228   # Extract the first word of "$ac_prog", so it can be a program name with args.
2229 set dummy $ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_AWK+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   if test -n "$AWK"; then
2236   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241   IFS=$as_save_IFS
2242   test -z "$as_dir" && as_dir=.
2243   for ac_exec_ext in '' $ac_executable_extensions; do
2244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245     ac_cv_prog_AWK="$ac_prog"
2246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247     break 2
2248   fi
2249 done
2250 done
2251 IFS=$as_save_IFS
2252
2253 fi
2254 fi
2255 AWK=$ac_cv_prog_AWK
2256 if test -n "$AWK"; then
2257   { echo "$as_me:$LINENO: result: $AWK" >&5
2258 echo "${ECHO_T}$AWK" >&6; }
2259 else
2260   { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2262 fi
2263
2264
2265   test -n "$AWK" && break
2266 done
2267
2268 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2269 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2270 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2271 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   cat >conftest.make <<\_ACEOF
2275 SHELL = /bin/sh
2276 all:
2277         @echo '@@@%%%=$(MAKE)=@@@%%%'
2278 _ACEOF
2279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2281   *@@@%%%=?*=@@@%%%*)
2282     eval ac_cv_prog_make_${ac_make}_set=yes;;
2283   *)
2284     eval ac_cv_prog_make_${ac_make}_set=no;;
2285 esac
2286 rm -f conftest.make
2287 fi
2288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2289   { echo "$as_me:$LINENO: result: yes" >&5
2290 echo "${ECHO_T}yes" >&6; }
2291   SET_MAKE=
2292 else
2293   { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295   SET_MAKE="MAKE=${MAKE-make}"
2296 fi
2297
2298 rm -rf .tst 2>/dev/null
2299 mkdir .tst 2>/dev/null
2300 if test -d .tst; then
2301   am__leading_dot=.
2302 else
2303   am__leading_dot=_
2304 fi
2305 rmdir .tst 2>/dev/null
2306
2307 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2308   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2309   # is not polluted with repeated "-I."
2310   am__isrc=' -I$(srcdir)'
2311   # test to see if srcdir already configured
2312   if test -f $srcdir/config.status; then
2313     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2314 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2315    { (exit 1); exit 1; }; }
2316   fi
2317 fi
2318
2319 # test whether we have cygpath
2320 if test -z "$CYGPATH_W"; then
2321   if (cygpath --version) >/dev/null 2>/dev/null; then
2322     CYGPATH_W='cygpath -w'
2323   else
2324     CYGPATH_W=echo
2325   fi
2326 fi
2327
2328
2329 # Define the identity of the package.
2330  PACKAGE=syncevolution
2331  VERSION=0.8-beta2
2332
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE "$PACKAGE"
2336 _ACEOF
2337
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define VERSION "$VERSION"
2341 _ACEOF
2342
2343 # Some tools Automake needs.
2344
2345 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2346
2347
2348 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2349
2350
2351 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2352
2353
2354 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2355
2356
2357 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2358
2359 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2360
2361 # Installed binaries are usually stripped using `strip' when the user
2362 # run `make install-strip'.  However `strip' might not be the right
2363 # tool to use in cross-compilation environments, therefore Automake
2364 # will honor the `STRIP' environment variable to overrule this program.
2365 if test "$cross_compiling" != no; then
2366   if test -n "$ac_tool_prefix"; then
2367   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}strip; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_STRIP+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   if test -n "$STRIP"; then
2375   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390 IFS=$as_save_IFS
2391
2392 fi
2393 fi
2394 STRIP=$ac_cv_prog_STRIP
2395 if test -n "$STRIP"; then
2396   { echo "$as_me:$LINENO: result: $STRIP" >&5
2397 echo "${ECHO_T}$STRIP" >&6; }
2398 else
2399   { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2401 fi
2402
2403
2404 fi
2405 if test -z "$ac_cv_prog_STRIP"; then
2406   ac_ct_STRIP=$STRIP
2407   # Extract the first word of "strip", so it can be a program name with args.
2408 set dummy strip; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   if test -n "$ac_ct_STRIP"; then
2415   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422   for ac_exec_ext in '' $ac_executable_extensions; do
2423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424     ac_cv_prog_ac_ct_STRIP="strip"
2425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 fi
2433 fi
2434 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2435 if test -n "$ac_ct_STRIP"; then
2436   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2437 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2438 else
2439   { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2441 fi
2442
2443   if test "x$ac_ct_STRIP" = x; then
2444     STRIP=":"
2445   else
2446     case $cross_compiling:$ac_tool_warned in
2447 yes:)
2448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet.  If you think this
2450 configuration is useful to you, please write to autoconf@gnu.org." >&5
2451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet.  If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454 ac_tool_warned=yes ;;
2455 esac
2456     STRIP=$ac_ct_STRIP
2457   fi
2458 else
2459   STRIP="$ac_cv_prog_STRIP"
2460 fi
2461
2462 fi
2463 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2464
2465 # We need awk for the "check" target.  The system "awk" is bad on
2466 # some platforms.
2467 # Always define AMTAR for backward compatibility.
2468
2469 AMTAR=${AMTAR-"${am_missing_run}tar"}
2470
2471 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2472
2473
2474
2475
2476
2477 ac_config_headers="$ac_config_headers config.h"
2478
2479
2480
2481
2482 ac_ext=cpp
2483 ac_cpp='$CXXCPP $CPPFLAGS'
2484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2487 if test -z "$CXX"; then
2488   if test -n "$CCC"; then
2489     CXX=$CCC
2490   else
2491     if test -n "$ac_tool_prefix"; then
2492   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2493   do
2494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CXX+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$CXX"; then
2502   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 CXX=$ac_cv_prog_CXX
2522 if test -n "$CXX"; then
2523   { echo "$as_me:$LINENO: result: $CXX" >&5
2524 echo "${ECHO_T}$CXX" >&6; }
2525 else
2526   { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528 fi
2529
2530
2531     test -n "$CXX" && break
2532   done
2533 fi
2534 if test -z "$CXX"; then
2535   ac_ct_CXX=$CXX
2536   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2537 do
2538   # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   if test -n "$ac_ct_CXX"; then
2546   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553   for ac_exec_ext in '' $ac_executable_extensions; do
2554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555     ac_cv_prog_ac_ct_CXX="$ac_prog"
2556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2566 if test -n "$ac_ct_CXX"; then
2567   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2568 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2569 else
2570   { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2572 fi
2573
2574
2575   test -n "$ac_ct_CXX" && break
2576 done
2577
2578   if test "x$ac_ct_CXX" = x; then
2579     CXX="g++"
2580   else
2581     case $cross_compiling:$ac_tool_warned in
2582 yes:)
2583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet.  If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&5
2586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587 whose name does not start with the host triplet.  If you think this
2588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589 ac_tool_warned=yes ;;
2590 esac
2591     CXX=$ac_ct_CXX
2592   fi
2593 fi
2594
2595   fi
2596 fi
2597 # Provide some information about the compiler.
2598 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2599 ac_compiler=`set X $ac_compile; echo $2`
2600 { (ac_try="$ac_compiler --version >&5"
2601 case "(($ac_try" in
2602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603   *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606   (eval "$ac_compiler --version >&5") 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }
2610 { (ac_try="$ac_compiler -v >&5"
2611 case "(($ac_try" in
2612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613   *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616   (eval "$ac_compiler -v >&5") 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }
2620 { (ac_try="$ac_compiler -V >&5"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_compiler -V >&5") 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }
2630
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h.  */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h.  */
2637
2638 int
2639 main ()
2640 {
2641
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 ac_clean_files_save=$ac_clean_files
2647 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2648 # Try to create an executable without -o first, disregard a.out.
2649 # It will help us diagnose broken compilers, and finding out an intuition
2650 # of exeext.
2651 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2652 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2653 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2654 #
2655 # List of possible output files, starting from the most likely.
2656 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2657 # only as a last resort.  b.out is created by i960 compilers.
2658 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2659 #
2660 # The IRIX 6 linker writes into existing files which may not be
2661 # executable, retaining their permissions.  Remove them first so a
2662 # subsequent execution test works.
2663 ac_rmfiles=
2664 for ac_file in $ac_files
2665 do
2666   case $ac_file in
2667     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2668     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2669   esac
2670 done
2671 rm -f $ac_rmfiles
2672
2673 if { (ac_try="$ac_link_default"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679   (eval "$ac_link_default") 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; then
2683   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2684 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2685 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2686 # so that the user can short-circuit this test for compilers unknown to
2687 # Autoconf.
2688 for ac_file in $ac_files ''
2689 do
2690   test -f "$ac_file" || continue
2691   case $ac_file in
2692     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2693         ;;
2694     [ab].out )
2695         # We found the default executable, but exeext='' is most
2696         # certainly right.
2697         break;;
2698     *.* )
2699         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2700         then :; else
2701            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702         fi
2703         # We set ac_cv_exeext here because the later test for it is not
2704         # safe: cross compilers may not add the suffix if given an `-o'
2705         # argument, so we may need to know it at that point already.
2706         # Even if this section looks crufty: it has the advantage of
2707         # actually working.
2708         break;;
2709     * )
2710         break;;
2711   esac
2712 done
2713 test "$ac_cv_exeext" = no && ac_cv_exeext=
2714
2715 else
2716   ac_file=''
2717 fi
2718
2719 { echo "$as_me:$LINENO: result: $ac_file" >&5
2720 echo "${ECHO_T}$ac_file" >&6; }
2721 if test -z "$ac_file"; then
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: C++ compiler cannot create executables
2728 See \`config.log' for more details." >&2;}
2729    { (exit 77); exit 77; }; }
2730 fi
2731
2732 ac_exeext=$ac_cv_exeext
2733
2734 # Check that the compiler produces executables we can run.  If not, either
2735 # the compiler is broken, or we cross compile.
2736 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2737 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2738 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2739 # If not cross compiling, check that we can run a simple program.
2740 if test "$cross_compiling" != yes; then
2741   if { ac_try='./$ac_file'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751     cross_compiling=no
2752   else
2753     if test "$cross_compiling" = maybe; then
2754         cross_compiling=yes
2755     else
2756         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2757 If you meant to cross compile, use \`--host'.
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: cannot run C++ compiled programs.
2760 If you meant to cross compile, use \`--host'.
2761 See \`config.log' for more details." >&2;}
2762    { (exit 1); exit 1; }; }
2763     fi
2764   fi
2765 fi
2766 { echo "$as_me:$LINENO: result: yes" >&5
2767 echo "${ECHO_T}yes" >&6; }
2768
2769 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2770 ac_clean_files=$ac_clean_files_save
2771 # Check that the compiler produces executables we can run.  If not, either
2772 # the compiler is broken, or we cross compile.
2773 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2774 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2775 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2776 echo "${ECHO_T}$cross_compiling" >&6; }
2777
2778 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2779 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2780 if { (ac_try="$ac_link"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_link") 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; then
2790   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2791 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2792 # work properly (i.e., refer to `conftest.exe'), while it won't with
2793 # `rm'.
2794 for ac_file in conftest.exe conftest conftest.*; do
2795   test -f "$ac_file" || continue
2796   case $ac_file in
2797     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2798     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799           break;;
2800     * ) break;;
2801   esac
2802 done
2803 else
2804   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2807 See \`config.log' for more details." >&2;}
2808    { (exit 1); exit 1; }; }
2809 fi
2810
2811 rm -f conftest$ac_cv_exeext
2812 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2813 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2814
2815 rm -f conftest.$ac_ext
2816 EXEEXT=$ac_cv_exeext
2817 ac_exeext=$EXEEXT
2818 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2819 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2820 if test "${ac_cv_objext+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829
2830 int
2831 main ()
2832 {
2833
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.o conftest.obj
2839 if { (ac_try="$ac_compile"
2840 case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845   (eval "$ac_compile") 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; then
2849   for ac_file in conftest.o conftest.obj conftest.*; do
2850   test -f "$ac_file" || continue;
2851   case $ac_file in
2852     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2853     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2854        break;;
2855   esac
2856 done
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2864 See \`config.log' for more details." >&2;}
2865    { (exit 1); exit 1; }; }
2866 fi
2867
2868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2869 fi
2870 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2871 echo "${ECHO_T}$ac_cv_objext" >&6; }
2872 OBJEXT=$ac_cv_objext
2873 ac_objext=$OBJEXT
2874 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2875 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2876 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h.  */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h.  */
2885
2886 int
2887 main ()
2888 {
2889 #ifndef __GNUC__
2890        choke me
2891 #endif
2892
2893   ;
2894   return 0;
2895 }
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (ac_try="$ac_compile"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_compile") 2>conftest.er1
2905   ac_status=$?
2906   grep -v '^ *+' conftest.er1 >conftest.err
2907   rm -f conftest.er1
2908   cat conftest.err >&5
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); } && {
2911          test -z "$ac_cxx_werror_flag" ||
2912          test ! -s conftest.err
2913        } && test -s conftest.$ac_objext; then
2914   ac_compiler_gnu=yes
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919         ac_compiler_gnu=no
2920 fi
2921
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2924
2925 fi
2926 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2927 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2928 GXX=`test $ac_compiler_gnu = yes && echo yes`
2929 ac_test_CXXFLAGS=${CXXFLAGS+set}
2930 ac_save_CXXFLAGS=$CXXFLAGS
2931 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2932 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_cxx_g+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2937    ac_cxx_werror_flag=yes
2938    ac_cv_prog_cxx_g=no
2939    CXXFLAGS="-g"
2940    cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946
2947 int
2948 main ()
2949 {
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_compile") 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } && {
2969          test -z "$ac_cxx_werror_flag" ||
2970          test ! -s conftest.err
2971        } && test -s conftest.$ac_objext; then
2972   ac_cv_prog_cxx_g=yes
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977         CXXFLAGS=""
2978       cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984
2985 int
2986 main ()
2987 {
2988
2989   ;
2990   return 0;
2991 }
2992 _ACEOF
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2995 case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000   (eval "$ac_compile") 2>conftest.er1
3001   ac_status=$?
3002   grep -v '^ *+' conftest.er1 >conftest.err
3003   rm -f conftest.er1
3004   cat conftest.err >&5
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); } && {
3007          test -z "$ac_cxx_werror_flag" ||
3008          test ! -s conftest.err
3009        } && test -s conftest.$ac_objext; then
3010   :
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3016          CXXFLAGS="-g"
3017          cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027
3028   ;
3029   return 0;
3030 }
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3034 case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_compile") 2>conftest.er1
3040   ac_status=$?
3041   grep -v '^ *+' conftest.er1 >conftest.err
3042   rm -f conftest.er1
3043   cat conftest.err >&5
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } && {
3046          test -z "$ac_cxx_werror_flag" ||
3047          test ! -s conftest.err
3048        } && test -s conftest.$ac_objext; then
3049   ac_cv_prog_cxx_g=yes
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054
3055 fi
3056
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 fi
3059
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 fi
3062
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3065 fi
3066 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3067 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3068 if test "$ac_test_CXXFLAGS" = set; then
3069   CXXFLAGS=$ac_save_CXXFLAGS
3070 elif test $ac_cv_prog_cxx_g = yes; then
3071   if test "$GXX" = yes; then
3072     CXXFLAGS="-g -O2"
3073   else
3074     CXXFLAGS="-g"
3075   fi
3076 else
3077   if test "$GXX" = yes; then
3078     CXXFLAGS="-O2"
3079   else
3080     CXXFLAGS=
3081   fi
3082 fi
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 DEPDIR="${am__leading_dot}deps"
3089
3090 ac_config_commands="$ac_config_commands depfiles"
3091
3092
3093 am_make=${MAKE-make}
3094 cat > confinc << 'END'
3095 am__doit:
3096         @echo done
3097 .PHONY: am__doit
3098 END
3099 # If we don't find an include directive, just comment out the code.
3100 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3101 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3102 am__include="#"
3103 am__quote=
3104 _am_result=none
3105 # First try GNU make style include.
3106 echo "include confinc" > confmf
3107 # We grep out `Entering directory' and `Leaving directory'
3108 # messages which can occur if `w' ends up in MAKEFLAGS.
3109 # In particular we don't look at `^make:' because GNU make might
3110 # be invoked under some other name (usually "gmake"), in which
3111 # case it prints its new name instead of `make'.
3112 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3113    am__include=include
3114    am__quote=
3115    _am_result=GNU
3116 fi
3117 # Now try BSD make style include.
3118 if test "$am__include" = "#"; then
3119    echo '.include "confinc"' > confmf
3120    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3121       am__include=.include
3122       am__quote="\""
3123       _am_result=BSD
3124    fi
3125 fi
3126
3127
3128 { echo "$as_me:$LINENO: result: $_am_result" >&5
3129 echo "${ECHO_T}$_am_result" >&6; }
3130 rm -f confinc confmf
3131
3132 # Check whether --enable-dependency-tracking was given.
3133 if test "${enable_dependency_tracking+set}" = set; then
3134   enableval=$enable_dependency_tracking;
3135 fi
3136
3137 if test "x$enable_dependency_tracking" != xno; then
3138   am_depcomp="$ac_aux_dir/depcomp"
3139   AMDEPBACKSLASH='\'
3140 fi
3141  if test "x$enable_dependency_tracking" != xno; then
3142   AMDEP_TRUE=
3143   AMDEP_FALSE='#'
3144 else
3145   AMDEP_TRUE='#'
3146   AMDEP_FALSE=
3147 fi
3148
3149
3150
3151 depcc="$CXX"  am_compiler_list=
3152
3153 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3154 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3155 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3159   # We make a subdir and do the tests there.  Otherwise we can end up
3160   # making bogus files that we don't know about and never remove.  For
3161   # instance it was reported that on HP-UX the gcc test will end up
3162   # making a dummy file named `D' -- because `-MD' means `put the output
3163   # in D'.
3164   mkdir conftest.dir
3165   # Copy depcomp to subdir because otherwise we won't find it if we're
3166   # using a relative directory.
3167   cp "$am_depcomp" conftest.dir
3168   cd conftest.dir
3169   # We will build objects and dependencies in a subdirectory because
3170   # it helps to detect inapplicable dependency modes.  For instance
3171   # both Tru64's cc and ICC support -MD to output dependencies as a
3172   # side effect of compilation, but ICC will put the dependencies in
3173   # the current directory while Tru64 will put them in the object
3174   # directory.
3175   mkdir sub
3176
3177   am_cv_CXX_dependencies_compiler_type=none
3178   if test "$am_compiler_list" = ""; then
3179      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3180   fi
3181   for depmode in $am_compiler_list; do
3182     # Setup a source with many dependencies, because some compilers
3183     # like to wrap large dependency lists on column 80 (with \), and
3184     # we should not choose a depcomp mode which is confused by this.
3185     #
3186     # We need to recreate these files for each test, as the compiler may
3187     # overwrite some of them when testing with obscure command lines.
3188     # This happens at least with the AIX C compiler.
3189     : > sub/conftest.c
3190     for i in 1 2 3 4 5 6; do
3191       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3192       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3193       # Solaris 8's {/usr,}/bin/sh.
3194       touch sub/conftst$i.h
3195     done
3196     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3197
3198     case $depmode in
3199     nosideeffect)
3200       # after this tag, mechanisms are not by side-effect, so they'll
3201       # only be used when explicitly requested
3202       if test "x$enable_dependency_tracking" = xyes; then
3203         continue
3204       else
3205         break
3206       fi
3207       ;;
3208     none) break ;;
3209     esac
3210     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3211     # mode.  It turns out that the SunPro C++ compiler does not properly
3212     # handle `-M -o', and we need to detect this.
3213     if depmode=$depmode \
3214        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3215        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3216        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3217          >/dev/null 2>conftest.err &&
3218        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3219        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3220        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3221        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3222       # icc doesn't choke on unknown options, it will just issue warnings
3223       # or remarks (even with -Werror).  So we grep stderr for any message
3224       # that says an option was ignored or not supported.
3225       # When given -MP, icc 7.0 and 7.1 complain thusly:
3226       #   icc: Command line warning: ignoring option '-M'; no argument required
3227       # The diagnosis changed in icc 8.0:
3228       #   icc: Command line remark: option '-MP' not supported
3229       if (grep 'ignoring option' conftest.err ||
3230           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3231         am_cv_CXX_dependencies_compiler_type=$depmode
3232         break
3233       fi
3234     fi
3235   done
3236
3237   cd ..
3238   rm -rf conftest.dir
3239 else
3240   am_cv_CXX_dependencies_compiler_type=none
3241 fi
3242
3243 fi
3244 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3245 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3246 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3247
3248  if
3249   test "x$enable_dependency_tracking" != xno \
3250   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3251   am__fastdepCXX_TRUE=
3252   am__fastdepCXX_FALSE='#'
3253 else
3254   am__fastdepCXX_TRUE='#'
3255   am__fastdepCXX_FALSE=
3256 fi
3257
3258
3259 # Check whether --enable-shared was given.
3260 if test "${enable_shared+set}" = set; then
3261   enableval=$enable_shared; p=${PACKAGE-default}
3262     case $enableval in
3263     yes) enable_shared=yes ;;
3264     no) enable_shared=no ;;
3265     *)
3266       enable_shared=no
3267       # Look at the argument we got.  We use all the common list separators.
3268       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3269       for pkg in $enableval; do
3270         IFS="$lt_save_ifs"
3271         if test "X$pkg" = "X$p"; then
3272           enable_shared=yes
3273         fi
3274       done
3275       IFS="$lt_save_ifs"
3276       ;;
3277     esac
3278 else
3279   enable_shared=yes
3280 fi
3281
3282
3283 # Check whether --enable-static was given.
3284 if test "${enable_static+set}" = set; then
3285   enableval=$enable_static; p=${PACKAGE-default}
3286     case $enableval in
3287     yes) enable_static=yes ;;
3288     no) enable_static=no ;;
3289     *)
3290      enable_static=no
3291       # Look at the argument we got.  We use all the common list separators.
3292       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3293       for pkg in $enableval; do
3294         IFS="$lt_save_ifs"
3295         if test "X$pkg" = "X$p"; then
3296           enable_static=yes
3297         fi
3298       done
3299       IFS="$lt_save_ifs"
3300       ;;
3301     esac
3302 else
3303   enable_static=yes
3304 fi
3305
3306
3307 # Check whether --enable-fast-install was given.
3308 if test "${enable_fast_install+set}" = set; then
3309   enableval=$enable_fast_install; p=${PACKAGE-default}
3310     case $enableval in
3311     yes) enable_fast_install=yes ;;
3312     no) enable_fast_install=no ;;
3313     *)
3314       enable_fast_install=no
3315       # Look at the argument we got.  We use all the common list separators.
3316       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3317       for pkg in $enableval; do
3318         IFS="$lt_save_ifs"
3319         if test "X$pkg" = "X$p"; then
3320           enable_fast_install=yes
3321         fi
3322       done
3323       IFS="$lt_save_ifs"
3324       ;;
3325     esac
3326 else
3327   enable_fast_install=yes
3328 fi
3329
3330
3331 # Make sure we can run config.sub.
3332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3333   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3334 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3335    { (exit 1); exit 1; }; }
3336
3337 { echo "$as_me:$LINENO: checking build system type" >&5
3338 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3339 if test "${ac_cv_build+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   ac_build_alias=$build_alias
3343 test "x$ac_build_alias" = x &&
3344   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3345 test "x$ac_build_alias" = x &&
3346   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3348    { (exit 1); exit 1; }; }
3349 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3350   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3351 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3352    { (exit 1); exit 1; }; }
3353
3354 fi
3355 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3356 echo "${ECHO_T}$ac_cv_build" >&6; }
3357 case $ac_cv_build in
3358 *-*-*) ;;
3359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3360 echo "$as_me: error: invalid value of canonical build" >&2;}
3361    { (exit 1); exit 1; }; };;
3362 esac
3363 build=$ac_cv_build
3364 ac_save_IFS=$IFS; IFS='-'
3365 set x $ac_cv_build
3366 shift
3367 build_cpu=$1
3368 build_vendor=$2
3369 shift; shift
3370 # Remember, the first character of IFS is used to create $*,
3371 # except with old shells:
3372 build_os=$*
3373 IFS=$ac_save_IFS
3374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3375
3376
3377 { echo "$as_me:$LINENO: checking host system type" >&5
3378 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3379 if test "${ac_cv_host+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test "x$host_alias" = x; then
3383   ac_cv_host=$ac_cv_build
3384 else
3385   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3386     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3387 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3388    { (exit 1); exit 1; }; }
3389 fi
3390
3391 fi
3392 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3393 echo "${ECHO_T}$ac_cv_host" >&6; }
3394 case $ac_cv_host in
3395 *-*-*) ;;
3396 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3397 echo "$as_me: error: invalid value of canonical host" >&2;}
3398    { (exit 1); exit 1; }; };;
3399 esac
3400 host=$ac_cv_host
3401 ac_save_IFS=$IFS; IFS='-'
3402 set x $ac_cv_host
3403 shift
3404 host_cpu=$1
3405 host_vendor=$2
3406 shift; shift
3407 # Remember, the first character of IFS is used to create $*,
3408 # except with old shells:
3409 host_os=$*
3410 IFS=$ac_save_IFS
3411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3412
3413
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 if test -n "$ac_tool_prefix"; then
3420   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if test -n "$CC"; then
3428   ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449   { echo "$as_me:$LINENO: result: $CC" >&5
3450 echo "${ECHO_T}$CC" >&6; }
3451 else
3452   { echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6; }
3454 fi
3455
3456
3457 fi
3458 if test -z "$ac_cv_prog_CC"; then
3459   ac_ct_CC=$CC
3460   # Extract the first word of "gcc", so it can be a program name with args.
3461 set dummy gcc; ac_word=$2
3462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   if test -n "$ac_ct_CC"; then
3468   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477     ac_cv_prog_ac_ct_CC="gcc"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483 IFS=$as_save_IFS
3484
3485 fi
3486 fi
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3490 echo "${ECHO_T}$ac_ct_CC" >&6; }
3491 else
3492   { echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6; }
3494 fi
3495
3496   if test "x$ac_ct_CC" = x; then
3497     CC=""
3498   else
3499     case $cross_compiling:$ac_tool_warned in
3500 yes:)
3501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3502 whose name does not start with the host triplet.  If you think this
3503 configuration is useful to you, please write to autoconf@gnu.org." >&5
3504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3505 whose name does not start with the host triplet.  If you think this
3506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3507 ac_tool_warned=yes ;;
3508 esac
3509     CC=$ac_ct_CC
3510   fi
3511 else
3512   CC="$ac_cv_prog_CC"
3513 fi
3514
3515 if test -z "$CC"; then
3516           if test -n "$ac_tool_prefix"; then
3517     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3518 set dummy ${ac_tool_prefix}cc; ac_word=$2
3519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3521 if test "${ac_cv_prog_CC+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   if test -n "$CC"; then
3525   ac_cv_prog_CC="$CC" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532   for ac_exec_ext in '' $ac_executable_extensions; do
3533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534     ac_cv_prog_CC="${ac_tool_prefix}cc"
3535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536     break 2
3537   fi
3538 done
3539 done
3540 IFS=$as_save_IFS
3541
3542 fi
3543 fi
3544 CC=$ac_cv_prog_CC
3545 if test -n "$CC"; then
3546   { echo "$as_me:$LINENO: result: $CC" >&5
3547 echo "${ECHO_T}$CC" >&6; }
3548 else
3549   { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3551 fi
3552
3553
3554   fi
3555 fi
3556 if test -z "$CC"; then
3557   # Extract the first word of "cc", so it can be a program name with args.
3558 set dummy cc; ac_word=$2
3559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_CC+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   if test -n "$CC"; then
3565   ac_cv_prog_CC="$CC" # Let the user override the test.
3566 else
3567   ac_prog_rejected=no
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3570 do
3571   IFS=$as_save_IFS
3572   test -z "$as_dir" && as_dir=.
3573   for ac_exec_ext in '' $ac_executable_extensions; do
3574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3576        ac_prog_rejected=yes
3577        continue
3578      fi
3579     ac_cv_prog_CC="cc"
3580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581     break 2
3582   fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 if test $ac_prog_rejected = yes; then
3588   # We found a bogon in the path, so make sure we never use it.
3589   set dummy $ac_cv_prog_CC
3590   shift
3591   if test $# != 0; then
3592     # We chose a different compiler from the bogus one.
3593     # However, it has the same basename, so the bogon will be chosen
3594     # first if we set CC to just the basename; use the full file name.
3595     shift
3596     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3597   fi
3598 fi
3599 fi
3600 fi
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603   { echo "$as_me:$LINENO: result: $CC" >&5
3604 echo "${ECHO_T}$CC" >&6; }
3605 else
3606   { echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6; }
3608 fi
3609
3610
3611 fi
3612 if test -z "$CC"; then
3613   if test -n "$ac_tool_prefix"; then
3614   for ac_prog in cl.exe
3615   do
3616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   if test -n "$CC"; then
3624   ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639 IFS=$as_save_IFS
3640
3641 fi
3642 fi
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645   { echo "$as_me:$LINENO: result: $CC" >&5
3646 echo "${ECHO_T}$CC" >&6; }
3647 else
3648   { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3650 fi
3651
3652
3653     test -n "$CC" && break
3654   done
3655 fi
3656 if test -z "$CC"; then
3657   ac_ct_CC=$CC
3658   for ac_prog in cl.exe
3659 do
3660   # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   if test -n "$ac_ct_CC"; then
3668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677     ac_cv_prog_ac_ct_CC="$ac_prog"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688 if test -n "$ac_ct_CC"; then
3689   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3690 echo "${ECHO_T}$ac_ct_CC" >&6; }
3691 else
3692   { echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6; }
3694 fi
3695
3696
3697   test -n "$ac_ct_CC" && break
3698 done
3699
3700   if test "x$ac_ct_CC" = x; then
3701     CC=""
3702   else
3703     case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet.  If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet.  If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713     CC=$ac_ct_CC
3714   fi
3715 fi
3716
3717 fi
3718
3719
3720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: no acceptable C compiler found in \$PATH
3723 See \`config.log' for more details." >&2;}
3724    { (exit 1); exit 1; }; }
3725
3726 # Provide some information about the compiler.
3727 echo "$as_me:$LINENO: checking for C compiler version" >&5
3728 ac_compiler=`set X $ac_compile; echo $2`
3729 { (ac_try="$ac_compiler --version >&5"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735   (eval "$ac_compiler --version >&5") 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }
3739 { (ac_try="$ac_compiler -v >&5"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745   (eval "$ac_compiler -v >&5") 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }
3749 { (ac_try="$ac_compiler -V >&5"
3750 case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755   (eval "$ac_compiler -V >&5") 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }
3759
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775 #ifndef __GNUC__
3776        choke me
3777 #endif
3778
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790   (eval "$ac_compile") 2>conftest.er1
3791   ac_status=$?
3792   grep -v '^ *+' conftest.er1 >conftest.err
3793   rm -f conftest.er1
3794   cat conftest.err >&5
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); } && {
3797          test -z "$ac_c_werror_flag" ||
3798          test ! -s conftest.err
3799        } && test -s conftest.$ac_objext; then
3800   ac_compiler_gnu=yes
3801 else
3802   echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805         ac_compiler_gnu=no
3806 fi
3807
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3810
3811 fi
3812 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3818 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   ac_save_c_werror_flag=$ac_c_werror_flag
3823    ac_c_werror_flag=yes
3824    ac_cv_prog_cc_g=no
3825    CFLAGS="-g"
3826    cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848   (eval "$ac_compile") 2>conftest.er1
3849   ac_status=$?
3850   grep -v '^ *+' conftest.er1 >conftest.err
3851   rm -f conftest.er1
3852   cat conftest.err >&5
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } && {
3855          test -z "$ac_c_werror_flag" ||
3856          test ! -s conftest.err
3857        } && test -s conftest.$ac_objext; then
3858   ac_cv_prog_cc_g=yes
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863         CFLAGS=""
3864       cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h.  */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h.  */
3870
3871 int
3872 main ()
3873 {
3874
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_compile") 2>conftest.er1
3887   ac_status=$?
3888   grep -v '^ *+' conftest.er1 >conftest.err
3889   rm -f conftest.er1
3890   cat conftest.err >&5
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); } && {
3893          test -z "$ac_c_werror_flag" ||
3894          test ! -s conftest.err
3895        } && test -s conftest.$ac_objext; then
3896   :
3897 else
3898   echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901         ac_c_werror_flag=$ac_save_c_werror_flag
3902          CFLAGS="-g"
3903          cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3920 case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925   (eval "$ac_compile") 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } && {
3932          test -z "$ac_c_werror_flag" ||
3933          test ! -s conftest.err
3934        } && test -s conftest.$ac_objext; then
3935   ac_cv_prog_cc_g=yes
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940
3941 fi
3942
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 fi
3945
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 fi
3948
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950    ac_c_werror_flag=$ac_save_c_werror_flag
3951 fi
3952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955   CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957   if test "$GCC" = yes; then
3958     CFLAGS="-g -O2"
3959   else
3960     CFLAGS="-g"
3961   fi
3962 else
3963   if test "$GCC" = yes; then
3964     CFLAGS="-O2"
3965   else
3966     CFLAGS=
3967   fi
3968 fi
3969 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3970 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   ac_cv_prog_cc_c89=no
3975 ac_save_CC=$CC
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h.  */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h.  */
3982 #include <stdarg.h>
3983 #include <stdio.h>
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3990      char **p;
3991      int i;
3992 {
3993   return p[i];
3994 }
3995 static char *f (char * (*g) (char **, int), char **p, ...)
3996 {
3997   char *s;
3998   va_list v;
3999   va_start (v,p);
4000   s = g (p, va_arg (v,int));
4001   va_end (v);
4002   return s;
4003 }
4004
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4006    function prototypes and stuff, but not '\xHH' hex character constants.
4007    These don't provoke an error unfortunately, instead are silently treated
4008    as 'x'.  The following induces an error, until -std is added to get
4009    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4010    array size at least.  It's necessary to write '\x00'==0 to get something
4011    that's true only with -std.  */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4013
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015    inside strings and character constants.  */
4016 #define FOO(x) 'x'
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4018
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4023 int argc;
4024 char **argv;
4025 int
4026 main ()
4027 {
4028 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4035 do
4036   CC="$ac_save_CC $ac_arg"
4037   rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041   *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044   (eval "$ac_compile") 2>conftest.er1
4045   ac_status=$?
4046   grep -v '^ *+' conftest.er1 >conftest.err
4047   rm -f conftest.er1
4048   cat conftest.err >&5
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } && {
4051          test -z "$ac_c_werror_flag" ||
4052          test ! -s conftest.err
4053        } && test -s conftest.$ac_objext; then
4054   ac_cv_prog_cc_c89=$ac_arg
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059
4060 fi
4061
4062 rm -f core conftest.err conftest.$ac_objext
4063   test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 done
4065 rm -f conftest.$ac_ext
4066 CC=$ac_save_CC
4067
4068 fi
4069 # AC_CACHE_VAL
4070 case "x$ac_cv_prog_cc_c89" in
4071   x)
4072     { echo "$as_me:$LINENO: result: none needed" >&5
4073 echo "${ECHO_T}none needed" >&6; } ;;
4074   xno)
4075     { echo "$as_me:$LINENO: result: unsupported" >&5
4076 echo "${ECHO_T}unsupported" >&6; } ;;
4077   *)
4078     CC="$CC $ac_cv_prog_cc_c89"
4079     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4081 esac
4082
4083
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090 depcc="$CC"   am_compiler_list=
4091
4092 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4098   # We make a subdir and do the tests there.  Otherwise we can end up
4099   # making bogus files that we don't know about and never remove.  For
4100   # instance it was reported that on HP-UX the gcc test will end up
4101   # making a dummy file named `D' -- because `-MD' means `put the output
4102   # in D'.
4103   mkdir conftest.dir
4104   # Copy depcomp to subdir because otherwise we won't find it if we're
4105   # using a relative directory.
4106   cp "$am_depcomp" conftest.dir
4107   cd conftest.dir
4108   # We will build objects and dependencies in a subdirectory because
4109   # it helps to detect inapplicable dependency modes.  For instance
4110   # both Tru64's cc and ICC support -MD to output dependencies as a
4111   # side effect of compilation, but ICC will put the dependencies in
4112   # the current directory while Tru64 will put them in the object
4113   # directory.
4114   mkdir sub
4115
4116   am_cv_CC_dependencies_compiler_type=none
4117   if test "$am_compiler_list" = ""; then
4118      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4119   fi
4120   for depmode in $am_compiler_list; do
4121     # Setup a source with many dependencies, because some compilers
4122     # like to wrap large dependency lists on column 80 (with \), and
4123     # we should not choose a depcomp mode which is confused by this.
4124     #
4125     # We need to recreate these files for each test, as the compiler may
4126     # overwrite some of them when testing with obscure command lines.
4127     # This happens at least with the AIX C compiler.
4128     : > sub/conftest.c
4129     for i in 1 2 3 4 5 6; do
4130       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4132       # Solaris 8's {/usr,}/bin/sh.
4133       touch sub/conftst$i.h
4134     done
4135     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4136
4137     case $depmode in
4138     nosideeffect)
4139       # after this tag, mechanisms are not by side-effect, so they'll
4140       # only be used when explicitly requested
4141       if test "x$enable_dependency_tracking" = xyes; then
4142         continue
4143       else
4144         break
4145       fi
4146       ;;
4147     none) break ;;
4148     esac
4149     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4150     # mode.  It turns out that the SunPro C++ compiler does not properly
4151     # handle `-M -o', and we need to detect this.
4152     if depmode=$depmode \
4153        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4154        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4155        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4156          >/dev/null 2>conftest.err &&
4157        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4158        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4159        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4160        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4161       # icc doesn't choke on unknown options, it will just issue warnings
4162       # or remarks (even with -Werror).  So we grep stderr for any message
4163       # that says an option was ignored or not supported.
4164       # When given -MP, icc 7.0 and 7.1 complain thusly:
4165       #   icc: Command line warning: ignoring option '-M'; no argument required
4166       # The diagnosis changed in icc 8.0:
4167       #   icc: Command line remark: option '-MP' not supported
4168       if (grep 'ignoring option' conftest.err ||
4169           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4170         am_cv_CC_dependencies_compiler_type=$depmode
4171         break
4172       fi
4173     fi
4174   done
4175
4176   cd ..
4177   rm -rf conftest.dir
4178 else
4179   am_cv_CC_dependencies_compiler_type=none
4180 fi
4181
4182 fi
4183 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4184 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4185 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4186
4187  if
4188   test "x$enable_dependency_tracking" != xno \
4189   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4190   am__fastdepCC_TRUE=
4191   am__fastdepCC_FALSE='#'
4192 else
4193   am__fastdepCC_TRUE='#'
4194   am__fastdepCC_FALSE=
4195 fi
4196
4197
4198 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4199 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4200 if test "${lt_cv_path_SED+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   # Loop through the user's path and test for sed and gsed.
4204 # Then use that list of sed's as ones to test for truncation.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for lt_ac_prog in sed gsed; do
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4213         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4214       fi
4215     done
4216   done
4217 done
4218 IFS=$as_save_IFS
4219 lt_ac_max=0
4220 lt_ac_count=0
4221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4222 # along with /bin/sed that truncates output.
4223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4224   test ! -f $lt_ac_sed && continue
4225   cat /dev/null > conftest.in
4226   lt_ac_count=0
4227   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4228   # Check for GNU sed and select it if it is found.
4229   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4230     lt_cv_path_SED=$lt_ac_sed
4231     break
4232   fi
4233   while true; do
4234     cat conftest.in conftest.in >conftest.tmp
4235     mv conftest.tmp conftest.in
4236     cp conftest.in conftest.nl
4237     echo >>conftest.nl
4238     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4239     cmp -s conftest.out conftest.nl || break
4240     # 10000 chars as input seems more than enough
4241     test $lt_ac_count -gt 10 && break
4242     lt_ac_count=`expr $lt_ac_count + 1`
4243     if test $lt_ac_count -gt $lt_ac_max; then
4244       lt_ac_max=$lt_ac_count
4245       lt_cv_path_SED=$lt_ac_sed
4246     fi
4247   done
4248 done
4249
4250 fi
4251
4252 SED=$lt_cv_path_SED
4253
4254 { echo "$as_me:$LINENO: result: $SED" >&5
4255 echo "${ECHO_T}$SED" >&6; }
4256
4257 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4258 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4259 if test "${ac_cv_path_GREP+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   # Extract the first word of "grep ggrep" to use in msg output
4263 if test -z "$GREP"; then
4264 set dummy grep ggrep; ac_prog_name=$2
4265 if test "${ac_cv_path_GREP+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   ac_path_GREP_found=false
4269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_prog in grep ggrep; do
4276   for ac_exec_ext in '' $ac_executable_extensions; do
4277     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4278     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4279     # Check for GNU ac_path_GREP and select it if it is found.
4280   # Check for GNU $ac_path_GREP
4281 case `"$ac_path_GREP" --version 2>&1` in
4282 *GNU*)
4283   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4284 *)
4285   ac_count=0
4286   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4287   while :
4288   do
4289     cat "conftest.in" "conftest.in" >"conftest.tmp"
4290     mv "conftest.tmp" "conftest.in"
4291     cp "conftest.in" "conftest.nl"
4292     echo 'GREP' >> "conftest.nl"
4293     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295     ac_count=`expr $ac_count + 1`
4296     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4297       # Best one so far, save it but keep looking for a better one
4298       ac_cv_path_GREP="$ac_path_GREP"
4299       ac_path_GREP_max=$ac_count
4300     fi
4301     # 10*(2^10) chars as input seems more than enough
4302     test $ac_count -gt 10 && break
4303   done
4304   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305 esac
4306
4307
4308     $ac_path_GREP_found && break 3
4309   done
4310 done
4311
4312 done
4313 IFS=$as_save_IFS
4314
4315
4316 fi
4317
4318 GREP="$ac_cv_path_GREP"
4319 if test -z "$GREP"; then
4320   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4321 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4322    { (exit 1); exit 1; }; }
4323 fi
4324
4325 else
4326   ac_cv_path_GREP=$GREP
4327 fi
4328
4329
4330 fi
4331 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4332 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4333  GREP="$ac_cv_path_GREP"
4334
4335
4336 { echo "$as_me:$LINENO: checking for egrep" >&5
4337 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4338 if test "${ac_cv_path_EGREP+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4342    then ac_cv_path_EGREP="$GREP -E"
4343    else
4344      # Extract the first word of "egrep" to use in msg output
4345 if test -z "$EGREP"; then
4346 set dummy egrep; ac_prog_name=$2
4347 if test "${ac_cv_path_EGREP+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 do
4355   IFS=$as_save_IFS
4356   test -z "$as_dir" && as_dir=.
4357   for ac_prog in egrep; do
4358   for ac_exec_ext in '' $ac_executable_extensions; do
4359     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361     # Check for GNU ac_path_EGREP and select it if it is found.
4362   # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366 *)
4367   ac_count=0
4368   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4369   while :
4370   do
4371     cat "conftest.in" "conftest.in" >"conftest.tmp"
4372     mv "conftest.tmp" "conftest.in"
4373     cp "conftest.in" "conftest.nl"
4374     echo 'EGREP' >> "conftest.nl"
4375     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377     ac_count=`expr $ac_count + 1`
4378     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379       # Best one so far, save it but keep looking for a better one
4380       ac_cv_path_EGREP="$ac_path_EGREP"
4381       ac_path_EGREP_max=$ac_count
4382     fi
4383     # 10*(2^10) chars as input seems more than enough
4384     test $ac_count -gt 10 && break
4385   done
4386   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4388
4389
4390     $ac_path_EGREP_found && break 3
4391   done
4392 done
4393
4394 done
4395 IFS=$as_save_IFS
4396
4397
4398 fi
4399
4400 EGREP="$ac_cv_path_EGREP"
4401 if test -z "$EGREP"; then
4402   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4403 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4404    { (exit 1); exit 1; }; }
4405 fi
4406
4407 else
4408   ac_cv_path_EGREP=$EGREP
4409 fi
4410
4411
4412    fi
4413 fi
4414 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4415 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4416  EGREP="$ac_cv_path_EGREP"
4417
4418
4419
4420 # Check whether --with-gnu-ld was given.
4421 if test "${with_gnu_ld+set}" = set; then
4422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4423 else
4424   with_gnu_ld=no
4425 fi
4426
4427 ac_prog=ld
4428 if test "$GCC" = yes; then
4429   # Check if gcc -print-prog-name=ld gives a path.
4430   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4431 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4432   case $host in
4433   *-*-mingw*)
4434     # gcc leaves a trailing carriage return which upsets mingw
4435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4436   *)
4437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4438   esac
4439   case $ac_prog in
4440     # Accept absolute paths.
4441     [\\/]* | ?:[\\/]*)
4442       re_direlt='/[^/][^/]*/\.\./'
4443       # Canonicalize the pathname of ld
4444       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4445       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4446         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4447       done
4448       test -z "$LD" && LD="$ac_prog"
4449       ;;
4450   "")
4451     # If it fails, then pretend we aren't using GCC.
4452     ac_prog=ld
4453     ;;
4454   *)
4455     # If it is relative, then search for the first ld in PATH.
4456     with_gnu_ld=unknown
4457     ;;
4458   esac
4459 elif test "$with_gnu_ld" = yes; then
4460   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4462 else
4463   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4465 fi
4466 if test "${lt_cv_path_LD+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -z "$LD"; then
4470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4471   for ac_dir in $PATH; do
4472     IFS="$lt_save_ifs"
4473     test -z "$ac_dir" && ac_dir=.
4474     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4475       lt_cv_path_LD="$ac_dir/$ac_prog"
4476       # Check to see if the program is GNU ld.  I'd rather use --version,
4477       # but apparently some variants of GNU ld only accept -v.
4478       # Break only if it was the GNU/non-GNU ld that we prefer.
4479       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4480       *GNU* | *'with BFD'*)
4481         test "$with_gnu_ld" != no && break
4482         ;;
4483       *)
4484         test "$with_gnu_ld" != yes && break
4485         ;;
4486       esac
4487     fi
4488   done
4489   IFS="$lt_save_ifs"
4490 else
4491   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4492 fi
4493 fi
4494
4495 LD="$lt_cv_path_LD"
4496 if test -n "$LD"; then
4497   { echo "$as_me:$LINENO: result: $LD" >&5
4498 echo "${ECHO_T}$LD" >&6; }
4499 else
4500   { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4502 fi
4503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4505    { (exit 1); exit 1; }; }
4506 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4508 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4512 case `$LD -v 2>&1 </dev/null` in
4513 *GNU* | *'with BFD'*)
4514   lt_cv_prog_gnu_ld=yes
4515   ;;
4516 *)
4517   lt_cv_prog_gnu_ld=no
4518   ;;
4519 esac
4520 fi
4521 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4522 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4523 with_gnu_ld=$lt_cv_prog_gnu_ld
4524
4525
4526 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4527 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4528 if test "${lt_cv_ld_reload_flag+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   lt_cv_ld_reload_flag='-r'
4532 fi
4533 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4534 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4535 reload_flag=$lt_cv_ld_reload_flag
4536 case $reload_flag in
4537 "" | " "*) ;;
4538 *) reload_flag=" $reload_flag" ;;
4539 esac
4540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4541 case $host_os in
4542   darwin*)
4543     if test "$GCC" = yes; then
4544       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4545     else
4546       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4547     fi
4548     ;;
4549 esac
4550
4551 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4552 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4553 if test "${lt_cv_path_NM+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   if test -n "$NM"; then
4557   # Let the user override the test.
4558   lt_cv_path_NM="$NM"
4559 else
4560   lt_nm_to_check="${ac_tool_prefix}nm"
4561   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4562     lt_nm_to_check="$lt_nm_to_check nm"
4563   fi
4564   for lt_tmp_nm in $lt_nm_to_check; do
4565     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4566     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4567       IFS="$lt_save_ifs"
4568       test -z "$ac_dir" && ac_dir=.
4569       tmp_nm="$ac_dir/$lt_tmp_nm"
4570       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4571         # Check to see if the nm accepts a BSD-compat flag.
4572         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4573         #   nm: unknown option "B" ignored
4574         # Tru64's nm complains that /dev/null is an invalid object file
4575         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4576         */dev/null* | *'Invalid file or object type'*)
4577           lt_cv_path_NM="$tmp_nm -B"
4578           break
4579           ;;
4580         *)
4581           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4582           */dev/null*)
4583             lt_cv_path_NM="$tmp_nm -p"
4584             break
4585             ;;
4586           *)
4587             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4588             continue # so that we can try to find one that supports BSD flags
4589             ;;
4590           esac
4591           ;;
4592         esac
4593       fi
4594     done
4595     IFS="$lt_save_ifs"
4596   done
4597   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4598 fi
4599 fi
4600 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4601 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4602 NM="$lt_cv_path_NM"
4603
4604 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4605 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4606 LN_S=$as_ln_s
4607 if test "$LN_S" = "ln -s"; then
4608   { echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6; }
4610 else
4611   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4612 echo "${ECHO_T}no, using $LN_S" >&6; }
4613 fi
4614
4615 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4616 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4617 if test "${lt_cv_deplibs_check_method+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620   lt_cv_file_magic_cmd='$MAGIC_CMD'
4621 lt_cv_file_magic_test_file=
4622 lt_cv_deplibs_check_method='unknown'
4623 # Need to set the preceding variable on all platforms that support
4624 # interlibrary dependencies.
4625 # 'none' -- dependencies not supported.
4626 # `unknown' -- same as none, but documents that we really don't know.
4627 # 'pass_all' -- all dependencies passed with no checks.
4628 # 'test_compile' -- check by making test program.
4629 # 'file_magic [[regex]]' -- check by looking for files in library path
4630 # which responds to the $file_magic_cmd with a given extended regex.
4631 # If you have `file' or equivalent on your system and you're not sure
4632 # whether `pass_all' will *always* work, you probably want this one.
4633
4634 case $host_os in
4635 aix[4-9]*)
4636   lt_cv_deplibs_check_method=pass_all
4637   ;;
4638
4639 beos*)
4640   lt_cv_deplibs_check_method=pass_all
4641   ;;
4642
4643 bsdi[45]*)
4644   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4645   lt_cv_file_magic_cmd='/usr/bin/file -L'
4646   lt_cv_file_magic_test_file=/shlib/libc.so
4647   ;;
4648
4649 cygwin*)
4650   # func_win32_libid is a shell function defined in ltmain.sh
4651   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4652   lt_cv_file_magic_cmd='func_win32_libid'
4653   ;;
4654
4655 mingw* | pw32*)
4656   # Base MSYS/MinGW do not provide the 'file' command needed by
4657   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4658   # unless we find 'file', for example because we are cross-compiling.
4659   if ( file / ) >/dev/null 2>&1; then
4660     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4661     lt_cv_file_magic_cmd='func_win32_libid'
4662   else
4663     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4664     lt_cv_file_magic_cmd='$OBJDUMP -f'
4665   fi
4666   ;;
4667
4668 darwin* | rhapsody*)
4669   lt_cv_deplibs_check_method=pass_all
4670   ;;
4671
4672 freebsd* | dragonfly*)
4673   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4674     case $host_cpu in
4675     i*86 )
4676       # Not sure whether the presence of OpenBSD here was a mistake.
4677       # Let's accept both of them until this is cleared up.
4678       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4679       lt_cv_file_magic_cmd=/usr/bin/file
4680       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4681       ;;
4682     esac
4683   else
4684     lt_cv_deplibs_check_method=pass_all
4685   fi
4686   ;;
4687
4688 gnu*)
4689   lt_cv_deplibs_check_method=pass_all
4690   ;;
4691
4692 hpux10.20* | hpux11*)
4693   lt_cv_file_magic_cmd=/usr/bin/file
4694   case $host_cpu in
4695   ia64*)
4696     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4697     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4698     ;;
4699   hppa*64*)
4700     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]'
4701     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4702     ;;
4703   *)
4704     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4705     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4706     ;;
4707   esac
4708   ;;
4709
4710 interix[3-9]*)
4711   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4712   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4713   ;;
4714
4715 irix5* | irix6* | nonstopux*)
4716   case $LD in
4717   *-32|*"-32 ") libmagic=32-bit;;
4718   *-n32|*"-n32 ") libmagic=N32;;
4719   *-64|*"-64 ") libmagic=64-bit;;
4720   *) libmagic=never-match;;
4721   esac
4722   lt_cv_deplibs_check_method=pass_all
4723   ;;
4724
4725 # This must be Linux ELF.
4726 linux* | k*bsd*-gnu)
4727   lt_cv_deplibs_check_method=pass_all
4728   ;;
4729
4730 netbsd* | netbsdelf*-gnu)
4731   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4732     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4733   else
4734     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4735   fi
4736   ;;
4737
4738 newos6*)
4739   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4740   lt_cv_file_magic_cmd=/usr/bin/file
4741   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4742   ;;
4743
4744 nto-qnx*)
4745   lt_cv_deplibs_check_method=unknown
4746   ;;
4747
4748 openbsd*)
4749   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4750     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4751   else
4752     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4753   fi
4754   ;;
4755
4756 osf3* | osf4* | osf5*)
4757   lt_cv_deplibs_check_method=pass_all
4758   ;;
4759
4760 rdos*)
4761   lt_cv_deplibs_check_method=pass_all
4762   ;;
4763
4764 solaris*)
4765   lt_cv_deplibs_check_method=pass_all
4766   ;;
4767
4768 sysv4 | sysv4.3*)
4769   case $host_vendor in
4770   motorola)
4771     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]'
4772     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4773     ;;
4774   ncr)
4775     lt_cv_deplibs_check_method=pass_all
4776     ;;
4777   sequent)
4778     lt_cv_file_magic_cmd='/bin/file'
4779     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4780     ;;
4781   sni)
4782     lt_cv_file_magic_cmd='/bin/file'
4783     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4784     lt_cv_file_magic_test_file=/lib/libc.so
4785     ;;
4786   siemens)
4787     lt_cv_deplibs_check_method=pass_all
4788     ;;
4789   pc)
4790     lt_cv_deplibs_check_method=pass_all
4791     ;;
4792   esac
4793   ;;
4794
4795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4796   lt_cv_deplibs_check_method=pass_all
4797   ;;
4798 esac
4799
4800 fi
4801 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4802 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4803 file_magic_cmd=$lt_cv_file_magic_cmd
4804 deplibs_check_method=$lt_cv_deplibs_check_method
4805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4806
4807
4808
4809
4810 # If no C compiler was specified, use CC.
4811 LTCC=${LTCC-"$CC"}
4812
4813 # If no C compiler flags were specified, use CFLAGS.
4814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4815
4816 # Allow CC to be a program name with arguments.
4817 compiler=$CC
4818
4819
4820 # Check whether --enable-libtool-lock was given.
4821 if test "${enable_libtool_lock+set}" = set; then
4822   enableval=$enable_libtool_lock;
4823 fi
4824
4825 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4826
4827 # Some flags need to be propagated to the compiler or linker for good
4828 # libtool support.
4829 case $host in
4830 ia64-*-hpux*)
4831   # Find out which ABI we are using.
4832   echo 'int i;' > conftest.$ac_ext
4833   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834   (eval $ac_compile) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; then
4838     case `/usr/bin/file conftest.$ac_objext` in
4839     *ELF-32*)
4840       HPUX_IA64_MODE="32"
4841       ;;
4842     *ELF-64*)
4843       HPUX_IA64_MODE="64"
4844       ;;
4845     esac
4846   fi
4847   rm -rf conftest*
4848   ;;
4849 *-*-irix6*)
4850   # Find out which ABI we are using.
4851   echo '#line 4851 "configure"' > conftest.$ac_ext
4852   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853   (eval $ac_compile) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; then
4857    if test "$lt_cv_prog_gnu_ld" = yes; then
4858     case `/usr/bin/file conftest.$ac_objext` in
4859     *32-bit*)
4860       LD="${LD-ld} -melf32bsmip"
4861       ;;
4862     *N32*)
4863       LD="${LD-ld} -melf32bmipn32"
4864       ;;
4865     *64-bit*)
4866       LD="${LD-ld} -melf64bmip"
4867       ;;
4868     esac
4869    else
4870     case `/usr/bin/file conftest.$ac_objext` in
4871     *32-bit*)
4872       LD="${LD-ld} -32"
4873       ;;
4874     *N32*)
4875       LD="${LD-ld} -n32"
4876       ;;
4877     *64-bit*)
4878       LD="${LD-ld} -64"
4879       ;;
4880     esac
4881    fi
4882   fi
4883   rm -rf conftest*
4884   ;;
4885
4886 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4887 s390*-*linux*|sparc*-*linux*)
4888   # Find out which ABI we are using.
4889   echo 'int i;' > conftest.$ac_ext
4890   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891   (eval $ac_compile) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; then
4895     case `/usr/bin/file conftest.o` in
4896     *32-bit*)
4897       case $host in
4898         x86_64-*kfreebsd*-gnu)
4899           LD="${LD-ld} -m elf_i386_fbsd"
4900           ;;
4901         x86_64-*linux*)
4902           LD="${LD-ld} -m elf_i386"
4903           ;;
4904         ppc64-*linux*|powerpc64-*linux*)
4905           LD="${LD-ld} -m elf32ppclinux"
4906           ;;
4907         s390x-*linux*)
4908           LD="${LD-ld} -m elf_s390"
4909           ;;
4910         sparc64-*linux*)
4911           LD="${LD-ld} -m elf32_sparc"
4912           ;;
4913       esac
4914       ;;
4915     *64-bit*)
4916       case $host in
4917         x86_64-*kfreebsd*-gnu)
4918           LD="${LD-ld} -m elf_x86_64_fbsd"
4919           ;;
4920         x86_64-*linux*)
4921           LD="${LD-ld} -m elf_x86_64"
4922           ;;
4923         ppc*-*linux*|powerpc*-*linux*)
4924           LD="${LD-ld} -m elf64ppc"
4925           ;;
4926         s390*-*linux*)
4927           LD="${LD-ld} -m elf64_s390"
4928           ;;
4929         sparc*-*linux*)
4930           LD="${LD-ld} -m elf64_sparc"
4931           ;;
4932       esac
4933       ;;
4934     esac
4935   fi
4936   rm -rf conftest*
4937   ;;
4938
4939 *-*-sco3.2v5*)
4940   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4941   SAVE_CFLAGS="$CFLAGS"
4942   CFLAGS="$CFLAGS -belf"
4943   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4944 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4945 if test "${lt_cv_cc_needs_belf+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   ac_ext=c
4949 ac_cpp='$CPP $CPPFLAGS'
4950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953
4954      cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960
4961 int
4962 main ()
4963 {
4964
4965   ;
4966   return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (ac_try="$ac_link"
4971 case "(($ac_try" in
4972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973   *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976   (eval "$ac_link") 2>conftest.er1
4977   ac_status=$?
4978   grep -v '^ *+' conftest.er1 >conftest.err
4979   rm -f conftest.er1
4980   cat conftest.err >&5
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } && {
4983          test -z "$ac_c_werror_flag" ||
4984          test ! -s conftest.err
4985        } && test -s conftest$ac_exeext &&
4986        $as_test_x conftest$ac_exeext; then
4987   lt_cv_cc_needs_belf=yes
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992         lt_cv_cc_needs_belf=no
4993 fi
4994
4995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4996       conftest$ac_exeext conftest.$ac_ext
4997      ac_ext=c
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002
5003 fi
5004 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5005 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5006   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5007     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5008     CFLAGS="$SAVE_CFLAGS"
5009   fi
5010   ;;
5011 sparc*-*solaris*)
5012   # Find out which ABI we are using.
5013   echo 'int i;' > conftest.$ac_ext
5014   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015   (eval $ac_compile) 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); }; then
5019     case `/usr/bin/file conftest.o` in
5020     *64-bit*)
5021       case $lt_cv_prog_gnu_ld in
5022       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5023       *)
5024         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5025           LD="${LD-ld} -64"
5026         fi
5027         ;;
5028       esac
5029       ;;
5030     esac
5031   fi
5032   rm -rf conftest*
5033   ;;
5034
5035
5036 esac
5037
5038 need_locks="$enable_libtool_lock"
5039
5040
5041 ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5048 # On Suns, sometimes $CPP names a directory.
5049 if test -n "$CPP" && test -d "$CPP"; then
5050   CPP=
5051 fi
5052 if test -z "$CPP"; then
5053   if test "${ac_cv_prog_CPP+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056       # Double quotes because CPP needs to be expanded
5057     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5058     do
5059       ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5061 do
5062   # Use a header file that comes with gcc, so configuring glibc
5063   # with a fresh cross-compiler works.
5064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065   # <limits.h> exists even on freestanding compilers.
5066   # On the NeXT, cc -E runs the code through the compiler's parser,
5067   # not just through cpp. "Syntax error" is here to catch this case.
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #ifdef __STDC__
5075 # include <limits.h>
5076 #else
5077 # include <assert.h>
5078 #endif
5079                      Syntax error
5080 _ACEOF
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5082 case "(($ac_try" in
5083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084   *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } >/dev/null && {
5094          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095          test ! -s conftest.err
5096        }; then
5097   :
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102   # Broken: fails on valid input.
5103 continue
5104 fi
5105
5106 rm -f conftest.err conftest.$ac_ext
5107
5108   # OK, works on sane cases.  Now check whether nonexistent headers
5109   # can be detected and how.
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #include <ac_nonexistent.h>
5117 _ACEOF
5118 if { (ac_try="$ac_cpp conftest.$ac_ext"
5119 case "(($ac_try" in
5120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121   *) ac_try_echo=$ac_try;;
5122 esac
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125   ac_status=$?
5126   grep -v '^ *+' conftest.er1 >conftest.err
5127   rm -f conftest.er1
5128   cat conftest.err >&5
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } >/dev/null && {
5131          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5132          test ! -s conftest.err
5133        }; then
5134   # Broken: success on invalid input.
5135 continue
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140   # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5144
5145 rm -f conftest.err conftest.$ac_ext
5146
5147 done
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5151   break
5152 fi
5153
5154     done
5155     ac_cv_prog_CPP=$CPP
5156
5157 fi
5158   CPP=$ac_cv_prog_CPP
5159 else
5160   ac_cv_prog_CPP=$CPP
5161 fi
5162 { echo "$as_me:$LINENO: result: $CPP" >&5
5163 echo "${ECHO_T}$CPP" >&6; }
5164 ac_preproc_ok=false
5165 for ac_c_preproc_warn_flag in '' yes
5166 do
5167   # Use a header file that comes with gcc, so configuring glibc
5168   # with a fresh cross-compiler works.
5169   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170   # <limits.h> exists even on freestanding compilers.
5171   # On the NeXT, cc -E runs the code through the compiler's parser,
5172   # not just through cpp. "Syntax error" is here to catch this case.
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 #ifdef __STDC__
5180 # include <limits.h>
5181 #else
5182 # include <assert.h>
5183 #endif
5184                      Syntax error
5185 _ACEOF
5186 if { (ac_try="$ac_cpp conftest.$ac_ext"
5187 case "(($ac_try" in
5188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189   *) ac_try_echo=$ac_try;;
5190 esac
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } >/dev/null && {
5199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200          test ! -s conftest.err
5201        }; then
5202   :
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207   # Broken: fails on valid input.
5208 continue
5209 fi
5210
5211 rm -f conftest.err conftest.$ac_ext
5212
5213   # OK, works on sane cases.  Now check whether nonexistent headers
5214   # can be detected and how.
5215   cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5224 case "(($ac_try" in
5225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226   *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5230   ac_status=$?
5231   grep -v '^ *+' conftest.er1 >conftest.err
5232   rm -f conftest.er1
5233   cat conftest.err >&5
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } >/dev/null && {
5236          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5237          test ! -s conftest.err
5238        }; then
5239   # Broken: success on invalid input.
5240 continue
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245   # Passes both tests.
5246 ac_preproc_ok=:
5247 break
5248 fi
5249
5250 rm -f conftest.err conftest.$ac_ext
5251
5252 done
5253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5254 rm -f conftest.err conftest.$ac_ext
5255 if $ac_preproc_ok; then
5256   :
5257 else
5258   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5259 See \`config.log' for more details." >&5
5260 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5261 See \`config.log' for more details." >&2;}
5262    { (exit 1); exit 1; }; }
5263 fi
5264
5265 ac_ext=c
5266 ac_cpp='$CPP $CPPFLAGS'
5267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270
5271
5272 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5273 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5274 if test "${ac_cv_header_stdc+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 #include <stdlib.h>
5284 #include <stdarg.h>
5285 #include <string.h>
5286 #include <float.h>
5287
5288 int
5289 main ()
5290 {
5291
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5298 case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_compile") 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } && {
5310          test -z "$ac_c_werror_flag" ||
5311          test ! -s conftest.err
5312        } && test -s conftest.$ac_objext; then
5313   ac_cv_header_stdc=yes
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318         ac_cv_header_stdc=no
5319 fi
5320
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322
5323 if test $ac_cv_header_stdc = yes; then
5324   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5325   cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 #include <string.h>
5332
5333 _ACEOF
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335   $EGREP "memchr" >/dev/null 2>&1; then
5336   :
5337 else
5338   ac_cv_header_stdc=no
5339 fi
5340 rm -f conftest*
5341
5342 fi
5343
5344 if test $ac_cv_header_stdc = yes; then
5345   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 #include <stdlib.h>
5353
5354 _ACEOF
5355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356   $EGREP "free" >/dev/null 2>&1; then
5357   :
5358 else
5359   ac_cv_header_stdc=no
5360 fi
5361 rm -f conftest*
5362
5363 fi
5364
5365 if test $ac_cv_header_stdc = yes; then
5366   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5367   if test "$cross_compiling" = yes; then
5368   :
5369 else
5370   cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 #include <ctype.h>
5377 #include <stdlib.h>
5378 #if ((' ' & 0x0FF) == 0x020)
5379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5381 #else
5382 # define ISLOWER(c) \
5383                    (('a' <= (c) && (c) <= 'i') \
5384                      || ('j' <= (c) && (c) <= 'r') \
5385                      || ('s' <= (c) && (c) <= 'z'))
5386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5387 #endif
5388
5389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5390 int
5391 main ()
5392 {
5393   int i;
5394   for (i = 0; i < 256; i++)
5395     if (XOR (islower (i), ISLOWER (i))
5396         || toupper (i) != TOUPPER (i))
5397       return 2;
5398   return 0;
5399 }
5400 _ACEOF
5401 rm -f conftest$ac_exeext
5402 if { (ac_try="$ac_link"
5403 case "(($ac_try" in
5404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405   *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408   (eval "$ac_link") 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5412   { (case "(($ac_try" in
5413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414   *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417   (eval "$ac_try") 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; }; then
5421   :
5422 else
5423   echo "$as_me: program exited with status $ac_status" >&5
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 ( exit $ac_status )
5428 ac_cv_header_stdc=no
5429 fi
5430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5431 fi
5432
5433
5434 fi
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5437 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5438 if test $ac_cv_header_stdc = yes; then
5439
5440 cat >>confdefs.h <<\_ACEOF
5441 #define STDC_HEADERS 1
5442 _ACEOF
5443
5444 fi
5445
5446 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5457                   inttypes.h stdint.h unistd.h
5458 do
5459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471 $ac_includes_default
5472
5473 #include <$ac_header>
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482   (eval "$ac_compile") 2>conftest.er1
5483   ac_status=$?
5484   grep -v '^ *+' conftest.er1 >conftest.err
5485   rm -f conftest.er1
5486   cat conftest.err >&5
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } && {
5489          test -z "$ac_c_werror_flag" ||
5490          test ! -s conftest.err
5491        } && test -s conftest.$ac_objext; then
5492   eval "$as_ac_Header=yes"
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497         eval "$as_ac_Header=no"
5498 fi
5499
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 fi
5502 ac_res=`eval echo '${'$as_ac_Header'}'`
5503                { echo "$as_me:$LINENO: result: $ac_res" >&5
5504 echo "${ECHO_T}$ac_res" >&6; }
5505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506   cat >>confdefs.h <<_ACEOF
5507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508 _ACEOF
5509
5510 fi
5511
5512 done
5513
5514
5515
5516 for ac_header in dlfcn.h
5517 do
5518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5520   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 fi
5525 ac_res=`eval echo '${'$as_ac_Header'}'`
5526                { echo "$as_me:$LINENO: result: $ac_res" >&5
5527 echo "${ECHO_T}$ac_res" >&6; }
5528 else
5529   # Is the header compilable?
5530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h.  */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h.  */
5538 $ac_includes_default
5539 #include <$ac_header>
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5543 case "(($ac_try" in
5544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545   *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548   (eval "$ac_compile") 2>conftest.er1
5549   ac_status=$?
5550   grep -v '^ *+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } && {
5555          test -z "$ac_c_werror_flag" ||
5556          test ! -s conftest.err
5557        } && test -s conftest.$ac_objext; then
5558   ac_header_compiler=yes
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563         ac_header_compiler=no
5564 fi
5565
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5568 echo "${ECHO_T}$ac_header_compiler" >&6; }
5569
5570 # Is the header present?
5571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 #include <$ac_header>
5580 _ACEOF
5581 if { (ac_try="$ac_cpp conftest.$ac_ext"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } >/dev/null && {
5594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5595          test ! -s conftest.err
5596        }; then
5597   ac_header_preproc=yes
5598 else
5599   echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602   ac_header_preproc=no
5603 fi
5604
5605 rm -f conftest.err conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5607 echo "${ECHO_T}$ac_header_preproc" >&6; }
5608
5609 # So?  What about this header?
5610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5611   yes:no: )
5612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5616     ac_header_preproc=yes
5617     ;;
5618   no:yes:* )
5619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5631
5632     ;;
5633 esac
5634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   eval "$as_ac_Header=\$ac_header_preproc"
5640 fi
5641 ac_res=`eval echo '${'$as_ac_Header'}'`
5642                { echo "$as_me:$LINENO: result: $ac_res" >&5
5643 echo "${ECHO_T}$ac_res" >&6; }
5644
5645 fi
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647   cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649 _ACEOF
5650
5651 fi
5652
5653 done
5654
5655
5656
5657 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5658     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5659     (test "X$CXX" != "Xg++"))) ; then
5660   ac_ext=cpp
5661 ac_cpp='$CXXCPP $CPPFLAGS'
5662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5665 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5666 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5667 if test -z "$CXXCPP"; then
5668   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671       # Double quotes because CXXCPP needs to be expanded
5672     for CXXCPP in "$CXX -E" "/lib/cpp"
5673     do
5674       ac_preproc_ok=false
5675 for ac_cxx_preproc_warn_flag in '' yes
5676 do
5677   # Use a header file that comes with gcc, so configuring glibc
5678   # with a fresh cross-compiler works.
5679   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680   # <limits.h> exists even on freestanding compilers.
5681   # On the NeXT, cc -E runs the code through the compiler's parser,
5682   # not just through cpp. "Syntax error" is here to catch this case.
5683   cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689 #ifdef __STDC__
5690 # include <limits.h>
5691 #else
5692 # include <assert.h>
5693 #endif
5694                      Syntax error
5695 _ACEOF
5696 if { (ac_try="$ac_cpp conftest.$ac_ext"
5697 case "(($ac_try" in
5698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699   *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5703   ac_status=$?
5704   grep -v '^ *+' conftest.er1 >conftest.err
5705   rm -f conftest.er1
5706   cat conftest.err >&5
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); } >/dev/null && {
5709          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5710          test ! -s conftest.err
5711        }; then
5712   :
5713 else
5714   echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717   # Broken: fails on valid input.
5718 continue
5719 fi
5720
5721 rm -f conftest.err conftest.$ac_ext
5722
5723   # OK, works on sane cases.  Now check whether nonexistent headers
5724   # can be detected and how.
5725   cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 #include <ac_nonexistent.h>
5732 _ACEOF
5733 if { (ac_try="$ac_cpp conftest.$ac_ext"
5734 case "(($ac_try" in
5735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736   *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } >/dev/null && {
5746          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5747          test ! -s conftest.err
5748        }; then
5749   # Broken: success on invalid input.
5750 continue
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755   # Passes both tests.
5756 ac_preproc_ok=:
5757 break
5758 fi
5759
5760 rm -f conftest.err conftest.$ac_ext
5761
5762 done
5763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5764 rm -f conftest.err conftest.$ac_ext
5765 if $ac_preproc_ok; then
5766   break
5767 fi
5768
5769     done
5770     ac_cv_prog_CXXCPP=$CXXCPP
5771
5772 fi
5773   CXXCPP=$ac_cv_prog_CXXCPP
5774 else
5775   ac_cv_prog_CXXCPP=$CXXCPP
5776 fi
5777 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5778 echo "${ECHO_T}$CXXCPP" >&6; }
5779 ac_preproc_ok=false
5780 for ac_cxx_preproc_warn_flag in '' yes
5781 do
5782   # Use a header file that comes with gcc, so configuring glibc
5783   # with a fresh cross-compiler works.
5784   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5785   # <limits.h> exists even on freestanding compilers.
5786   # On the NeXT, cc -E runs the code through the compiler's parser,
5787   # not just through cpp. "Syntax error" is here to catch this case.
5788   cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794 #ifdef __STDC__
5795 # include <limits.h>
5796 #else
5797 # include <assert.h>
5798 #endif
5799                      Syntax error
5800 _ACEOF
5801 if { (ac_try="$ac_cpp conftest.$ac_ext"
5802 case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5808   ac_status=$?
5809   grep -v '^ *+' conftest.er1 >conftest.err
5810   rm -f conftest.er1
5811   cat conftest.err >&5
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); } >/dev/null && {
5814          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5815          test ! -s conftest.err
5816        }; then
5817   :
5818 else
5819   echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822   # Broken: fails on valid input.
5823 continue
5824 fi
5825
5826 rm -f conftest.err conftest.$ac_ext
5827
5828   # OK, works on sane cases.  Now check whether nonexistent headers
5829   # can be detected and how.
5830   cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h.  */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h.  */
5836 #include <ac_nonexistent.h>
5837 _ACEOF
5838 if { (ac_try="$ac_cpp conftest.$ac_ext"
5839 case "(($ac_try" in
5840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841   *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845   ac_status=$?
5846   grep -v '^ *+' conftest.er1 >conftest.err
5847   rm -f conftest.er1
5848   cat conftest.err >&5
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } >/dev/null && {
5851          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5852          test ! -s conftest.err
5853        }; then
5854   # Broken: success on invalid input.
5855 continue
5856 else
5857   echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860   # Passes both tests.
5861 ac_preproc_ok=:
5862 break
5863 fi
5864
5865 rm -f conftest.err conftest.$ac_ext
5866
5867 done
5868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5869 rm -f conftest.err conftest.$ac_ext
5870 if $ac_preproc_ok; then
5871   :
5872 else
5873   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5874 See \`config.log' for more details." >&5
5875 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5876 See \`config.log' for more details." >&2;}
5877    { (exit 1); exit 1; }; }
5878 fi
5879
5880 ac_ext=cpp
5881 ac_cpp='$CXXCPP $CPPFLAGS'
5882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5885
5886 fi
5887
5888
5889 ac_ext=f
5890 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5891 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5893 if test -n "$ac_tool_prefix"; then
5894   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
5895   do
5896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900 if test "${ac_cv_prog_F77+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   if test -n "$F77"; then
5904   ac_cv_prog_F77="$F77" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911   for ac_exec_ext in '' $ac_executable_extensions; do
5912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915     break 2
5916   fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 F77=$ac_cv_prog_F77
5924 if test -n "$F77"; then
5925   { echo "$as_me:$LINENO: result: $F77" >&5
5926 echo "${ECHO_T}$F77" >&6; }
5927 else
5928   { echo "$as_me:$LINENO: result: no" >&5
5929 echo "${ECHO_T}no" >&6; }
5930 fi
5931
5932
5933     test -n "$F77" && break
5934   done
5935 fi
5936 if test -z "$F77"; then
5937   ac_ct_F77=$F77
5938   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
5939 do
5940   # Extract the first word of "$ac_prog", so it can be a program name with args.
5941 set dummy $ac_prog; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   if test -n "$ac_ct_F77"; then
5948   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957     ac_cv_prog_ac_ct_F77="$ac_prog"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5968 if test -n "$ac_ct_F77"; then
5969   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5970 echo "${ECHO_T}$ac_ct_F77" >&6; }
5971 else
5972   { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974 fi
5975
5976
5977   test -n "$ac_ct_F77" && break
5978 done
5979
5980   if test "x$ac_ct_F77" = x; then
5981     F77=""
5982   else
5983     case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet.  If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&5
5988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989 whose name does not start with the host triplet.  If you think this
5990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993     F77=$ac_ct_F77
5994   fi
5995 fi
5996
5997
5998 # Provide some information about the compiler.
5999 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6000 ac_compiler=`set X $ac_compile; echo $2`
6001 { (ac_try="$ac_compiler --version >&5"
6002 case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_compiler --version >&5") 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }
6011 { (ac_try="$ac_compiler -v >&5"
6012 case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_compiler -v >&5") 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }
6021 { (ac_try="$ac_compiler -V >&5"
6022 case "(($ac_try" in
6023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024   *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027   (eval "$ac_compiler -V >&5") 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }
6031 rm -f a.out
6032
6033 # If we don't use `.F' as extension, the preprocessor is not run on the
6034 # input file.  (Note that this only needs to work for GNU compilers.)
6035 ac_save_ext=$ac_ext
6036 ac_ext=F
6037 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6038 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6039 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   cat >conftest.$ac_ext <<_ACEOF
6043       program main
6044 #ifndef __GNUC__
6045        choke me
6046 #endif
6047
6048       end
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_compile") 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } && {
6064          test -z "$ac_f77_werror_flag" ||
6065          test ! -s conftest.err
6066        } && test -s conftest.$ac_objext; then
6067   ac_compiler_gnu=yes
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072         ac_compiler_gnu=no
6073 fi
6074
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6077
6078 fi
6079 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6080 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6081 ac_ext=$ac_save_ext
6082 ac_test_FFLAGS=${FFLAGS+set}
6083 ac_save_FFLAGS=$FFLAGS
6084 FFLAGS=
6085 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6086 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_f77_g+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   FFLAGS=-g
6091 cat >conftest.$ac_ext <<_ACEOF
6092       program main
6093
6094       end
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100   *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103   (eval "$ac_compile") 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } && {
6110          test -z "$ac_f77_werror_flag" ||
6111          test ! -s conftest.err
6112        } && test -s conftest.$ac_objext; then
6113   ac_cv_prog_f77_g=yes
6114 else
6115   echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118         ac_cv_prog_f77_g=no
6119 fi
6120
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122
6123 fi
6124 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6125 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6126 if test "$ac_test_FFLAGS" = set; then
6127   FFLAGS=$ac_save_FFLAGS
6128 elif test $ac_cv_prog_f77_g = yes; then
6129   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6130     FFLAGS="-g -O2"
6131   else
6132     FFLAGS="-g"
6133   fi
6134 else
6135   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6136     FFLAGS="-O2"
6137   else
6138     FFLAGS=
6139   fi
6140 fi
6141
6142 G77=`test $ac_compiler_gnu = yes && echo yes`
6143 ac_ext=c
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148
6149
6150
6151 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6152 # find the maximum length of command line arguments
6153 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6154 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6155 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158     i=0
6159   teststring="ABCD"
6160
6161   case $build_os in
6162   msdosdjgpp*)
6163     # On DJGPP, this test can blow up pretty badly due to problems in libc
6164     # (any single argument exceeding 2000 bytes causes a buffer overrun
6165     # during glob expansion).  Even if it were fixed, the result of this
6166     # check would be larger than it should be.
6167     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6168     ;;
6169
6170   gnu*)
6171     # Under GNU Hurd, this test is not required because there is
6172     # no limit to the length of command line arguments.
6173     # Libtool will interpret -1 as no limit whatsoever
6174     lt_cv_sys_max_cmd_len=-1;
6175     ;;
6176
6177   cygwin* | mingw*)
6178     # On Win9x/ME, this test blows up -- it succeeds, but takes
6179     # about 5 minutes as the teststring grows exponentially.
6180     # Worse, since 9x/ME are not pre-emptively multitasking,
6181     # you end up with a "frozen" computer, even though with patience
6182     # the test eventually succeeds (with a max line length of 256k).
6183     # Instead, let's just punt: use the minimum linelength reported by
6184     # all of the supported platforms: 8192 (on NT/2K/XP).
6185     lt_cv_sys_max_cmd_len=8192;
6186     ;;
6187
6188   amigaos*)
6189     # On AmigaOS with pdksh, this test takes hours, literally.
6190     # So we just punt and use a minimum line length of 8192.
6191     lt_cv_sys_max_cmd_len=8192;
6192     ;;
6193
6194   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6195     # This has been around since 386BSD, at least.  Likely further.
6196     if test -x /sbin/sysctl; then
6197       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6198     elif test -x /usr/sbin/sysctl; then
6199       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6200     else
6201       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6202     fi
6203     # And add a safety zone
6204     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6205     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6206     ;;
6207
6208   interix*)
6209     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6210     lt_cv_sys_max_cmd_len=196608
6211     ;;
6212
6213   osf*)
6214     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6215     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6216     # nice to cause kernel panics so lets avoid the loop below.
6217     # First set a reasonable default.
6218     lt_cv_sys_max_cmd_len=16384
6219     #
6220     if test -x /sbin/sysconfig; then
6221       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6222         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6223       esac
6224     fi
6225     ;;
6226   sco3.2v5*)
6227     lt_cv_sys_max_cmd_len=102400
6228     ;;
6229   sysv5* | sco5v6* | sysv4.2uw2*)
6230     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6231     if test -n "$kargmax"; then
6232       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6233     else
6234       lt_cv_sys_max_cmd_len=32768
6235     fi
6236     ;;
6237   *)
6238     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6239     if test -n "$lt_cv_sys_max_cmd_len"; then
6240       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6241       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6242     else
6243       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6244       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6245                = "XX$teststring") >/dev/null 2>&1 &&
6246               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6247               lt_cv_sys_max_cmd_len=$new_result &&
6248               test $i != 17 # 1/2 MB should be enough
6249       do
6250         i=`expr $i + 1`
6251         teststring=$teststring$teststring
6252       done
6253       teststring=
6254       # Add a significant safety factor because C++ compilers can tack on massive
6255       # amounts of additional arguments before passing them to the linker.
6256       # It appears as though 1/2 is a usable value.
6257       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6258     fi
6259     ;;
6260   esac
6261
6262 fi
6263
6264 if test -n $lt_cv_sys_max_cmd_len ; then
6265   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6266 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6267 else
6268   { echo "$as_me:$LINENO: result: none" >&5
6269 echo "${ECHO_T}none" >&6; }
6270 fi
6271
6272
6273
6274
6275
6276 # Check for command to grab the raw symbol name followed by C symbol from nm.
6277 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6278 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6279 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282
6283 # These are sane defaults that work on at least a few old systems.
6284 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6285
6286 # Character class describing NM global symbol codes.
6287 symcode='[BCDEGRST]'
6288
6289 # Regexp to match symbols that can be accessed directly from C.
6290 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6291
6292 # Transform an extracted symbol line into a proper C declaration
6293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6294
6295 # Transform an extracted symbol line into symbol name and symbol address
6296 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'"
6297
6298 # Define system-specific variables.
6299 case $host_os in
6300 aix*)
6301   symcode='[BCDT]'
6302   ;;
6303 cygwin* | mingw* | pw32*)
6304   symcode='[ABCDGISTW]'
6305   ;;
6306 hpux*) # Its linker distinguishes data from code symbols
6307   if test "$host_cpu" = ia64; then
6308     symcode='[ABCDEGRST]'
6309   fi
6310   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311   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'"
6312   ;;
6313 linux* | k*bsd*-gnu)
6314   if test "$host_cpu" = ia64; then
6315     symcode='[ABCDGIRSTW]'
6316     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317     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'"
6318   fi
6319   ;;
6320 irix* | nonstopux*)
6321   symcode='[BCDEGRST]'
6322   ;;
6323 osf*)
6324   symcode='[BCDEGQRST]'
6325   ;;
6326 solaris*)
6327   symcode='[BDRT]'
6328   ;;
6329 sco3.2v5*)
6330   symcode='[DT]'
6331   ;;
6332 sysv4.2uw2*)
6333   symcode='[DT]'
6334   ;;
6335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6336   symcode='[ABDT]'
6337   ;;
6338 sysv4)
6339   symcode='[DFNSTU]'
6340   ;;
6341 esac
6342
6343 # Handle CRLF in mingw tool chain
6344 opt_cr=
6345 case $build_os in
6346 mingw*)
6347   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6348   ;;
6349 esac
6350
6351 # If we're using GNU nm, then use its standard symbol codes.
6352 case `$NM -V 2>&1` in
6353 *GNU* | *'with BFD'*)
6354   symcode='[ABCDGIRSTW]' ;;
6355 esac
6356
6357 # Try without a prefix undercore, then with it.
6358 for ac_symprfx in "" "_"; do
6359
6360   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6361   symxfrm="\\1 $ac_symprfx\\2 \\2"
6362
6363   # Write the raw and C identifiers.
6364   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6365
6366   # Check to see that the pipe works correctly.
6367   pipe_works=no
6368
6369   rm -f conftest*
6370   cat > conftest.$ac_ext <<EOF
6371 #ifdef __cplusplus
6372 extern "C" {
6373 #endif
6374 char nm_test_var;
6375 void nm_test_func(){}
6376 #ifdef __cplusplus
6377 }
6378 #endif
6379 int main(){nm_test_var='a';nm_test_func();return(0);}
6380 EOF
6381
6382   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6383   (eval $ac_compile) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; then
6387     # Now try to grab the symbols.
6388     nlist=conftest.nm
6389     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6390   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } && test -s "$nlist"; then
6394       # Try sorting and uniquifying the output.
6395       if sort "$nlist" | uniq > "$nlist"T; then
6396         mv -f "$nlist"T "$nlist"
6397       else
6398         rm -f "$nlist"T
6399       fi
6400
6401       # Make sure that we snagged all the symbols we need.
6402       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6403         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6404           cat <<EOF > conftest.$ac_ext
6405 #ifdef __cplusplus
6406 extern "C" {
6407 #endif
6408
6409 EOF
6410           # Now generate the symbol file.
6411           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6412
6413           cat <<EOF >> conftest.$ac_ext
6414 #if defined (__STDC__) && __STDC__
6415 # define lt_ptr_t void *
6416 #else
6417 # define lt_ptr_t char *
6418 # define const
6419 #endif
6420
6421 /* The mapping between symbol names and symbols. */
6422 const struct {
6423   const char *name;
6424   lt_ptr_t address;
6425 }
6426 lt_preloaded_symbols[] =
6427 {
6428 EOF
6429           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6430           cat <<\EOF >> conftest.$ac_ext
6431   {0, (lt_ptr_t) 0}
6432 };
6433
6434 #ifdef __cplusplus
6435 }
6436 #endif
6437 EOF
6438           # Now try linking the two files.
6439           mv conftest.$ac_objext conftstm.$ac_objext
6440           lt_save_LIBS="$LIBS"
6441           lt_save_CFLAGS="$CFLAGS"
6442           LIBS="conftstm.$ac_objext"
6443           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6444           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445   (eval $ac_link) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6449             pipe_works=yes
6450           fi
6451           LIBS="$lt_save_LIBS"
6452           CFLAGS="$lt_save_CFLAGS"
6453         else
6454           echo "cannot find nm_test_func in $nlist" >&5
6455         fi
6456       else
6457         echo "cannot find nm_test_var in $nlist" >&5
6458       fi
6459     else
6460       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6461     fi
6462   else
6463     echo "$progname: failed program was:" >&5
6464     cat conftest.$ac_ext >&5
6465   fi
6466   rm -rf conftest* conftst*
6467
6468   # Do not use the global_symbol_pipe unless it works.
6469   if test "$pipe_works" = yes; then
6470     break
6471   else
6472     lt_cv_sys_global_symbol_pipe=
6473   fi
6474 done
6475
6476 fi
6477
6478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6479   lt_cv_sys_global_symbol_to_cdecl=
6480 fi
6481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6482   { echo "$as_me:$LINENO: result: failed" >&5
6483 echo "${ECHO_T}failed" >&6; }
6484 else
6485   { echo "$as_me:$LINENO: result: ok" >&5
6486 echo "${ECHO_T}ok" >&6; }
6487 fi
6488
6489 { echo "$as_me:$LINENO: checking for objdir" >&5
6490 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6491 if test "${lt_cv_objdir+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   rm -f .libs 2>/dev/null
6495 mkdir .libs 2>/dev/null
6496 if test -d .libs; then
6497   lt_cv_objdir=.libs
6498 else
6499   # MS-DOS does not allow filenames that begin with a dot.
6500   lt_cv_objdir=_libs
6501 fi
6502 rmdir .libs 2>/dev/null
6503 fi
6504 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6505 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6506 objdir=$lt_cv_objdir
6507
6508
6509
6510
6511
6512 case $host_os in
6513 aix3*)
6514   # AIX sometimes has problems with the GCC collect2 program.  For some
6515   # reason, if we set the COLLECT_NAMES environment variable, the problems
6516   # vanish in a puff of smoke.
6517   if test "X${COLLECT_NAMES+set}" != Xset; then
6518     COLLECT_NAMES=
6519     export COLLECT_NAMES
6520   fi
6521   ;;
6522 esac
6523
6524 # Sed substitution that helps us do robust quoting.  It backslashifies
6525 # metacharacters that are still active within double-quoted strings.
6526 Xsed='sed -e 1s/^X//'
6527 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6528
6529 # Same as above, but do not quote variable references.
6530 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6531
6532 # Sed substitution to delay expansion of an escaped shell variable in a
6533 # double_quote_subst'ed string.
6534 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6535
6536 # Sed substitution to avoid accidental globbing in evaled expressions
6537 no_glob_subst='s/\*/\\\*/g'
6538
6539 # Constants:
6540 rm="rm -f"
6541
6542 # Global variables:
6543 default_ofile=libtool
6544 can_build_shared=yes
6545
6546 # All known linkers require a `.a' archive for static linking (except MSVC,
6547 # which needs '.lib').
6548 libext=a
6549 ltmain="$ac_aux_dir/ltmain.sh"
6550 ofile="$default_ofile"
6551 with_gnu_ld="$lt_cv_prog_gnu_ld"
6552
6553 if test -n "$ac_tool_prefix"; then
6554   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}ar; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_prog_AR+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   if test -n "$AR"; then
6562   ac_cv_prog_AR="$AR" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567   IFS=$as_save_IFS
6568   test -z "$as_dir" && as_dir=.
6569   for ac_exec_ext in '' $ac_executable_extensions; do
6570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571     ac_cv_prog_AR="${ac_tool_prefix}ar"
6572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573     break 2
6574   fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 AR=$ac_cv_prog_AR
6582 if test -n "$AR"; then
6583   { echo "$as_me:$LINENO: result: $AR" >&5
6584 echo "${ECHO_T}$AR" >&6; }
6585 else
6586   { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6588 fi
6589
6590
6591 fi
6592 if test -z "$ac_cv_prog_AR"; then
6593   ac_ct_AR=$AR
6594   # Extract the first word of "ar", so it can be a program name with args.
6595 set dummy ar; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   if test -n "$ac_ct_AR"; then
6602   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609   for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_prog_ac_ct_AR="ar"
6612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6622 if test -n "$ac_ct_AR"; then
6623   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6624 echo "${ECHO_T}$ac_ct_AR" >&6; }
6625 else
6626   { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630   if test "x$ac_ct_AR" = x; then
6631     AR="false"
6632   else
6633     case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6636 whose name does not start with the host triplet.  If you think this
6637 configuration is useful to you, please write to autoconf@gnu.org." >&5
6638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6639 whose name does not start with the host triplet.  If you think this
6640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6641 ac_tool_warned=yes ;;
6642 esac
6643     AR=$ac_ct_AR
6644   fi
6645 else
6646   AR="$ac_cv_prog_AR"
6647 fi
6648
6649 if test -n "$ac_tool_prefix"; then
6650   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_prog_RANLIB+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   if test -n "$RANLIB"; then
6658   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665   for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 RANLIB=$ac_cv_prog_RANLIB
6678 if test -n "$RANLIB"; then
6679   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6680 echo "${ECHO_T}$RANLIB" >&6; }
6681 else
6682   { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6684 fi
6685
6686
6687 fi
6688 if test -z "$ac_cv_prog_RANLIB"; then
6689   ac_ct_RANLIB=$RANLIB
6690   # Extract the first word of "ranlib", so it can be a program name with args.
6691 set dummy ranlib; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   if test -n "$ac_ct_RANLIB"; then
6698   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705   for ac_exec_ext in '' $ac_executable_extensions; do
6706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707     ac_cv_prog_ac_ct_RANLIB="ranlib"
6708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6718 if test -n "$ac_ct_RANLIB"; then
6719   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6720 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726   if test "x$ac_ct_RANLIB" = x; then
6727     RANLIB=":"
6728   else
6729     case $cross_compiling:$ac_tool_warned in
6730 yes:)
6731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6732 whose name does not start with the host triplet.  If you think this
6733 configuration is useful to you, please write to autoconf@gnu.org." >&5
6734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6735 whose name does not start with the host triplet.  If you think this
6736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739     RANLIB=$ac_ct_RANLIB
6740   fi
6741 else
6742   RANLIB="$ac_cv_prog_RANLIB"
6743 fi
6744
6745 if test -n "$ac_tool_prefix"; then
6746   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}strip; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_STRIP+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   if test -n "$STRIP"; then
6754   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761   for ac_exec_ext in '' $ac_executable_extensions; do
6762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 STRIP=$ac_cv_prog_STRIP
6774 if test -n "$STRIP"; then
6775   { echo "$as_me:$LINENO: result: $STRIP" >&5
6776 echo "${ECHO_T}$STRIP" >&6; }
6777 else
6778   { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6780 fi
6781
6782
6783 fi
6784 if test -z "$ac_cv_prog_STRIP"; then
6785   ac_ct_STRIP=$STRIP
6786   # Extract the first word of "strip", so it can be a program name with args.
6787 set dummy strip; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$ac_ct_STRIP"; then
6794   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_ac_ct_STRIP="strip"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6814 if test -n "$ac_ct_STRIP"; then
6815   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6816 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822   if test "x$ac_ct_STRIP" = x; then
6823     STRIP=":"
6824   else
6825     case $cross_compiling:$ac_tool_warned in
6826 yes:)
6827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6828 whose name does not start with the host triplet.  If you think this
6829 configuration is useful to you, please write to autoconf@gnu.org." >&5
6830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet.  If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835     STRIP=$ac_ct_STRIP
6836   fi
6837 else
6838   STRIP="$ac_cv_prog_STRIP"
6839 fi
6840
6841
6842 old_CC="$CC"
6843 old_CFLAGS="$CFLAGS"
6844
6845 # Set sane defaults for various variables
6846 test -z "$AR" && AR=ar
6847 test -z "$AR_FLAGS" && AR_FLAGS=cru
6848 test -z "$AS" && AS=as
6849 test -z "$CC" && CC=cc
6850 test -z "$LTCC" && LTCC=$CC
6851 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6852 test -z "$DLLTOOL" && DLLTOOL=dlltool
6853 test -z "$LD" && LD=ld
6854 test -z "$LN_S" && LN_S="ln -s"
6855 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6856 test -z "$NM" && NM=nm
6857 test -z "$SED" && SED=sed
6858 test -z "$OBJDUMP" && OBJDUMP=objdump
6859 test -z "$RANLIB" && RANLIB=:
6860 test -z "$STRIP" && STRIP=:
6861 test -z "$ac_objext" && ac_objext=o
6862
6863 # Determine commands to create old-style static archives.
6864 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6865 old_postinstall_cmds='chmod 644 $oldlib'
6866 old_postuninstall_cmds=
6867
6868 if test -n "$RANLIB"; then
6869   case $host_os in
6870   openbsd*)
6871     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6872     ;;
6873   *)
6874     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6875     ;;
6876   esac
6877   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6878 fi
6879
6880 for cc_temp in $compiler""; do
6881   case $cc_temp in
6882     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6883     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6884     \-*) ;;
6885     *) break;;
6886   esac
6887 done
6888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6889
6890
6891 # Only perform the check for file, if the check method requires it
6892 case $deplibs_check_method in
6893 file_magic*)
6894   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6895     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6896 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6897 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   case $MAGIC_CMD in
6901 [\\/*] |  ?:[\\/]*)
6902   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6903   ;;
6904 *)
6905   lt_save_MAGIC_CMD="$MAGIC_CMD"
6906   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6907   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6908   for ac_dir in $ac_dummy; do
6909     IFS="$lt_save_ifs"
6910     test -z "$ac_dir" && ac_dir=.
6911     if test -f $ac_dir/${ac_tool_prefix}file; then
6912       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6913       if test -n "$file_magic_test_file"; then
6914         case $deplibs_check_method in
6915         "file_magic "*)
6916           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6917           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6918           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6919             $EGREP "$file_magic_regex" > /dev/null; then
6920             :
6921           else
6922             cat <<EOF 1>&2
6923
6924 *** Warning: the command libtool uses to detect shared libraries,
6925 *** $file_magic_cmd, produces output that libtool cannot recognize.
6926 *** The result is that libtool may fail to recognize shared libraries
6927 *** as such.  This will affect the creation of libtool libraries that
6928 *** depend on shared libraries, but programs linked with such libtool
6929 *** libraries will work regardless of this problem.  Nevertheless, you
6930 *** may want to report the problem to your system manager and/or to
6931 *** bug-libtool@gnu.org
6932
6933 EOF
6934           fi ;;
6935         esac
6936       fi
6937       break
6938     fi
6939   done
6940   IFS="$lt_save_ifs"
6941   MAGIC_CMD="$lt_save_MAGIC_CMD"
6942   ;;
6943 esac
6944 fi
6945
6946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6947 if test -n "$MAGIC_CMD"; then
6948   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6949 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6950 else
6951   { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6953 fi
6954
6955 if test -z "$lt_cv_path_MAGIC_CMD"; then
6956   if test -n "$ac_tool_prefix"; then
6957     { echo "$as_me:$LINENO: checking for file" >&5
6958 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6960   echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962   case $MAGIC_CMD in
6963 [\\/*] |  ?:[\\/]*)
6964   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6965   ;;
6966 *)
6967   lt_save_MAGIC_CMD="$MAGIC_CMD"
6968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6969   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6970   for ac_dir in $ac_dummy; do
6971     IFS="$lt_save_ifs"
6972     test -z "$ac_dir" && ac_dir=.
6973     if test -f $ac_dir/file; then
6974       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6975       if test -n "$file_magic_test_file"; then
6976         case $deplibs_check_method in
6977         "file_magic "*)
6978           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6979           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6981             $EGREP "$file_magic_regex" > /dev/null; then
6982             :
6983           else
6984             cat <<EOF 1>&2
6985
6986 *** Warning: the command libtool uses to detect shared libraries,
6987 *** $file_magic_cmd, produces output that libtool cannot recognize.
6988 *** The result is that libtool may fail to recognize shared libraries
6989 *** as such.  This will affect the creation of libtool libraries that
6990 *** depend on shared libraries, but programs linked with such libtool
6991 *** libraries will work regardless of this problem.  Nevertheless, you
6992 *** may want to report the problem to your system manager and/or to
6993 *** bug-libtool@gnu.org
6994
6995 EOF
6996           fi ;;
6997         esac
6998       fi
6999       break
7000     fi
7001   done
7002   IFS="$lt_save_ifs"
7003   MAGIC_CMD="$lt_save_MAGIC_CMD"
7004   ;;
7005 esac
7006 fi
7007
7008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7009 if test -n "$MAGIC_CMD"; then
7010   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7011 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7012 else
7013   { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7015 fi
7016
7017   else
7018     MAGIC_CMD=:
7019   fi
7020 fi
7021
7022   fi
7023   ;;
7024 esac
7025
7026
7027   case $host_os in
7028     rhapsody* | darwin*)
7029     if test -n "$ac_tool_prefix"; then
7030   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   if test -n "$DSYMUTIL"; then
7038   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045   for ac_exec_ext in '' $ac_executable_extensions; do
7046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7058 if test -n "$DSYMUTIL"; then
7059   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7060 echo "${ECHO_T}$DSYMUTIL" >&6; }
7061 else
7062   { echo "$as_me:$LINENO: result: no" >&5
7063 echo "${ECHO_T}no" >&6; }
7064 fi
7065
7066
7067 fi
7068 if test -z "$ac_cv_prog_DSYMUTIL"; then
7069   ac_ct_DSYMUTIL=$DSYMUTIL
7070   # Extract the first word of "dsymutil", so it can be a program name with args.
7071 set dummy dsymutil; ac_word=$2
7072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7074 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7075   echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077   if test -n "$ac_ct_DSYMUTIL"; then
7078   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083   IFS=$as_save_IFS
7084   test -z "$as_dir" && as_dir=.
7085   for ac_exec_ext in '' $ac_executable_extensions; do
7086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089     break 2
7090   fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7098 if test -n "$ac_ct_DSYMUTIL"; then
7099   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7100 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7101 else
7102   { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7104 fi
7105
7106   if test "x$ac_ct_DSYMUTIL" = x; then
7107     DSYMUTIL=":"
7108   else
7109     case $cross_compiling:$ac_tool_warned in
7110 yes:)
7111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7112 whose name does not start with the host triplet.  If you think this
7113 configuration is useful to you, please write to autoconf@gnu.org." >&5
7114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7115 whose name does not start with the host triplet.  If you think this
7116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7117 ac_tool_warned=yes ;;
7118 esac
7119     DSYMUTIL=$ac_ct_DSYMUTIL
7120   fi
7121 else
7122   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7123 fi
7124
7125     if test -n "$ac_tool_prefix"; then
7126   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   if test -n "$NMEDIT"; then
7134   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141   for ac_exec_ext in '' $ac_executable_extensions; do
7142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 NMEDIT=$ac_cv_prog_NMEDIT
7154 if test -n "$NMEDIT"; then
7155   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7156 echo "${ECHO_T}$NMEDIT" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_NMEDIT"; then
7165   ac_ct_NMEDIT=$NMEDIT
7166   # Extract the first word of "nmedit", so it can be a program name with args.
7167 set dummy nmedit; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   if test -n "$ac_ct_NMEDIT"; then
7174   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181   for ac_exec_ext in '' $ac_executable_extensions; do
7182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7194 if test -n "$ac_ct_NMEDIT"; then
7195   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7196 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202   if test "x$ac_ct_NMEDIT" = x; then
7203     NMEDIT=":"
7204   else
7205     case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7208 whose name does not start with the host triplet.  If you think this
7209 configuration is useful to you, please write to autoconf@gnu.org." >&5
7210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7211 whose name does not start with the host triplet.  If you think this
7212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7213 ac_tool_warned=yes ;;
7214 esac
7215     NMEDIT=$ac_ct_NMEDIT
7216   fi
7217 else
7218   NMEDIT="$ac_cv_prog_NMEDIT"
7219 fi
7220
7221
7222     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7223 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7224 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   lt_cv_apple_cc_single_mod=no
7228       if test -z "${LT_MULTI_MODULE}"; then
7229    # By default we will add the -single_module flag. You can override
7230    # by either setting the environment variable LT_MULTI_MODULE
7231    # non-empty at configure time, or by adding -multi_module to the
7232    # link flags.
7233    echo "int foo(void){return 1;}" > conftest.c
7234    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7235      -dynamiclib ${wl}-single_module conftest.c
7236    if test -f libconftest.dylib; then
7237      lt_cv_apple_cc_single_mod=yes
7238      rm -rf libconftest.dylib*
7239    fi
7240    rm conftest.c
7241       fi
7242 fi
7243 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7244 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7245     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7246 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7247 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   lt_cv_ld_exported_symbols_list=no
7251       save_LDFLAGS=$LDFLAGS
7252       echo "_main" > conftest.sym
7253       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7254       cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h.  */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h.  */
7260
7261 int
7262 main ()
7263 {
7264
7265   ;
7266   return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (ac_try="$ac_link"
7271 case "(($ac_try" in
7272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273   *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276   (eval "$ac_link") 2>conftest.er1
7277   ac_status=$?
7278   grep -v '^ *+' conftest.er1 >conftest.err
7279   rm -f conftest.er1
7280   cat conftest.err >&5
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } && {
7283          test -z "$ac_c_werror_flag" ||
7284          test ! -s conftest.err
7285        } && test -s conftest$ac_exeext &&
7286        $as_test_x conftest$ac_exeext; then
7287   lt_cv_ld_exported_symbols_list=yes
7288 else
7289   echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7291
7292         lt_cv_ld_exported_symbols_list=no
7293 fi
7294
7295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7296       conftest$ac_exeext conftest.$ac_ext
7297    LDFLAGS="$save_LDFLAGS"
7298
7299 fi
7300 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7301 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7302     case $host_os in
7303     rhapsody* | darwin1.[0123])
7304       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7305     darwin1.*)
7306      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307     darwin*)
7308       # if running on 10.5 or later, the deployment target defaults
7309       # to the OS version, if on x86, and 10.4, the deployment
7310       # target defaults to 10.4. Don't you love it?
7311       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7312    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7313      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7314    10.[012]*)
7315      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7316    10.*)
7317      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7318       esac
7319     ;;
7320   esac
7321     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7322       _lt_dar_single_mod='$single_module'
7323     fi
7324     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7325       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7326     else
7327       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7328     fi
7329     if test "$DSYMUTIL" != ":"; then
7330       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7331     else
7332       _lt_dsymutil=
7333     fi
7334     ;;
7335   esac
7336
7337
7338 enable_dlopen=yes
7339 enable_win32_dll=no
7340
7341 # Check whether --enable-libtool-lock was given.
7342 if test "${enable_libtool_lock+set}" = set; then
7343   enableval=$enable_libtool_lock;
7344 fi
7345
7346 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7347
7348
7349 # Check whether --with-pic was given.
7350 if test "${with_pic+set}" = set; then
7351   withval=$with_pic; pic_mode="$withval"
7352 else
7353   pic_mode=default
7354 fi
7355
7356 test -z "$pic_mode" && pic_mode=default
7357
7358 # Use C for the default configuration in the libtool script
7359 tagname=
7360 lt_save_CC="$CC"
7361 ac_ext=c
7362 ac_cpp='$CPP $CPPFLAGS'
7363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7366
7367
7368 # Source file extension for C test sources.
7369 ac_ext=c
7370
7371 # Object file extension for compiled C test sources.
7372 objext=o
7373 objext=$objext
7374
7375 # Code to be used in simple compile tests
7376 lt_simple_compile_test_code="int some_variable = 0;"
7377
7378 # Code to be used in simple link tests
7379 lt_simple_link_test_code='int main(){return(0);}'
7380
7381
7382 # If no C compiler was specified, use CC.
7383 LTCC=${LTCC-"$CC"}
7384
7385 # If no C compiler flags were specified, use CFLAGS.
7386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7387
7388 # Allow CC to be a program name with arguments.
7389 compiler=$CC
7390
7391
7392 # save warnings/boilerplate of simple test code
7393 ac_outfile=conftest.$ac_objext
7394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7396 _lt_compiler_boilerplate=`cat conftest.err`
7397 $rm conftest*
7398
7399 ac_outfile=conftest.$ac_objext
7400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7402 _lt_linker_boilerplate=`cat conftest.err`
7403 $rm -r conftest*
7404
7405
7406
7407 lt_prog_compiler_no_builtin_flag=
7408
7409 if test "$GCC" = yes; then
7410   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7411
7412
7413 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7414 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7415 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   lt_cv_prog_compiler_rtti_exceptions=no
7419   ac_outfile=conftest.$ac_objext
7420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7421    lt_compiler_flag="-fno-rtti -fno-exceptions"
7422    # Insert the option either (1) after the last *FLAGS variable, or
7423    # (2) before a word containing "conftest.", or (3) at the end.
7424    # Note that $ac_compile itself does not contain backslashes and begins
7425    # with a dollar sign (not a hyphen), so the echo should work correctly.
7426    # The option is referenced via a variable to avoid confusing sed.
7427    lt_compile=`echo "$ac_compile" | $SED \
7428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7430    -e 's:$: $lt_compiler_flag:'`
7431    (eval echo "\"\$as_me:7431: $lt_compile\"" >&5)
7432    (eval "$lt_compile" 2>conftest.err)
7433    ac_status=$?
7434    cat conftest.err >&5
7435    echo "$as_me:7435: \$? = $ac_status" >&5
7436    if (exit $ac_status) && test -s "$ac_outfile"; then
7437      # The compiler can only warn and ignore the option if not recognized
7438      # So say no if there are warnings other than the usual output.
7439      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7440      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7441      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7442        lt_cv_prog_compiler_rtti_exceptions=yes
7443      fi
7444    fi
7445    $rm conftest*
7446
7447 fi
7448 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7449 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7450
7451 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7452     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7453 else
7454     :
7455 fi
7456
7457 fi
7458
7459 lt_prog_compiler_wl=
7460 lt_prog_compiler_pic=
7461 lt_prog_compiler_static=
7462
7463 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7464 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7465
7466   if test "$GCC" = yes; then
7467     lt_prog_compiler_wl='-Wl,'
7468     lt_prog_compiler_static='-static'
7469
7470     case $host_os in
7471       aix*)
7472       # All AIX code is PIC.
7473       if test "$host_cpu" = ia64; then
7474         # AIX 5 now supports IA64 processor
7475         lt_prog_compiler_static='-Bstatic'
7476       fi
7477       ;;
7478
7479     amigaos*)
7480       # FIXME: we need at least 68020 code to build shared libraries, but
7481       # adding the `-m68020' flag to GCC prevents building anything better,
7482       # like `-m68040'.
7483       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7484       ;;
7485
7486     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7487       # PIC is the default for these OSes.
7488       ;;
7489
7490     mingw* | cygwin* | pw32* | os2*)
7491       # This hack is so that the source file can tell whether it is being
7492       # built for inclusion in a dll (and should export symbols for example).
7493       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7494       # (--disable-auto-import) libraries
7495       lt_prog_compiler_pic='-DDLL_EXPORT'
7496       ;;
7497
7498     darwin* | rhapsody*)
7499       # PIC is the default on this platform
7500       # Common symbols not allowed in MH_DYLIB files
7501       lt_prog_compiler_pic='-fno-common'
7502       ;;
7503
7504     interix[3-9]*)
7505       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7506       # Instead, we relocate shared libraries at runtime.
7507       ;;
7508
7509     msdosdjgpp*)
7510       # Just because we use GCC doesn't mean we suddenly get shared libraries
7511       # on systems that don't support them.
7512       lt_prog_compiler_can_build_shared=no
7513       enable_shared=no
7514       ;;
7515
7516     sysv4*MP*)
7517       if test -d /usr/nec; then
7518         lt_prog_compiler_pic=-Kconform_pic
7519       fi
7520       ;;
7521
7522     hpux*)
7523       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7524       # not for PA HP-UX.
7525       case $host_cpu in
7526       hppa*64*|ia64*)
7527         # +Z the default
7528         ;;
7529       *)
7530         lt_prog_compiler_pic='-fPIC'
7531         ;;
7532       esac
7533       ;;
7534
7535     *)
7536       lt_prog_compiler_pic='-fPIC'
7537       ;;
7538     esac
7539   else
7540     # PORTME Check for flag to pass linker flags through the system compiler.
7541     case $host_os in
7542     aix*)
7543       lt_prog_compiler_wl='-Wl,'
7544       if test "$host_cpu" = ia64; then
7545         # AIX 5 now supports IA64 processor
7546         lt_prog_compiler_static='-Bstatic'
7547       else
7548         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7549       fi
7550       ;;
7551       darwin*)
7552         # PIC is the default on this platform
7553         # Common symbols not allowed in MH_DYLIB files
7554        case $cc_basename in
7555          xlc*)
7556          lt_prog_compiler_pic='-qnocommon'
7557          lt_prog_compiler_wl='-Wl,'
7558          ;;
7559        esac
7560        ;;
7561
7562     mingw* | cygwin* | pw32* | os2*)
7563       # This hack is so that the source file can tell whether it is being
7564       # built for inclusion in a dll (and should export symbols for example).
7565       lt_prog_compiler_pic='-DDLL_EXPORT'
7566       ;;
7567
7568     hpux9* | hpux10* | hpux11*)
7569       lt_prog_compiler_wl='-Wl,'
7570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7571       # not for PA HP-UX.
7572       case $host_cpu in
7573       hppa*64*|ia64*)
7574         # +Z the default
7575         ;;
7576       *)
7577         lt_prog_compiler_pic='+Z'
7578         ;;
7579       esac
7580       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7581       lt_prog_compiler_static='${wl}-a ${wl}archive'
7582       ;;
7583
7584     irix5* | irix6* | nonstopux*)
7585       lt_prog_compiler_wl='-Wl,'
7586       # PIC (with -KPIC) is the default.
7587       lt_prog_compiler_static='-non_shared'
7588       ;;
7589
7590     newsos6)
7591       lt_prog_compiler_pic='-KPIC'
7592       lt_prog_compiler_static='-Bstatic'
7593       ;;
7594
7595     linux* | k*bsd*-gnu)
7596       case $cc_basename in
7597       icc* | ecc*)
7598         lt_prog_compiler_wl='-Wl,'
7599         lt_prog_compiler_pic='-KPIC'
7600         lt_prog_compiler_static='-static'
7601         ;;
7602       pgcc* | pgf77* | pgf90* | pgf95*)
7603         # Portland Group compilers (*not* the Pentium gcc compiler,
7604         # which looks to be a dead project)
7605         lt_prog_compiler_wl='-Wl,'
7606         lt_prog_compiler_pic='-fpic'
7607         lt_prog_compiler_static='-Bstatic'
7608         ;;
7609       ccc*)
7610         lt_prog_compiler_wl='-Wl,'
7611         # All Alpha code is PIC.
7612         lt_prog_compiler_static='-non_shared'
7613         ;;
7614       *)
7615         case `$CC -V 2>&1 | sed 5q` in
7616         *Sun\ C*)
7617           # Sun C 5.9
7618           lt_prog_compiler_pic='-KPIC'
7619           lt_prog_compiler_static='-Bstatic'
7620           lt_prog_compiler_wl='-Wl,'
7621           ;;
7622         *Sun\ F*)
7623           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7624           lt_prog_compiler_pic='-KPIC'
7625           lt_prog_compiler_static='-Bstatic'
7626           lt_prog_compiler_wl=''
7627           ;;
7628         esac
7629         ;;
7630       esac
7631       ;;
7632
7633     osf3* | osf4* | osf5*)
7634       lt_prog_compiler_wl='-Wl,'
7635       # All OSF/1 code is PIC.
7636       lt_prog_compiler_static='-non_shared'
7637       ;;
7638
7639     rdos*)
7640       lt_prog_compiler_static='-non_shared'
7641       ;;
7642
7643     solaris*)
7644       lt_prog_compiler_pic='-KPIC'
7645       lt_prog_compiler_static='-Bstatic'
7646       case $cc_basename in
7647       f77* | f90* | f95*)
7648         lt_prog_compiler_wl='-Qoption ld ';;
7649       *)
7650         lt_prog_compiler_wl='-Wl,';;
7651       esac
7652       ;;
7653
7654     sunos4*)
7655       lt_prog_compiler_wl='-Qoption ld '
7656       lt_prog_compiler_pic='-PIC'
7657       lt_prog_compiler_static='-Bstatic'
7658       ;;
7659
7660     sysv4 | sysv4.2uw2* | sysv4.3*)
7661       lt_prog_compiler_wl='-Wl,'
7662       lt_prog_compiler_pic='-KPIC'
7663       lt_prog_compiler_static='-Bstatic'
7664       ;;
7665
7666     sysv4*MP*)
7667       if test -d /usr/nec ;then
7668         lt_prog_compiler_pic='-Kconform_pic'
7669         lt_prog_compiler_static='-Bstatic'
7670       fi
7671       ;;
7672
7673     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7674       lt_prog_compiler_wl='-Wl,'
7675       lt_prog_compiler_pic='-KPIC'
7676       lt_prog_compiler_static='-Bstatic'
7677       ;;
7678
7679     unicos*)
7680       lt_prog_compiler_wl='-Wl,'
7681       lt_prog_compiler_can_build_shared=no
7682       ;;
7683
7684     uts4*)
7685       lt_prog_compiler_pic='-pic'
7686       lt_prog_compiler_static='-Bstatic'
7687       ;;
7688
7689     *)
7690       lt_prog_compiler_can_build_shared=no
7691       ;;
7692     esac
7693   fi
7694
7695 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7696 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7697
7698 #
7699 # Check to make sure the PIC flag actually works.
7700 #
7701 if test -n "$lt_prog_compiler_pic"; then
7702
7703 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7704 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7705 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   lt_cv_prog_compiler_pic_works=no
7709   ac_outfile=conftest.$ac_objext
7710    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7711    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7712    # Insert the option either (1) after the last *FLAGS variable, or
7713    # (2) before a word containing "conftest.", or (3) at the end.
7714    # Note that $ac_compile itself does not contain backslashes and begins
7715    # with a dollar sign (not a hyphen), so the echo should work correctly.
7716    # The option is referenced via a variable to avoid confusing sed.
7717    lt_compile=`echo "$ac_compile" | $SED \
7718    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7719    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7720    -e 's:$: $lt_compiler_flag:'`
7721    (eval echo "\"\$as_me:7721: $lt_compile\"" >&5)
7722    (eval "$lt_compile" 2>conftest.err)
7723    ac_status=$?
7724    cat conftest.err >&5
7725    echo "$as_me:7725: \$? = $ac_status" >&5
7726    if (exit $ac_status) && test -s "$ac_outfile"; then
7727      # The compiler can only warn and ignore the option if not recognized
7728      # So say no if there are warnings other than the usual output.
7729      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7730      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7731      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7732        lt_cv_prog_compiler_pic_works=yes
7733      fi
7734    fi
7735    $rm conftest*
7736
7737 fi
7738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7739 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7740
7741 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7742     case $lt_prog_compiler_pic in
7743      "" | " "*) ;;
7744      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7745      esac
7746 else
7747     lt_prog_compiler_pic=
7748      lt_prog_compiler_can_build_shared=no
7749 fi
7750
7751 fi
7752 case $host_os in
7753   # For platforms which do not support PIC, -DPIC is meaningless:
7754   *djgpp*)
7755     lt_prog_compiler_pic=
7756     ;;
7757   *)
7758     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7759     ;;
7760 esac
7761
7762 #
7763 # Check to make sure the static flag actually works.
7764 #
7765 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7766 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7767 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7768 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   lt_cv_prog_compiler_static_works=no
7772    save_LDFLAGS="$LDFLAGS"
7773    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7774    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7775    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7776      # The linker can only warn and ignore the option if not recognized
7777      # So say no if there are warnings
7778      if test -s conftest.err; then
7779        # Append any errors to the config.log.
7780        cat conftest.err 1>&5
7781        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7782        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7783        if diff conftest.exp conftest.er2 >/dev/null; then
7784          lt_cv_prog_compiler_static_works=yes
7785        fi
7786      else
7787        lt_cv_prog_compiler_static_works=yes
7788      fi
7789    fi
7790    $rm -r conftest*
7791    LDFLAGS="$save_LDFLAGS"
7792
7793 fi
7794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7795 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7796
7797 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7798     :
7799 else
7800     lt_prog_compiler_static=
7801 fi
7802
7803
7804 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7805 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   lt_cv_prog_compiler_c_o=no
7810    $rm -r conftest 2>/dev/null
7811    mkdir conftest
7812    cd conftest
7813    mkdir out
7814    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7815
7816    lt_compiler_flag="-o out/conftest2.$ac_objext"
7817    # Insert the option either (1) after the last *FLAGS variable, or
7818    # (2) before a word containing "conftest.", or (3) at the end.
7819    # Note that $ac_compile itself does not contain backslashes and begins
7820    # with a dollar sign (not a hyphen), so the echo should work correctly.
7821    lt_compile=`echo "$ac_compile" | $SED \
7822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7824    -e 's:$: $lt_compiler_flag:'`
7825    (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
7826    (eval "$lt_compile" 2>out/conftest.err)
7827    ac_status=$?
7828    cat out/conftest.err >&5
7829    echo "$as_me:7829: \$? = $ac_status" >&5
7830    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7831    then
7832      # The compiler can only warn and ignore the option if not recognized
7833      # So say no if there are warnings
7834      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7835      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7836      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7837        lt_cv_prog_compiler_c_o=yes
7838      fi
7839    fi
7840    chmod u+w . 2>&5
7841    $rm conftest*
7842    # SGI C++ compiler will create directory out/ii_files/ for
7843    # template instantiation
7844    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7845    $rm out/* && rmdir out
7846    cd ..
7847    rmdir conftest
7848    $rm conftest*
7849
7850 fi
7851 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7852 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7853
7854
7855 hard_links="nottested"
7856 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7857   # do not overwrite the value of need_locks provided by the user
7858   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7859 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7860   hard_links=yes
7861   $rm conftest*
7862   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7863   touch conftest.a
7864   ln conftest.a conftest.b 2>&5 || hard_links=no
7865   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7866   { echo "$as_me:$LINENO: result: $hard_links" >&5
7867 echo "${ECHO_T}$hard_links" >&6; }
7868   if test "$hard_links" = no; then
7869     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7870 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7871     need_locks=warn
7872   fi
7873 else
7874   need_locks=no
7875 fi
7876
7877 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7878 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7879
7880   runpath_var=
7881   allow_undefined_flag=
7882   enable_shared_with_static_runtimes=no
7883   archive_cmds=
7884   archive_expsym_cmds=
7885   old_archive_From_new_cmds=
7886   old_archive_from_expsyms_cmds=
7887   export_dynamic_flag_spec=
7888   whole_archive_flag_spec=
7889   thread_safe_flag_spec=
7890   hardcode_libdir_flag_spec=
7891   hardcode_libdir_flag_spec_ld=
7892   hardcode_libdir_separator=
7893   hardcode_direct=no
7894   hardcode_minus_L=no
7895   hardcode_shlibpath_var=unsupported
7896   link_all_deplibs=unknown
7897   hardcode_automatic=no
7898   module_cmds=
7899   module_expsym_cmds=
7900   always_export_symbols=no
7901   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7902   # include_expsyms should be a list of space-separated symbols to be *always*
7903   # included in the symbol list
7904   include_expsyms=
7905   # exclude_expsyms can be an extended regexp of symbols to exclude
7906   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7907   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7908   # as well as any symbol that contains `d'.
7909   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7910   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7911   # platforms (ab)use it in PIC code, but their linkers get confused if
7912   # the symbol is explicitly referenced.  Since portable code cannot
7913   # rely on this symbol name, it's probably fine to never include it in
7914   # preloaded symbol tables.
7915   # Exclude shared library initialization/finalization symbols.
7916   extract_expsyms_cmds=
7917   # Just being paranoid about ensuring that cc_basename is set.
7918   for cc_temp in $compiler""; do
7919   case $cc_temp in
7920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7922     \-*) ;;
7923     *) break;;
7924   esac
7925 done
7926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7927
7928   case $host_os in
7929   cygwin* | mingw* | pw32*)
7930     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7931     # When not using gcc, we currently assume that we are using
7932     # Microsoft Visual C++.
7933     if test "$GCC" != yes; then
7934       with_gnu_ld=no
7935     fi
7936     ;;
7937   interix*)
7938     # we just hope/assume this is gcc and not c89 (= MSVC++)
7939     with_gnu_ld=yes
7940     ;;
7941   openbsd*)
7942     with_gnu_ld=no
7943     ;;
7944   esac
7945
7946   ld_shlibs=yes
7947   if test "$with_gnu_ld" = yes; then
7948     # If archive_cmds runs LD, not CC, wlarc should be empty
7949     wlarc='${wl}'
7950
7951     # Set some defaults for GNU ld with shared library support. These
7952     # are reset later if shared libraries are not supported. Putting them
7953     # here allows them to be overridden if necessary.
7954     runpath_var=LD_RUN_PATH
7955     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7956     export_dynamic_flag_spec='${wl}--export-dynamic'
7957     # ancient GNU ld didn't support --whole-archive et. al.
7958     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7959         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7960       else
7961         whole_archive_flag_spec=
7962     fi
7963     supports_anon_versioning=no
7964     case `$LD -v 2>/dev/null` in
7965       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7966       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7967       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7968       *\ 2.11.*) ;; # other 2.11 versions
7969       *) supports_anon_versioning=yes ;;
7970     esac
7971
7972     # See if GNU ld supports shared libraries.
7973     case $host_os in
7974     aix[3-9]*)
7975       # On AIX/PPC, the GNU linker is very broken
7976       if test "$host_cpu" != ia64; then
7977         ld_shlibs=no
7978         cat <<EOF 1>&2
7979
7980 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7981 *** to be unable to reliably create shared libraries on AIX.
7982 *** Therefore, libtool is disabling shared libraries support.  If you
7983 *** really care for shared libraries, you may want to modify your PATH
7984 *** so that a non-GNU linker is found, and then restart.
7985
7986 EOF
7987       fi
7988       ;;
7989
7990     amigaos*)
7991       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)'
7992       hardcode_libdir_flag_spec='-L$libdir'
7993       hardcode_minus_L=yes
7994
7995       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7996       # that the semantics of dynamic libraries on AmigaOS, at least up
7997       # to version 4, is to share data among multiple programs linked
7998       # with the same dynamic library.  Since this doesn't match the
7999       # behavior of shared libraries on other platforms, we can't use
8000       # them.
8001       ld_shlibs=no
8002       ;;
8003
8004     beos*)
8005       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8006         allow_undefined_flag=unsupported
8007         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8008         # support --undefined.  This deserves some investigation.  FIXME
8009         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010       else
8011         ld_shlibs=no
8012       fi
8013       ;;
8014
8015     cygwin* | mingw* | pw32*)
8016       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8017       # as there is no search path for DLLs.
8018       hardcode_libdir_flag_spec='-L$libdir'
8019       allow_undefined_flag=unsupported
8020       always_export_symbols=no
8021       enable_shared_with_static_runtimes=yes
8022       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8023
8024       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8025         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8026         # If the export-symbols file already is a .def file (1st line
8027         # is EXPORTS), use it as is; otherwise, prepend...
8028         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8029           cp $export_symbols $output_objdir/$soname.def;
8030         else
8031           echo EXPORTS > $output_objdir/$soname.def;
8032           cat $export_symbols >> $output_objdir/$soname.def;
8033         fi~
8034         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8035       else
8036         ld_shlibs=no
8037       fi
8038       ;;
8039
8040     interix[3-9]*)
8041       hardcode_direct=no
8042       hardcode_shlibpath_var=no
8043       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8044       export_dynamic_flag_spec='${wl}-E'
8045       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8046       # Instead, shared libraries are loaded at an image base (0x10000000 by
8047       # default) and relocated if they conflict, which is a slow very memory
8048       # consuming and fragmenting process.  To avoid this, we pick a random,
8049       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8050       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8051       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8052       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'
8053       ;;
8054
8055     gnu* | linux* | k*bsd*-gnu)
8056       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8057         tmp_addflag=
8058         case $cc_basename,$host_cpu in
8059         pgcc*)                          # Portland Group C compiler
8060           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'
8061           tmp_addflag=' $pic_flag'
8062           ;;
8063         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8064           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'
8065           tmp_addflag=' $pic_flag -Mnomain' ;;
8066         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8067           tmp_addflag=' -i_dynamic' ;;
8068         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8069           tmp_addflag=' -i_dynamic -nofor_main' ;;
8070         ifc* | ifort*)                  # Intel Fortran compiler
8071           tmp_addflag=' -nofor_main' ;;
8072         esac
8073         case `$CC -V 2>&1 | sed 5q` in
8074         *Sun\ C*)                       # Sun C 5.9
8075           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'
8076           tmp_sharedflag='-G' ;;
8077         *Sun\ F*)                       # Sun Fortran 8.3
8078           tmp_sharedflag='-G' ;;
8079         *)
8080           tmp_sharedflag='-shared' ;;
8081         esac
8082         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083
8084         if test $supports_anon_versioning = yes; then
8085           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8086   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8087   $echo "local: *; };" >> $output_objdir/$libname.ver~
8088           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8089         fi
8090         link_all_deplibs=no
8091       else
8092         ld_shlibs=no
8093       fi
8094       ;;
8095
8096     netbsd* | netbsdelf*-gnu)
8097       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8098         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8099         wlarc=
8100       else
8101         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8102         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8103       fi
8104       ;;
8105
8106     solaris*)
8107       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8108         ld_shlibs=no
8109         cat <<EOF 1>&2
8110
8111 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8112 *** create shared libraries on Solaris systems.  Therefore, libtool
8113 *** is disabling shared libraries support.  We urge you to upgrade GNU
8114 *** binutils to release 2.9.1 or newer.  Another option is to modify
8115 *** your PATH or compiler configuration so that the native linker is
8116 *** used, and then restart.
8117
8118 EOF
8119       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8120         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8122       else
8123         ld_shlibs=no
8124       fi
8125       ;;
8126
8127     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8128       case `$LD -v 2>&1` in
8129         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8130         ld_shlibs=no
8131         cat <<_LT_EOF 1>&2
8132
8133 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8134 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8135 *** is disabling shared libraries support.  We urge you to upgrade GNU
8136 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8137 *** your PATH or compiler configuration so that the native linker is
8138 *** used, and then restart.
8139
8140 _LT_EOF
8141         ;;
8142         *)
8143           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8144             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8145             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8146             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8147           else
8148             ld_shlibs=no
8149           fi
8150         ;;
8151       esac
8152       ;;
8153
8154     sunos4*)
8155       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8156       wlarc=
8157       hardcode_direct=yes
8158       hardcode_shlibpath_var=no
8159       ;;
8160
8161     *)
8162       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8163         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8165       else
8166         ld_shlibs=no
8167       fi
8168       ;;
8169     esac
8170
8171     if test "$ld_shlibs" = no; then
8172       runpath_var=
8173       hardcode_libdir_flag_spec=
8174       export_dynamic_flag_spec=
8175       whole_archive_flag_spec=
8176     fi
8177   else
8178     # PORTME fill in a description of your system's linker (not GNU ld)
8179     case $host_os in
8180     aix3*)
8181       allow_undefined_flag=unsupported
8182       always_export_symbols=yes
8183       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'
8184       # Note: this linker hardcodes the directories in LIBPATH if there
8185       # are no directories specified by -L.
8186       hardcode_minus_L=yes
8187       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8188         # Neither direct hardcoding nor static linking is supported with a
8189         # broken collect2.
8190         hardcode_direct=unsupported
8191       fi
8192       ;;
8193
8194     aix[4-9]*)
8195       if test "$host_cpu" = ia64; then
8196         # On IA64, the linker does run time linking by default, so we don't
8197         # have to do anything special.
8198         aix_use_runtimelinking=no
8199         exp_sym_flag='-Bexport'
8200         no_entry_flag=""
8201       else
8202         # If we're using GNU nm, then we don't want the "-C" option.
8203         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8204         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8205           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'
8206         else
8207           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'
8208         fi
8209         aix_use_runtimelinking=no
8210
8211         # Test if we are trying to use run time linking or normal
8212         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8213         # need to do runtime linking.
8214         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8215           for ld_flag in $LDFLAGS; do
8216           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8217             aix_use_runtimelinking=yes
8218             break
8219           fi
8220           done
8221           ;;
8222         esac
8223
8224         exp_sym_flag='-bexport'
8225         no_entry_flag='-bnoentry'
8226       fi
8227
8228       # When large executables or shared objects are built, AIX ld can
8229       # have problems creating the table of contents.  If linking a library
8230       # or program results in "error TOC overflow" add -mminimal-toc to
8231       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8232       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8233
8234       archive_cmds=''
8235       hardcode_direct=yes
8236       hardcode_libdir_separator=':'
8237       link_all_deplibs=yes
8238
8239       if test "$GCC" = yes; then
8240         case $host_os in aix4.[012]|aix4.[012].*)
8241         # We only want to do this on AIX 4.2 and lower, the check
8242         # below for broken collect2 doesn't work under 4.3+
8243           collect2name=`${CC} -print-prog-name=collect2`
8244           if test -f "$collect2name" && \
8245            strings "$collect2name" | grep resolve_lib_name >/dev/null
8246           then
8247           # We have reworked collect2
8248           :
8249           else
8250           # We have old collect2
8251           hardcode_direct=unsupported
8252           # It fails to find uninstalled libraries when the uninstalled
8253           # path is not listed in the libpath.  Setting hardcode_minus_L
8254           # to unsupported forces relinking
8255           hardcode_minus_L=yes
8256           hardcode_libdir_flag_spec='-L$libdir'
8257           hardcode_libdir_separator=
8258           fi
8259           ;;
8260         esac
8261         shared_flag='-shared'
8262         if test "$aix_use_runtimelinking" = yes; then
8263           shared_flag="$shared_flag "'${wl}-G'
8264         fi
8265       else
8266         # not using gcc
8267         if test "$host_cpu" = ia64; then
8268         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8269         # chokes on -Wl,-G. The following line is correct:
8270           shared_flag='-G'
8271         else
8272           if test "$aix_use_runtimelinking" = yes; then
8273             shared_flag='${wl}-G'
8274           else
8275             shared_flag='${wl}-bM:SRE'
8276           fi
8277         fi
8278       fi
8279
8280       # It seems that -bexpall does not export symbols beginning with
8281       # underscore (_), so it is better to generate a list of symbols to export.
8282       always_export_symbols=yes
8283       if test "$aix_use_runtimelinking" = yes; then
8284         # Warning - without using the other runtime loading flags (-brtl),
8285         # -berok will link without error, but may produce a broken library.
8286         allow_undefined_flag='-berok'
8287        # Determine the default libpath from the value encoded in an empty executable.
8288        cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h.  */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h.  */
8294
8295 int
8296 main ()
8297 {
8298
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (ac_try="$ac_link"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_link") 2>conftest.er1
8311   ac_status=$?
8312   grep -v '^ *+' conftest.er1 >conftest.err
8313   rm -f conftest.er1
8314   cat conftest.err >&5
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } && {
8317          test -z "$ac_c_werror_flag" ||
8318          test ! -s conftest.err
8319        } && test -s conftest$ac_exeext &&
8320        $as_test_x conftest$ac_exeext; then
8321
8322 lt_aix_libpath_sed='
8323     /Import File Strings/,/^$/ {
8324         /^0/ {
8325             s/^0  *\(.*\)$/\1/
8326             p
8327         }
8328     }'
8329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8330 # Check for a 64-bit object if we didn't find anything.
8331 if test -z "$aix_libpath"; then
8332   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8333 fi
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338
8339 fi
8340
8341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8342       conftest$ac_exeext conftest.$ac_ext
8343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8344
8345        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8346         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"
8347        else
8348         if test "$host_cpu" = ia64; then
8349           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8350           allow_undefined_flag="-z nodefs"
8351           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"
8352         else
8353          # Determine the default libpath from the value encoded in an empty executable.
8354          cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360
8361 int
8362 main ()
8363 {
8364
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8371 case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_link") 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } && {
8383          test -z "$ac_c_werror_flag" ||
8384          test ! -s conftest.err
8385        } && test -s conftest$ac_exeext &&
8386        $as_test_x conftest$ac_exeext; then
8387
8388 lt_aix_libpath_sed='
8389     /Import File Strings/,/^$/ {
8390         /^0/ {
8391             s/^0  *\(.*\)$/\1/
8392             p
8393         }
8394     }'
8395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8396 # Check for a 64-bit object if we didn't find anything.
8397 if test -z "$aix_libpath"; then
8398   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 fi
8400 else
8401   echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404
8405 fi
8406
8407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8408       conftest$ac_exeext conftest.$ac_ext
8409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8410
8411          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8412           # Warning - without using the other run time loading flags,
8413           # -berok will link without error, but may produce a broken library.
8414           no_undefined_flag=' ${wl}-bernotok'
8415           allow_undefined_flag=' ${wl}-berok'
8416           # Exported symbols can be pulled into shared objects from archives
8417           whole_archive_flag_spec='$convenience'
8418           archive_cmds_need_lc=yes
8419           # This is similar to how AIX traditionally builds its shared libraries.
8420           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'
8421         fi
8422       fi
8423       ;;
8424
8425     amigaos*)
8426       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)'
8427       hardcode_libdir_flag_spec='-L$libdir'
8428       hardcode_minus_L=yes
8429       # see comment about different semantics on the GNU ld section
8430       ld_shlibs=no
8431       ;;
8432
8433     bsdi[45]*)
8434       export_dynamic_flag_spec=-rdynamic
8435       ;;
8436
8437     cygwin* | mingw* | pw32*)
8438       # When not using gcc, we currently assume that we are using
8439       # Microsoft Visual C++.
8440       # hardcode_libdir_flag_spec is actually meaningless, as there is
8441       # no search path for DLLs.
8442       hardcode_libdir_flag_spec=' '
8443       allow_undefined_flag=unsupported
8444       # Tell ltmain to make .lib files, not .a files.
8445       libext=lib
8446       # Tell ltmain to make .dll files, not .so files.
8447       shrext_cmds=".dll"
8448       # FIXME: Setting linknames here is a bad hack.
8449       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8450       # The linker will automatically build a .lib file if we build a DLL.
8451       old_archive_From_new_cmds='true'
8452       # FIXME: Should let the user specify the lib program.
8453       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8454       fix_srcfile_path='`cygpath -w "$srcfile"`'
8455       enable_shared_with_static_runtimes=yes
8456       ;;
8457
8458     darwin* | rhapsody*)
8459       case $host_os in
8460         rhapsody* | darwin1.[012])
8461          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8462          ;;
8463        *) # Darwin 1.3 on
8464          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8465            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8466          else
8467            case ${MACOSX_DEPLOYMENT_TARGET} in
8468              10.[012])
8469                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8470                ;;
8471              10.*)
8472                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8473                ;;
8474            esac
8475          fi
8476          ;;
8477       esac
8478       archive_cmds_need_lc=no
8479       hardcode_direct=no
8480       hardcode_automatic=yes
8481       hardcode_shlibpath_var=unsupported
8482       whole_archive_flag_spec=''
8483       link_all_deplibs=yes
8484     if test "$GCC" = yes ; then
8485         output_verbose_link_cmd='echo'
8486         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8487         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8488         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}"
8489         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}"
8490     else
8491       case $cc_basename in
8492         xlc*)
8493          output_verbose_link_cmd='echo'
8494          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8495          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8496           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8497          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}'
8498           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}'
8499           ;;
8500        *)
8501          ld_shlibs=no
8502           ;;
8503       esac
8504     fi
8505       ;;
8506
8507     dgux*)
8508       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8509       hardcode_libdir_flag_spec='-L$libdir'
8510       hardcode_shlibpath_var=no
8511       ;;
8512
8513     freebsd1*)
8514       ld_shlibs=no
8515       ;;
8516
8517     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8518     # support.  Future versions do this automatically, but an explicit c++rt0.o
8519     # does not break anything, and helps significantly (at the cost of a little
8520     # extra space).
8521     freebsd2.2*)
8522       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8523       hardcode_libdir_flag_spec='-R$libdir'
8524       hardcode_direct=yes
8525       hardcode_shlibpath_var=no
8526       ;;
8527
8528     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8529     freebsd2*)
8530       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8531       hardcode_direct=yes
8532       hardcode_minus_L=yes
8533       hardcode_shlibpath_var=no
8534       ;;
8535
8536     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8537     freebsd* | dragonfly*)
8538       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8539       hardcode_libdir_flag_spec='-R$libdir'
8540       hardcode_direct=yes
8541       hardcode_shlibpath_var=no
8542       ;;
8543
8544     hpux9*)
8545       if test "$GCC" = yes; then
8546         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'
8547       else
8548         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'
8549       fi
8550       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8551       hardcode_libdir_separator=:
8552       hardcode_direct=yes
8553
8554       # hardcode_minus_L: Not really in the search PATH,
8555       # but as the default location of the library.
8556       hardcode_minus_L=yes
8557       export_dynamic_flag_spec='${wl}-E'
8558       ;;
8559
8560     hpux10*)
8561       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8562         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563       else
8564         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8565       fi
8566       if test "$with_gnu_ld" = no; then
8567         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568         hardcode_libdir_separator=:
8569
8570         hardcode_direct=yes
8571         export_dynamic_flag_spec='${wl}-E'
8572
8573         # hardcode_minus_L: Not really in the search PATH,
8574         # but as the default location of the library.
8575         hardcode_minus_L=yes
8576       fi
8577       ;;
8578
8579     hpux11*)
8580       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8581         case $host_cpu in
8582         hppa*64*)
8583           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584           ;;
8585         ia64*)
8586           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8587           ;;
8588         *)
8589           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8590           ;;
8591         esac
8592       else
8593         case $host_cpu in
8594         hppa*64*)
8595           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8596           ;;
8597         ia64*)
8598           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8599           ;;
8600         *)
8601           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8602           ;;
8603         esac
8604       fi
8605       if test "$with_gnu_ld" = no; then
8606         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8607         hardcode_libdir_separator=:
8608
8609         case $host_cpu in
8610         hppa*64*|ia64*)
8611           hardcode_libdir_flag_spec_ld='+b $libdir'
8612           hardcode_direct=no
8613           hardcode_shlibpath_var=no
8614           ;;
8615         *)
8616           hardcode_direct=yes
8617           export_dynamic_flag_spec='${wl}-E'
8618
8619           # hardcode_minus_L: Not really in the search PATH,
8620           # but as the default location of the library.
8621           hardcode_minus_L=yes
8622           ;;
8623         esac
8624       fi
8625       ;;
8626
8627     irix5* | irix6* | nonstopux*)
8628       if test "$GCC" = yes; then
8629         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'
8630       else
8631         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'
8632         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8633       fi
8634       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635       hardcode_libdir_separator=:
8636       link_all_deplibs=yes
8637       ;;
8638
8639     netbsd* | netbsdelf*-gnu)
8640       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8641         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8642       else
8643         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8644       fi
8645       hardcode_libdir_flag_spec='-R$libdir'
8646       hardcode_direct=yes
8647       hardcode_shlibpath_var=no
8648       ;;
8649
8650     newsos6)
8651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652       hardcode_direct=yes
8653       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8654       hardcode_libdir_separator=:
8655       hardcode_shlibpath_var=no
8656       ;;
8657
8658     openbsd*)
8659       if test -f /usr/libexec/ld.so; then
8660         hardcode_direct=yes
8661         hardcode_shlibpath_var=no
8662         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8663           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8664           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8665           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666           export_dynamic_flag_spec='${wl}-E'
8667         else
8668           case $host_os in
8669            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8670              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671              hardcode_libdir_flag_spec='-R$libdir'
8672              ;;
8673            *)
8674              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8675              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8676              ;;
8677           esac
8678         fi
8679       else
8680         ld_shlibs=no
8681       fi
8682       ;;
8683
8684     os2*)
8685       hardcode_libdir_flag_spec='-L$libdir'
8686       hardcode_minus_L=yes
8687       allow_undefined_flag=unsupported
8688       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'
8689       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8690       ;;
8691
8692     osf3*)
8693       if test "$GCC" = yes; then
8694         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8695         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'
8696       else
8697         allow_undefined_flag=' -expect_unresolved \*'
8698         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'
8699       fi
8700       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701       hardcode_libdir_separator=:
8702       ;;
8703
8704     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8705       if test "$GCC" = yes; then
8706         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707         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'
8708         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709       else
8710         allow_undefined_flag=' -expect_unresolved \*'
8711         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'
8712         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8713         $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'
8714
8715         # Both c and cxx compiler support -rpath directly
8716         hardcode_libdir_flag_spec='-rpath $libdir'
8717       fi
8718       hardcode_libdir_separator=:
8719       ;;
8720
8721     solaris*)
8722       no_undefined_flag=' -z text'
8723       if test "$GCC" = yes; then
8724         wlarc='${wl}'
8725         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8727           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8728       else
8729         wlarc=''
8730         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8732         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8733       fi
8734       hardcode_libdir_flag_spec='-R$libdir'
8735       hardcode_shlibpath_var=no
8736       case $host_os in
8737       solaris2.[0-5] | solaris2.[0-5].*) ;;
8738       *)
8739         # The compiler driver will combine and reorder linker options,
8740         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8741         # but is careful enough not to reorder.
8742         # Supported since Solaris 2.6 (maybe 2.5.1?)
8743         if test "$GCC" = yes; then
8744           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8745         else
8746           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8747         fi
8748         ;;
8749       esac
8750       link_all_deplibs=yes
8751       ;;
8752
8753     sunos4*)
8754       if test "x$host_vendor" = xsequent; then
8755         # Use $CC to link under sequent, because it throws in some extra .o
8756         # files that make .init and .fini sections work.
8757         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8758       else
8759         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8760       fi
8761       hardcode_libdir_flag_spec='-L$libdir'
8762       hardcode_direct=yes
8763       hardcode_minus_L=yes
8764       hardcode_shlibpath_var=no
8765       ;;
8766
8767     sysv4)
8768       case $host_vendor in
8769         sni)
8770           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771           hardcode_direct=yes # is this really true???
8772         ;;
8773         siemens)
8774           ## LD is ld it makes a PLAMLIB
8775           ## CC just makes a GrossModule.
8776           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8777           reload_cmds='$CC -r -o $output$reload_objs'
8778           hardcode_direct=no
8779         ;;
8780         motorola)
8781           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8783         ;;
8784       esac
8785       runpath_var='LD_RUN_PATH'
8786       hardcode_shlibpath_var=no
8787       ;;
8788
8789     sysv4.3*)
8790       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791       hardcode_shlibpath_var=no
8792       export_dynamic_flag_spec='-Bexport'
8793       ;;
8794
8795     sysv4*MP*)
8796       if test -d /usr/nec; then
8797         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798         hardcode_shlibpath_var=no
8799         runpath_var=LD_RUN_PATH
8800         hardcode_runpath_var=yes
8801         ld_shlibs=yes
8802       fi
8803       ;;
8804
8805     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8806       no_undefined_flag='${wl}-z,text'
8807       archive_cmds_need_lc=no
8808       hardcode_shlibpath_var=no
8809       runpath_var='LD_RUN_PATH'
8810
8811       if test "$GCC" = yes; then
8812         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814       else
8815         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817       fi
8818       ;;
8819
8820     sysv5* | sco3.2v5* | sco5v6*)
8821       # Note: We can NOT use -z defs as we might desire, because we do not
8822       # link with -lc, and that would cause any symbols used from libc to
8823       # always be unresolved, which means just about no library would
8824       # ever link correctly.  If we're not using GNU ld we use -z text
8825       # though, which does catch some bad symbols but isn't as heavy-handed
8826       # as -z defs.
8827       no_undefined_flag='${wl}-z,text'
8828       allow_undefined_flag='${wl}-z,nodefs'
8829       archive_cmds_need_lc=no
8830       hardcode_shlibpath_var=no
8831       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8832       hardcode_libdir_separator=':'
8833       link_all_deplibs=yes
8834       export_dynamic_flag_spec='${wl}-Bexport'
8835       runpath_var='LD_RUN_PATH'
8836
8837       if test "$GCC" = yes; then
8838         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840       else
8841         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843       fi
8844       ;;
8845
8846     uts4*)
8847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848       hardcode_libdir_flag_spec='-L$libdir'
8849       hardcode_shlibpath_var=no
8850       ;;
8851
8852     *)
8853       ld_shlibs=no
8854       ;;
8855     esac
8856   fi
8857
8858 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8859 echo "${ECHO_T}$ld_shlibs" >&6; }
8860 test "$ld_shlibs" = no && can_build_shared=no
8861
8862 #
8863 # Do we need to explicitly link libc?
8864 #
8865 case "x$archive_cmds_need_lc" in
8866 x|xyes)
8867   # Assume -lc should be added
8868   archive_cmds_need_lc=yes
8869
8870   if test "$enable_shared" = yes && test "$GCC" = yes; then
8871     case $archive_cmds in
8872     *'~'*)
8873       # FIXME: we may have to deal with multi-command sequences.
8874       ;;
8875     '$CC '*)
8876       # Test whether the compiler implicitly links with -lc since on some
8877       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8878       # to ld, don't add -lc before -lgcc.
8879       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8880 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8881       $rm conftest*
8882       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883
8884       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885   (eval $ac_compile) 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } 2>conftest.err; then
8889         soname=conftest
8890         lib=conftest
8891         libobjs=conftest.$ac_objext
8892         deplibs=
8893         wl=$lt_prog_compiler_wl
8894         pic_flag=$lt_prog_compiler_pic
8895         compiler_flags=-v
8896         linker_flags=-v
8897         verstring=
8898         output_objdir=.
8899         libname=conftest
8900         lt_save_allow_undefined_flag=$allow_undefined_flag
8901         allow_undefined_flag=
8902         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8903   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }
8907         then
8908           archive_cmds_need_lc=no
8909         else
8910           archive_cmds_need_lc=yes
8911         fi
8912         allow_undefined_flag=$lt_save_allow_undefined_flag
8913       else
8914         cat conftest.err 1>&5
8915       fi
8916       $rm conftest*
8917       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8918 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8919       ;;
8920     esac
8921   fi
8922   ;;
8923 esac
8924
8925 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8926 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8927 library_names_spec=
8928 libname_spec='lib$name'
8929 soname_spec=
8930 shrext_cmds=".so"
8931 postinstall_cmds=
8932 postuninstall_cmds=
8933 finish_cmds=
8934 finish_eval=
8935 shlibpath_var=
8936 shlibpath_overrides_runpath=unknown
8937 version_type=none
8938 dynamic_linker="$host_os ld.so"
8939 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8940
8941 if test "$GCC" = yes; then
8942   case $host_os in
8943     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8944     *) lt_awk_arg="/^libraries:/" ;;
8945   esac
8946   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8947   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8948     # if the path contains ";" then we assume it to be the separator
8949     # otherwise default to the standard path separator (i.e. ":") - it is
8950     # assumed that no part of a normal pathname contains ";" but that should
8951     # okay in the real world where ";" in dirpaths is itself problematic.
8952     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8953   else
8954     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8955   fi
8956   # Ok, now we have the path, separated by spaces, we can step through it
8957   # and add multilib dir if necessary.
8958   lt_tmp_lt_search_path_spec=
8959   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8960   for lt_sys_path in $lt_search_path_spec; do
8961     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8962       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8963     else
8964       test -d "$lt_sys_path" && \
8965         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8966     fi
8967   done
8968   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8969 BEGIN {RS=" "; FS="/|\n";} {
8970   lt_foo="";
8971   lt_count=0;
8972   for (lt_i = NF; lt_i > 0; lt_i--) {
8973     if ($lt_i != "" && $lt_i != ".") {
8974       if ($lt_i == "..") {
8975         lt_count++;
8976       } else {
8977         if (lt_count == 0) {
8978           lt_foo="/" $lt_i lt_foo;
8979         } else {
8980           lt_count--;
8981         }
8982       }
8983     }
8984   }
8985   if (lt_foo != "") { lt_freq[lt_foo]++; }
8986   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8987 }'`
8988   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8989 else
8990   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8991 fi
8992 need_lib_prefix=unknown
8993 hardcode_into_libs=no
8994
8995 # when you set need_version to no, make sure it does not cause -set_version
8996 # flags to be left without arguments
8997 need_version=unknown
8998
8999 case $host_os in
9000 aix3*)
9001   version_type=linux
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9003   shlibpath_var=LIBPATH
9004
9005   # AIX 3 has no versioning support, so we append a major version to the name.
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   ;;
9008
9009 aix[4-9]*)
9010   version_type=linux
9011   need_lib_prefix=no
9012   need_version=no
9013   hardcode_into_libs=yes
9014   if test "$host_cpu" = ia64; then
9015     # AIX 5 supports IA64
9016     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9017     shlibpath_var=LD_LIBRARY_PATH
9018   else
9019     # With GCC up to 2.95.x, collect2 would create an import file
9020     # for dependence libraries.  The import file would start with
9021     # the line `#! .'.  This would cause the generated library to
9022     # depend on `.', always an invalid library.  This was fixed in
9023     # development snapshots of GCC prior to 3.0.
9024     case $host_os in
9025       aix4 | aix4.[01] | aix4.[01].*)
9026       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9027            echo ' yes '
9028            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9029         :
9030       else
9031         can_build_shared=no
9032       fi
9033       ;;
9034     esac
9035     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9036     # soname into executable. Probably we can add versioning support to
9037     # collect2, so additional links can be useful in future.
9038     if test "$aix_use_runtimelinking" = yes; then
9039       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9040       # instead of lib<name>.a to let people know that these are not
9041       # typical AIX shared libraries.
9042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043     else
9044       # We preserve .a as extension for shared libraries through AIX4.2
9045       # and later when we are not doing run time linking.
9046       library_names_spec='${libname}${release}.a $libname.a'
9047       soname_spec='${libname}${release}${shared_ext}$major'
9048     fi
9049     shlibpath_var=LIBPATH
9050   fi
9051   ;;
9052
9053 amigaos*)
9054   library_names_spec='$libname.ixlibrary $libname.a'
9055   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9056   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'
9057   ;;
9058
9059 beos*)
9060   library_names_spec='${libname}${shared_ext}'
9061   dynamic_linker="$host_os ld.so"
9062   shlibpath_var=LIBRARY_PATH
9063   ;;
9064
9065 bsdi[45]*)
9066   version_type=linux
9067   need_version=no
9068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069   soname_spec='${libname}${release}${shared_ext}$major'
9070   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9073   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9074   # the default ld.so.conf also contains /usr/contrib/lib and
9075   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9076   # libtool to hard-code these into programs
9077   ;;
9078
9079 cygwin* | mingw* | pw32*)
9080   version_type=windows
9081   shrext_cmds=".dll"
9082   need_version=no
9083   need_lib_prefix=no
9084
9085   case $GCC,$host_os in
9086   yes,cygwin* | yes,mingw* | yes,pw32*)
9087     library_names_spec='$libname.dll.a'
9088     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9089     postinstall_cmds='base_file=`basename \${file}`~
9090       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9091       dldir=$destdir/`dirname \$dlpath`~
9092       test -d \$dldir || mkdir -p \$dldir~
9093       $install_prog $dir/$dlname \$dldir/$dlname~
9094       chmod a+x \$dldir/$dlname'
9095     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9096       dlpath=$dir/\$dldll~
9097        $rm \$dlpath'
9098     shlibpath_overrides_runpath=yes
9099
9100     case $host_os in
9101     cygwin*)
9102       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9103       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9104       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9105       ;;
9106     mingw*)
9107       # MinGW DLLs use traditional 'lib' prefix
9108       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9109       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9110       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9111         # It is most probably a Windows format PATH printed by
9112         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9113         # path with ; separators, and with drive letters. We can handle the
9114         # drive letters (cygwin fileutils understands them), so leave them,
9115         # especially as we might pass files found there to a mingw objdump,
9116         # which wouldn't understand a cygwinified path. Ahh.
9117         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9118       else
9119         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9120       fi
9121       ;;
9122     pw32*)
9123       # pw32 DLLs use 'pw' prefix rather than 'lib'
9124       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9125       ;;
9126     esac
9127     ;;
9128
9129   *)
9130     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9131     ;;
9132   esac
9133   dynamic_linker='Win32 ld.exe'
9134   # FIXME: first we should search . and the directory the executable is in
9135   shlibpath_var=PATH
9136   ;;
9137
9138 darwin* | rhapsody*)
9139   dynamic_linker="$host_os dyld"
9140   version_type=darwin
9141   need_lib_prefix=no
9142   need_version=no
9143   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9144   soname_spec='${libname}${release}${major}$shared_ext'
9145   shlibpath_overrides_runpath=yes
9146   shlibpath_var=DYLD_LIBRARY_PATH
9147   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9148
9149   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9150   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9151   ;;
9152
9153 dgux*)
9154   version_type=linux
9155   need_lib_prefix=no
9156   need_version=no
9157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9158   soname_spec='${libname}${release}${shared_ext}$major'
9159   shlibpath_var=LD_LIBRARY_PATH
9160   ;;
9161
9162 freebsd1*)
9163   dynamic_linker=no
9164   ;;
9165
9166 freebsd* | dragonfly*)
9167   # DragonFly does not have aout.  When/if they implement a new
9168   # versioning mechanism, adjust this.
9169   if test -x /usr/bin/objformat; then
9170     objformat=`/usr/bin/objformat`
9171   else
9172     case $host_os in
9173     freebsd[123]*) objformat=aout ;;
9174     *) objformat=elf ;;
9175     esac
9176   fi
9177   version_type=freebsd-$objformat
9178   case $version_type in
9179     freebsd-elf*)
9180       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9181       need_version=no
9182       need_lib_prefix=no
9183       ;;
9184     freebsd-*)
9185       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9186       need_version=yes
9187       ;;
9188   esac
9189   shlibpath_var=LD_LIBRARY_PATH
9190   case $host_os in
9191   freebsd2*)
9192     shlibpath_overrides_runpath=yes
9193     ;;
9194   freebsd3.[01]* | freebsdelf3.[01]*)
9195     shlibpath_overrides_runpath=yes
9196     hardcode_into_libs=yes
9197     ;;
9198   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9199   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9200     shlibpath_overrides_runpath=no
9201     hardcode_into_libs=yes
9202     ;;
9203   *) # from 4.6 on, and DragonFly
9204     shlibpath_overrides_runpath=yes
9205     hardcode_into_libs=yes
9206     ;;
9207   esac
9208   ;;
9209
9210 gnu*)
9211   version_type=linux
9212   need_lib_prefix=no
9213   need_version=no
9214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9215   soname_spec='${libname}${release}${shared_ext}$major'
9216   shlibpath_var=LD_LIBRARY_PATH
9217   hardcode_into_libs=yes
9218   ;;
9219
9220 hpux9* | hpux10* | hpux11*)
9221   # Give a soname corresponding to the major version so that dld.sl refuses to
9222   # link against other versions.
9223   version_type=sunos
9224   need_lib_prefix=no
9225   need_version=no
9226   case $host_cpu in
9227   ia64*)
9228     shrext_cmds='.so'
9229     hardcode_into_libs=yes
9230     dynamic_linker="$host_os dld.so"
9231     shlibpath_var=LD_LIBRARY_PATH
9232     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234     soname_spec='${libname}${release}${shared_ext}$major'
9235     if test "X$HPUX_IA64_MODE" = X32; then
9236       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9237     else
9238       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9239     fi
9240     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9241     ;;
9242    hppa*64*)
9243      shrext_cmds='.sl'
9244      hardcode_into_libs=yes
9245      dynamic_linker="$host_os dld.sl"
9246      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9247      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9248      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249      soname_spec='${libname}${release}${shared_ext}$major'
9250      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9251      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9252      ;;
9253    *)
9254     shrext_cmds='.sl'
9255     dynamic_linker="$host_os dld.sl"
9256     shlibpath_var=SHLIB_PATH
9257     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259     soname_spec='${libname}${release}${shared_ext}$major'
9260     ;;
9261   esac
9262   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9263   postinstall_cmds='chmod 555 $lib'
9264   ;;
9265
9266 interix[3-9]*)
9267   version_type=linux
9268   need_lib_prefix=no
9269   need_version=no
9270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9271   soname_spec='${libname}${release}${shared_ext}$major'
9272   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9273   shlibpath_var=LD_LIBRARY_PATH
9274   shlibpath_overrides_runpath=no
9275   hardcode_into_libs=yes
9276   ;;
9277
9278 irix5* | irix6* | nonstopux*)
9279   case $host_os in
9280     nonstopux*) version_type=nonstopux ;;
9281     *)
9282         if test "$lt_cv_prog_gnu_ld" = yes; then
9283                 version_type=linux
9284         else
9285                 version_type=irix
9286         fi ;;
9287   esac
9288   need_lib_prefix=no
9289   need_version=no
9290   soname_spec='${libname}${release}${shared_ext}$major'
9291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9292   case $host_os in
9293   irix5* | nonstopux*)
9294     libsuff= shlibsuff=
9295     ;;
9296   *)
9297     case $LD in # libtool.m4 will add one of these switches to LD
9298     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9299       libsuff= shlibsuff= libmagic=32-bit;;
9300     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9301       libsuff=32 shlibsuff=N32 libmagic=N32;;
9302     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9303       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9304     *) libsuff= shlibsuff= libmagic=never-match;;
9305     esac
9306     ;;
9307   esac
9308   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9309   shlibpath_overrides_runpath=no
9310   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9311   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9312   hardcode_into_libs=yes
9313   ;;
9314
9315 # No shared lib support for Linux oldld, aout, or coff.
9316 linux*oldld* | linux*aout* | linux*coff*)
9317   dynamic_linker=no
9318   ;;
9319
9320 # This must be Linux ELF.
9321 linux* | k*bsd*-gnu)
9322   version_type=linux
9323   need_lib_prefix=no
9324   need_version=no
9325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326   soname_spec='${libname}${release}${shared_ext}$major'
9327   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9328   shlibpath_var=LD_LIBRARY_PATH
9329   shlibpath_overrides_runpath=no
9330   # This implies no fast_install, which is unacceptable.
9331   # Some rework will be needed to allow for fast_install
9332   # before this can be enabled.
9333   hardcode_into_libs=yes
9334
9335   # Append ld.so.conf contents to the search path
9336   if test -f /etc/ld.so.conf; then
9337     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' ' '`
9338     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9339   fi
9340
9341   # We used to test for /lib/ld.so.1 and disable shared libraries on
9342   # powerpc, because MkLinux only supported shared libraries with the
9343   # GNU dynamic linker.  Since this was broken with cross compilers,
9344   # most powerpc-linux boxes support dynamic linking these days and
9345   # people can always --disable-shared, the test was removed, and we
9346   # assume the GNU/Linux dynamic linker is in use.
9347   dynamic_linker='GNU/Linux ld.so'
9348   ;;
9349
9350 netbsdelf*-gnu)
9351   version_type=linux
9352   need_lib_prefix=no
9353   need_version=no
9354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9355   soname_spec='${libname}${release}${shared_ext}$major'
9356   shlibpath_var=LD_LIBRARY_PATH
9357   shlibpath_overrides_runpath=no
9358   hardcode_into_libs=yes
9359   dynamic_linker='NetBSD ld.elf_so'
9360   ;;
9361
9362 netbsd*)
9363   version_type=sunos
9364   need_lib_prefix=no
9365   need_version=no
9366   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9368     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9369     dynamic_linker='NetBSD (a.out) ld.so'
9370   else
9371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9372     soname_spec='${libname}${release}${shared_ext}$major'
9373     dynamic_linker='NetBSD ld.elf_so'
9374   fi
9375   shlibpath_var=LD_LIBRARY_PATH
9376   shlibpath_overrides_runpath=yes
9377   hardcode_into_libs=yes
9378   ;;
9379
9380 newsos6)
9381   version_type=linux
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383   shlibpath_var=LD_LIBRARY_PATH
9384   shlibpath_overrides_runpath=yes
9385   ;;
9386
9387 nto-qnx*)
9388   version_type=linux
9389   need_lib_prefix=no
9390   need_version=no
9391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392   soname_spec='${libname}${release}${shared_ext}$major'
9393   shlibpath_var=LD_LIBRARY_PATH
9394   shlibpath_overrides_runpath=yes
9395   ;;
9396
9397 openbsd*)
9398   version_type=sunos
9399   sys_lib_dlsearch_path_spec="/usr/lib"
9400   need_lib_prefix=no
9401   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9402   case $host_os in
9403     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9404     *)                         need_version=no  ;;
9405   esac
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9407   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9410     case $host_os in
9411       openbsd2.[89] | openbsd2.[89].*)
9412         shlibpath_overrides_runpath=no
9413         ;;
9414       *)
9415         shlibpath_overrides_runpath=yes
9416         ;;
9417       esac
9418   else
9419     shlibpath_overrides_runpath=yes
9420   fi
9421   ;;
9422
9423 os2*)
9424   libname_spec='$name'
9425   shrext_cmds=".dll"
9426   need_lib_prefix=no
9427   library_names_spec='$libname${shared_ext} $libname.a'
9428   dynamic_linker='OS/2 ld.exe'
9429   shlibpath_var=LIBPATH
9430   ;;
9431
9432 osf3* | osf4* | osf5*)
9433   version_type=osf
9434   need_lib_prefix=no
9435   need_version=no
9436   soname_spec='${libname}${release}${shared_ext}$major'
9437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9438   shlibpath_var=LD_LIBRARY_PATH
9439   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9440   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9441   ;;
9442
9443 rdos*)
9444   dynamic_linker=no
9445   ;;
9446
9447 solaris*)
9448   version_type=linux
9449   need_lib_prefix=no
9450   need_version=no
9451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452   soname_spec='${libname}${release}${shared_ext}$major'
9453   shlibpath_var=LD_LIBRARY_PATH
9454   shlibpath_overrides_runpath=yes
9455   hardcode_into_libs=yes
9456   # ldd complains unless libraries are executable
9457   postinstall_cmds='chmod +x $lib'
9458   ;;
9459
9460 sunos4*)
9461   version_type=sunos
9462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9463   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9464   shlibpath_var=LD_LIBRARY_PATH
9465   shlibpath_overrides_runpath=yes
9466   if test "$with_gnu_ld" = yes; then
9467     need_lib_prefix=no
9468   fi
9469   need_version=yes
9470   ;;
9471
9472 sysv4 | sysv4.3*)
9473   version_type=linux
9474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475   soname_spec='${libname}${release}${shared_ext}$major'
9476   shlibpath_var=LD_LIBRARY_PATH
9477   case $host_vendor in
9478     sni)
9479       shlibpath_overrides_runpath=no
9480       need_lib_prefix=no
9481       export_dynamic_flag_spec='${wl}-Blargedynsym'
9482       runpath_var=LD_RUN_PATH
9483       ;;
9484     siemens)
9485       need_lib_prefix=no
9486       ;;
9487     motorola)
9488       need_lib_prefix=no
9489       need_version=no
9490       shlibpath_overrides_runpath=no
9491       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9492       ;;
9493   esac
9494   ;;
9495
9496 sysv4*MP*)
9497   if test -d /usr/nec ;then
9498     version_type=linux
9499     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9500     soname_spec='$libname${shared_ext}.$major'
9501     shlibpath_var=LD_LIBRARY_PATH
9502   fi
9503   ;;
9504
9505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9506   version_type=freebsd-elf
9507   need_lib_prefix=no
9508   need_version=no
9509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9510   soname_spec='${libname}${release}${shared_ext}$major'
9511   shlibpath_var=LD_LIBRARY_PATH
9512   hardcode_into_libs=yes
9513   if test "$with_gnu_ld" = yes; then
9514     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9515     shlibpath_overrides_runpath=no
9516   else
9517     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9518     shlibpath_overrides_runpath=yes
9519     case $host_os in
9520       sco3.2v5*)
9521         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9522         ;;
9523     esac
9524   fi
9525   sys_lib_dlsearch_path_spec='/usr/lib'
9526   ;;
9527
9528 uts4*)
9529   version_type=linux
9530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531   soname_spec='${libname}${release}${shared_ext}$major'
9532   shlibpath_var=LD_LIBRARY_PATH
9533   ;;
9534
9535 *)
9536   dynamic_linker=no
9537   ;;
9538 esac
9539 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9540 echo "${ECHO_T}$dynamic_linker" >&6; }
9541 test "$dynamic_linker" = no && can_build_shared=no
9542
9543 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9547 fi
9548
9549 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9554 fi
9555
9556 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9557
9558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9559 if test "$GCC" = yes; then
9560   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9561 fi
9562
9563 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9564 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9565 hardcode_action=
9566 if test -n "$hardcode_libdir_flag_spec" || \
9567    test -n "$runpath_var" || \
9568    test "X$hardcode_automatic" = "Xyes" ; then
9569
9570   # We can hardcode non-existant directories.
9571   if test "$hardcode_direct" != no &&
9572      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9573      # have to relink, otherwise we might link with an installed library
9574      # when we should be linking with a yet-to-be-installed one
9575      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9576      test "$hardcode_minus_L" != no; then
9577     # Linking always hardcodes the temporary library directory.
9578     hardcode_action=relink
9579   else
9580     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9581     hardcode_action=immediate
9582   fi
9583 else
9584   # We cannot hardcode anything, or else we can only hardcode existing
9585   # directories.
9586   hardcode_action=unsupported
9587 fi
9588 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9589 echo "${ECHO_T}$hardcode_action" >&6; }
9590
9591 if test "$hardcode_action" = relink; then
9592   # Fast installation is not supported
9593   enable_fast_install=no
9594 elif test "$shlibpath_overrides_runpath" = yes ||
9595      test "$enable_shared" = no; then
9596   # Fast installation is not necessary
9597   enable_fast_install=needless
9598 fi
9599
9600 striplib=
9601 old_striplib=
9602 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9603 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9604 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9605   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9606   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9607   { echo "$as_me:$LINENO: result: yes" >&5
9608 echo "${ECHO_T}yes" >&6; }
9609 else
9610 # FIXME - insert some real tests, host_os isn't really good enough
9611   case $host_os in
9612    darwin*)
9613        if test -n "$STRIP" ; then
9614          striplib="$STRIP -x"
9615          old_striplib="$STRIP -S"
9616          { echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6; }
9618        else
9619   { echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6; }
9621 fi
9622        ;;
9623    *)
9624   { echo "$as_me:$LINENO: result: no" >&5
9625 echo "${ECHO_T}no" >&6; }
9626     ;;
9627   esac
9628 fi
9629
9630 if test "x$enable_dlopen" != xyes; then
9631   enable_dlopen=unknown
9632   enable_dlopen_self=unknown
9633   enable_dlopen_self_static=unknown
9634 else
9635   lt_cv_dlopen=no
9636   lt_cv_dlopen_libs=
9637
9638   case $host_os in
9639   beos*)
9640     lt_cv_dlopen="load_add_on"
9641     lt_cv_dlopen_libs=
9642     lt_cv_dlopen_self=yes
9643     ;;
9644
9645   mingw* | pw32*)
9646     lt_cv_dlopen="LoadLibrary"
9647     lt_cv_dlopen_libs=
9648    ;;
9649
9650   cygwin*)
9651     lt_cv_dlopen="dlopen"
9652     lt_cv_dlopen_libs=
9653    ;;
9654
9655   darwin*)
9656   # if libdl is installed we need to link against it
9657     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   ac_check_lib_save_LIBS=$LIBS
9663 LIBS="-ldl  $LIBS"
9664 cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h.  */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h.  */
9670
9671 /* Override any GCC internal prototype to avoid an error.
9672    Use char because int might match the return type of a GCC
9673    builtin and then its argument prototype would still apply.  */
9674 #ifdef __cplusplus
9675 extern "C"
9676 #endif
9677 char dlopen ();
9678 int
9679 main ()
9680 {
9681 return dlopen ();
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9688 case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_link") 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } && {
9700          test -z "$ac_c_werror_flag" ||
9701          test ! -s conftest.err
9702        } && test -s conftest$ac_exeext &&
9703        $as_test_x conftest$ac_exeext; then
9704   ac_cv_lib_dl_dlopen=yes
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709         ac_cv_lib_dl_dlopen=no
9710 fi
9711
9712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9713       conftest$ac_exeext conftest.$ac_ext
9714 LIBS=$ac_check_lib_save_LIBS
9715 fi
9716 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9718 if test $ac_cv_lib_dl_dlopen = yes; then
9719   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9720 else
9721
9722     lt_cv_dlopen="dyld"
9723     lt_cv_dlopen_libs=
9724     lt_cv_dlopen_self=yes
9725
9726 fi
9727
9728    ;;
9729
9730   *)
9731     { echo "$as_me:$LINENO: checking for shl_load" >&5
9732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9733 if test "${ac_cv_func_shl_load+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9744 #define shl_load innocuous_shl_load
9745
9746 /* System header to define __stub macros and hopefully few prototypes,
9747     which can conflict with char shl_load (); below.
9748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749     <limits.h> exists even on freestanding compilers.  */
9750
9751 #ifdef __STDC__
9752 # include <limits.h>
9753 #else
9754 # include <assert.h>
9755 #endif
9756
9757 #undef shl_load
9758
9759 /* Override any GCC internal prototype to avoid an error.
9760    Use char because int might match the return type of a GCC
9761    builtin and then its argument prototype would still apply.  */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char shl_load ();
9766 /* The GNU C library defines this for functions which it implements
9767     to always fail with ENOSYS.  Some functions are actually named
9768     something starting with __ and the normal name is an alias.  */
9769 #if defined __stub_shl_load || defined __stub___shl_load
9770 choke me
9771 #endif
9772
9773 int
9774 main ()
9775 {
9776 return shl_load ();
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_link") 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } && {
9795          test -z "$ac_c_werror_flag" ||
9796          test ! -s conftest.err
9797        } && test -s conftest$ac_exeext &&
9798        $as_test_x conftest$ac_exeext; then
9799   ac_cv_func_shl_load=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804         ac_cv_func_shl_load=no
9805 fi
9806
9807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808       conftest$ac_exeext conftest.$ac_ext
9809 fi
9810 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9811 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9812 if test $ac_cv_func_shl_load = yes; then
9813   lt_cv_dlopen="shl_load"
9814 else
9815   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-ldld  $LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char shl_load ();
9836 int
9837 main ()
9838 {
9839 return shl_load ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } && {
9858          test -z "$ac_c_werror_flag" ||
9859          test ! -s conftest.err
9860        } && test -s conftest$ac_exeext &&
9861        $as_test_x conftest$ac_exeext; then
9862   ac_cv_lib_dld_shl_load=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867         ac_cv_lib_dld_shl_load=no
9868 fi
9869
9870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9871       conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9873 fi
9874 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9875 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9876 if test $ac_cv_lib_dld_shl_load = yes; then
9877   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9878 else
9879   { echo "$as_me:$LINENO: checking for dlopen" >&5
9880 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9881 if test "${ac_cv_func_dlopen+set}" = set; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884   cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h.  */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h.  */
9890 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9892 #define dlopen innocuous_dlopen
9893
9894 /* System header to define __stub macros and hopefully few prototypes,
9895     which can conflict with char dlopen (); below.
9896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897     <limits.h> exists even on freestanding compilers.  */
9898
9899 #ifdef __STDC__
9900 # include <limits.h>
9901 #else
9902 # include <assert.h>
9903 #endif
9904
9905 #undef dlopen
9906
9907 /* Override any GCC internal prototype to avoid an error.
9908    Use char because int might match the return type of a GCC
9909    builtin and then its argument prototype would still apply.  */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 char dlopen ();
9914 /* The GNU C library defines this for functions which it implements
9915     to always fail with ENOSYS.  Some functions are actually named
9916     something starting with __ and the normal name is an alias.  */
9917 #if defined __stub_dlopen || defined __stub___dlopen
9918 choke me
9919 #endif
9920
9921 int
9922 main ()
9923 {
9924 return dlopen ();
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9931 case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_link") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } && {
9943          test -z "$ac_c_werror_flag" ||
9944          test ! -s conftest.err
9945        } && test -s conftest$ac_exeext &&
9946        $as_test_x conftest$ac_exeext; then
9947   ac_cv_func_dlopen=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952         ac_cv_func_dlopen=no
9953 fi
9954
9955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9956       conftest$ac_exeext conftest.$ac_ext
9957 fi
9958 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9959 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9960 if test $ac_cv_func_dlopen = yes; then
9961   lt_cv_dlopen="dlopen"
9962 else
9963   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   ac_check_lib_save_LIBS=$LIBS
9969 LIBS="-ldl  $LIBS"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978    Use char because int might match the return type of a GCC
9979    builtin and then its argument prototype would still apply.  */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char dlopen ();
9984 int
9985 main ()
9986 {
9987 return dlopen ();
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9994 case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_link") 2>conftest.er1
10000   ac_status=$?
10001   grep -v '^ *+' conftest.er1 >conftest.err
10002   rm -f conftest.er1
10003   cat conftest.err >&5
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } && {
10006          test -z "$ac_c_werror_flag" ||
10007          test ! -s conftest.err
10008        } && test -s conftest$ac_exeext &&
10009        $as_test_x conftest$ac_exeext; then
10010   ac_cv_lib_dl_dlopen=yes
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015         ac_cv_lib_dl_dlopen=no
10016 fi
10017
10018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10019       conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10021 fi
10022 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10023 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10024 if test $ac_cv_lib_dl_dlopen = yes; then
10025   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10026 else
10027   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032   ac_check_lib_save_LIBS=$LIBS
10033 LIBS="-lsvld  $LIBS"
10034 cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h.  */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h.  */
10040
10041 /* Override any GCC internal prototype to avoid an error.
10042    Use char because int might match the return type of a GCC
10043    builtin and then its argument prototype would still apply.  */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 char dlopen ();
10048 int
10049 main ()
10050 {
10051 return dlopen ();
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (ac_try="$ac_link"
10058 case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063   (eval "$ac_link") 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } && {
10070          test -z "$ac_c_werror_flag" ||
10071          test ! -s conftest.err
10072        } && test -s conftest$ac_exeext &&
10073        $as_test_x conftest$ac_exeext; then
10074   ac_cv_lib_svld_dlopen=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         ac_cv_lib_svld_dlopen=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10083       conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10088 if test $ac_cv_lib_svld_dlopen = yes; then
10089   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10090 else
10091   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10092 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10094   echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096   ac_check_lib_save_LIBS=$LIBS
10097 LIBS="-ldld  $LIBS"
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104
10105 /* Override any GCC internal prototype to avoid an error.
10106    Use char because int might match the return type of a GCC
10107    builtin and then its argument prototype would still apply.  */
10108 #ifdef __cplusplus
10109 extern "C"
10110 #endif
10111 char dld_link ();
10112 int
10113 main ()
10114 {
10115 return dld_link ();
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124   *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127   (eval "$ac_link") 2>conftest.er1
10128   ac_status=$?
10129   grep -v '^ *+' conftest.er1 >conftest.err
10130   rm -f conftest.er1
10131   cat conftest.err >&5
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } && {
10134          test -z "$ac_c_werror_flag" ||
10135          test ! -s conftest.err
10136        } && test -s conftest$ac_exeext &&
10137        $as_test_x conftest$ac_exeext; then
10138   ac_cv_lib_dld_dld_link=yes
10139 else
10140   echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143         ac_cv_lib_dld_dld_link=no
10144 fi
10145
10146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10147       conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10149 fi
10150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10151 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10152 if test $ac_cv_lib_dld_dld_link = yes; then
10153   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10154 fi
10155
10156
10157 fi
10158
10159
10160 fi
10161
10162
10163 fi
10164
10165
10166 fi
10167
10168
10169 fi
10170
10171     ;;
10172   esac
10173
10174   if test "x$lt_cv_dlopen" != xno; then
10175     enable_dlopen=yes
10176   else
10177     enable_dlopen=no
10178   fi
10179
10180   case $lt_cv_dlopen in
10181   dlopen)
10182     save_CPPFLAGS="$CPPFLAGS"
10183     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10184
10185     save_LDFLAGS="$LDFLAGS"
10186     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10187
10188     save_LIBS="$LIBS"
10189     LIBS="$lt_cv_dlopen_libs $LIBS"
10190
10191     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10192 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10193 if test "${lt_cv_dlopen_self+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196           if test "$cross_compiling" = yes; then :
10197   lt_cv_dlopen_self=cross
10198 else
10199   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10200   lt_status=$lt_dlunknown
10201   cat > conftest.$ac_ext <<EOF
10202 #line 10202 "configure"
10203 #include "confdefs.h"
10204
10205 #if HAVE_DLFCN_H
10206 #include <dlfcn.h>
10207 #endif
10208
10209 #include <stdio.h>
10210
10211 #ifdef RTLD_GLOBAL
10212 #  define LT_DLGLOBAL           RTLD_GLOBAL
10213 #else
10214 #  ifdef DL_GLOBAL
10215 #    define LT_DLGLOBAL         DL_GLOBAL
10216 #  else
10217 #    define LT_DLGLOBAL         0
10218 #  endif
10219 #endif
10220
10221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10222    find out it does not work in some platform. */
10223 #ifndef LT_DLLAZY_OR_NOW
10224 #  ifdef RTLD_LAZY
10225 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10226 #  else
10227 #    ifdef DL_LAZY
10228 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10229 #    else
10230 #      ifdef RTLD_NOW
10231 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10232 #      else
10233 #        ifdef DL_NOW
10234 #          define LT_DLLAZY_OR_NOW      DL_NOW
10235 #        else
10236 #          define LT_DLLAZY_OR_NOW      0
10237 #        endif
10238 #      endif
10239 #    endif
10240 #  endif
10241 #endif
10242
10243 #ifdef __cplusplus
10244 extern "C" void exit (int);
10245 #endif
10246
10247 void fnord() { int i=42;}
10248 int main ()
10249 {
10250   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10251   int status = $lt_dlunknown;
10252
10253   if (self)
10254     {
10255       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10256       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10257       /* dlclose (self); */
10258     }
10259   else
10260     puts (dlerror ());
10261
10262     exit (status);
10263 }
10264 EOF
10265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266   (eval $ac_link) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10270     (./conftest; exit; ) >&5 2>/dev/null
10271     lt_status=$?
10272     case x$lt_status in
10273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10275       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10276     esac
10277   else :
10278     # compilation failed
10279     lt_cv_dlopen_self=no
10280   fi
10281 fi
10282 rm -fr conftest*
10283
10284
10285 fi
10286 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10288
10289     if test "x$lt_cv_dlopen_self" = xyes; then
10290       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10291       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10293 if test "${lt_cv_dlopen_self_static+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296           if test "$cross_compiling" = yes; then :
10297   lt_cv_dlopen_self_static=cross
10298 else
10299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300   lt_status=$lt_dlunknown
10301   cat > conftest.$ac_ext <<EOF
10302 #line 10302 "configure"
10303 #include "confdefs.h"
10304
10305 #if HAVE_DLFCN_H
10306 #include <dlfcn.h>
10307 #endif
10308
10309 #include <stdio.h>
10310
10311 #ifdef RTLD_GLOBAL
10312 #  define LT_DLGLOBAL           RTLD_GLOBAL
10313 #else
10314 #  ifdef DL_GLOBAL
10315 #    define LT_DLGLOBAL         DL_GLOBAL
10316 #  else
10317 #    define LT_DLGLOBAL         0
10318 #  endif
10319 #endif
10320
10321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322    find out it does not work in some platform. */
10323 #ifndef LT_DLLAZY_OR_NOW
10324 #  ifdef RTLD_LAZY
10325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10326 #  else
10327 #    ifdef DL_LAZY
10328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10329 #    else
10330 #      ifdef RTLD_NOW
10331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10332 #      else
10333 #        ifdef DL_NOW
10334 #          define LT_DLLAZY_OR_NOW      DL_NOW
10335 #        else
10336 #          define LT_DLLAZY_OR_NOW      0
10337 #        endif
10338 #      endif
10339 #    endif
10340 #  endif
10341 #endif
10342
10343 #ifdef __cplusplus
10344 extern "C" void exit (int);
10345 #endif
10346
10347 void fnord() { int i=42;}
10348 int main ()
10349 {
10350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351   int status = $lt_dlunknown;
10352
10353   if (self)
10354     {
10355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357       /* dlclose (self); */
10358     }
10359   else
10360     puts (dlerror ());
10361
10362     exit (status);
10363 }
10364 EOF
10365   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366   (eval $ac_link) 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10370     (./conftest; exit; ) >&5 2>/dev/null
10371     lt_status=$?
10372     case x$lt_status in
10373       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10374       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10375       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10376     esac
10377   else :
10378     # compilation failed
10379     lt_cv_dlopen_self_static=no
10380   fi
10381 fi
10382 rm -fr conftest*
10383
10384
10385 fi
10386 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10387 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10388     fi
10389
10390     CPPFLAGS="$save_CPPFLAGS"
10391     LDFLAGS="$save_LDFLAGS"
10392     LIBS="$save_LIBS"
10393     ;;
10394   esac
10395
10396   case $lt_cv_dlopen_self in
10397   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10398   *) enable_dlopen_self=unknown ;;
10399   esac
10400
10401   case $lt_cv_dlopen_self_static in
10402   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10403   *) enable_dlopen_self_static=unknown ;;
10404   esac
10405 fi
10406
10407
10408 # Report which library types will actually be built
10409 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10411 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10412 echo "${ECHO_T}$can_build_shared" >&6; }
10413
10414 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10416 test "$can_build_shared" = "no" && enable_shared=no
10417
10418 # On AIX, shared libraries and static libraries use the same namespace, and
10419 # are all built from PIC.
10420 case $host_os in
10421 aix3*)
10422   test "$enable_shared" = yes && enable_static=no
10423   if test -n "$RANLIB"; then
10424     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10425     postinstall_cmds='$RANLIB $lib'
10426   fi
10427   ;;
10428
10429 aix[4-9]*)
10430   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10431     test "$enable_shared" = yes && enable_static=no
10432   fi
10433     ;;
10434 esac
10435 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10436 echo "${ECHO_T}$enable_shared" >&6; }
10437
10438 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10439 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10440 # Make sure either enable_shared or enable_static is yes.
10441 test "$enable_shared" = yes || enable_static=yes
10442 { echo "$as_me:$LINENO: result: $enable_static" >&5
10443 echo "${ECHO_T}$enable_static" >&6; }
10444
10445 # The else clause should only fire when bootstrapping the
10446 # libtool distribution, otherwise you forgot to ship ltmain.sh
10447 # with your package, and you will get complaints that there are
10448 # no rules to generate ltmain.sh.
10449 if test -f "$ltmain"; then
10450   # See if we are running on zsh, and set the options which allow our commands through
10451   # without removal of \ escapes.
10452   if test -n "${ZSH_VERSION+set}" ; then
10453     setopt NO_GLOB_SUBST
10454   fi
10455   # Now quote all the things that may contain metacharacters while being
10456   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10457   # variables and quote the copies for generation of the libtool script.
10458   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10459     SED SHELL STRIP \
10460     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10461     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10462     deplibs_check_method reload_flag reload_cmds need_locks \
10463     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10464     lt_cv_sys_global_symbol_to_c_name_address \
10465     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10466     old_postinstall_cmds old_postuninstall_cmds \
10467     compiler \
10468     CC \
10469     LD \
10470     lt_prog_compiler_wl \
10471     lt_prog_compiler_pic \
10472     lt_prog_compiler_static \
10473     lt_prog_compiler_no_builtin_flag \
10474     export_dynamic_flag_spec \
10475     thread_safe_flag_spec \
10476     whole_archive_flag_spec \
10477     enable_shared_with_static_runtimes \
10478     old_archive_cmds \
10479     old_archive_from_new_cmds \
10480     predep_objects \
10481     postdep_objects \
10482     predeps \
10483     postdeps \
10484     compiler_lib_search_path \
10485     compiler_lib_search_dirs \
10486     archive_cmds \
10487     archive_expsym_cmds \
10488     postinstall_cmds \
10489     postuninstall_cmds \
10490     old_archive_from_expsyms_cmds \
10491     allow_undefined_flag \
10492     no_undefined_flag \
10493     export_symbols_cmds \
10494     hardcode_libdir_flag_spec \
10495     hardcode_libdir_flag_spec_ld \
10496     hardcode_libdir_separator \
10497     hardcode_automatic \
10498     module_cmds \
10499     module_expsym_cmds \
10500     lt_cv_prog_compiler_c_o \
10501     fix_srcfile_path \
10502     exclude_expsyms \
10503     include_expsyms; do
10504
10505     case $var in
10506     old_archive_cmds | \
10507     old_archive_from_new_cmds | \
10508     archive_cmds | \
10509     archive_expsym_cmds | \
10510     module_cmds | \
10511     module_expsym_cmds | \
10512     old_archive_from_expsyms_cmds | \
10513     export_symbols_cmds | \
10514     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10515     postinstall_cmds | postuninstall_cmds | \
10516     old_postinstall_cmds | old_postuninstall_cmds | \
10517     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10518       # Double-quote double-evaled strings.
10519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10520       ;;
10521     *)
10522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10523       ;;
10524     esac
10525   done
10526
10527   case $lt_echo in
10528   *'\$0 --fallback-echo"')
10529     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10530     ;;
10531   esac
10532
10533 cfgfile="${ofile}T"
10534   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10535   $rm -f "$cfgfile"
10536   { echo "$as_me:$LINENO: creating $ofile" >&5
10537 echo "$as_me: creating $ofile" >&6;}
10538
10539   cat <<__EOF__ >> "$cfgfile"
10540 #! $SHELL
10541
10542 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10543 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10545 #
10546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10547 # Free Software Foundation, Inc.
10548 #
10549 # This file is part of GNU Libtool:
10550 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10551 #
10552 # This program is free software; you can redistribute it and/or modify
10553 # it under the terms of the GNU General Public License as published by
10554 # the Free Software Foundation; either version 2 of the License, or
10555 # (at your option) any later version.
10556 #
10557 # This program is distributed in the hope that it will be useful, but
10558 # WITHOUT ANY WARRANTY; without even the implied warranty of
10559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10560 # General Public License for more details.
10561 #
10562 # You should have received a copy of the GNU General Public License
10563 # along with this program; if not, write to the Free Software
10564 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10565 #
10566 # As a special exception to the GNU General Public License, if you
10567 # distribute this file as part of a program that contains a
10568 # configuration script generated by Autoconf, you may include it under
10569 # the same distribution terms that you use for the rest of that program.
10570
10571 # A sed program that does not truncate output.
10572 SED=$lt_SED
10573
10574 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10575 Xsed="$SED -e 1s/^X//"
10576
10577 # The HP-UX ksh and POSIX shell print the target directory to stdout
10578 # if CDPATH is set.
10579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10580
10581 # The names of the tagged configurations supported by this script.
10582 available_tags=
10583
10584 # ### BEGIN LIBTOOL CONFIG
10585
10586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10587
10588 # Shell to use when invoking shell scripts.
10589 SHELL=$lt_SHELL
10590
10591 # Whether or not to build shared libraries.
10592 build_libtool_libs=$enable_shared
10593
10594 # Whether or not to build static libraries.
10595 build_old_libs=$enable_static
10596
10597 # Whether or not to add -lc for building shared libraries.
10598 build_libtool_need_lc=$archive_cmds_need_lc
10599
10600 # Whether or not to disallow shared libs when runtime libs are static
10601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10602
10603 # Whether or not to optimize for fast installation.
10604 fast_install=$enable_fast_install
10605
10606 # The host system.
10607 host_alias=$host_alias
10608 host=$host
10609 host_os=$host_os
10610
10611 # The build system.
10612 build_alias=$build_alias
10613 build=$build
10614 build_os=$build_os
10615
10616 # An echo program that does not interpret backslashes.
10617 echo=$lt_echo
10618
10619 # The archiver.
10620 AR=$lt_AR
10621 AR_FLAGS=$lt_AR_FLAGS
10622
10623 # A C compiler.
10624 LTCC=$lt_LTCC
10625
10626 # LTCC compiler flags.
10627 LTCFLAGS=$lt_LTCFLAGS
10628
10629 # A language-specific compiler.
10630 CC=$lt_compiler
10631
10632 # Is the compiler the GNU C compiler?
10633 with_gcc=$GCC
10634
10635 # An ERE matcher.
10636 EGREP=$lt_EGREP
10637
10638 # The linker used to build libraries.
10639 LD=$lt_LD
10640
10641 # Whether we need hard or soft links.
10642 LN_S=$lt_LN_S
10643
10644 # A BSD-compatible nm program.
10645 NM=$lt_NM
10646
10647 # A symbol stripping program
10648 STRIP=$lt_STRIP
10649
10650 # Used to examine libraries when file_magic_cmd begins "file"
10651 MAGIC_CMD=$MAGIC_CMD
10652
10653 # Used on cygwin: DLL creation program.
10654 DLLTOOL="$DLLTOOL"
10655
10656 # Used on cygwin: object dumper.
10657 OBJDUMP="$OBJDUMP"
10658
10659 # Used on cygwin: assembler.
10660 AS="$AS"
10661
10662 # The name of the directory that contains temporary libtool files.
10663 objdir=$objdir
10664
10665 # How to create reloadable object files.
10666 reload_flag=$lt_reload_flag
10667 reload_cmds=$lt_reload_cmds
10668
10669 # How to pass a linker flag through the compiler.
10670 wl=$lt_lt_prog_compiler_wl
10671
10672 # Object file suffix (normally "o").
10673 objext="$ac_objext"
10674
10675 # Old archive suffix (normally "a").
10676 libext="$libext"
10677
10678 # Shared library suffix (normally ".so").
10679 shrext_cmds='$shrext_cmds'
10680
10681 # Executable file suffix (normally "").
10682 exeext="$exeext"
10683
10684 # Additional compiler flags for building library objects.
10685 pic_flag=$lt_lt_prog_compiler_pic
10686 pic_mode=$pic_mode
10687
10688 # What is the maximum length of a command?
10689 max_cmd_len=$lt_cv_sys_max_cmd_len
10690
10691 # Does compiler simultaneously support -c and -o options?
10692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10693
10694 # Must we lock files when doing compilation?
10695 need_locks=$lt_need_locks
10696
10697 # Do we need the lib prefix for modules?
10698 need_lib_prefix=$need_lib_prefix
10699
10700 # Do we need a version for libraries?
10701 need_version=$need_version
10702
10703 # Whether dlopen is supported.
10704 dlopen_support=$enable_dlopen
10705
10706 # Whether dlopen of programs is supported.
10707 dlopen_self=$enable_dlopen_self
10708
10709 # Whether dlopen of statically linked programs is supported.
10710 dlopen_self_static=$enable_dlopen_self_static
10711
10712 # Compiler flag to prevent dynamic linking.
10713 link_static_flag=$lt_lt_prog_compiler_static
10714
10715 # Compiler flag to turn off builtin functions.
10716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10717
10718 # Compiler flag to allow reflexive dlopens.
10719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10720
10721 # Compiler flag to generate shared objects directly from archives.
10722 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10723
10724 # Compiler flag to generate thread-safe objects.
10725 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10726
10727 # Library versioning type.
10728 version_type=$version_type
10729
10730 # Format of library name prefix.
10731 libname_spec=$lt_libname_spec
10732
10733 # List of archive names.  First name is the real one, the rest are links.
10734 # The last name is the one that the linker finds with -lNAME.
10735 library_names_spec=$lt_library_names_spec
10736
10737 # The coded name of the library, if different from the real name.
10738 soname_spec=$lt_soname_spec
10739
10740 # Commands used to build and install an old-style archive.
10741 RANLIB=$lt_RANLIB
10742 old_archive_cmds=$lt_old_archive_cmds
10743 old_postinstall_cmds=$lt_old_postinstall_cmds
10744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10745
10746 # Create an old-style archive from a shared archive.
10747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10748
10749 # Create a temporary old-style archive to link instead of a shared archive.
10750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10751
10752 # Commands used to build and install a shared archive.
10753 archive_cmds=$lt_archive_cmds
10754 archive_expsym_cmds=$lt_archive_expsym_cmds
10755 postinstall_cmds=$lt_postinstall_cmds
10756 postuninstall_cmds=$lt_postuninstall_cmds
10757
10758 # Commands used to build a loadable module (assumed same as above if empty)
10759 module_cmds=$lt_module_cmds
10760 module_expsym_cmds=$lt_module_expsym_cmds
10761
10762 # Commands to strip libraries.
10763 old_striplib=$lt_old_striplib
10764 striplib=$lt_striplib
10765
10766 # Dependencies to place before the objects being linked to create a
10767 # shared library.
10768 predep_objects=$lt_predep_objects
10769
10770 # Dependencies to place after the objects being linked to create a
10771 # shared library.
10772 postdep_objects=$lt_postdep_objects
10773
10774 # Dependencies to place before the objects being linked to create a
10775 # shared library.
10776 predeps=$lt_predeps
10777
10778 # Dependencies to place after the objects being linked to create a
10779 # shared library.
10780 postdeps=$lt_postdeps
10781
10782 # The directories searched by this compiler when creating a shared
10783 # library
10784 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10785
10786 # The library search path used internally by the compiler when linking
10787 # a shared library.
10788 compiler_lib_search_path=$lt_compiler_lib_search_path
10789
10790 # Method to check whether dependent libraries are shared objects.
10791 deplibs_check_method=$lt_deplibs_check_method
10792
10793 # Command to use when deplibs_check_method == file_magic.
10794 file_magic_cmd=$lt_file_magic_cmd
10795
10796 # Flag that allows shared libraries with undefined symbols to be built.
10797 allow_undefined_flag=$lt_allow_undefined_flag
10798
10799 # Flag that forces no undefined symbols.
10800 no_undefined_flag=$lt_no_undefined_flag
10801
10802 # Commands used to finish a libtool library installation in a directory.
10803 finish_cmds=$lt_finish_cmds
10804
10805 # Same as above, but a single script fragment to be evaled but not shown.
10806 finish_eval=$lt_finish_eval
10807
10808 # Take the output of nm and produce a listing of raw symbols and C names.
10809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10810
10811 # Transform the output of nm in a proper C declaration
10812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10813
10814 # Transform the output of nm in a C name address pair
10815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10816
10817 # This is the shared library runtime path variable.
10818 runpath_var=$runpath_var
10819
10820 # This is the shared library path variable.
10821 shlibpath_var=$shlibpath_var
10822
10823 # Is shlibpath searched before the hard-coded library search path?
10824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10825
10826 # How to hardcode a shared library path into an executable.
10827 hardcode_action=$hardcode_action
10828
10829 # Whether we should hardcode library paths into libraries.
10830 hardcode_into_libs=$hardcode_into_libs
10831
10832 # Flag to hardcode \$libdir into a binary during linking.
10833 # This must work even if \$libdir does not exist.
10834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10835
10836 # If ld is used when linking, flag to hardcode \$libdir into
10837 # a binary during linking. This must work even if \$libdir does
10838 # not exist.
10839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10840
10841 # Whether we need a single -rpath flag with a separated argument.
10842 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10843
10844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10845 # resulting binary.
10846 hardcode_direct=$hardcode_direct
10847
10848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10849 # resulting binary.
10850 hardcode_minus_L=$hardcode_minus_L
10851
10852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10853 # the resulting binary.
10854 hardcode_shlibpath_var=$hardcode_shlibpath_var
10855
10856 # Set to yes if building a shared library automatically hardcodes DIR into the library
10857 # and all subsequent libraries and executables linked against it.
10858 hardcode_automatic=$hardcode_automatic
10859
10860 # Variables whose values should be saved in libtool wrapper scripts and
10861 # restored at relink time.
10862 variables_saved_for_relink="$variables_saved_for_relink"
10863
10864 # Whether libtool must link a program against all its dependency libraries.
10865 link_all_deplibs=$link_all_deplibs
10866
10867 # Compile-time system search path for libraries
10868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10869
10870 # Run-time system search path for libraries
10871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10872
10873 # Fix the shell variable \$srcfile for the compiler.
10874 fix_srcfile_path=$lt_fix_srcfile_path
10875
10876 # Set to yes if exported symbols are required.
10877 always_export_symbols=$always_export_symbols
10878
10879 # The commands to list exported symbols.
10880 export_symbols_cmds=$lt_export_symbols_cmds
10881
10882 # The commands to extract the exported symbol list from a shared archive.
10883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10884
10885 # Symbols that should not be listed in the preloaded symbols.
10886 exclude_expsyms=$lt_exclude_expsyms
10887
10888 # Symbols that must always be exported.
10889 include_expsyms=$lt_include_expsyms
10890
10891 # ### END LIBTOOL CONFIG
10892
10893 __EOF__
10894
10895
10896   case $host_os in
10897   aix3*)
10898     cat <<\EOF >> "$cfgfile"
10899
10900 # AIX sometimes has problems with the GCC collect2 program.  For some
10901 # reason, if we set the COLLECT_NAMES environment variable, the problems
10902 # vanish in a puff of smoke.
10903 if test "X${COLLECT_NAMES+set}" != Xset; then
10904   COLLECT_NAMES=
10905   export COLLECT_NAMES
10906 fi
10907 EOF
10908     ;;
10909   esac
10910
10911   # We use sed instead of cat because bash on DJGPP gets confused if
10912   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10913   # text mode, it properly converts lines to CR/LF.  This bash problem
10914   # is reportedly fixed, but why not run on old versions too?
10915   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10916
10917   mv -f "$cfgfile" "$ofile" || \
10918     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10919   chmod +x "$ofile"
10920
10921 else
10922   # If there is no Makefile yet, we rely on a make rule to execute
10923   # `config.status --recheck' to rerun these tests and create the
10924   # libtool script then.
10925   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10926   if test -f "$ltmain_in"; then
10927     test -f Makefile && make "$ltmain"
10928   fi
10929 fi
10930
10931
10932 ac_ext=c
10933 ac_cpp='$CPP $CPPFLAGS'
10934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10937
10938 CC="$lt_save_CC"
10939
10940
10941 # Check whether --with-tags was given.
10942 if test "${with_tags+set}" = set; then
10943   withval=$with_tags; tagnames="$withval"
10944 fi
10945
10946
10947 if test -f "$ltmain" && test -n "$tagnames"; then
10948   if test ! -f "${ofile}"; then
10949     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10950 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10951   fi
10952
10953   if test -z "$LTCC"; then
10954     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10955     if test -z "$LTCC"; then
10956       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10957 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10958     else
10959       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10960 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10961     fi
10962   fi
10963   if test -z "$LTCFLAGS"; then
10964     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10965   fi
10966
10967   # Extract list of available tagged configurations in $ofile.
10968   # Note that this assumes the entire list is on one line.
10969   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10970
10971   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10972   for tagname in $tagnames; do
10973     IFS="$lt_save_ifs"
10974     # Check whether tagname contains only valid characters
10975     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10976     "") ;;
10977     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10978 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10979    { (exit 1); exit 1; }; }
10980         ;;
10981     esac
10982
10983     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10984     then
10985       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10986 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10987    { (exit 1); exit 1; }; }
10988     fi
10989
10990     # Update the list of available tags.
10991     if test -n "$tagname"; then
10992       echo appending configuration tag \"$tagname\" to $ofile
10993
10994       case $tagname in
10995       CXX)
10996         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10997             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10998             (test "X$CXX" != "Xg++"))) ; then
10999           ac_ext=cpp
11000 ac_cpp='$CXXCPP $CPPFLAGS'
11001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11004
11005
11006
11007
11008 archive_cmds_need_lc_CXX=no
11009 allow_undefined_flag_CXX=
11010 always_export_symbols_CXX=no
11011 archive_expsym_cmds_CXX=
11012 export_dynamic_flag_spec_CXX=
11013 hardcode_direct_CXX=no
11014 hardcode_libdir_flag_spec_CXX=
11015 hardcode_libdir_flag_spec_ld_CXX=
11016 hardcode_libdir_separator_CXX=
11017 hardcode_minus_L_CXX=no
11018 hardcode_shlibpath_var_CXX=unsupported
11019 hardcode_automatic_CXX=no
11020 module_cmds_CXX=
11021 module_expsym_cmds_CXX=
11022 link_all_deplibs_CXX=unknown
11023 old_archive_cmds_CXX=$old_archive_cmds
11024 no_undefined_flag_CXX=
11025 whole_archive_flag_spec_CXX=
11026 enable_shared_with_static_runtimes_CXX=no
11027
11028 # Dependencies to place before and after the object being linked:
11029 predep_objects_CXX=
11030 postdep_objects_CXX=
11031 predeps_CXX=
11032 postdeps_CXX=
11033 compiler_lib_search_path_CXX=
11034 compiler_lib_search_dirs_CXX=
11035
11036 # Source file extension for C++ test sources.
11037 ac_ext=cpp
11038
11039 # Object file extension for compiled C++ test sources.
11040 objext=o
11041 objext_CXX=$objext
11042
11043 # Code to be used in simple compile tests
11044 lt_simple_compile_test_code="int some_variable = 0;"
11045
11046 # Code to be used in simple link tests
11047 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11048
11049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11050
11051 # If no C compiler was specified, use CC.
11052 LTCC=${LTCC-"$CC"}
11053
11054 # If no C compiler flags were specified, use CFLAGS.
11055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11056
11057 # Allow CC to be a program name with arguments.
11058 compiler=$CC
11059
11060
11061 # save warnings/boilerplate of simple test code
11062 ac_outfile=conftest.$ac_objext
11063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11065 _lt_compiler_boilerplate=`cat conftest.err`
11066 $rm conftest*
11067
11068 ac_outfile=conftest.$ac_objext
11069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11071 _lt_linker_boilerplate=`cat conftest.err`
11072 $rm -r conftest*
11073
11074
11075 # Allow CC to be a program name with arguments.
11076 lt_save_CC=$CC
11077 lt_save_LD=$LD
11078 lt_save_GCC=$GCC
11079 GCC=$GXX
11080 lt_save_with_gnu_ld=$with_gnu_ld
11081 lt_save_path_LD=$lt_cv_path_LD
11082 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11083   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11084 else
11085   $as_unset lt_cv_prog_gnu_ld
11086 fi
11087 if test -n "${lt_cv_path_LDCXX+set}"; then
11088   lt_cv_path_LD=$lt_cv_path_LDCXX
11089 else
11090   $as_unset lt_cv_path_LD
11091 fi
11092 test -z "${LDCXX+set}" || LD=$LDCXX
11093 CC=${CXX-"c++"}
11094 compiler=$CC
11095 compiler_CXX=$CC
11096 for cc_temp in $compiler""; do
11097   case $cc_temp in
11098     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11099     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11100     \-*) ;;
11101     *) break;;
11102   esac
11103 done
11104 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11105
11106
11107 # We don't want -fno-exception wen compiling C++ code, so set the
11108 # no_builtin_flag separately
11109 if test "$GXX" = yes; then
11110   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11111 else
11112   lt_prog_compiler_no_builtin_flag_CXX=
11113 fi
11114
11115 if test "$GXX" = yes; then
11116   # Set up default GNU C++ configuration
11117
11118
11119 # Check whether --with-gnu-ld was given.
11120 if test "${with_gnu_ld+set}" = set; then
11121   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11122 else
11123   with_gnu_ld=no
11124 fi
11125
11126 ac_prog=ld
11127 if test "$GCC" = yes; then
11128   # Check if gcc -print-prog-name=ld gives a path.
11129   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11131   case $host in
11132   *-*-mingw*)
11133     # gcc leaves a trailing carriage return which upsets mingw
11134     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11135   *)
11136     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11137   esac
11138   case $ac_prog in
11139     # Accept absolute paths.
11140     [\\/]* | ?:[\\/]*)
11141       re_direlt='/[^/][^/]*/\.\./'
11142       # Canonicalize the pathname of ld
11143       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11144       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11145         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11146       done
11147       test -z "$LD" && LD="$ac_prog"
11148       ;;
11149   "")
11150     # If it fails, then pretend we aren't using GCC.
11151     ac_prog=ld
11152     ;;
11153   *)
11154     # If it is relative, then search for the first ld in PATH.
11155     with_gnu_ld=unknown
11156     ;;
11157   esac
11158 elif test "$with_gnu_ld" = yes; then
11159   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11161 else
11162   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11164 fi
11165 if test "${lt_cv_path_LD+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   if test -z "$LD"; then
11169   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11170   for ac_dir in $PATH; do
11171     IFS="$lt_save_ifs"
11172     test -z "$ac_dir" && ac_dir=.
11173     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11174       lt_cv_path_LD="$ac_dir/$ac_prog"
11175       # Check to see if the program is GNU ld.  I'd rather use --version,
11176       # but apparently some variants of GNU ld only accept -v.
11177       # Break only if it was the GNU/non-GNU ld that we prefer.
11178       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11179       *GNU* | *'with BFD'*)
11180         test "$with_gnu_ld" != no && break
11181         ;;
11182       *)
11183         test "$with_gnu_ld" != yes && break
11184         ;;
11185       esac
11186     fi
11187   done
11188   IFS="$lt_save_ifs"
11189 else
11190   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11191 fi
11192 fi
11193
11194 LD="$lt_cv_path_LD"
11195 if test -n "$LD"; then
11196   { echo "$as_me:$LINENO: result: $LD" >&5
11197 echo "${ECHO_T}$LD" >&6; }
11198 else
11199   { echo "$as_me:$LINENO: result: no" >&5
11200 echo "${ECHO_T}no" >&6; }
11201 fi
11202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11204    { (exit 1); exit 1; }; }
11205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11208   echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11211 case `$LD -v 2>&1 </dev/null` in
11212 *GNU* | *'with BFD'*)
11213   lt_cv_prog_gnu_ld=yes
11214   ;;
11215 *)
11216   lt_cv_prog_gnu_ld=no
11217   ;;
11218 esac
11219 fi
11220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11222 with_gnu_ld=$lt_cv_prog_gnu_ld
11223
11224
11225
11226   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11227   # archiving commands below assume that GNU ld is being used.
11228   if test "$with_gnu_ld" = yes; then
11229     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11230     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'
11231
11232     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11233     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11234
11235     # If archive_cmds runs LD, not CC, wlarc should be empty
11236     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11237     #     investigate it a little bit more. (MM)
11238     wlarc='${wl}'
11239
11240     # ancient GNU ld didn't support --whole-archive et. al.
11241     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11242         grep 'no-whole-archive' > /dev/null; then
11243       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11244     else
11245       whole_archive_flag_spec_CXX=
11246     fi
11247   else
11248     with_gnu_ld=no
11249     wlarc=
11250
11251     # A generic and very simple default shared library creation
11252     # command for GNU C++ for the case where it uses the native
11253     # linker, instead of GNU ld.  If possible, this setting should
11254     # overridden to take advantage of the native linker features on
11255     # the platform it is being used on.
11256     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11257   fi
11258
11259   # Commands to make compiler produce verbose output that lists
11260   # what "hidden" libraries, object files and flags are used when
11261   # linking a shared library.
11262   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11263
11264 else
11265   GXX=no
11266   with_gnu_ld=no
11267   wlarc=
11268 fi
11269
11270 # PORTME: fill in a description of your system's C++ link characteristics
11271 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11273 ld_shlibs_CXX=yes
11274 case $host_os in
11275   aix3*)
11276     # FIXME: insert proper C++ library support
11277     ld_shlibs_CXX=no
11278     ;;
11279   aix[4-9]*)
11280     if test "$host_cpu" = ia64; then
11281       # On IA64, the linker does run time linking by default, so we don't
11282       # have to do anything special.
11283       aix_use_runtimelinking=no
11284       exp_sym_flag='-Bexport'
11285       no_entry_flag=""
11286     else
11287       aix_use_runtimelinking=no
11288
11289       # Test if we are trying to use run time linking or normal
11290       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11291       # need to do runtime linking.
11292       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11293         for ld_flag in $LDFLAGS; do
11294           case $ld_flag in
11295           *-brtl*)
11296             aix_use_runtimelinking=yes
11297             break
11298             ;;
11299           esac
11300         done
11301         ;;
11302       esac
11303
11304       exp_sym_flag='-bexport'
11305       no_entry_flag='-bnoentry'
11306     fi
11307
11308     # When large executables or shared objects are built, AIX ld can
11309     # have problems creating the table of contents.  If linking a library
11310     # or program results in "error TOC overflow" add -mminimal-toc to
11311     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11312     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11313
11314     archive_cmds_CXX=''
11315     hardcode_direct_CXX=yes
11316     hardcode_libdir_separator_CXX=':'
11317     link_all_deplibs_CXX=yes
11318
11319     if test "$GXX" = yes; then
11320       case $host_os in aix4.[012]|aix4.[012].*)
11321       # We only want to do this on AIX 4.2 and lower, the check
11322       # below for broken collect2 doesn't work under 4.3+
11323         collect2name=`${CC} -print-prog-name=collect2`
11324         if test -f "$collect2name" && \
11325            strings "$collect2name" | grep resolve_lib_name >/dev/null
11326         then
11327           # We have reworked collect2
11328           :
11329         else
11330           # We have old collect2
11331           hardcode_direct_CXX=unsupported
11332           # It fails to find uninstalled libraries when the uninstalled
11333           # path is not listed in the libpath.  Setting hardcode_minus_L
11334           # to unsupported forces relinking
11335           hardcode_minus_L_CXX=yes
11336           hardcode_libdir_flag_spec_CXX='-L$libdir'
11337           hardcode_libdir_separator_CXX=
11338         fi
11339         ;;
11340       esac
11341       shared_flag='-shared'
11342       if test "$aix_use_runtimelinking" = yes; then
11343         shared_flag="$shared_flag "'${wl}-G'
11344       fi
11345     else
11346       # not using gcc
11347       if test "$host_cpu" = ia64; then
11348         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11349         # chokes on -Wl,-G. The following line is correct:
11350         shared_flag='-G'
11351       else
11352         if test "$aix_use_runtimelinking" = yes; then
11353           shared_flag='${wl}-G'
11354         else
11355           shared_flag='${wl}-bM:SRE'
11356         fi
11357       fi
11358     fi
11359
11360     # It seems that -bexpall does not export symbols beginning with
11361     # underscore (_), so it is better to generate a list of symbols to export.
11362     always_export_symbols_CXX=yes
11363     if test "$aix_use_runtimelinking" = yes; then
11364       # Warning - without using the other runtime loading flags (-brtl),
11365       # -berok will link without error, but may produce a broken library.
11366       allow_undefined_flag_CXX='-berok'
11367       # Determine the default libpath from the value encoded in an empty executable.
11368       cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374
11375 int
11376 main ()
11377 {
11378
11379   ;
11380   return 0;
11381 }
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (ac_try="$ac_link"
11385 case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_link") 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } && {
11397          test -z "$ac_cxx_werror_flag" ||
11398          test ! -s conftest.err
11399        } && test -s conftest$ac_exeext &&
11400        $as_test_x conftest$ac_exeext; then
11401
11402 lt_aix_libpath_sed='
11403     /Import File Strings/,/^$/ {
11404         /^0/ {
11405             s/^0  *\(.*\)$/\1/
11406             p
11407         }
11408     }'
11409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11410 # Check for a 64-bit object if we didn't find anything.
11411 if test -z "$aix_libpath"; then
11412   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11413 fi
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418
11419 fi
11420
11421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11422       conftest$ac_exeext conftest.$ac_ext
11423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11424
11425       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11426
11427       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"
11428      else
11429       if test "$host_cpu" = ia64; then
11430         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11431         allow_undefined_flag_CXX="-z nodefs"
11432         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"
11433       else
11434         # Determine the default libpath from the value encoded in an empty executable.
11435         cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441
11442 int
11443 main ()
11444 {
11445
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (ac_try="$ac_link"
11452 case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457   (eval "$ac_link") 2>conftest.er1
11458   ac_status=$?
11459   grep -v '^ *+' conftest.er1 >conftest.err
11460   rm -f conftest.er1
11461   cat conftest.err >&5
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } && {
11464          test -z "$ac_cxx_werror_flag" ||
11465          test ! -s conftest.err
11466        } && test -s conftest$ac_exeext &&
11467        $as_test_x conftest$ac_exeext; then
11468
11469 lt_aix_libpath_sed='
11470     /Import File Strings/,/^$/ {
11471         /^0/ {
11472             s/^0  *\(.*\)$/\1/
11473             p
11474         }
11475     }'
11476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11477 # Check for a 64-bit object if we didn't find anything.
11478 if test -z "$aix_libpath"; then
11479   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11480 fi
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11489       conftest$ac_exeext conftest.$ac_ext
11490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11491
11492         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11493         # Warning - without using the other run time loading flags,
11494         # -berok will link without error, but may produce a broken library.
11495         no_undefined_flag_CXX=' ${wl}-bernotok'
11496         allow_undefined_flag_CXX=' ${wl}-berok'
11497         # Exported symbols can be pulled into shared objects from archives
11498         whole_archive_flag_spec_CXX='$convenience'
11499         archive_cmds_need_lc_CXX=yes
11500         # This is similar to how AIX traditionally builds its shared libraries.
11501         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'
11502       fi
11503     fi
11504     ;;
11505
11506   beos*)
11507     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11508       allow_undefined_flag_CXX=unsupported
11509       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11510       # support --undefined.  This deserves some investigation.  FIXME
11511       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512     else
11513       ld_shlibs_CXX=no
11514     fi
11515     ;;
11516
11517   chorus*)
11518     case $cc_basename in
11519       *)
11520         # FIXME: insert proper C++ library support
11521         ld_shlibs_CXX=no
11522         ;;
11523     esac
11524     ;;
11525
11526   cygwin* | mingw* | pw32*)
11527     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11528     # as there is no search path for DLLs.
11529     hardcode_libdir_flag_spec_CXX='-L$libdir'
11530     allow_undefined_flag_CXX=unsupported
11531     always_export_symbols_CXX=no
11532     enable_shared_with_static_runtimes_CXX=yes
11533
11534     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11535       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'
11536       # If the export-symbols file already is a .def file (1st line
11537       # is EXPORTS), use it as is; otherwise, prepend...
11538       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11539         cp $export_symbols $output_objdir/$soname.def;
11540       else
11541         echo EXPORTS > $output_objdir/$soname.def;
11542         cat $export_symbols >> $output_objdir/$soname.def;
11543       fi~
11544       $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'
11545     else
11546       ld_shlibs_CXX=no
11547     fi
11548   ;;
11549       darwin* | rhapsody*)
11550       archive_cmds_need_lc_CXX=no
11551       hardcode_direct_CXX=no
11552       hardcode_automatic_CXX=yes
11553       hardcode_shlibpath_var_CXX=unsupported
11554       whole_archive_flag_spec_CXX=''
11555       link_all_deplibs_CXX=yes
11556       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11557       if test "$GXX" = yes ; then
11558       output_verbose_link_cmd='echo'
11559       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}"
11560       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11561       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}"
11562       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}"
11563       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11564         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}"
11565         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}"
11566       fi
11567       else
11568       case $cc_basename in
11569         xlc*)
11570          output_verbose_link_cmd='echo'
11571           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'
11572           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11573           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11574           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}'
11575           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}'
11576           ;;
11577        *)
11578          ld_shlibs_CXX=no
11579           ;;
11580       esac
11581       fi
11582         ;;
11583
11584   dgux*)
11585     case $cc_basename in
11586       ec++*)
11587         # FIXME: insert proper C++ library support
11588         ld_shlibs_CXX=no
11589         ;;
11590       ghcx*)
11591         # Green Hills C++ Compiler
11592         # FIXME: insert proper C++ library support
11593         ld_shlibs_CXX=no
11594         ;;
11595       *)
11596         # FIXME: insert proper C++ library support
11597         ld_shlibs_CXX=no
11598         ;;
11599     esac
11600     ;;
11601   freebsd[12]*)
11602     # C++ shared libraries reported to be fairly broken before switch to ELF
11603     ld_shlibs_CXX=no
11604     ;;
11605   freebsd-elf*)
11606     archive_cmds_need_lc_CXX=no
11607     ;;
11608   freebsd* | dragonfly*)
11609     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11610     # conventions
11611     ld_shlibs_CXX=yes
11612     ;;
11613   gnu*)
11614     ;;
11615   hpux9*)
11616     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11617     hardcode_libdir_separator_CXX=:
11618     export_dynamic_flag_spec_CXX='${wl}-E'
11619     hardcode_direct_CXX=yes
11620     hardcode_minus_L_CXX=yes # Not in the search PATH,
11621                                 # but as the default
11622                                 # location of the library.
11623
11624     case $cc_basename in
11625     CC*)
11626       # FIXME: insert proper C++ library support
11627       ld_shlibs_CXX=no
11628       ;;
11629     aCC*)
11630       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'
11631       # Commands to make compiler produce verbose output that lists
11632       # what "hidden" libraries, object files and flags are used when
11633       # linking a shared library.
11634       #
11635       # There doesn't appear to be a way to prevent this compiler from
11636       # explicitly linking system object files so we need to strip them
11637       # from the output so that they don't get included in the library
11638       # dependencies.
11639       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'
11640       ;;
11641     *)
11642       if test "$GXX" = yes; then
11643         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'
11644       else
11645         # FIXME: insert proper C++ library support
11646         ld_shlibs_CXX=no
11647       fi
11648       ;;
11649     esac
11650     ;;
11651   hpux10*|hpux11*)
11652     if test $with_gnu_ld = no; then
11653       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11654       hardcode_libdir_separator_CXX=:
11655
11656       case $host_cpu in
11657       hppa*64*|ia64*) ;;
11658       *)
11659         export_dynamic_flag_spec_CXX='${wl}-E'
11660         ;;
11661       esac
11662     fi
11663     case $host_cpu in
11664     hppa*64*|ia64*)
11665       hardcode_direct_CXX=no
11666       hardcode_shlibpath_var_CXX=no
11667       ;;
11668     *)
11669       hardcode_direct_CXX=yes
11670       hardcode_minus_L_CXX=yes # Not in the search PATH,
11671                                               # but as the default
11672                                               # location of the library.
11673       ;;
11674     esac
11675
11676     case $cc_basename in
11677       CC*)
11678         # FIXME: insert proper C++ library support
11679         ld_shlibs_CXX=no
11680         ;;
11681       aCC*)
11682         case $host_cpu in
11683         hppa*64*)
11684           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11685           ;;
11686         ia64*)
11687           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11688           ;;
11689         *)
11690           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691           ;;
11692         esac
11693         # Commands to make compiler produce verbose output that lists
11694         # what "hidden" libraries, object files and flags are used when
11695         # linking a shared library.
11696         #
11697         # There doesn't appear to be a way to prevent this compiler from
11698         # explicitly linking system object files so we need to strip them
11699         # from the output so that they don't get included in the library
11700         # dependencies.
11701         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'
11702         ;;
11703       *)
11704         if test "$GXX" = yes; then
11705           if test $with_gnu_ld = no; then
11706             case $host_cpu in
11707             hppa*64*)
11708               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11709               ;;
11710             ia64*)
11711               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712               ;;
11713             *)
11714               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'
11715               ;;
11716             esac
11717           fi
11718         else
11719           # FIXME: insert proper C++ library support
11720           ld_shlibs_CXX=no
11721         fi
11722         ;;
11723     esac
11724     ;;
11725   interix[3-9]*)
11726     hardcode_direct_CXX=no
11727     hardcode_shlibpath_var_CXX=no
11728     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11729     export_dynamic_flag_spec_CXX='${wl}-E'
11730     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11731     # Instead, shared libraries are loaded at an image base (0x10000000 by
11732     # default) and relocated if they conflict, which is a slow very memory
11733     # consuming and fragmenting process.  To avoid this, we pick a random,
11734     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11735     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11736     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'
11737     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'
11738     ;;
11739   irix5* | irix6*)
11740     case $cc_basename in
11741       CC*)
11742         # SGI C++
11743         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'
11744
11745         # Archives containing C++ object files must be created using
11746         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11747         # necessary to make sure instantiated templates are included
11748         # in the archive.
11749         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11750         ;;
11751       *)
11752         if test "$GXX" = yes; then
11753           if test "$with_gnu_ld" = no; then
11754             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'
11755           else
11756             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'
11757           fi
11758         fi
11759         link_all_deplibs_CXX=yes
11760         ;;
11761     esac
11762     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11763     hardcode_libdir_separator_CXX=:
11764     ;;
11765   linux* | k*bsd*-gnu)
11766     case $cc_basename in
11767       KCC*)
11768         # Kuck and Associates, Inc. (KAI) C++ Compiler
11769
11770         # KCC will only create a shared library if the output file
11771         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11772         # to its proper name (with version) after linking.
11773         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'
11774         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'
11775         # Commands to make compiler produce verbose output that lists
11776         # what "hidden" libraries, object files and flags are used when
11777         # linking a shared library.
11778         #
11779         # There doesn't appear to be a way to prevent this compiler from
11780         # explicitly linking system object files so we need to strip them
11781         # from the output so that they don't get included in the library
11782         # dependencies.
11783         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'
11784
11785         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11786         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11787
11788         # Archives containing C++ object files must be created using
11789         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11790         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11791         ;;
11792       icpc*)
11793         # Intel C++
11794         with_gnu_ld=yes
11795         # version 8.0 and above of icpc choke on multiply defined symbols
11796         # if we add $predep_objects and $postdep_objects, however 7.1 and
11797         # earlier do not add the objects themselves.
11798         case `$CC -V 2>&1` in
11799         *"Version 7."*)
11800           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11801           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'
11802           ;;
11803         *)  # Version 8.0 or newer
11804           tmp_idyn=
11805           case $host_cpu in
11806             ia64*) tmp_idyn=' -i_dynamic';;
11807           esac
11808           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11809           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'
11810           ;;
11811         esac
11812         archive_cmds_need_lc_CXX=no
11813         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11815         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11816         ;;
11817       pgCC* | pgcpp*)
11818         # Portland Group C++ compiler
11819         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11820         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'
11821
11822         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11823         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11824         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'
11825         ;;
11826       cxx*)
11827         # Compaq C++
11828         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11829         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'
11830
11831         runpath_var=LD_RUN_PATH
11832         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11833         hardcode_libdir_separator_CXX=:
11834
11835         # Commands to make compiler produce verbose output that lists
11836         # what "hidden" libraries, object files and flags are used when
11837         # linking a shared library.
11838         #
11839         # There doesn't appear to be a way to prevent this compiler from
11840         # explicitly linking system object files so we need to strip them
11841         # from the output so that they don't get included in the library
11842         # dependencies.
11843         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'
11844         ;;
11845       *)
11846         case `$CC -V 2>&1 | sed 5q` in
11847         *Sun\ C*)
11848           # Sun C++ 5.9
11849           no_undefined_flag_CXX=' -zdefs'
11850           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11851           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'
11852           hardcode_libdir_flag_spec_CXX='-R$libdir'
11853           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'
11854
11855           # Not sure whether something based on
11856           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11857           # would be better.
11858           output_verbose_link_cmd='echo'
11859
11860           # Archives containing C++ object files must be created using
11861           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11862           # necessary to make sure instantiated templates are included
11863           # in the archive.
11864           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11865           ;;
11866         esac
11867         ;;
11868     esac
11869     ;;
11870   lynxos*)
11871     # FIXME: insert proper C++ library support
11872     ld_shlibs_CXX=no
11873     ;;
11874   m88k*)
11875     # FIXME: insert proper C++ library support
11876     ld_shlibs_CXX=no
11877     ;;
11878   mvs*)
11879     case $cc_basename in
11880       cxx*)
11881         # FIXME: insert proper C++ library support
11882         ld_shlibs_CXX=no
11883         ;;
11884       *)
11885         # FIXME: insert proper C++ library support
11886         ld_shlibs_CXX=no
11887         ;;
11888     esac
11889     ;;
11890   netbsd* | netbsdelf*-gnu)
11891     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11892       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11893       wlarc=
11894       hardcode_libdir_flag_spec_CXX='-R$libdir'
11895       hardcode_direct_CXX=yes
11896       hardcode_shlibpath_var_CXX=no
11897     fi
11898     # Workaround some broken pre-1.5 toolchains
11899     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11900     ;;
11901   openbsd2*)
11902     # C++ shared libraries are fairly broken
11903     ld_shlibs_CXX=no
11904     ;;
11905   openbsd*)
11906     if test -f /usr/libexec/ld.so; then
11907       hardcode_direct_CXX=yes
11908       hardcode_shlibpath_var_CXX=no
11909       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11910       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11911       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11912         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11913         export_dynamic_flag_spec_CXX='${wl}-E'
11914         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11915       fi
11916       output_verbose_link_cmd='echo'
11917     else
11918       ld_shlibs_CXX=no
11919     fi
11920     ;;
11921   osf3*)
11922     case $cc_basename in
11923       KCC*)
11924         # Kuck and Associates, Inc. (KAI) C++ Compiler
11925
11926         # KCC will only create a shared library if the output file
11927         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11928         # to its proper name (with version) after linking.
11929         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'
11930
11931         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11932         hardcode_libdir_separator_CXX=:
11933
11934         # Archives containing C++ object files must be created using
11935         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11936         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11937
11938         ;;
11939       RCC*)
11940         # Rational C++ 2.4.1
11941         # FIXME: insert proper C++ library support
11942         ld_shlibs_CXX=no
11943         ;;
11944       cxx*)
11945         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11946         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'
11947
11948         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11949         hardcode_libdir_separator_CXX=:
11950
11951         # Commands to make compiler produce verbose output that lists
11952         # what "hidden" libraries, object files and flags are used when
11953         # linking a shared library.
11954         #
11955         # There doesn't appear to be a way to prevent this compiler from
11956         # explicitly linking system object files so we need to strip them
11957         # from the output so that they don't get included in the library
11958         # dependencies.
11959         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'
11960         ;;
11961       *)
11962         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11963           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11964           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'
11965
11966           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11967           hardcode_libdir_separator_CXX=:
11968
11969           # Commands to make compiler produce verbose output that lists
11970           # what "hidden" libraries, object files and flags are used when
11971           # linking a shared library.
11972           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11973
11974         else
11975           # FIXME: insert proper C++ library support
11976           ld_shlibs_CXX=no
11977         fi
11978         ;;
11979     esac
11980     ;;
11981   osf4* | osf5*)
11982     case $cc_basename in
11983       KCC*)
11984         # Kuck and Associates, Inc. (KAI) C++ Compiler
11985
11986         # KCC will only create a shared library if the output file
11987         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11988         # to its proper name (with version) after linking.
11989         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'
11990
11991         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11992         hardcode_libdir_separator_CXX=:
11993
11994         # Archives containing C++ object files must be created using
11995         # the KAI C++ compiler.
11996         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11997         ;;
11998       RCC*)
11999         # Rational C++ 2.4.1
12000         # FIXME: insert proper C++ library support
12001         ld_shlibs_CXX=no
12002         ;;
12003       cxx*)
12004         allow_undefined_flag_CXX=' -expect_unresolved \*'
12005         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'
12006         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12007           echo "-hidden">> $lib.exp~
12008           $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~
12009           $rm $lib.exp'
12010
12011         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12012         hardcode_libdir_separator_CXX=:
12013
12014         # Commands to make compiler produce verbose output that lists
12015         # what "hidden" libraries, object files and flags are used when
12016         # linking a shared library.
12017         #
12018         # There doesn't appear to be a way to prevent this compiler from
12019         # explicitly linking system object files so we need to strip them
12020         # from the output so that they don't get included in the library
12021         # dependencies.
12022         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'
12023         ;;
12024       *)
12025         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12026           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12027          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'
12028
12029           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12030           hardcode_libdir_separator_CXX=:
12031
12032           # Commands to make compiler produce verbose output that lists
12033           # what "hidden" libraries, object files and flags are used when
12034           # linking a shared library.
12035           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12036
12037         else
12038           # FIXME: insert proper C++ library support
12039           ld_shlibs_CXX=no
12040         fi
12041         ;;
12042     esac
12043     ;;
12044   psos*)
12045     # FIXME: insert proper C++ library support
12046     ld_shlibs_CXX=no
12047     ;;
12048   sunos4*)
12049     case $cc_basename in
12050       CC*)
12051         # Sun C++ 4.x
12052         # FIXME: insert proper C++ library support
12053         ld_shlibs_CXX=no
12054         ;;
12055       lcc*)
12056         # Lucid
12057         # FIXME: insert proper C++ library support
12058         ld_shlibs_CXX=no
12059         ;;
12060       *)
12061         # FIXME: insert proper C++ library support
12062         ld_shlibs_CXX=no
12063         ;;
12064     esac
12065     ;;
12066   solaris*)
12067     case $cc_basename in
12068       CC*)
12069         # Sun C++ 4.2, 5.x and Centerline C++
12070         archive_cmds_need_lc_CXX=yes
12071         no_undefined_flag_CXX=' -zdefs'
12072         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12074         $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'
12075
12076         hardcode_libdir_flag_spec_CXX='-R$libdir'
12077         hardcode_shlibpath_var_CXX=no
12078         case $host_os in
12079           solaris2.[0-5] | solaris2.[0-5].*) ;;
12080           *)
12081             # The compiler driver will combine and reorder linker options,
12082             # but understands `-z linker_flag'.
12083             # Supported since Solaris 2.6 (maybe 2.5.1?)
12084             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12085             ;;
12086         esac
12087         link_all_deplibs_CXX=yes
12088
12089         output_verbose_link_cmd='echo'
12090
12091         # Archives containing C++ object files must be created using
12092         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12093         # necessary to make sure instantiated templates are included
12094         # in the archive.
12095         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12096         ;;
12097       gcx*)
12098         # Green Hills C++ Compiler
12099         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12100
12101         # The C++ compiler must be used to create the archive.
12102         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12103         ;;
12104       *)
12105         # GNU C++ compiler with Solaris linker
12106         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12107           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12108           if $CC --version | grep -v '^2\.7' > /dev/null; then
12109             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12110             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12111                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12112
12113             # Commands to make compiler produce verbose output that lists
12114             # what "hidden" libraries, object files and flags are used when
12115             # linking a shared library.
12116             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12117           else
12118             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12119             # platform.
12120             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12122                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12123
12124             # Commands to make compiler produce verbose output that lists
12125             # what "hidden" libraries, object files and flags are used when
12126             # linking a shared library.
12127             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12128           fi
12129
12130           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12131           case $host_os in
12132           solaris2.[0-5] | solaris2.[0-5].*) ;;
12133           *)
12134             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12135             ;;
12136           esac
12137         fi
12138         ;;
12139     esac
12140     ;;
12141   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12142     no_undefined_flag_CXX='${wl}-z,text'
12143     archive_cmds_need_lc_CXX=no
12144     hardcode_shlibpath_var_CXX=no
12145     runpath_var='LD_RUN_PATH'
12146
12147     case $cc_basename in
12148       CC*)
12149         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151         ;;
12152       *)
12153         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155         ;;
12156     esac
12157     ;;
12158   sysv5* | sco3.2v5* | sco5v6*)
12159     # Note: We can NOT use -z defs as we might desire, because we do not
12160     # link with -lc, and that would cause any symbols used from libc to
12161     # always be unresolved, which means just about no library would
12162     # ever link correctly.  If we're not using GNU ld we use -z text
12163     # though, which does catch some bad symbols but isn't as heavy-handed
12164     # as -z defs.
12165     # For security reasons, it is highly recommended that you always
12166     # use absolute paths for naming shared libraries, and exclude the
12167     # DT_RUNPATH tag from executables and libraries.  But doing so
12168     # requires that you compile everything twice, which is a pain.
12169     # So that behaviour is only enabled if SCOABSPATH is set to a
12170     # non-empty value in the environment.  Most likely only useful for
12171     # creating official distributions of packages.
12172     # This is a hack until libtool officially supports absolute path
12173     # names for shared libraries.
12174     no_undefined_flag_CXX='${wl}-z,text'
12175     allow_undefined_flag_CXX='${wl}-z,nodefs'
12176     archive_cmds_need_lc_CXX=no
12177     hardcode_shlibpath_var_CXX=no
12178     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12179     hardcode_libdir_separator_CXX=':'
12180     link_all_deplibs_CXX=yes
12181     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12182     runpath_var='LD_RUN_PATH'
12183
12184     case $cc_basename in
12185       CC*)
12186         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188         ;;
12189       *)
12190         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192         ;;
12193     esac
12194     ;;
12195   tandem*)
12196     case $cc_basename in
12197       NCC*)
12198         # NonStop-UX NCC 3.20
12199         # FIXME: insert proper C++ library support
12200         ld_shlibs_CXX=no
12201         ;;
12202       *)
12203         # FIXME: insert proper C++ library support
12204         ld_shlibs_CXX=no
12205         ;;
12206     esac
12207     ;;
12208   vxworks*)
12209     # FIXME: insert proper C++ library support
12210     ld_shlibs_CXX=no
12211     ;;
12212   *)
12213     # FIXME: insert proper C++ library support
12214     ld_shlibs_CXX=no
12215     ;;
12216 esac
12217 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12218 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12219 test "$ld_shlibs_CXX" = no && can_build_shared=no
12220
12221 GCC_CXX="$GXX"
12222 LD_CXX="$LD"
12223
12224 cat > conftest.$ac_ext <<EOF
12225 class Foo
12226 {
12227 public:
12228   Foo (void) { a = 0; }
12229 private:
12230   int a;
12231 };
12232 EOF
12233
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235   (eval $ac_compile) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; then
12239   # Parse the compiler output and extract the necessary
12240   # objects, libraries and library flags.
12241
12242   # Sentinel used to keep track of whether or not we are before
12243   # the conftest object file.
12244   pre_test_object_deps_done=no
12245
12246   # The `*' in the case matches for architectures that use `case' in
12247   # $output_verbose_cmd can trigger glob expansion during the loop
12248   # eval without this substitution.
12249   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12250
12251   for p in `eval $output_verbose_link_cmd`; do
12252     case $p in
12253
12254     -L* | -R* | -l*)
12255        # Some compilers place space between "-{L,R}" and the path.
12256        # Remove the space.
12257        if test $p = "-L" \
12258           || test $p = "-R"; then
12259          prev=$p
12260          continue
12261        else
12262          prev=
12263        fi
12264
12265        if test "$pre_test_object_deps_done" = no; then
12266          case $p in
12267          -L* | -R*)
12268            # Internal compiler library paths should come after those
12269            # provided the user.  The postdeps already come after the
12270            # user supplied libs so there is no need to process them.
12271            if test -z "$compiler_lib_search_path_CXX"; then
12272              compiler_lib_search_path_CXX="${prev}${p}"
12273            else
12274              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12275            fi
12276            ;;
12277          # The "-l" case would never come before the object being
12278          # linked, so don't bother handling this case.
12279          esac
12280        else
12281          if test -z "$postdeps_CXX"; then
12282            postdeps_CXX="${prev}${p}"
12283          else
12284            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12285          fi
12286        fi
12287        ;;
12288
12289     *.$objext)
12290        # This assumes that the test object file only shows up
12291        # once in the compiler output.
12292        if test "$p" = "conftest.$objext"; then
12293          pre_test_object_deps_done=yes
12294          continue
12295        fi
12296
12297        if test "$pre_test_object_deps_done" = no; then
12298          if test -z "$predep_objects_CXX"; then
12299            predep_objects_CXX="$p"
12300          else
12301            predep_objects_CXX="$predep_objects_CXX $p"
12302          fi
12303        else
12304          if test -z "$postdep_objects_CXX"; then
12305            postdep_objects_CXX="$p"
12306          else
12307            postdep_objects_CXX="$postdep_objects_CXX $p"
12308          fi
12309        fi
12310        ;;
12311
12312     *) ;; # Ignore the rest.
12313
12314     esac
12315   done
12316
12317   # Clean up.
12318   rm -f a.out a.exe
12319 else
12320   echo "libtool.m4: error: problem compiling CXX test program"
12321 fi
12322
12323 $rm -f confest.$objext
12324
12325 compiler_lib_search_dirs_CXX=
12326 if test -n "$compiler_lib_search_path_CXX"; then
12327   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12328 fi
12329
12330 # PORTME: override above test on systems where it is broken
12331 case $host_os in
12332 interix[3-9]*)
12333   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12334   # hack all around it, let's just trust "g++" to DTRT.
12335   predep_objects_CXX=
12336   postdep_objects_CXX=
12337   postdeps_CXX=
12338   ;;
12339
12340 linux*)
12341   case `$CC -V 2>&1 | sed 5q` in
12342   *Sun\ C*)
12343     # Sun C++ 5.9
12344     #
12345     # The more standards-conforming stlport4 library is
12346     # incompatible with the Cstd library. Avoid specifying
12347     # it if it's in CXXFLAGS. Ignore libCrun as
12348     # -library=stlport4 depends on it.
12349     case " $CXX $CXXFLAGS " in
12350     *" -library=stlport4 "*)
12351       solaris_use_stlport4=yes
12352       ;;
12353     esac
12354     if test "$solaris_use_stlport4" != yes; then
12355       postdeps_CXX='-library=Cstd -library=Crun'
12356     fi
12357     ;;
12358   esac
12359   ;;
12360
12361 solaris*)
12362   case $cc_basename in
12363   CC*)
12364     # The more standards-conforming stlport4 library is
12365     # incompatible with the Cstd library. Avoid specifying
12366     # it if it's in CXXFLAGS. Ignore libCrun as
12367     # -library=stlport4 depends on it.
12368     case " $CXX $CXXFLAGS " in
12369     *" -library=stlport4 "*)
12370       solaris_use_stlport4=yes
12371       ;;
12372     esac
12373
12374     # Adding this requires a known-good setup of shared libraries for
12375     # Sun compiler versions before 5.6, else PIC objects from an old
12376     # archive will be linked into the output, leading to subtle bugs.
12377     if test "$solaris_use_stlport4" != yes; then
12378       postdeps_CXX='-library=Cstd -library=Crun'
12379     fi
12380     ;;
12381   esac
12382   ;;
12383 esac
12384
12385 case " $postdeps_CXX " in
12386 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12387 esac
12388
12389 lt_prog_compiler_wl_CXX=
12390 lt_prog_compiler_pic_CXX=
12391 lt_prog_compiler_static_CXX=
12392
12393 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12394 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12395
12396   # C++ specific cases for pic, static, wl, etc.
12397   if test "$GXX" = yes; then
12398     lt_prog_compiler_wl_CXX='-Wl,'
12399     lt_prog_compiler_static_CXX='-static'
12400
12401     case $host_os in
12402     aix*)
12403       # All AIX code is PIC.
12404       if test "$host_cpu" = ia64; then
12405         # AIX 5 now supports IA64 processor
12406         lt_prog_compiler_static_CXX='-Bstatic'
12407       fi
12408       ;;
12409     amigaos*)
12410       # FIXME: we need at least 68020 code to build shared libraries, but
12411       # adding the `-m68020' flag to GCC prevents building anything better,
12412       # like `-m68040'.
12413       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12414       ;;
12415     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12416       # PIC is the default for these OSes.
12417       ;;
12418     mingw* | cygwin* | os2* | pw32*)
12419       # This hack is so that the source file can tell whether it is being
12420       # built for inclusion in a dll (and should export symbols for example).
12421       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12422       # (--disable-auto-import) libraries
12423       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12424       ;;
12425     darwin* | rhapsody*)
12426       # PIC is the default on this platform
12427       # Common symbols not allowed in MH_DYLIB files
12428       lt_prog_compiler_pic_CXX='-fno-common'
12429       ;;
12430     *djgpp*)
12431       # DJGPP does not support shared libraries at all
12432       lt_prog_compiler_pic_CXX=
12433       ;;
12434     interix[3-9]*)
12435       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12436       # Instead, we relocate shared libraries at runtime.
12437       ;;
12438     sysv4*MP*)
12439       if test -d /usr/nec; then
12440         lt_prog_compiler_pic_CXX=-Kconform_pic
12441       fi
12442       ;;
12443     hpux*)
12444       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12445       # not for PA HP-UX.
12446       case $host_cpu in
12447       hppa*64*|ia64*)
12448         ;;
12449       *)
12450         lt_prog_compiler_pic_CXX='-fPIC'
12451         ;;
12452       esac
12453       ;;
12454     *)
12455       lt_prog_compiler_pic_CXX='-fPIC'
12456       ;;
12457     esac
12458   else
12459     case $host_os in
12460       aix[4-9]*)
12461         # All AIX code is PIC.
12462         if test "$host_cpu" = ia64; then
12463           # AIX 5 now supports IA64 processor
12464           lt_prog_compiler_static_CXX='-Bstatic'
12465         else
12466           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12467         fi
12468         ;;
12469       chorus*)
12470         case $cc_basename in
12471         cxch68*)
12472           # Green Hills C++ Compiler
12473           # _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"
12474           ;;
12475         esac
12476         ;;
12477        darwin*)
12478          # PIC is the default on this platform
12479          # Common symbols not allowed in MH_DYLIB files
12480          case $cc_basename in
12481            xlc*)
12482            lt_prog_compiler_pic_CXX='-qnocommon'
12483            lt_prog_compiler_wl_CXX='-Wl,'
12484            ;;
12485          esac
12486        ;;
12487       dgux*)
12488         case $cc_basename in
12489           ec++*)
12490             lt_prog_compiler_pic_CXX='-KPIC'
12491             ;;
12492           ghcx*)
12493             # Green Hills C++ Compiler
12494             lt_prog_compiler_pic_CXX='-pic'
12495             ;;
12496           *)
12497             ;;
12498         esac
12499         ;;
12500       freebsd* | dragonfly*)
12501         # FreeBSD uses GNU C++
12502         ;;
12503       hpux9* | hpux10* | hpux11*)
12504         case $cc_basename in
12505           CC*)
12506             lt_prog_compiler_wl_CXX='-Wl,'
12507             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12508             if test "$host_cpu" != ia64; then
12509               lt_prog_compiler_pic_CXX='+Z'
12510             fi
12511             ;;
12512           aCC*)
12513             lt_prog_compiler_wl_CXX='-Wl,'
12514             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12515             case $host_cpu in
12516             hppa*64*|ia64*)
12517               # +Z the default
12518               ;;
12519             *)
12520               lt_prog_compiler_pic_CXX='+Z'
12521               ;;
12522             esac
12523             ;;
12524           *)
12525             ;;
12526         esac
12527         ;;
12528       interix*)
12529         # This is c89, which is MS Visual C++ (no shared libs)
12530         # Anyone wants to do a port?
12531         ;;
12532       irix5* | irix6* | nonstopux*)
12533         case $cc_basename in
12534           CC*)
12535             lt_prog_compiler_wl_CXX='-Wl,'
12536             lt_prog_compiler_static_CXX='-non_shared'
12537             # CC pic flag -KPIC is the default.
12538             ;;
12539           *)
12540             ;;
12541         esac
12542         ;;
12543       linux* | k*bsd*-gnu)
12544         case $cc_basename in
12545           KCC*)
12546             # KAI C++ Compiler
12547             lt_prog_compiler_wl_CXX='--backend -Wl,'
12548             lt_prog_compiler_pic_CXX='-fPIC'
12549             ;;
12550           icpc* | ecpc*)
12551             # Intel C++
12552             lt_prog_compiler_wl_CXX='-Wl,'
12553             lt_prog_compiler_pic_CXX='-KPIC'
12554             lt_prog_compiler_static_CXX='-static'
12555             ;;
12556           pgCC* | pgcpp*)
12557             # Portland Group C++ compiler.
12558             lt_prog_compiler_wl_CXX='-Wl,'
12559             lt_prog_compiler_pic_CXX='-fpic'
12560             lt_prog_compiler_static_CXX='-Bstatic'
12561             ;;
12562           cxx*)
12563             # Compaq C++
12564             # Make sure the PIC flag is empty.  It appears that all Alpha
12565             # Linux and Compaq Tru64 Unix objects are PIC.
12566             lt_prog_compiler_pic_CXX=
12567             lt_prog_compiler_static_CXX='-non_shared'
12568             ;;
12569           *)
12570             case `$CC -V 2>&1 | sed 5q` in
12571             *Sun\ C*)
12572               # Sun C++ 5.9
12573               lt_prog_compiler_pic_CXX='-KPIC'
12574               lt_prog_compiler_static_CXX='-Bstatic'
12575               lt_prog_compiler_wl_CXX='-Qoption ld '
12576               ;;
12577             esac
12578             ;;
12579         esac
12580         ;;
12581       lynxos*)
12582         ;;
12583       m88k*)
12584         ;;
12585       mvs*)
12586         case $cc_basename in
12587           cxx*)
12588             lt_prog_compiler_pic_CXX='-W c,exportall'
12589             ;;
12590           *)
12591             ;;
12592         esac
12593         ;;
12594       netbsd* | netbsdelf*-gnu)
12595         ;;
12596       osf3* | osf4* | osf5*)
12597         case $cc_basename in
12598           KCC*)
12599             lt_prog_compiler_wl_CXX='--backend -Wl,'
12600             ;;
12601           RCC*)
12602             # Rational C++ 2.4.1
12603             lt_prog_compiler_pic_CXX='-pic'
12604             ;;
12605           cxx*)
12606             # Digital/Compaq C++
12607             lt_prog_compiler_wl_CXX='-Wl,'
12608             # Make sure the PIC flag is empty.  It appears that all Alpha
12609             # Linux and Compaq Tru64 Unix objects are PIC.
12610             lt_prog_compiler_pic_CXX=
12611             lt_prog_compiler_static_CXX='-non_shared'
12612             ;;
12613           *)
12614             ;;
12615         esac
12616         ;;
12617       psos*)
12618         ;;
12619       solaris*)
12620         case $cc_basename in
12621           CC*)
12622             # Sun C++ 4.2, 5.x and Centerline C++
12623             lt_prog_compiler_pic_CXX='-KPIC'
12624             lt_prog_compiler_static_CXX='-Bstatic'
12625             lt_prog_compiler_wl_CXX='-Qoption ld '
12626             ;;
12627           gcx*)
12628             # Green Hills C++ Compiler
12629             lt_prog_compiler_pic_CXX='-PIC'
12630             ;;
12631           *)
12632             ;;
12633         esac
12634         ;;
12635       sunos4*)
12636         case $cc_basename in
12637           CC*)
12638             # Sun C++ 4.x
12639             lt_prog_compiler_pic_CXX='-pic'
12640             lt_prog_compiler_static_CXX='-Bstatic'
12641             ;;
12642           lcc*)
12643             # Lucid
12644             lt_prog_compiler_pic_CXX='-pic'
12645             ;;
12646           *)
12647             ;;
12648         esac
12649         ;;
12650       tandem*)
12651         case $cc_basename in
12652           NCC*)
12653             # NonStop-UX NCC 3.20
12654             lt_prog_compiler_pic_CXX='-KPIC'
12655             ;;
12656           *)
12657             ;;
12658         esac
12659         ;;
12660       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12661         case $cc_basename in
12662           CC*)
12663             lt_prog_compiler_wl_CXX='-Wl,'
12664             lt_prog_compiler_pic_CXX='-KPIC'
12665             lt_prog_compiler_static_CXX='-Bstatic'
12666             ;;
12667         esac
12668         ;;
12669       vxworks*)
12670         ;;
12671       *)
12672         lt_prog_compiler_can_build_shared_CXX=no
12673         ;;
12674     esac
12675   fi
12676
12677 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12678 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12679
12680 #
12681 # Check to make sure the PIC flag actually works.
12682 #
12683 if test -n "$lt_prog_compiler_pic_CXX"; then
12684
12685 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12686 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12687 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   lt_cv_prog_compiler_pic_works_CXX=no
12691   ac_outfile=conftest.$ac_objext
12692    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12693    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12694    # Insert the option either (1) after the last *FLAGS variable, or
12695    # (2) before a word containing "conftest.", or (3) at the end.
12696    # Note that $ac_compile itself does not contain backslashes and begins
12697    # with a dollar sign (not a hyphen), so the echo should work correctly.
12698    # The option is referenced via a variable to avoid confusing sed.
12699    lt_compile=`echo "$ac_compile" | $SED \
12700    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12702    -e 's:$: $lt_compiler_flag:'`
12703    (eval echo "\"\$as_me:12703: $lt_compile\"" >&5)
12704    (eval "$lt_compile" 2>conftest.err)
12705    ac_status=$?
12706    cat conftest.err >&5
12707    echo "$as_me:12707: \$? = $ac_status" >&5
12708    if (exit $ac_status) && test -s "$ac_outfile"; then
12709      # The compiler can only warn and ignore the option if not recognized
12710      # So say no if there are warnings other than the usual output.
12711      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12712      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12713      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12714        lt_cv_prog_compiler_pic_works_CXX=yes
12715      fi
12716    fi
12717    $rm conftest*
12718
12719 fi
12720 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12721 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12722
12723 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12724     case $lt_prog_compiler_pic_CXX in
12725      "" | " "*) ;;
12726      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12727      esac
12728 else
12729     lt_prog_compiler_pic_CXX=
12730      lt_prog_compiler_can_build_shared_CXX=no
12731 fi
12732
12733 fi
12734 case $host_os in
12735   # For platforms which do not support PIC, -DPIC is meaningless:
12736   *djgpp*)
12737     lt_prog_compiler_pic_CXX=
12738     ;;
12739   *)
12740     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12741     ;;
12742 esac
12743
12744 #
12745 # Check to make sure the static flag actually works.
12746 #
12747 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12748 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12749 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12750 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12751   echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753   lt_cv_prog_compiler_static_works_CXX=no
12754    save_LDFLAGS="$LDFLAGS"
12755    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12758      # The linker can only warn and ignore the option if not recognized
12759      # So say no if there are warnings
12760      if test -s conftest.err; then
12761        # Append any errors to the config.log.
12762        cat conftest.err 1>&5
12763        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12765        if diff conftest.exp conftest.er2 >/dev/null; then
12766          lt_cv_prog_compiler_static_works_CXX=yes
12767        fi
12768      else
12769        lt_cv_prog_compiler_static_works_CXX=yes
12770      fi
12771    fi
12772    $rm -r conftest*
12773    LDFLAGS="$save_LDFLAGS"
12774
12775 fi
12776 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12777 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12778
12779 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12780     :
12781 else
12782     lt_prog_compiler_static_CXX=
12783 fi
12784
12785
12786 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12787 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12788 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791   lt_cv_prog_compiler_c_o_CXX=no
12792    $rm -r conftest 2>/dev/null
12793    mkdir conftest
12794    cd conftest
12795    mkdir out
12796    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12797
12798    lt_compiler_flag="-o out/conftest2.$ac_objext"
12799    # Insert the option either (1) after the last *FLAGS variable, or
12800    # (2) before a word containing "conftest.", or (3) at the end.
12801    # Note that $ac_compile itself does not contain backslashes and begins
12802    # with a dollar sign (not a hyphen), so the echo should work correctly.
12803    lt_compile=`echo "$ac_compile" | $SED \
12804    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12806    -e 's:$: $lt_compiler_flag:'`
12807    (eval echo "\"\$as_me:12807: $lt_compile\"" >&5)
12808    (eval "$lt_compile" 2>out/conftest.err)
12809    ac_status=$?
12810    cat out/conftest.err >&5
12811    echo "$as_me:12811: \$? = $ac_status" >&5
12812    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12813    then
12814      # The compiler can only warn and ignore the option if not recognized
12815      # So say no if there are warnings
12816      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12817      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12818      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12819        lt_cv_prog_compiler_c_o_CXX=yes
12820      fi
12821    fi
12822    chmod u+w . 2>&5
12823    $rm conftest*
12824    # SGI C++ compiler will create directory out/ii_files/ for
12825    # template instantiation
12826    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12827    $rm out/* && rmdir out
12828    cd ..
12829    rmdir conftest
12830    $rm conftest*
12831
12832 fi
12833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12834 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12835
12836
12837 hard_links="nottested"
12838 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12839   # do not overwrite the value of need_locks provided by the user
12840   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12841 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12842   hard_links=yes
12843   $rm conftest*
12844   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12845   touch conftest.a
12846   ln conftest.a conftest.b 2>&5 || hard_links=no
12847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12848   { echo "$as_me:$LINENO: result: $hard_links" >&5
12849 echo "${ECHO_T}$hard_links" >&6; }
12850   if test "$hard_links" = no; then
12851     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12852 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12853     need_locks=warn
12854   fi
12855 else
12856   need_locks=no
12857 fi
12858
12859 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12860 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12861
12862   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12863   case $host_os in
12864   aix[4-9]*)
12865     # If we're using GNU nm, then we don't want the "-C" option.
12866     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12867     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12868       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'
12869     else
12870       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'
12871     fi
12872     ;;
12873   pw32*)
12874     export_symbols_cmds_CXX="$ltdll_cmds"
12875   ;;
12876   cygwin* | mingw*)
12877     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'
12878   ;;
12879   linux* | k*bsd*-gnu)
12880     link_all_deplibs_CXX=no
12881   ;;
12882   *)
12883     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12884   ;;
12885   esac
12886   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12887
12888 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12889 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12890 test "$ld_shlibs_CXX" = no && can_build_shared=no
12891
12892 #
12893 # Do we need to explicitly link libc?
12894 #
12895 case "x$archive_cmds_need_lc_CXX" in
12896 x|xyes)
12897   # Assume -lc should be added
12898   archive_cmds_need_lc_CXX=yes
12899
12900   if test "$enable_shared" = yes && test "$GCC" = yes; then
12901     case $archive_cmds_CXX in
12902     *'~'*)
12903       # FIXME: we may have to deal with multi-command sequences.
12904       ;;
12905     '$CC '*)
12906       # Test whether the compiler implicitly links with -lc since on some
12907       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12908       # to ld, don't add -lc before -lgcc.
12909       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12910 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12911       $rm conftest*
12912       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12913
12914       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915   (eval $ac_compile) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } 2>conftest.err; then
12919         soname=conftest
12920         lib=conftest
12921         libobjs=conftest.$ac_objext
12922         deplibs=
12923         wl=$lt_prog_compiler_wl_CXX
12924         pic_flag=$lt_prog_compiler_pic_CXX
12925         compiler_flags=-v
12926         linker_flags=-v
12927         verstring=
12928         output_objdir=.
12929         libname=conftest
12930         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12931         allow_undefined_flag_CXX=
12932         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12933   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }
12937         then
12938           archive_cmds_need_lc_CXX=no
12939         else
12940           archive_cmds_need_lc_CXX=yes
12941         fi
12942         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12943       else
12944         cat conftest.err 1>&5
12945       fi
12946       $rm conftest*
12947       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12948 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12949       ;;
12950     esac
12951   fi
12952   ;;
12953 esac
12954
12955 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12956 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12957 library_names_spec=
12958 libname_spec='lib$name'
12959 soname_spec=
12960 shrext_cmds=".so"
12961 postinstall_cmds=
12962 postuninstall_cmds=
12963 finish_cmds=
12964 finish_eval=
12965 shlibpath_var=
12966 shlibpath_overrides_runpath=unknown
12967 version_type=none
12968 dynamic_linker="$host_os ld.so"
12969 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12970
12971 need_lib_prefix=unknown
12972 hardcode_into_libs=no
12973
12974 # when you set need_version to no, make sure it does not cause -set_version
12975 # flags to be left without arguments
12976 need_version=unknown
12977
12978 case $host_os in
12979 aix3*)
12980   version_type=linux
12981   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12982   shlibpath_var=LIBPATH
12983
12984   # AIX 3 has no versioning support, so we append a major version to the name.
12985   soname_spec='${libname}${release}${shared_ext}$major'
12986   ;;
12987
12988 aix[4-9]*)
12989   version_type=linux
12990   need_lib_prefix=no
12991   need_version=no
12992   hardcode_into_libs=yes
12993   if test "$host_cpu" = ia64; then
12994     # AIX 5 supports IA64
12995     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12996     shlibpath_var=LD_LIBRARY_PATH
12997   else
12998     # With GCC up to 2.95.x, collect2 would create an import file
12999     # for dependence libraries.  The import file would start with
13000     # the line `#! .'.  This would cause the generated library to
13001     # depend on `.', always an invalid library.  This was fixed in
13002     # development snapshots of GCC prior to 3.0.
13003     case $host_os in
13004       aix4 | aix4.[01] | aix4.[01].*)
13005       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13006            echo ' yes '
13007            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13008         :
13009       else
13010         can_build_shared=no
13011       fi
13012       ;;
13013     esac
13014     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13015     # soname into executable. Probably we can add versioning support to
13016     # collect2, so additional links can be useful in future.
13017     if test "$aix_use_runtimelinking" = yes; then
13018       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13019       # instead of lib<name>.a to let people know that these are not
13020       # typical AIX shared libraries.
13021       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022     else
13023       # We preserve .a as extension for shared libraries through AIX4.2
13024       # and later when we are not doing run time linking.
13025       library_names_spec='${libname}${release}.a $libname.a'
13026       soname_spec='${libname}${release}${shared_ext}$major'
13027     fi
13028     shlibpath_var=LIBPATH
13029   fi
13030   ;;
13031
13032 amigaos*)
13033   library_names_spec='$libname.ixlibrary $libname.a'
13034   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13035   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'
13036   ;;
13037
13038 beos*)
13039   library_names_spec='${libname}${shared_ext}'
13040   dynamic_linker="$host_os ld.so"
13041   shlibpath_var=LIBRARY_PATH
13042   ;;
13043
13044 bsdi[45]*)
13045   version_type=linux
13046   need_version=no
13047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048   soname_spec='${libname}${release}${shared_ext}$major'
13049   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13050   shlibpath_var=LD_LIBRARY_PATH
13051   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13052   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13053   # the default ld.so.conf also contains /usr/contrib/lib and
13054   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13055   # libtool to hard-code these into programs
13056   ;;
13057
13058 cygwin* | mingw* | pw32*)
13059   version_type=windows
13060   shrext_cmds=".dll"
13061   need_version=no
13062   need_lib_prefix=no
13063
13064   case $GCC,$host_os in
13065   yes,cygwin* | yes,mingw* | yes,pw32*)
13066     library_names_spec='$libname.dll.a'
13067     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13068     postinstall_cmds='base_file=`basename \${file}`~
13069       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13070       dldir=$destdir/`dirname \$dlpath`~
13071       test -d \$dldir || mkdir -p \$dldir~
13072       $install_prog $dir/$dlname \$dldir/$dlname~
13073       chmod a+x \$dldir/$dlname'
13074     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13075       dlpath=$dir/\$dldll~
13076        $rm \$dlpath'
13077     shlibpath_overrides_runpath=yes
13078
13079     case $host_os in
13080     cygwin*)
13081       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13082       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13083       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13084       ;;
13085     mingw*)
13086       # MinGW DLLs use traditional 'lib' prefix
13087       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13088       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13089       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13090         # It is most probably a Windows format PATH printed by
13091         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13092         # path with ; separators, and with drive letters. We can handle the
13093         # drive letters (cygwin fileutils understands them), so leave them,
13094         # especially as we might pass files found there to a mingw objdump,
13095         # which wouldn't understand a cygwinified path. Ahh.
13096         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13097       else
13098         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13099       fi
13100       ;;
13101     pw32*)
13102       # pw32 DLLs use 'pw' prefix rather than 'lib'
13103       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13104       ;;
13105     esac
13106     ;;
13107
13108   *)
13109     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13110     ;;
13111   esac
13112   dynamic_linker='Win32 ld.exe'
13113   # FIXME: first we should search . and the directory the executable is in
13114   shlibpath_var=PATH
13115   ;;
13116
13117 darwin* | rhapsody*)
13118   dynamic_linker="$host_os dyld"
13119   version_type=darwin
13120   need_lib_prefix=no
13121   need_version=no
13122   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13123   soname_spec='${libname}${release}${major}$shared_ext'
13124   shlibpath_overrides_runpath=yes
13125   shlibpath_var=DYLD_LIBRARY_PATH
13126   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13127
13128   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13129   ;;
13130
13131 dgux*)
13132   version_type=linux
13133   need_lib_prefix=no
13134   need_version=no
13135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13136   soname_spec='${libname}${release}${shared_ext}$major'
13137   shlibpath_var=LD_LIBRARY_PATH
13138   ;;
13139
13140 freebsd1*)
13141   dynamic_linker=no
13142   ;;
13143
13144 freebsd* | dragonfly*)
13145   # DragonFly does not have aout.  When/if they implement a new
13146   # versioning mechanism, adjust this.
13147   if test -x /usr/bin/objformat; then
13148     objformat=`/usr/bin/objformat`
13149   else
13150     case $host_os in
13151     freebsd[123]*) objformat=aout ;;
13152     *) objformat=elf ;;
13153     esac
13154   fi
13155   version_type=freebsd-$objformat
13156   case $version_type in
13157     freebsd-elf*)
13158       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13159       need_version=no
13160       need_lib_prefix=no
13161       ;;
13162     freebsd-*)
13163       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13164       need_version=yes
13165       ;;
13166   esac
13167   shlibpath_var=LD_LIBRARY_PATH
13168   case $host_os in
13169   freebsd2*)
13170     shlibpath_overrides_runpath=yes
13171     ;;
13172   freebsd3.[01]* | freebsdelf3.[01]*)
13173     shlibpath_overrides_runpath=yes
13174     hardcode_into_libs=yes
13175     ;;
13176   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13177   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13178     shlibpath_overrides_runpath=no
13179     hardcode_into_libs=yes
13180     ;;
13181   *) # from 4.6 on, and DragonFly
13182     shlibpath_overrides_runpath=yes
13183     hardcode_into_libs=yes
13184     ;;
13185   esac
13186   ;;
13187
13188 gnu*)
13189   version_type=linux
13190   need_lib_prefix=no
13191   need_version=no
13192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13193   soname_spec='${libname}${release}${shared_ext}$major'
13194   shlibpath_var=LD_LIBRARY_PATH
13195   hardcode_into_libs=yes
13196   ;;
13197
13198 hpux9* | hpux10* | hpux11*)
13199   # Give a soname corresponding to the major version so that dld.sl refuses to
13200   # link against other versions.
13201   version_type=sunos
13202   need_lib_prefix=no
13203   need_version=no
13204   case $host_cpu in
13205   ia64*)
13206     shrext_cmds='.so'
13207     hardcode_into_libs=yes
13208     dynamic_linker="$host_os dld.so"
13209     shlibpath_var=LD_LIBRARY_PATH
13210     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13212     soname_spec='${libname}${release}${shared_ext}$major'
13213     if test "X$HPUX_IA64_MODE" = X32; then
13214       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13215     else
13216       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13217     fi
13218     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13219     ;;
13220    hppa*64*)
13221      shrext_cmds='.sl'
13222      hardcode_into_libs=yes
13223      dynamic_linker="$host_os dld.sl"
13224      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13225      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13226      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227      soname_spec='${libname}${release}${shared_ext}$major'
13228      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13229      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13230      ;;
13231    *)
13232     shrext_cmds='.sl'
13233     dynamic_linker="$host_os dld.sl"
13234     shlibpath_var=SHLIB_PATH
13235     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237     soname_spec='${libname}${release}${shared_ext}$major'
13238     ;;
13239   esac
13240   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13241   postinstall_cmds='chmod 555 $lib'
13242   ;;
13243
13244 interix[3-9]*)
13245   version_type=linux
13246   need_lib_prefix=no
13247   need_version=no
13248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13249   soname_spec='${libname}${release}${shared_ext}$major'
13250   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13251   shlibpath_var=LD_LIBRARY_PATH
13252   shlibpath_overrides_runpath=no
13253   hardcode_into_libs=yes
13254   ;;
13255
13256 irix5* | irix6* | nonstopux*)
13257   case $host_os in
13258     nonstopux*) version_type=nonstopux ;;
13259     *)
13260         if test "$lt_cv_prog_gnu_ld" = yes; then
13261                 version_type=linux
13262         else
13263                 version_type=irix
13264         fi ;;
13265   esac
13266   need_lib_prefix=no
13267   need_version=no
13268   soname_spec='${libname}${release}${shared_ext}$major'
13269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13270   case $host_os in
13271   irix5* | nonstopux*)
13272     libsuff= shlibsuff=
13273     ;;
13274   *)
13275     case $LD in # libtool.m4 will add one of these switches to LD
13276     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13277       libsuff= shlibsuff= libmagic=32-bit;;
13278     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13279       libsuff=32 shlibsuff=N32 libmagic=N32;;
13280     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13281       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13282     *) libsuff= shlibsuff= libmagic=never-match;;
13283     esac
13284     ;;
13285   esac
13286   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13287   shlibpath_overrides_runpath=no
13288   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13289   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13290   hardcode_into_libs=yes
13291   ;;
13292
13293 # No shared lib support for Linux oldld, aout, or coff.
13294 linux*oldld* | linux*aout* | linux*coff*)
13295   dynamic_linker=no
13296   ;;
13297
13298 # This must be Linux ELF.
13299 linux* | k*bsd*-gnu)
13300   version_type=linux
13301   need_lib_prefix=no
13302   need_version=no
13303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304   soname_spec='${libname}${release}${shared_ext}$major'
13305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13306   shlibpath_var=LD_LIBRARY_PATH
13307   shlibpath_overrides_runpath=no
13308   # This implies no fast_install, which is unacceptable.
13309   # Some rework will be needed to allow for fast_install
13310   # before this can be enabled.
13311   hardcode_into_libs=yes
13312
13313   # Append ld.so.conf contents to the search path
13314   if test -f /etc/ld.so.conf; then
13315     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' ' '`
13316     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13317   fi
13318
13319   # We used to test for /lib/ld.so.1 and disable shared libraries on
13320   # powerpc, because MkLinux only supported shared libraries with the
13321   # GNU dynamic linker.  Since this was broken with cross compilers,
13322   # most powerpc-linux boxes support dynamic linking these days and
13323   # people can always --disable-shared, the test was removed, and we
13324   # assume the GNU/Linux dynamic linker is in use.
13325   dynamic_linker='GNU/Linux ld.so'
13326   ;;
13327
13328 netbsdelf*-gnu)
13329   version_type=linux
13330   need_lib_prefix=no
13331   need_version=no
13332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13333   soname_spec='${libname}${release}${shared_ext}$major'
13334   shlibpath_var=LD_LIBRARY_PATH
13335   shlibpath_overrides_runpath=no
13336   hardcode_into_libs=yes
13337   dynamic_linker='NetBSD ld.elf_so'
13338   ;;
13339
13340 netbsd*)
13341   version_type=sunos
13342   need_lib_prefix=no
13343   need_version=no
13344   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13346     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13347     dynamic_linker='NetBSD (a.out) ld.so'
13348   else
13349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13350     soname_spec='${libname}${release}${shared_ext}$major'
13351     dynamic_linker='NetBSD ld.elf_so'
13352   fi
13353   shlibpath_var=LD_LIBRARY_PATH
13354   shlibpath_overrides_runpath=yes
13355   hardcode_into_libs=yes
13356   ;;
13357
13358 newsos6)
13359   version_type=linux
13360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361   shlibpath_var=LD_LIBRARY_PATH
13362   shlibpath_overrides_runpath=yes
13363   ;;
13364
13365 nto-qnx*)
13366   version_type=linux
13367   need_lib_prefix=no
13368   need_version=no
13369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13370   soname_spec='${libname}${release}${shared_ext}$major'
13371   shlibpath_var=LD_LIBRARY_PATH
13372   shlibpath_overrides_runpath=yes
13373   ;;
13374
13375 openbsd*)
13376   version_type=sunos
13377   sys_lib_dlsearch_path_spec="/usr/lib"
13378   need_lib_prefix=no
13379   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13380   case $host_os in
13381     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13382     *)                         need_version=no  ;;
13383   esac
13384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13385   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13386   shlibpath_var=LD_LIBRARY_PATH
13387   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13388     case $host_os in
13389       openbsd2.[89] | openbsd2.[89].*)
13390         shlibpath_overrides_runpath=no
13391         ;;
13392       *)
13393         shlibpath_overrides_runpath=yes
13394         ;;
13395       esac
13396   else
13397     shlibpath_overrides_runpath=yes
13398   fi
13399   ;;
13400
13401 os2*)
13402   libname_spec='$name'
13403   shrext_cmds=".dll"
13404   need_lib_prefix=no
13405   library_names_spec='$libname${shared_ext} $libname.a'
13406   dynamic_linker='OS/2 ld.exe'
13407   shlibpath_var=LIBPATH
13408   ;;
13409
13410 osf3* | osf4* | osf5*)
13411   version_type=osf
13412   need_lib_prefix=no
13413   need_version=no
13414   soname_spec='${libname}${release}${shared_ext}$major'
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416   shlibpath_var=LD_LIBRARY_PATH
13417   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13418   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13419   ;;
13420
13421 rdos*)
13422   dynamic_linker=no
13423   ;;
13424
13425 solaris*)
13426   version_type=linux
13427   need_lib_prefix=no
13428   need_version=no
13429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430   soname_spec='${libname}${release}${shared_ext}$major'
13431   shlibpath_var=LD_LIBRARY_PATH
13432   shlibpath_overrides_runpath=yes
13433   hardcode_into_libs=yes
13434   # ldd complains unless libraries are executable
13435   postinstall_cmds='chmod +x $lib'
13436   ;;
13437
13438 sunos4*)
13439   version_type=sunos
13440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13441   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13442   shlibpath_var=LD_LIBRARY_PATH
13443   shlibpath_overrides_runpath=yes
13444   if test "$with_gnu_ld" = yes; then
13445     need_lib_prefix=no
13446   fi
13447   need_version=yes
13448   ;;
13449
13450 sysv4 | sysv4.3*)
13451   version_type=linux
13452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453   soname_spec='${libname}${release}${shared_ext}$major'
13454   shlibpath_var=LD_LIBRARY_PATH
13455   case $host_vendor in
13456     sni)
13457       shlibpath_overrides_runpath=no
13458       need_lib_prefix=no
13459       export_dynamic_flag_spec='${wl}-Blargedynsym'
13460       runpath_var=LD_RUN_PATH
13461       ;;
13462     siemens)
13463       need_lib_prefix=no
13464       ;;
13465     motorola)
13466       need_lib_prefix=no
13467       need_version=no
13468       shlibpath_overrides_runpath=no
13469       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13470       ;;
13471   esac
13472   ;;
13473
13474 sysv4*MP*)
13475   if test -d /usr/nec ;then
13476     version_type=linux
13477     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13478     soname_spec='$libname${shared_ext}.$major'
13479     shlibpath_var=LD_LIBRARY_PATH
13480   fi
13481   ;;
13482
13483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13484   version_type=freebsd-elf
13485   need_lib_prefix=no
13486   need_version=no
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13488   soname_spec='${libname}${release}${shared_ext}$major'
13489   shlibpath_var=LD_LIBRARY_PATH
13490   hardcode_into_libs=yes
13491   if test "$with_gnu_ld" = yes; then
13492     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13493     shlibpath_overrides_runpath=no
13494   else
13495     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13496     shlibpath_overrides_runpath=yes
13497     case $host_os in
13498       sco3.2v5*)
13499         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13500         ;;
13501     esac
13502   fi
13503   sys_lib_dlsearch_path_spec='/usr/lib'
13504   ;;
13505
13506 uts4*)
13507   version_type=linux
13508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509   soname_spec='${libname}${release}${shared_ext}$major'
13510   shlibpath_var=LD_LIBRARY_PATH
13511   ;;
13512
13513 *)
13514   dynamic_linker=no
13515   ;;
13516 esac
13517 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13518 echo "${ECHO_T}$dynamic_linker" >&6; }
13519 test "$dynamic_linker" = no && can_build_shared=no
13520
13521 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13525 fi
13526
13527 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13528 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13532 fi
13533
13534 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13535
13536 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13537 if test "$GCC" = yes; then
13538   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13539 fi
13540
13541 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13542 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13543 hardcode_action_CXX=
13544 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13545    test -n "$runpath_var_CXX" || \
13546    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13547
13548   # We can hardcode non-existant directories.
13549   if test "$hardcode_direct_CXX" != no &&
13550      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13551      # have to relink, otherwise we might link with an installed library
13552      # when we should be linking with a yet-to-be-installed one
13553      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13554      test "$hardcode_minus_L_CXX" != no; then
13555     # Linking always hardcodes the temporary library directory.
13556     hardcode_action_CXX=relink
13557   else
13558     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13559     hardcode_action_CXX=immediate
13560   fi
13561 else
13562   # We cannot hardcode anything, or else we can only hardcode existing
13563   # directories.
13564   hardcode_action_CXX=unsupported
13565 fi
13566 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13567 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13568
13569 if test "$hardcode_action_CXX" = relink; then
13570   # Fast installation is not supported
13571   enable_fast_install=no
13572 elif test "$shlibpath_overrides_runpath" = yes ||
13573      test "$enable_shared" = no; then
13574   # Fast installation is not necessary
13575   enable_fast_install=needless
13576 fi
13577
13578
13579 # The else clause should only fire when bootstrapping the
13580 # libtool distribution, otherwise you forgot to ship ltmain.sh
13581 # with your package, and you will get complaints that there are
13582 # no rules to generate ltmain.sh.
13583 if test -f "$ltmain"; then
13584   # See if we are running on zsh, and set the options which allow our commands through
13585   # without removal of \ escapes.
13586   if test -n "${ZSH_VERSION+set}" ; then
13587     setopt NO_GLOB_SUBST
13588   fi
13589   # Now quote all the things that may contain metacharacters while being
13590   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13591   # variables and quote the copies for generation of the libtool script.
13592   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13593     SED SHELL STRIP \
13594     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13595     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13596     deplibs_check_method reload_flag reload_cmds need_locks \
13597     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13598     lt_cv_sys_global_symbol_to_c_name_address \
13599     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13600     old_postinstall_cmds old_postuninstall_cmds \
13601     compiler_CXX \
13602     CC_CXX \
13603     LD_CXX \
13604     lt_prog_compiler_wl_CXX \
13605     lt_prog_compiler_pic_CXX \
13606     lt_prog_compiler_static_CXX \
13607     lt_prog_compiler_no_builtin_flag_CXX \
13608     export_dynamic_flag_spec_CXX \
13609     thread_safe_flag_spec_CXX \
13610     whole_archive_flag_spec_CXX \
13611     enable_shared_with_static_runtimes_CXX \
13612     old_archive_cmds_CXX \
13613     old_archive_from_new_cmds_CXX \
13614     predep_objects_CXX \
13615     postdep_objects_CXX \
13616     predeps_CXX \
13617     postdeps_CXX \
13618     compiler_lib_search_path_CXX \
13619     compiler_lib_search_dirs_CXX \
13620     archive_cmds_CXX \
13621     archive_expsym_cmds_CXX \
13622     postinstall_cmds_CXX \
13623     postuninstall_cmds_CXX \
13624     old_archive_from_expsyms_cmds_CXX \
13625     allow_undefined_flag_CXX \
13626     no_undefined_flag_CXX \
13627     export_symbols_cmds_CXX \
13628     hardcode_libdir_flag_spec_CXX \
13629     hardcode_libdir_flag_spec_ld_CXX \
13630     hardcode_libdir_separator_CXX \
13631     hardcode_automatic_CXX \
13632     module_cmds_CXX \
13633     module_expsym_cmds_CXX \
13634     lt_cv_prog_compiler_c_o_CXX \
13635     fix_srcfile_path_CXX \
13636     exclude_expsyms_CXX \
13637     include_expsyms_CXX; do
13638
13639     case $var in
13640     old_archive_cmds_CXX | \
13641     old_archive_from_new_cmds_CXX | \
13642     archive_cmds_CXX | \
13643     archive_expsym_cmds_CXX | \
13644     module_cmds_CXX | \
13645     module_expsym_cmds_CXX | \
13646     old_archive_from_expsyms_cmds_CXX | \
13647     export_symbols_cmds_CXX | \
13648     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13649     postinstall_cmds | postuninstall_cmds | \
13650     old_postinstall_cmds | old_postuninstall_cmds | \
13651     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13652       # Double-quote double-evaled strings.
13653       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13654       ;;
13655     *)
13656       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13657       ;;
13658     esac
13659   done
13660
13661   case $lt_echo in
13662   *'\$0 --fallback-echo"')
13663     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13664     ;;
13665   esac
13666
13667 cfgfile="$ofile"
13668
13669   cat <<__EOF__ >> "$cfgfile"
13670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13671
13672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13673
13674 # Shell to use when invoking shell scripts.
13675 SHELL=$lt_SHELL
13676
13677 # Whether or not to build shared libraries.
13678 build_libtool_libs=$enable_shared
13679
13680 # Whether or not to build static libraries.
13681 build_old_libs=$enable_static
13682
13683 # Whether or not to add -lc for building shared libraries.
13684 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13685
13686 # Whether or not to disallow shared libs when runtime libs are static
13687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13688
13689 # Whether or not to optimize for fast installation.
13690 fast_install=$enable_fast_install
13691
13692 # The host system.
13693 host_alias=$host_alias
13694 host=$host
13695 host_os=$host_os
13696
13697 # The build system.
13698 build_alias=$build_alias
13699 build=$build
13700 build_os=$build_os
13701
13702 # An echo program that does not interpret backslashes.
13703 echo=$lt_echo
13704
13705 # The archiver.
13706 AR=$lt_AR
13707 AR_FLAGS=$lt_AR_FLAGS
13708
13709 # A C compiler.
13710 LTCC=$lt_LTCC
13711
13712 # LTCC compiler flags.
13713 LTCFLAGS=$lt_LTCFLAGS
13714
13715 # A language-specific compiler.
13716 CC=$lt_compiler_CXX
13717
13718 # Is the compiler the GNU C compiler?
13719 with_gcc=$GCC_CXX
13720
13721 # An ERE matcher.
13722 EGREP=$lt_EGREP
13723
13724 # The linker used to build libraries.
13725 LD=$lt_LD_CXX
13726
13727 # Whether we need hard or soft links.
13728 LN_S=$lt_LN_S
13729
13730 # A BSD-compatible nm program.
13731 NM=$lt_NM
13732
13733 # A symbol stripping program
13734 STRIP=$lt_STRIP
13735
13736 # Used to examine libraries when file_magic_cmd begins "file"
13737 MAGIC_CMD=$MAGIC_CMD
13738
13739 # Used on cygwin: DLL creation program.
13740 DLLTOOL="$DLLTOOL"
13741
13742 # Used on cygwin: object dumper.
13743 OBJDUMP="$OBJDUMP"
13744
13745 # Used on cygwin: assembler.
13746 AS="$AS"
13747
13748 # The name of the directory that contains temporary libtool files.
13749 objdir=$objdir
13750
13751 # How to create reloadable object files.
13752 reload_flag=$lt_reload_flag
13753 reload_cmds=$lt_reload_cmds
13754
13755 # How to pass a linker flag through the compiler.
13756 wl=$lt_lt_prog_compiler_wl_CXX
13757
13758 # Object file suffix (normally "o").
13759 objext="$ac_objext"
13760
13761 # Old archive suffix (normally "a").
13762 libext="$libext"
13763
13764 # Shared library suffix (normally ".so").
13765 shrext_cmds='$shrext_cmds'
13766
13767 # Executable file suffix (normally "").
13768 exeext="$exeext"
13769
13770 # Additional compiler flags for building library objects.
13771 pic_flag=$lt_lt_prog_compiler_pic_CXX
13772 pic_mode=$pic_mode
13773
13774 # What is the maximum length of a command?
13775 max_cmd_len=$lt_cv_sys_max_cmd_len
13776
13777 # Does compiler simultaneously support -c and -o options?
13778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13779
13780 # Must we lock files when doing compilation?
13781 need_locks=$lt_need_locks
13782
13783 # Do we need the lib prefix for modules?
13784 need_lib_prefix=$need_lib_prefix
13785
13786 # Do we need a version for libraries?
13787 need_version=$need_version
13788
13789 # Whether dlopen is supported.
13790 dlopen_support=$enable_dlopen
13791
13792 # Whether dlopen of programs is supported.
13793 dlopen_self=$enable_dlopen_self
13794
13795 # Whether dlopen of statically linked programs is supported.
13796 dlopen_self_static=$enable_dlopen_self_static
13797
13798 # Compiler flag to prevent dynamic linking.
13799 link_static_flag=$lt_lt_prog_compiler_static_CXX
13800
13801 # Compiler flag to turn off builtin functions.
13802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13803
13804 # Compiler flag to allow reflexive dlopens.
13805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13806
13807 # Compiler flag to generate shared objects directly from archives.
13808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13809
13810 # Compiler flag to generate thread-safe objects.
13811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13812
13813 # Library versioning type.
13814 version_type=$version_type
13815
13816 # Format of library name prefix.
13817 libname_spec=$lt_libname_spec
13818
13819 # List of archive names.  First name is the real one, the rest are links.
13820 # The last name is the one that the linker finds with -lNAME.
13821 library_names_spec=$lt_library_names_spec
13822
13823 # The coded name of the library, if different from the real name.
13824 soname_spec=$lt_soname_spec
13825
13826 # Commands used to build and install an old-style archive.
13827 RANLIB=$lt_RANLIB
13828 old_archive_cmds=$lt_old_archive_cmds_CXX
13829 old_postinstall_cmds=$lt_old_postinstall_cmds
13830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13831
13832 # Create an old-style archive from a shared archive.
13833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13834
13835 # Create a temporary old-style archive to link instead of a shared archive.
13836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13837
13838 # Commands used to build and install a shared archive.
13839 archive_cmds=$lt_archive_cmds_CXX
13840 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13841 postinstall_cmds=$lt_postinstall_cmds
13842 postuninstall_cmds=$lt_postuninstall_cmds
13843
13844 # Commands used to build a loadable module (assumed same as above if empty)
13845 module_cmds=$lt_module_cmds_CXX
13846 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13847
13848 # Commands to strip libraries.
13849 old_striplib=$lt_old_striplib
13850 striplib=$lt_striplib
13851
13852 # Dependencies to place before the objects being linked to create a
13853 # shared library.
13854 predep_objects=$lt_predep_objects_CXX
13855
13856 # Dependencies to place after the objects being linked to create a
13857 # shared library.
13858 postdep_objects=$lt_postdep_objects_CXX
13859
13860 # Dependencies to place before the objects being linked to create a
13861 # shared library.
13862 predeps=$lt_predeps_CXX
13863
13864 # Dependencies to place after the objects being linked to create a
13865 # shared library.
13866 postdeps=$lt_postdeps_CXX
13867
13868 # The directories searched by this compiler when creating a shared
13869 # library
13870 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13871
13872 # The library search path used internally by the compiler when linking
13873 # a shared library.
13874 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13875
13876 # Method to check whether dependent libraries are shared objects.
13877 deplibs_check_method=$lt_deplibs_check_method
13878
13879 # Command to use when deplibs_check_method == file_magic.
13880 file_magic_cmd=$lt_file_magic_cmd
13881
13882 # Flag that allows shared libraries with undefined symbols to be built.
13883 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13884
13885 # Flag that forces no undefined symbols.
13886 no_undefined_flag=$lt_no_undefined_flag_CXX
13887
13888 # Commands used to finish a libtool library installation in a directory.
13889 finish_cmds=$lt_finish_cmds
13890
13891 # Same as above, but a single script fragment to be evaled but not shown.
13892 finish_eval=$lt_finish_eval
13893
13894 # Take the output of nm and produce a listing of raw symbols and C names.
13895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13896
13897 # Transform the output of nm in a proper C declaration
13898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13899
13900 # Transform the output of nm in a C name address pair
13901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13902
13903 # This is the shared library runtime path variable.
13904 runpath_var=$runpath_var
13905
13906 # This is the shared library path variable.
13907 shlibpath_var=$shlibpath_var
13908
13909 # Is shlibpath searched before the hard-coded library search path?
13910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13911
13912 # How to hardcode a shared library path into an executable.
13913 hardcode_action=$hardcode_action_CXX
13914
13915 # Whether we should hardcode library paths into libraries.
13916 hardcode_into_libs=$hardcode_into_libs
13917
13918 # Flag to hardcode \$libdir into a binary during linking.
13919 # This must work even if \$libdir does not exist.
13920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13921
13922 # If ld is used when linking, flag to hardcode \$libdir into
13923 # a binary during linking. This must work even if \$libdir does
13924 # not exist.
13925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13926
13927 # Whether we need a single -rpath flag with a separated argument.
13928 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13929
13930 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13931 # resulting binary.
13932 hardcode_direct=$hardcode_direct_CXX
13933
13934 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13935 # resulting binary.
13936 hardcode_minus_L=$hardcode_minus_L_CXX
13937
13938 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13939 # the resulting binary.
13940 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13941
13942 # Set to yes if building a shared library automatically hardcodes DIR into the library
13943 # and all subsequent libraries and executables linked against it.
13944 hardcode_automatic=$hardcode_automatic_CXX
13945
13946 # Variables whose values should be saved in libtool wrapper scripts and
13947 # restored at relink time.
13948 variables_saved_for_relink="$variables_saved_for_relink"
13949
13950 # Whether libtool must link a program against all its dependency libraries.
13951 link_all_deplibs=$link_all_deplibs_CXX
13952
13953 # Compile-time system search path for libraries
13954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13955
13956 # Run-time system search path for libraries
13957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13958
13959 # Fix the shell variable \$srcfile for the compiler.
13960 fix_srcfile_path=$lt_fix_srcfile_path
13961
13962 # Set to yes if exported symbols are required.
13963 always_export_symbols=$always_export_symbols_CXX
13964
13965 # The commands to list exported symbols.
13966 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13967
13968 # The commands to extract the exported symbol list from a shared archive.
13969 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13970
13971 # Symbols that should not be listed in the preloaded symbols.
13972 exclude_expsyms=$lt_exclude_expsyms_CXX
13973
13974 # Symbols that must always be exported.
13975 include_expsyms=$lt_include_expsyms_CXX
13976
13977 # ### END LIBTOOL TAG CONFIG: $tagname
13978
13979 __EOF__
13980
13981
13982 else
13983   # If there is no Makefile yet, we rely on a make rule to execute
13984   # `config.status --recheck' to rerun these tests and create the
13985   # libtool script then.
13986   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13987   if test -f "$ltmain_in"; then
13988     test -f Makefile && make "$ltmain"
13989   fi
13990 fi
13991
13992
13993 ac_ext=c
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13998
13999 CC=$lt_save_CC
14000 LDCXX=$LD
14001 LD=$lt_save_LD
14002 GCC=$lt_save_GCC
14003 with_gnu_ldcxx=$with_gnu_ld
14004 with_gnu_ld=$lt_save_with_gnu_ld
14005 lt_cv_path_LDCXX=$lt_cv_path_LD
14006 lt_cv_path_LD=$lt_save_path_LD
14007 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14008 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14009
14010         else
14011           tagname=""
14012         fi
14013         ;;
14014
14015       F77)
14016         if test -n "$F77" && test "X$F77" != "Xno"; then
14017
14018 ac_ext=f
14019 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14020 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14022
14023
14024 archive_cmds_need_lc_F77=no
14025 allow_undefined_flag_F77=
14026 always_export_symbols_F77=no
14027 archive_expsym_cmds_F77=
14028 export_dynamic_flag_spec_F77=
14029 hardcode_direct_F77=no
14030 hardcode_libdir_flag_spec_F77=
14031 hardcode_libdir_flag_spec_ld_F77=
14032 hardcode_libdir_separator_F77=
14033 hardcode_minus_L_F77=no
14034 hardcode_automatic_F77=no
14035 module_cmds_F77=
14036 module_expsym_cmds_F77=
14037 link_all_deplibs_F77=unknown
14038 old_archive_cmds_F77=$old_archive_cmds
14039 no_undefined_flag_F77=
14040 whole_archive_flag_spec_F77=
14041 enable_shared_with_static_runtimes_F77=no
14042
14043 # Source file extension for f77 test sources.
14044 ac_ext=f
14045
14046 # Object file extension for compiled f77 test sources.
14047 objext=o
14048 objext_F77=$objext
14049
14050 # Code to be used in simple compile tests
14051 lt_simple_compile_test_code="\
14052       subroutine t
14053       return
14054       end
14055 "
14056
14057 # Code to be used in simple link tests
14058 lt_simple_link_test_code="\
14059       program t
14060       end
14061 "
14062
14063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14064
14065 # If no C compiler was specified, use CC.
14066 LTCC=${LTCC-"$CC"}
14067
14068 # If no C compiler flags were specified, use CFLAGS.
14069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14070
14071 # Allow CC to be a program name with arguments.
14072 compiler=$CC
14073
14074
14075 # save warnings/boilerplate of simple test code
14076 ac_outfile=conftest.$ac_objext
14077 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14079 _lt_compiler_boilerplate=`cat conftest.err`
14080 $rm conftest*
14081
14082 ac_outfile=conftest.$ac_objext
14083 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14085 _lt_linker_boilerplate=`cat conftest.err`
14086 $rm -r conftest*
14087
14088
14089 # Allow CC to be a program name with arguments.
14090 lt_save_CC="$CC"
14091 CC=${F77-"f77"}
14092 compiler=$CC
14093 compiler_F77=$CC
14094 for cc_temp in $compiler""; do
14095   case $cc_temp in
14096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14098     \-*) ;;
14099     *) break;;
14100   esac
14101 done
14102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14103
14104
14105 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14106 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14107 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14108 echo "${ECHO_T}$can_build_shared" >&6; }
14109
14110 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14111 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14112 test "$can_build_shared" = "no" && enable_shared=no
14113
14114 # On AIX, shared libraries and static libraries use the same namespace, and
14115 # are all built from PIC.
14116 case $host_os in
14117 aix3*)
14118   test "$enable_shared" = yes && enable_static=no
14119   if test -n "$RANLIB"; then
14120     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14121     postinstall_cmds='$RANLIB $lib'
14122   fi
14123   ;;
14124 aix[4-9]*)
14125   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14126     test "$enable_shared" = yes && enable_static=no
14127   fi
14128   ;;
14129 esac
14130 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14131 echo "${ECHO_T}$enable_shared" >&6; }
14132
14133 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14134 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14135 # Make sure either enable_shared or enable_static is yes.
14136 test "$enable_shared" = yes || enable_static=yes
14137 { echo "$as_me:$LINENO: result: $enable_static" >&5
14138 echo "${ECHO_T}$enable_static" >&6; }
14139
14140 GCC_F77="$G77"
14141 LD_F77="$LD"
14142
14143 lt_prog_compiler_wl_F77=
14144 lt_prog_compiler_pic_F77=
14145 lt_prog_compiler_static_F77=
14146
14147 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14149
14150   if test "$GCC" = yes; then
14151     lt_prog_compiler_wl_F77='-Wl,'
14152     lt_prog_compiler_static_F77='-static'
14153
14154     case $host_os in
14155       aix*)
14156       # All AIX code is PIC.
14157       if test "$host_cpu" = ia64; then
14158         # AIX 5 now supports IA64 processor
14159         lt_prog_compiler_static_F77='-Bstatic'
14160       fi
14161       ;;
14162
14163     amigaos*)
14164       # FIXME: we need at least 68020 code to build shared libraries, but
14165       # adding the `-m68020' flag to GCC prevents building anything better,
14166       # like `-m68040'.
14167       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14168       ;;
14169
14170     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14171       # PIC is the default for these OSes.
14172       ;;
14173
14174     mingw* | cygwin* | pw32* | os2*)
14175       # This hack is so that the source file can tell whether it is being
14176       # built for inclusion in a dll (and should export symbols for example).
14177       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14178       # (--disable-auto-import) libraries
14179       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14180       ;;
14181
14182     darwin* | rhapsody*)
14183       # PIC is the default on this platform
14184       # Common symbols not allowed in MH_DYLIB files
14185       lt_prog_compiler_pic_F77='-fno-common'
14186       ;;
14187
14188     interix[3-9]*)
14189       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14190       # Instead, we relocate shared libraries at runtime.
14191       ;;
14192
14193     msdosdjgpp*)
14194       # Just because we use GCC doesn't mean we suddenly get shared libraries
14195       # on systems that don't support them.
14196       lt_prog_compiler_can_build_shared_F77=no
14197       enable_shared=no
14198       ;;
14199
14200     sysv4*MP*)
14201       if test -d /usr/nec; then
14202         lt_prog_compiler_pic_F77=-Kconform_pic
14203       fi
14204       ;;
14205
14206     hpux*)
14207       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14208       # not for PA HP-UX.
14209       case $host_cpu in
14210       hppa*64*|ia64*)
14211         # +Z the default
14212         ;;
14213       *)
14214         lt_prog_compiler_pic_F77='-fPIC'
14215         ;;
14216       esac
14217       ;;
14218
14219     *)
14220       lt_prog_compiler_pic_F77='-fPIC'
14221       ;;
14222     esac
14223   else
14224     # PORTME Check for flag to pass linker flags through the system compiler.
14225     case $host_os in
14226     aix*)
14227       lt_prog_compiler_wl_F77='-Wl,'
14228       if test "$host_cpu" = ia64; then
14229         # AIX 5 now supports IA64 processor
14230         lt_prog_compiler_static_F77='-Bstatic'
14231       else
14232         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14233       fi
14234       ;;
14235       darwin*)
14236         # PIC is the default on this platform
14237         # Common symbols not allowed in MH_DYLIB files
14238        case $cc_basename in
14239          xlc*)
14240          lt_prog_compiler_pic_F77='-qnocommon'
14241          lt_prog_compiler_wl_F77='-Wl,'
14242          ;;
14243        esac
14244        ;;
14245
14246     mingw* | cygwin* | pw32* | os2*)
14247       # This hack is so that the source file can tell whether it is being
14248       # built for inclusion in a dll (and should export symbols for example).
14249       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14250       ;;
14251
14252     hpux9* | hpux10* | hpux11*)
14253       lt_prog_compiler_wl_F77='-Wl,'
14254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255       # not for PA HP-UX.
14256       case $host_cpu in
14257       hppa*64*|ia64*)
14258         # +Z the default
14259         ;;
14260       *)
14261         lt_prog_compiler_pic_F77='+Z'
14262         ;;
14263       esac
14264       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14265       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14266       ;;
14267
14268     irix5* | irix6* | nonstopux*)
14269       lt_prog_compiler_wl_F77='-Wl,'
14270       # PIC (with -KPIC) is the default.
14271       lt_prog_compiler_static_F77='-non_shared'
14272       ;;
14273
14274     newsos6)
14275       lt_prog_compiler_pic_F77='-KPIC'
14276       lt_prog_compiler_static_F77='-Bstatic'
14277       ;;
14278
14279     linux* | k*bsd*-gnu)
14280       case $cc_basename in
14281       icc* | ecc*)
14282         lt_prog_compiler_wl_F77='-Wl,'
14283         lt_prog_compiler_pic_F77='-KPIC'
14284         lt_prog_compiler_static_F77='-static'
14285         ;;
14286       pgcc* | pgf77* | pgf90* | pgf95*)
14287         # Portland Group compilers (*not* the Pentium gcc compiler,
14288         # which looks to be a dead project)
14289         lt_prog_compiler_wl_F77='-Wl,'
14290         lt_prog_compiler_pic_F77='-fpic'
14291         lt_prog_compiler_static_F77='-Bstatic'
14292         ;;
14293       ccc*)
14294         lt_prog_compiler_wl_F77='-Wl,'
14295         # All Alpha code is PIC.
14296         lt_prog_compiler_static_F77='-non_shared'
14297         ;;
14298       *)
14299         case `$CC -V 2>&1 | sed 5q` in
14300         *Sun\ C*)
14301           # Sun C 5.9
14302           lt_prog_compiler_pic_F77='-KPIC'
14303           lt_prog_compiler_static_F77='-Bstatic'
14304           lt_prog_compiler_wl_F77='-Wl,'
14305           ;;
14306         *Sun\ F*)
14307           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14308           lt_prog_compiler_pic_F77='-KPIC'
14309           lt_prog_compiler_static_F77='-Bstatic'
14310           lt_prog_compiler_wl_F77=''
14311           ;;
14312         esac
14313         ;;
14314       esac
14315       ;;
14316
14317     osf3* | osf4* | osf5*)
14318       lt_prog_compiler_wl_F77='-Wl,'
14319       # All OSF/1 code is PIC.
14320       lt_prog_compiler_static_F77='-non_shared'
14321       ;;
14322
14323     rdos*)
14324       lt_prog_compiler_static_F77='-non_shared'
14325       ;;
14326
14327     solaris*)
14328       lt_prog_compiler_pic_F77='-KPIC'
14329       lt_prog_compiler_static_F77='-Bstatic'
14330       case $cc_basename in
14331       f77* | f90* | f95*)
14332         lt_prog_compiler_wl_F77='-Qoption ld ';;
14333       *)
14334         lt_prog_compiler_wl_F77='-Wl,';;
14335       esac
14336       ;;
14337
14338     sunos4*)
14339       lt_prog_compiler_wl_F77='-Qoption ld '
14340       lt_prog_compiler_pic_F77='-PIC'
14341       lt_prog_compiler_static_F77='-Bstatic'
14342       ;;
14343
14344     sysv4 | sysv4.2uw2* | sysv4.3*)
14345       lt_prog_compiler_wl_F77='-Wl,'
14346       lt_prog_compiler_pic_F77='-KPIC'
14347       lt_prog_compiler_static_F77='-Bstatic'
14348       ;;
14349
14350     sysv4*MP*)
14351       if test -d /usr/nec ;then
14352         lt_prog_compiler_pic_F77='-Kconform_pic'
14353         lt_prog_compiler_static_F77='-Bstatic'
14354       fi
14355       ;;
14356
14357     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14358       lt_prog_compiler_wl_F77='-Wl,'
14359       lt_prog_compiler_pic_F77='-KPIC'
14360       lt_prog_compiler_static_F77='-Bstatic'
14361       ;;
14362
14363     unicos*)
14364       lt_prog_compiler_wl_F77='-Wl,'
14365       lt_prog_compiler_can_build_shared_F77=no
14366       ;;
14367
14368     uts4*)
14369       lt_prog_compiler_pic_F77='-pic'
14370       lt_prog_compiler_static_F77='-Bstatic'
14371       ;;
14372
14373     *)
14374       lt_prog_compiler_can_build_shared_F77=no
14375       ;;
14376     esac
14377   fi
14378
14379 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14380 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14381
14382 #
14383 # Check to make sure the PIC flag actually works.
14384 #
14385 if test -n "$lt_prog_compiler_pic_F77"; then
14386
14387 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14388 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14389 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14390   echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392   lt_cv_prog_compiler_pic_works_F77=no
14393   ac_outfile=conftest.$ac_objext
14394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14396    # Insert the option either (1) after the last *FLAGS variable, or
14397    # (2) before a word containing "conftest.", or (3) at the end.
14398    # Note that $ac_compile itself does not contain backslashes and begins
14399    # with a dollar sign (not a hyphen), so the echo should work correctly.
14400    # The option is referenced via a variable to avoid confusing sed.
14401    lt_compile=`echo "$ac_compile" | $SED \
14402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404    -e 's:$: $lt_compiler_flag:'`
14405    (eval echo "\"\$as_me:14405: $lt_compile\"" >&5)
14406    (eval "$lt_compile" 2>conftest.err)
14407    ac_status=$?
14408    cat conftest.err >&5
14409    echo "$as_me:14409: \$? = $ac_status" >&5
14410    if (exit $ac_status) && test -s "$ac_outfile"; then
14411      # The compiler can only warn and ignore the option if not recognized
14412      # So say no if there are warnings other than the usual output.
14413      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14414      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14415      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14416        lt_cv_prog_compiler_pic_works_F77=yes
14417      fi
14418    fi
14419    $rm conftest*
14420
14421 fi
14422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14423 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14424
14425 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14426     case $lt_prog_compiler_pic_F77 in
14427      "" | " "*) ;;
14428      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14429      esac
14430 else
14431     lt_prog_compiler_pic_F77=
14432      lt_prog_compiler_can_build_shared_F77=no
14433 fi
14434
14435 fi
14436 case $host_os in
14437   # For platforms which do not support PIC, -DPIC is meaningless:
14438   *djgpp*)
14439     lt_prog_compiler_pic_F77=
14440     ;;
14441   *)
14442     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14443     ;;
14444 esac
14445
14446 #
14447 # Check to make sure the static flag actually works.
14448 #
14449 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14450 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14451 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14452 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14453   echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455   lt_cv_prog_compiler_static_works_F77=no
14456    save_LDFLAGS="$LDFLAGS"
14457    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14458    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14459    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14460      # The linker can only warn and ignore the option if not recognized
14461      # So say no if there are warnings
14462      if test -s conftest.err; then
14463        # Append any errors to the config.log.
14464        cat conftest.err 1>&5
14465        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14466        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14467        if diff conftest.exp conftest.er2 >/dev/null; then
14468          lt_cv_prog_compiler_static_works_F77=yes
14469        fi
14470      else
14471        lt_cv_prog_compiler_static_works_F77=yes
14472      fi
14473    fi
14474    $rm -r conftest*
14475    LDFLAGS="$save_LDFLAGS"
14476
14477 fi
14478 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14479 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14480
14481 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14482     :
14483 else
14484     lt_prog_compiler_static_F77=
14485 fi
14486
14487
14488 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14489 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14490 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493   lt_cv_prog_compiler_c_o_F77=no
14494    $rm -r conftest 2>/dev/null
14495    mkdir conftest
14496    cd conftest
14497    mkdir out
14498    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14499
14500    lt_compiler_flag="-o out/conftest2.$ac_objext"
14501    # Insert the option either (1) after the last *FLAGS variable, or
14502    # (2) before a word containing "conftest.", or (3) at the end.
14503    # Note that $ac_compile itself does not contain backslashes and begins
14504    # with a dollar sign (not a hyphen), so the echo should work correctly.
14505    lt_compile=`echo "$ac_compile" | $SED \
14506    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14507    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14508    -e 's:$: $lt_compiler_flag:'`
14509    (eval echo "\"\$as_me:14509: $lt_compile\"" >&5)
14510    (eval "$lt_compile" 2>out/conftest.err)
14511    ac_status=$?
14512    cat out/conftest.err >&5
14513    echo "$as_me:14513: \$? = $ac_status" >&5
14514    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14515    then
14516      # The compiler can only warn and ignore the option if not recognized
14517      # So say no if there are warnings
14518      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14519      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14520      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14521        lt_cv_prog_compiler_c_o_F77=yes
14522      fi
14523    fi
14524    chmod u+w . 2>&5
14525    $rm conftest*
14526    # SGI C++ compiler will create directory out/ii_files/ for
14527    # template instantiation
14528    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14529    $rm out/* && rmdir out
14530    cd ..
14531    rmdir conftest
14532    $rm conftest*
14533
14534 fi
14535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14536 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14537
14538
14539 hard_links="nottested"
14540 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14541   # do not overwrite the value of need_locks provided by the user
14542   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14543 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14544   hard_links=yes
14545   $rm conftest*
14546   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14547   touch conftest.a
14548   ln conftest.a conftest.b 2>&5 || hard_links=no
14549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14550   { echo "$as_me:$LINENO: result: $hard_links" >&5
14551 echo "${ECHO_T}$hard_links" >&6; }
14552   if test "$hard_links" = no; then
14553     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14554 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14555     need_locks=warn
14556   fi
14557 else
14558   need_locks=no
14559 fi
14560
14561 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14563
14564   runpath_var=
14565   allow_undefined_flag_F77=
14566   enable_shared_with_static_runtimes_F77=no
14567   archive_cmds_F77=
14568   archive_expsym_cmds_F77=
14569   old_archive_From_new_cmds_F77=
14570   old_archive_from_expsyms_cmds_F77=
14571   export_dynamic_flag_spec_F77=
14572   whole_archive_flag_spec_F77=
14573   thread_safe_flag_spec_F77=
14574   hardcode_libdir_flag_spec_F77=
14575   hardcode_libdir_flag_spec_ld_F77=
14576   hardcode_libdir_separator_F77=
14577   hardcode_direct_F77=no
14578   hardcode_minus_L_F77=no
14579   hardcode_shlibpath_var_F77=unsupported
14580   link_all_deplibs_F77=unknown
14581   hardcode_automatic_F77=no
14582   module_cmds_F77=
14583   module_expsym_cmds_F77=
14584   always_export_symbols_F77=no
14585   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14586   # include_expsyms should be a list of space-separated symbols to be *always*
14587   # included in the symbol list
14588   include_expsyms_F77=
14589   # exclude_expsyms can be an extended regexp of symbols to exclude
14590   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14591   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14592   # as well as any symbol that contains `d'.
14593   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14594   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14595   # platforms (ab)use it in PIC code, but their linkers get confused if
14596   # the symbol is explicitly referenced.  Since portable code cannot
14597   # rely on this symbol name, it's probably fine to never include it in
14598   # preloaded symbol tables.
14599   # Exclude shared library initialization/finalization symbols.
14600   extract_expsyms_cmds=
14601   # Just being paranoid about ensuring that cc_basename is set.
14602   for cc_temp in $compiler""; do
14603   case $cc_temp in
14604     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14605     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14606     \-*) ;;
14607     *) break;;
14608   esac
14609 done
14610 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14611
14612   case $host_os in
14613   cygwin* | mingw* | pw32*)
14614     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14615     # When not using gcc, we currently assume that we are using
14616     # Microsoft Visual C++.
14617     if test "$GCC" != yes; then
14618       with_gnu_ld=no
14619     fi
14620     ;;
14621   interix*)
14622     # we just hope/assume this is gcc and not c89 (= MSVC++)
14623     with_gnu_ld=yes
14624     ;;
14625   openbsd*)
14626     with_gnu_ld=no
14627     ;;
14628   esac
14629
14630   ld_shlibs_F77=yes
14631   if test "$with_gnu_ld" = yes; then
14632     # If archive_cmds runs LD, not CC, wlarc should be empty
14633     wlarc='${wl}'
14634
14635     # Set some defaults for GNU ld with shared library support. These
14636     # are reset later if shared libraries are not supported. Putting them
14637     # here allows them to be overridden if necessary.
14638     runpath_var=LD_RUN_PATH
14639     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14640     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14641     # ancient GNU ld didn't support --whole-archive et. al.
14642     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14643         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14644       else
14645         whole_archive_flag_spec_F77=
14646     fi
14647     supports_anon_versioning=no
14648     case `$LD -v 2>/dev/null` in
14649       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14650       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14651       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14652       *\ 2.11.*) ;; # other 2.11 versions
14653       *) supports_anon_versioning=yes ;;
14654     esac
14655
14656     # See if GNU ld supports shared libraries.
14657     case $host_os in
14658     aix[3-9]*)
14659       # On AIX/PPC, the GNU linker is very broken
14660       if test "$host_cpu" != ia64; then
14661         ld_shlibs_F77=no
14662         cat <<EOF 1>&2
14663
14664 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14665 *** to be unable to reliably create shared libraries on AIX.
14666 *** Therefore, libtool is disabling shared libraries support.  If you
14667 *** really care for shared libraries, you may want to modify your PATH
14668 *** so that a non-GNU linker is found, and then restart.
14669
14670 EOF
14671       fi
14672       ;;
14673
14674     amigaos*)
14675       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)'
14676       hardcode_libdir_flag_spec_F77='-L$libdir'
14677       hardcode_minus_L_F77=yes
14678
14679       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14680       # that the semantics of dynamic libraries on AmigaOS, at least up
14681       # to version 4, is to share data among multiple programs linked
14682       # with the same dynamic library.  Since this doesn't match the
14683       # behavior of shared libraries on other platforms, we can't use
14684       # them.
14685       ld_shlibs_F77=no
14686       ;;
14687
14688     beos*)
14689       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14690         allow_undefined_flag_F77=unsupported
14691         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14692         # support --undefined.  This deserves some investigation.  FIXME
14693         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694       else
14695         ld_shlibs_F77=no
14696       fi
14697       ;;
14698
14699     cygwin* | mingw* | pw32*)
14700       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14701       # as there is no search path for DLLs.
14702       hardcode_libdir_flag_spec_F77='-L$libdir'
14703       allow_undefined_flag_F77=unsupported
14704       always_export_symbols_F77=no
14705       enable_shared_with_static_runtimes_F77=yes
14706       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14707
14708       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14709         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14710         # If the export-symbols file already is a .def file (1st line
14711         # is EXPORTS), use it as is; otherwise, prepend...
14712         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14713           cp $export_symbols $output_objdir/$soname.def;
14714         else
14715           echo EXPORTS > $output_objdir/$soname.def;
14716           cat $export_symbols >> $output_objdir/$soname.def;
14717         fi~
14718         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14719       else
14720         ld_shlibs_F77=no
14721       fi
14722       ;;
14723
14724     interix[3-9]*)
14725       hardcode_direct_F77=no
14726       hardcode_shlibpath_var_F77=no
14727       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14728       export_dynamic_flag_spec_F77='${wl}-E'
14729       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14730       # Instead, shared libraries are loaded at an image base (0x10000000 by
14731       # default) and relocated if they conflict, which is a slow very memory
14732       # consuming and fragmenting process.  To avoid this, we pick a random,
14733       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14734       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14735       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'
14736       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'
14737       ;;
14738
14739     gnu* | linux* | k*bsd*-gnu)
14740       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14741         tmp_addflag=
14742         case $cc_basename,$host_cpu in
14743         pgcc*)                          # Portland Group C compiler
14744           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'
14745           tmp_addflag=' $pic_flag'
14746           ;;
14747         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14748           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'
14749           tmp_addflag=' $pic_flag -Mnomain' ;;
14750         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14751           tmp_addflag=' -i_dynamic' ;;
14752         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14753           tmp_addflag=' -i_dynamic -nofor_main' ;;
14754         ifc* | ifort*)                  # Intel Fortran compiler
14755           tmp_addflag=' -nofor_main' ;;
14756         esac
14757         case `$CC -V 2>&1 | sed 5q` in
14758         *Sun\ C*)                       # Sun C 5.9
14759           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'
14760           tmp_sharedflag='-G' ;;
14761         *Sun\ F*)                       # Sun Fortran 8.3
14762           tmp_sharedflag='-G' ;;
14763         *)
14764           tmp_sharedflag='-shared' ;;
14765         esac
14766         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14767
14768         if test $supports_anon_versioning = yes; then
14769           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14770   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14771   $echo "local: *; };" >> $output_objdir/$libname.ver~
14772           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14773         fi
14774         link_all_deplibs_F77=no
14775       else
14776         ld_shlibs_F77=no
14777       fi
14778       ;;
14779
14780     netbsd* | netbsdelf*-gnu)
14781       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14782         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14783         wlarc=
14784       else
14785         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14787       fi
14788       ;;
14789
14790     solaris*)
14791       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14792         ld_shlibs_F77=no
14793         cat <<EOF 1>&2
14794
14795 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14796 *** create shared libraries on Solaris systems.  Therefore, libtool
14797 *** is disabling shared libraries support.  We urge you to upgrade GNU
14798 *** binutils to release 2.9.1 or newer.  Another option is to modify
14799 *** your PATH or compiler configuration so that the native linker is
14800 *** used, and then restart.
14801
14802 EOF
14803       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14804         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14805         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14806       else
14807         ld_shlibs_F77=no
14808       fi
14809       ;;
14810
14811     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14812       case `$LD -v 2>&1` in
14813         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14814         ld_shlibs_F77=no
14815         cat <<_LT_EOF 1>&2
14816
14817 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14818 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14819 *** is disabling shared libraries support.  We urge you to upgrade GNU
14820 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14821 *** your PATH or compiler configuration so that the native linker is
14822 *** used, and then restart.
14823
14824 _LT_EOF
14825         ;;
14826         *)
14827           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14828             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14829             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14830             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14831           else
14832             ld_shlibs_F77=no
14833           fi
14834         ;;
14835       esac
14836       ;;
14837
14838     sunos4*)
14839       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14840       wlarc=
14841       hardcode_direct_F77=yes
14842       hardcode_shlibpath_var_F77=no
14843       ;;
14844
14845     *)
14846       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14847         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14848         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14849       else
14850         ld_shlibs_F77=no
14851       fi
14852       ;;
14853     esac
14854
14855     if test "$ld_shlibs_F77" = no; then
14856       runpath_var=
14857       hardcode_libdir_flag_spec_F77=
14858       export_dynamic_flag_spec_F77=
14859       whole_archive_flag_spec_F77=
14860     fi
14861   else
14862     # PORTME fill in a description of your system's linker (not GNU ld)
14863     case $host_os in
14864     aix3*)
14865       allow_undefined_flag_F77=unsupported
14866       always_export_symbols_F77=yes
14867       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'
14868       # Note: this linker hardcodes the directories in LIBPATH if there
14869       # are no directories specified by -L.
14870       hardcode_minus_L_F77=yes
14871       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14872         # Neither direct hardcoding nor static linking is supported with a
14873         # broken collect2.
14874         hardcode_direct_F77=unsupported
14875       fi
14876       ;;
14877
14878     aix[4-9]*)
14879       if test "$host_cpu" = ia64; then
14880         # On IA64, the linker does run time linking by default, so we don't
14881         # have to do anything special.
14882         aix_use_runtimelinking=no
14883         exp_sym_flag='-Bexport'
14884         no_entry_flag=""
14885       else
14886         # If we're using GNU nm, then we don't want the "-C" option.
14887         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14888         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14889           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'
14890         else
14891           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'
14892         fi
14893         aix_use_runtimelinking=no
14894
14895         # Test if we are trying to use run time linking or normal
14896         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14897         # need to do runtime linking.
14898         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14899           for ld_flag in $LDFLAGS; do
14900           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14901             aix_use_runtimelinking=yes
14902             break
14903           fi
14904           done
14905           ;;
14906         esac
14907
14908         exp_sym_flag='-bexport'
14909         no_entry_flag='-bnoentry'
14910       fi
14911
14912       # When large executables or shared objects are built, AIX ld can
14913       # have problems creating the table of contents.  If linking a library
14914       # or program results in "error TOC overflow" add -mminimal-toc to
14915       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14916       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14917
14918       archive_cmds_F77=''
14919       hardcode_direct_F77=yes
14920       hardcode_libdir_separator_F77=':'
14921       link_all_deplibs_F77=yes
14922
14923       if test "$GCC" = yes; then
14924         case $host_os in aix4.[012]|aix4.[012].*)
14925         # We only want to do this on AIX 4.2 and lower, the check
14926         # below for broken collect2 doesn't work under 4.3+
14927           collect2name=`${CC} -print-prog-name=collect2`
14928           if test -f "$collect2name" && \
14929            strings "$collect2name" | grep resolve_lib_name >/dev/null
14930           then
14931           # We have reworked collect2
14932           :
14933           else
14934           # We have old collect2
14935           hardcode_direct_F77=unsupported
14936           # It fails to find uninstalled libraries when the uninstalled
14937           # path is not listed in the libpath.  Setting hardcode_minus_L
14938           # to unsupported forces relinking
14939           hardcode_minus_L_F77=yes
14940           hardcode_libdir_flag_spec_F77='-L$libdir'
14941           hardcode_libdir_separator_F77=
14942           fi
14943           ;;
14944         esac
14945         shared_flag='-shared'
14946         if test "$aix_use_runtimelinking" = yes; then
14947           shared_flag="$shared_flag "'${wl}-G'
14948         fi
14949       else
14950         # not using gcc
14951         if test "$host_cpu" = ia64; then
14952         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14953         # chokes on -Wl,-G. The following line is correct:
14954           shared_flag='-G'
14955         else
14956           if test "$aix_use_runtimelinking" = yes; then
14957             shared_flag='${wl}-G'
14958           else
14959             shared_flag='${wl}-bM:SRE'
14960           fi
14961         fi
14962       fi
14963
14964       # It seems that -bexpall does not export symbols beginning with
14965       # underscore (_), so it is better to generate a list of symbols to export.
14966       always_export_symbols_F77=yes
14967       if test "$aix_use_runtimelinking" = yes; then
14968         # Warning - without using the other runtime loading flags (-brtl),
14969         # -berok will link without error, but may produce a broken library.
14970         allow_undefined_flag_F77='-berok'
14971        # Determine the default libpath from the value encoded in an empty executable.
14972        cat >conftest.$ac_ext <<_ACEOF
14973       program main
14974
14975       end
14976 _ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981   *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984   (eval "$ac_link") 2>conftest.er1
14985   ac_status=$?
14986   grep -v '^ *+' conftest.er1 >conftest.err
14987   rm -f conftest.er1
14988   cat conftest.err >&5
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); } && {
14991          test -z "$ac_f77_werror_flag" ||
14992          test ! -s conftest.err
14993        } && test -s conftest$ac_exeext &&
14994        $as_test_x conftest$ac_exeext; then
14995
14996 lt_aix_libpath_sed='
14997     /Import File Strings/,/^$/ {
14998         /^0/ {
14999             s/^0  *\(.*\)$/\1/
15000             p
15001         }
15002     }'
15003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15004 # Check for a 64-bit object if we didn't find anything.
15005 if test -z "$aix_libpath"; then
15006   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15007 fi
15008 else
15009   echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012
15013 fi
15014
15015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15016       conftest$ac_exeext conftest.$ac_ext
15017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15018
15019        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15020         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"
15021        else
15022         if test "$host_cpu" = ia64; then
15023           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15024           allow_undefined_flag_F77="-z nodefs"
15025           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"
15026         else
15027          # Determine the default libpath from the value encoded in an empty executable.
15028          cat >conftest.$ac_ext <<_ACEOF
15029       program main
15030
15031       end
15032 _ACEOF
15033 rm -f conftest.$ac_objext conftest$ac_exeext
15034 if { (ac_try="$ac_link"
15035 case "(($ac_try" in
15036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037   *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040   (eval "$ac_link") 2>conftest.er1
15041   ac_status=$?
15042   grep -v '^ *+' conftest.er1 >conftest.err
15043   rm -f conftest.er1
15044   cat conftest.err >&5
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); } && {
15047          test -z "$ac_f77_werror_flag" ||
15048          test ! -s conftest.err
15049        } && test -s conftest$ac_exeext &&
15050        $as_test_x conftest$ac_exeext; then
15051
15052 lt_aix_libpath_sed='
15053     /Import File Strings/,/^$/ {
15054         /^0/ {
15055             s/^0  *\(.*\)$/\1/
15056             p
15057         }
15058     }'
15059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15060 # Check for a 64-bit object if we didn't find anything.
15061 if test -z "$aix_libpath"; then
15062   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15063 fi
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068
15069 fi
15070
15071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15072       conftest$ac_exeext conftest.$ac_ext
15073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15074
15075          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15076           # Warning - without using the other run time loading flags,
15077           # -berok will link without error, but may produce a broken library.
15078           no_undefined_flag_F77=' ${wl}-bernotok'
15079           allow_undefined_flag_F77=' ${wl}-berok'
15080           # Exported symbols can be pulled into shared objects from archives
15081           whole_archive_flag_spec_F77='$convenience'
15082           archive_cmds_need_lc_F77=yes
15083           # This is similar to how AIX traditionally builds its shared libraries.
15084           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'
15085         fi
15086       fi
15087       ;;
15088
15089     amigaos*)
15090       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)'
15091       hardcode_libdir_flag_spec_F77='-L$libdir'
15092       hardcode_minus_L_F77=yes
15093       # see comment about different semantics on the GNU ld section
15094       ld_shlibs_F77=no
15095       ;;
15096
15097     bsdi[45]*)
15098       export_dynamic_flag_spec_F77=-rdynamic
15099       ;;
15100
15101     cygwin* | mingw* | pw32*)
15102       # When not using gcc, we currently assume that we are using
15103       # Microsoft Visual C++.
15104       # hardcode_libdir_flag_spec is actually meaningless, as there is
15105       # no search path for DLLs.
15106       hardcode_libdir_flag_spec_F77=' '
15107       allow_undefined_flag_F77=unsupported
15108       # Tell ltmain to make .lib files, not .a files.
15109       libext=lib
15110       # Tell ltmain to make .dll files, not .so files.
15111       shrext_cmds=".dll"
15112       # FIXME: Setting linknames here is a bad hack.
15113       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15114       # The linker will automatically build a .lib file if we build a DLL.
15115       old_archive_From_new_cmds_F77='true'
15116       # FIXME: Should let the user specify the lib program.
15117       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15118       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15119       enable_shared_with_static_runtimes_F77=yes
15120       ;;
15121
15122     darwin* | rhapsody*)
15123       case $host_os in
15124         rhapsody* | darwin1.[012])
15125          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15126          ;;
15127        *) # Darwin 1.3 on
15128          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15129            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15130          else
15131            case ${MACOSX_DEPLOYMENT_TARGET} in
15132              10.[012])
15133                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15134                ;;
15135              10.*)
15136                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15137                ;;
15138            esac
15139          fi
15140          ;;
15141       esac
15142       archive_cmds_need_lc_F77=no
15143       hardcode_direct_F77=no
15144       hardcode_automatic_F77=yes
15145       hardcode_shlibpath_var_F77=unsupported
15146       whole_archive_flag_spec_F77=''
15147       link_all_deplibs_F77=yes
15148     if test "$GCC" = yes ; then
15149         output_verbose_link_cmd='echo'
15150         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}"
15151         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15152         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}"
15153         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}"
15154     else
15155       case $cc_basename in
15156         xlc*)
15157          output_verbose_link_cmd='echo'
15158          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15159          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15160           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15161          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}'
15162           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}'
15163           ;;
15164        *)
15165          ld_shlibs_F77=no
15166           ;;
15167       esac
15168     fi
15169       ;;
15170
15171     dgux*)
15172       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15173       hardcode_libdir_flag_spec_F77='-L$libdir'
15174       hardcode_shlibpath_var_F77=no
15175       ;;
15176
15177     freebsd1*)
15178       ld_shlibs_F77=no
15179       ;;
15180
15181     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15182     # support.  Future versions do this automatically, but an explicit c++rt0.o
15183     # does not break anything, and helps significantly (at the cost of a little
15184     # extra space).
15185     freebsd2.2*)
15186       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15187       hardcode_libdir_flag_spec_F77='-R$libdir'
15188       hardcode_direct_F77=yes
15189       hardcode_shlibpath_var_F77=no
15190       ;;
15191
15192     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15193     freebsd2*)
15194       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15195       hardcode_direct_F77=yes
15196       hardcode_minus_L_F77=yes
15197       hardcode_shlibpath_var_F77=no
15198       ;;
15199
15200     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15201     freebsd* | dragonfly*)
15202       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15203       hardcode_libdir_flag_spec_F77='-R$libdir'
15204       hardcode_direct_F77=yes
15205       hardcode_shlibpath_var_F77=no
15206       ;;
15207
15208     hpux9*)
15209       if test "$GCC" = yes; then
15210         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'
15211       else
15212         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'
15213       fi
15214       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15215       hardcode_libdir_separator_F77=:
15216       hardcode_direct_F77=yes
15217
15218       # hardcode_minus_L: Not really in the search PATH,
15219       # but as the default location of the library.
15220       hardcode_minus_L_F77=yes
15221       export_dynamic_flag_spec_F77='${wl}-E'
15222       ;;
15223
15224     hpux10*)
15225       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15226         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15227       else
15228         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15229       fi
15230       if test "$with_gnu_ld" = no; then
15231         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15232         hardcode_libdir_separator_F77=:
15233
15234         hardcode_direct_F77=yes
15235         export_dynamic_flag_spec_F77='${wl}-E'
15236
15237         # hardcode_minus_L: Not really in the search PATH,
15238         # but as the default location of the library.
15239         hardcode_minus_L_F77=yes
15240       fi
15241       ;;
15242
15243     hpux11*)
15244       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15245         case $host_cpu in
15246         hppa*64*)
15247           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248           ;;
15249         ia64*)
15250           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15251           ;;
15252         *)
15253           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15254           ;;
15255         esac
15256       else
15257         case $host_cpu in
15258         hppa*64*)
15259           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15260           ;;
15261         ia64*)
15262           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15263           ;;
15264         *)
15265           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15266           ;;
15267         esac
15268       fi
15269       if test "$with_gnu_ld" = no; then
15270         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15271         hardcode_libdir_separator_F77=:
15272
15273         case $host_cpu in
15274         hppa*64*|ia64*)
15275           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15276           hardcode_direct_F77=no
15277           hardcode_shlibpath_var_F77=no
15278           ;;
15279         *)
15280           hardcode_direct_F77=yes
15281           export_dynamic_flag_spec_F77='${wl}-E'
15282
15283           # hardcode_minus_L: Not really in the search PATH,
15284           # but as the default location of the library.
15285           hardcode_minus_L_F77=yes
15286           ;;
15287         esac
15288       fi
15289       ;;
15290
15291     irix5* | irix6* | nonstopux*)
15292       if test "$GCC" = yes; then
15293         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'
15294       else
15295         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'
15296         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15297       fi
15298       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15299       hardcode_libdir_separator_F77=:
15300       link_all_deplibs_F77=yes
15301       ;;
15302
15303     netbsd* | netbsdelf*-gnu)
15304       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15305         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15306       else
15307         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15308       fi
15309       hardcode_libdir_flag_spec_F77='-R$libdir'
15310       hardcode_direct_F77=yes
15311       hardcode_shlibpath_var_F77=no
15312       ;;
15313
15314     newsos6)
15315       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15316       hardcode_direct_F77=yes
15317       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15318       hardcode_libdir_separator_F77=:
15319       hardcode_shlibpath_var_F77=no
15320       ;;
15321
15322     openbsd*)
15323       if test -f /usr/libexec/ld.so; then
15324         hardcode_direct_F77=yes
15325         hardcode_shlibpath_var_F77=no
15326         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15327           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15328           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15329           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15330           export_dynamic_flag_spec_F77='${wl}-E'
15331         else
15332           case $host_os in
15333            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15334              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15335              hardcode_libdir_flag_spec_F77='-R$libdir'
15336              ;;
15337            *)
15338              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15339              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15340              ;;
15341           esac
15342         fi
15343       else
15344         ld_shlibs_F77=no
15345       fi
15346       ;;
15347
15348     os2*)
15349       hardcode_libdir_flag_spec_F77='-L$libdir'
15350       hardcode_minus_L_F77=yes
15351       allow_undefined_flag_F77=unsupported
15352       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'
15353       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15354       ;;
15355
15356     osf3*)
15357       if test "$GCC" = yes; then
15358         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15359         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'
15360       else
15361         allow_undefined_flag_F77=' -expect_unresolved \*'
15362         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'
15363       fi
15364       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15365       hardcode_libdir_separator_F77=:
15366       ;;
15367
15368     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15369       if test "$GCC" = yes; then
15370         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15371         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'
15372         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15373       else
15374         allow_undefined_flag_F77=' -expect_unresolved \*'
15375         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'
15376         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~
15377         $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'
15378
15379         # Both c and cxx compiler support -rpath directly
15380         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15381       fi
15382       hardcode_libdir_separator_F77=:
15383       ;;
15384
15385     solaris*)
15386       no_undefined_flag_F77=' -z text'
15387       if test "$GCC" = yes; then
15388         wlarc='${wl}'
15389         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15390         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15391           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15392       else
15393         wlarc=''
15394         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15396         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15397       fi
15398       hardcode_libdir_flag_spec_F77='-R$libdir'
15399       hardcode_shlibpath_var_F77=no
15400       case $host_os in
15401       solaris2.[0-5] | solaris2.[0-5].*) ;;
15402       *)
15403         # The compiler driver will combine and reorder linker options,
15404         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15405         # but is careful enough not to reorder.
15406         # Supported since Solaris 2.6 (maybe 2.5.1?)
15407         if test "$GCC" = yes; then
15408           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15409         else
15410           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15411         fi
15412         ;;
15413       esac
15414       link_all_deplibs_F77=yes
15415       ;;
15416
15417     sunos4*)
15418       if test "x$host_vendor" = xsequent; then
15419         # Use $CC to link under sequent, because it throws in some extra .o
15420         # files that make .init and .fini sections work.
15421         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15422       else
15423         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15424       fi
15425       hardcode_libdir_flag_spec_F77='-L$libdir'
15426       hardcode_direct_F77=yes
15427       hardcode_minus_L_F77=yes
15428       hardcode_shlibpath_var_F77=no
15429       ;;
15430
15431     sysv4)
15432       case $host_vendor in
15433         sni)
15434           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15435           hardcode_direct_F77=yes # is this really true???
15436         ;;
15437         siemens)
15438           ## LD is ld it makes a PLAMLIB
15439           ## CC just makes a GrossModule.
15440           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15441           reload_cmds_F77='$CC -r -o $output$reload_objs'
15442           hardcode_direct_F77=no
15443         ;;
15444         motorola)
15445           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15447         ;;
15448       esac
15449       runpath_var='LD_RUN_PATH'
15450       hardcode_shlibpath_var_F77=no
15451       ;;
15452
15453     sysv4.3*)
15454       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455       hardcode_shlibpath_var_F77=no
15456       export_dynamic_flag_spec_F77='-Bexport'
15457       ;;
15458
15459     sysv4*MP*)
15460       if test -d /usr/nec; then
15461         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462         hardcode_shlibpath_var_F77=no
15463         runpath_var=LD_RUN_PATH
15464         hardcode_runpath_var=yes
15465         ld_shlibs_F77=yes
15466       fi
15467       ;;
15468
15469     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15470       no_undefined_flag_F77='${wl}-z,text'
15471       archive_cmds_need_lc_F77=no
15472       hardcode_shlibpath_var_F77=no
15473       runpath_var='LD_RUN_PATH'
15474
15475       if test "$GCC" = yes; then
15476         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15477         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15478       else
15479         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481       fi
15482       ;;
15483
15484     sysv5* | sco3.2v5* | sco5v6*)
15485       # Note: We can NOT use -z defs as we might desire, because we do not
15486       # link with -lc, and that would cause any symbols used from libc to
15487       # always be unresolved, which means just about no library would
15488       # ever link correctly.  If we're not using GNU ld we use -z text
15489       # though, which does catch some bad symbols but isn't as heavy-handed
15490       # as -z defs.
15491       no_undefined_flag_F77='${wl}-z,text'
15492       allow_undefined_flag_F77='${wl}-z,nodefs'
15493       archive_cmds_need_lc_F77=no
15494       hardcode_shlibpath_var_F77=no
15495       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15496       hardcode_libdir_separator_F77=':'
15497       link_all_deplibs_F77=yes
15498       export_dynamic_flag_spec_F77='${wl}-Bexport'
15499       runpath_var='LD_RUN_PATH'
15500
15501       if test "$GCC" = yes; then
15502         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15503         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504       else
15505         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507       fi
15508       ;;
15509
15510     uts4*)
15511       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15512       hardcode_libdir_flag_spec_F77='-L$libdir'
15513       hardcode_shlibpath_var_F77=no
15514       ;;
15515
15516     *)
15517       ld_shlibs_F77=no
15518       ;;
15519     esac
15520   fi
15521
15522 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15523 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15524 test "$ld_shlibs_F77" = no && can_build_shared=no
15525
15526 #
15527 # Do we need to explicitly link libc?
15528 #
15529 case "x$archive_cmds_need_lc_F77" in
15530 x|xyes)
15531   # Assume -lc should be added
15532   archive_cmds_need_lc_F77=yes
15533
15534   if test "$enable_shared" = yes && test "$GCC" = yes; then
15535     case $archive_cmds_F77 in
15536     *'~'*)
15537       # FIXME: we may have to deal with multi-command sequences.
15538       ;;
15539     '$CC '*)
15540       # Test whether the compiler implicitly links with -lc since on some
15541       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15542       # to ld, don't add -lc before -lgcc.
15543       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15544 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15545       $rm conftest*
15546       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15547
15548       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549   (eval $ac_compile) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); } 2>conftest.err; then
15553         soname=conftest
15554         lib=conftest
15555         libobjs=conftest.$ac_objext
15556         deplibs=
15557         wl=$lt_prog_compiler_wl_F77
15558         pic_flag=$lt_prog_compiler_pic_F77
15559         compiler_flags=-v
15560         linker_flags=-v
15561         verstring=
15562         output_objdir=.
15563         libname=conftest
15564         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15565         allow_undefined_flag_F77=
15566         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15567   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }
15571         then
15572           archive_cmds_need_lc_F77=no
15573         else
15574           archive_cmds_need_lc_F77=yes
15575         fi
15576         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15577       else
15578         cat conftest.err 1>&5
15579       fi
15580       $rm conftest*
15581       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15582 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15583       ;;
15584     esac
15585   fi
15586   ;;
15587 esac
15588
15589 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15591 library_names_spec=
15592 libname_spec='lib$name'
15593 soname_spec=
15594 shrext_cmds=".so"
15595 postinstall_cmds=
15596 postuninstall_cmds=
15597 finish_cmds=
15598 finish_eval=
15599 shlibpath_var=
15600 shlibpath_overrides_runpath=unknown
15601 version_type=none
15602 dynamic_linker="$host_os ld.so"
15603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15604
15605 need_lib_prefix=unknown
15606 hardcode_into_libs=no
15607
15608 # when you set need_version to no, make sure it does not cause -set_version
15609 # flags to be left without arguments
15610 need_version=unknown
15611
15612 case $host_os in
15613 aix3*)
15614   version_type=linux
15615   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15616   shlibpath_var=LIBPATH
15617
15618   # AIX 3 has no versioning support, so we append a major version to the name.
15619   soname_spec='${libname}${release}${shared_ext}$major'
15620   ;;
15621
15622 aix[4-9]*)
15623   version_type=linux
15624   need_lib_prefix=no
15625   need_version=no
15626   hardcode_into_libs=yes
15627   if test "$host_cpu" = ia64; then
15628     # AIX 5 supports IA64
15629     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15630     shlibpath_var=LD_LIBRARY_PATH
15631   else
15632     # With GCC up to 2.95.x, collect2 would create an import file
15633     # for dependence libraries.  The import file would start with
15634     # the line `#! .'.  This would cause the generated library to
15635     # depend on `.', always an invalid library.  This was fixed in
15636     # development snapshots of GCC prior to 3.0.
15637     case $host_os in
15638       aix4 | aix4.[01] | aix4.[01].*)
15639       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15640            echo ' yes '
15641            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15642         :
15643       else
15644         can_build_shared=no
15645       fi
15646       ;;
15647     esac
15648     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15649     # soname into executable. Probably we can add versioning support to
15650     # collect2, so additional links can be useful in future.
15651     if test "$aix_use_runtimelinking" = yes; then
15652       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15653       # instead of lib<name>.a to let people know that these are not
15654       # typical AIX shared libraries.
15655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656     else
15657       # We preserve .a as extension for shared libraries through AIX4.2
15658       # and later when we are not doing run time linking.
15659       library_names_spec='${libname}${release}.a $libname.a'
15660       soname_spec='${libname}${release}${shared_ext}$major'
15661     fi
15662     shlibpath_var=LIBPATH
15663   fi
15664   ;;
15665
15666 amigaos*)
15667   library_names_spec='$libname.ixlibrary $libname.a'
15668   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15669   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'
15670   ;;
15671
15672 beos*)
15673   library_names_spec='${libname}${shared_ext}'
15674   dynamic_linker="$host_os ld.so"
15675   shlibpath_var=LIBRARY_PATH
15676   ;;
15677
15678 bsdi[45]*)
15679   version_type=linux
15680   need_version=no
15681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682   soname_spec='${libname}${release}${shared_ext}$major'
15683   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15686   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15687   # the default ld.so.conf also contains /usr/contrib/lib and
15688   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15689   # libtool to hard-code these into programs
15690   ;;
15691
15692 cygwin* | mingw* | pw32*)
15693   version_type=windows
15694   shrext_cmds=".dll"
15695   need_version=no
15696   need_lib_prefix=no
15697
15698   case $GCC,$host_os in
15699   yes,cygwin* | yes,mingw* | yes,pw32*)
15700     library_names_spec='$libname.dll.a'
15701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15702     postinstall_cmds='base_file=`basename \${file}`~
15703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15704       dldir=$destdir/`dirname \$dlpath`~
15705       test -d \$dldir || mkdir -p \$dldir~
15706       $install_prog $dir/$dlname \$dldir/$dlname~
15707       chmod a+x \$dldir/$dlname'
15708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15709       dlpath=$dir/\$dldll~
15710        $rm \$dlpath'
15711     shlibpath_overrides_runpath=yes
15712
15713     case $host_os in
15714     cygwin*)
15715       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15716       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15717       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15718       ;;
15719     mingw*)
15720       # MinGW DLLs use traditional 'lib' prefix
15721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15722       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15723       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15724         # It is most probably a Windows format PATH printed by
15725         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15726         # path with ; separators, and with drive letters. We can handle the
15727         # drive letters (cygwin fileutils understands them), so leave them,
15728         # especially as we might pass files found there to a mingw objdump,
15729         # which wouldn't understand a cygwinified path. Ahh.
15730         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15731       else
15732         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15733       fi
15734       ;;
15735     pw32*)
15736       # pw32 DLLs use 'pw' prefix rather than 'lib'
15737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15738       ;;
15739     esac
15740     ;;
15741
15742   *)
15743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15744     ;;
15745   esac
15746   dynamic_linker='Win32 ld.exe'
15747   # FIXME: first we should search . and the directory the executable is in
15748   shlibpath_var=PATH
15749   ;;
15750
15751 darwin* | rhapsody*)
15752   dynamic_linker="$host_os dyld"
15753   version_type=darwin
15754   need_lib_prefix=no
15755   need_version=no
15756   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15757   soname_spec='${libname}${release}${major}$shared_ext'
15758   shlibpath_overrides_runpath=yes
15759   shlibpath_var=DYLD_LIBRARY_PATH
15760   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15761
15762   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15763   ;;
15764
15765 dgux*)
15766   version_type=linux
15767   need_lib_prefix=no
15768   need_version=no
15769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15770   soname_spec='${libname}${release}${shared_ext}$major'
15771   shlibpath_var=LD_LIBRARY_PATH
15772   ;;
15773
15774 freebsd1*)
15775   dynamic_linker=no
15776   ;;
15777
15778 freebsd* | dragonfly*)
15779   # DragonFly does not have aout.  When/if they implement a new
15780   # versioning mechanism, adjust this.
15781   if test -x /usr/bin/objformat; then
15782     objformat=`/usr/bin/objformat`
15783   else
15784     case $host_os in
15785     freebsd[123]*) objformat=aout ;;
15786     *) objformat=elf ;;
15787     esac
15788   fi
15789   version_type=freebsd-$objformat
15790   case $version_type in
15791     freebsd-elf*)
15792       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15793       need_version=no
15794       need_lib_prefix=no
15795       ;;
15796     freebsd-*)
15797       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15798       need_version=yes
15799       ;;
15800   esac
15801   shlibpath_var=LD_LIBRARY_PATH
15802   case $host_os in
15803   freebsd2*)
15804     shlibpath_overrides_runpath=yes
15805     ;;
15806   freebsd3.[01]* | freebsdelf3.[01]*)
15807     shlibpath_overrides_runpath=yes
15808     hardcode_into_libs=yes
15809     ;;
15810   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15811   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15812     shlibpath_overrides_runpath=no
15813     hardcode_into_libs=yes
15814     ;;
15815   *) # from 4.6 on, and DragonFly
15816     shlibpath_overrides_runpath=yes
15817     hardcode_into_libs=yes
15818     ;;
15819   esac
15820   ;;
15821
15822 gnu*)
15823   version_type=linux
15824   need_lib_prefix=no
15825   need_version=no
15826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15827   soname_spec='${libname}${release}${shared_ext}$major'
15828   shlibpath_var=LD_LIBRARY_PATH
15829   hardcode_into_libs=yes
15830   ;;
15831
15832 hpux9* | hpux10* | hpux11*)
15833   # Give a soname corresponding to the major version so that dld.sl refuses to
15834   # link against other versions.
15835   version_type=sunos
15836   need_lib_prefix=no
15837   need_version=no
15838   case $host_cpu in
15839   ia64*)
15840     shrext_cmds='.so'
15841     hardcode_into_libs=yes
15842     dynamic_linker="$host_os dld.so"
15843     shlibpath_var=LD_LIBRARY_PATH
15844     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846     soname_spec='${libname}${release}${shared_ext}$major'
15847     if test "X$HPUX_IA64_MODE" = X32; then
15848       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15849     else
15850       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15851     fi
15852     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15853     ;;
15854    hppa*64*)
15855      shrext_cmds='.sl'
15856      hardcode_into_libs=yes
15857      dynamic_linker="$host_os dld.sl"
15858      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15859      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15860      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861      soname_spec='${libname}${release}${shared_ext}$major'
15862      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15863      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15864      ;;
15865    *)
15866     shrext_cmds='.sl'
15867     dynamic_linker="$host_os dld.sl"
15868     shlibpath_var=SHLIB_PATH
15869     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871     soname_spec='${libname}${release}${shared_ext}$major'
15872     ;;
15873   esac
15874   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15875   postinstall_cmds='chmod 555 $lib'
15876   ;;
15877
15878 interix[3-9]*)
15879   version_type=linux
15880   need_lib_prefix=no
15881   need_version=no
15882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15883   soname_spec='${libname}${release}${shared_ext}$major'
15884   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15885   shlibpath_var=LD_LIBRARY_PATH
15886   shlibpath_overrides_runpath=no
15887   hardcode_into_libs=yes
15888   ;;
15889
15890 irix5* | irix6* | nonstopux*)
15891   case $host_os in
15892     nonstopux*) version_type=nonstopux ;;
15893     *)
15894         if test "$lt_cv_prog_gnu_ld" = yes; then
15895                 version_type=linux
15896         else
15897                 version_type=irix
15898         fi ;;
15899   esac
15900   need_lib_prefix=no
15901   need_version=no
15902   soname_spec='${libname}${release}${shared_ext}$major'
15903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15904   case $host_os in
15905   irix5* | nonstopux*)
15906     libsuff= shlibsuff=
15907     ;;
15908   *)
15909     case $LD in # libtool.m4 will add one of these switches to LD
15910     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15911       libsuff= shlibsuff= libmagic=32-bit;;
15912     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15913       libsuff=32 shlibsuff=N32 libmagic=N32;;
15914     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15915       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15916     *) libsuff= shlibsuff= libmagic=never-match;;
15917     esac
15918     ;;
15919   esac
15920   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15921   shlibpath_overrides_runpath=no
15922   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15923   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15924   hardcode_into_libs=yes
15925   ;;
15926
15927 # No shared lib support for Linux oldld, aout, or coff.
15928 linux*oldld* | linux*aout* | linux*coff*)
15929   dynamic_linker=no
15930   ;;
15931
15932 # This must be Linux ELF.
15933 linux* | k*bsd*-gnu)
15934   version_type=linux
15935   need_lib_prefix=no
15936   need_version=no
15937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15938   soname_spec='${libname}${release}${shared_ext}$major'
15939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15940   shlibpath_var=LD_LIBRARY_PATH
15941   shlibpath_overrides_runpath=no
15942   # This implies no fast_install, which is unacceptable.
15943   # Some rework will be needed to allow for fast_install
15944   # before this can be enabled.
15945   hardcode_into_libs=yes
15946
15947   # Append ld.so.conf contents to the search path
15948   if test -f /etc/ld.so.conf; then
15949     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' ' '`
15950     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15951   fi
15952
15953   # We used to test for /lib/ld.so.1 and disable shared libraries on
15954   # powerpc, because MkLinux only supported shared libraries with the
15955   # GNU dynamic linker.  Since this was broken with cross compilers,
15956   # most powerpc-linux boxes support dynamic linking these days and
15957   # people can always --disable-shared, the test was removed, and we
15958   # assume the GNU/Linux dynamic linker is in use.
15959   dynamic_linker='GNU/Linux ld.so'
15960   ;;
15961
15962 netbsdelf*-gnu)
15963   version_type=linux
15964   need_lib_prefix=no
15965   need_version=no
15966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15967   soname_spec='${libname}${release}${shared_ext}$major'
15968   shlibpath_var=LD_LIBRARY_PATH
15969   shlibpath_overrides_runpath=no
15970   hardcode_into_libs=yes
15971   dynamic_linker='NetBSD ld.elf_so'
15972   ;;
15973
15974 netbsd*)
15975   version_type=sunos
15976   need_lib_prefix=no
15977   need_version=no
15978   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15980     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15981     dynamic_linker='NetBSD (a.out) ld.so'
15982   else
15983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15984     soname_spec='${libname}${release}${shared_ext}$major'
15985     dynamic_linker='NetBSD ld.elf_so'
15986   fi
15987   shlibpath_var=LD_LIBRARY_PATH
15988   shlibpath_overrides_runpath=yes
15989   hardcode_into_libs=yes
15990   ;;
15991
15992 newsos6)
15993   version_type=linux
15994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995   shlibpath_var=LD_LIBRARY_PATH
15996   shlibpath_overrides_runpath=yes
15997   ;;
15998
15999 nto-qnx*)
16000   version_type=linux
16001   need_lib_prefix=no
16002   need_version=no
16003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004   soname_spec='${libname}${release}${shared_ext}$major'
16005   shlibpath_var=LD_LIBRARY_PATH
16006   shlibpath_overrides_runpath=yes
16007   ;;
16008
16009 openbsd*)
16010   version_type=sunos
16011   sys_lib_dlsearch_path_spec="/usr/lib"
16012   need_lib_prefix=no
16013   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16014   case $host_os in
16015     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16016     *)                         need_version=no  ;;
16017   esac
16018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16019   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16020   shlibpath_var=LD_LIBRARY_PATH
16021   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16022     case $host_os in
16023       openbsd2.[89] | openbsd2.[89].*)
16024         shlibpath_overrides_runpath=no
16025         ;;
16026       *)
16027         shlibpath_overrides_runpath=yes
16028         ;;
16029       esac
16030   else
16031     shlibpath_overrides_runpath=yes
16032   fi
16033   ;;
16034
16035 os2*)
16036   libname_spec='$name'
16037   shrext_cmds=".dll"
16038   need_lib_prefix=no
16039   library_names_spec='$libname${shared_ext} $libname.a'
16040   dynamic_linker='OS/2 ld.exe'
16041   shlibpath_var=LIBPATH
16042   ;;
16043
16044 osf3* | osf4* | osf5*)
16045   version_type=osf
16046   need_lib_prefix=no
16047   need_version=no
16048   soname_spec='${libname}${release}${shared_ext}$major'
16049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050   shlibpath_var=LD_LIBRARY_PATH
16051   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16052   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16053   ;;
16054
16055 rdos*)
16056   dynamic_linker=no
16057   ;;
16058
16059 solaris*)
16060   version_type=linux
16061   need_lib_prefix=no
16062   need_version=no
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064   soname_spec='${libname}${release}${shared_ext}$major'
16065   shlibpath_var=LD_LIBRARY_PATH
16066   shlibpath_overrides_runpath=yes
16067   hardcode_into_libs=yes
16068   # ldd complains unless libraries are executable
16069   postinstall_cmds='chmod +x $lib'
16070   ;;
16071
16072 sunos4*)
16073   version_type=sunos
16074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16075   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=yes
16078   if test "$with_gnu_ld" = yes; then
16079     need_lib_prefix=no
16080   fi
16081   need_version=yes
16082   ;;
16083
16084 sysv4 | sysv4.3*)
16085   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
16089   case $host_vendor in
16090     sni)
16091       shlibpath_overrides_runpath=no
16092       need_lib_prefix=no
16093       export_dynamic_flag_spec='${wl}-Blargedynsym'
16094       runpath_var=LD_RUN_PATH
16095       ;;
16096     siemens)
16097       need_lib_prefix=no
16098       ;;
16099     motorola)
16100       need_lib_prefix=no
16101       need_version=no
16102       shlibpath_overrides_runpath=no
16103       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16104       ;;
16105   esac
16106   ;;
16107
16108 sysv4*MP*)
16109   if test -d /usr/nec ;then
16110     version_type=linux
16111     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16112     soname_spec='$libname${shared_ext}.$major'
16113     shlibpath_var=LD_LIBRARY_PATH
16114   fi
16115   ;;
16116
16117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16118   version_type=freebsd-elf
16119   need_lib_prefix=no
16120   need_version=no
16121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16122   soname_spec='${libname}${release}${shared_ext}$major'
16123   shlibpath_var=LD_LIBRARY_PATH
16124   hardcode_into_libs=yes
16125   if test "$with_gnu_ld" = yes; then
16126     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16127     shlibpath_overrides_runpath=no
16128   else
16129     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16130     shlibpath_overrides_runpath=yes
16131     case $host_os in
16132       sco3.2v5*)
16133         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16134         ;;
16135     esac
16136   fi
16137   sys_lib_dlsearch_path_spec='/usr/lib'
16138   ;;
16139
16140 uts4*)
16141   version_type=linux
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   ;;
16146
16147 *)
16148   dynamic_linker=no
16149   ;;
16150 esac
16151 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16152 echo "${ECHO_T}$dynamic_linker" >&6; }
16153 test "$dynamic_linker" = no && can_build_shared=no
16154
16155 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16159 fi
16160
16161 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16162 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16163   echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16166 fi
16167
16168 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16169
16170 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16171 if test "$GCC" = yes; then
16172   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16173 fi
16174
16175 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16176 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16177 hardcode_action_F77=
16178 if test -n "$hardcode_libdir_flag_spec_F77" || \
16179    test -n "$runpath_var_F77" || \
16180    test "X$hardcode_automatic_F77" = "Xyes" ; then
16181
16182   # We can hardcode non-existant directories.
16183   if test "$hardcode_direct_F77" != no &&
16184      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16185      # have to relink, otherwise we might link with an installed library
16186      # when we should be linking with a yet-to-be-installed one
16187      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16188      test "$hardcode_minus_L_F77" != no; then
16189     # Linking always hardcodes the temporary library directory.
16190     hardcode_action_F77=relink
16191   else
16192     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16193     hardcode_action_F77=immediate
16194   fi
16195 else
16196   # We cannot hardcode anything, or else we can only hardcode existing
16197   # directories.
16198   hardcode_action_F77=unsupported
16199 fi
16200 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16201 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16202
16203 if test "$hardcode_action_F77" = relink; then
16204   # Fast installation is not supported
16205   enable_fast_install=no
16206 elif test "$shlibpath_overrides_runpath" = yes ||
16207      test "$enable_shared" = no; then
16208   # Fast installation is not necessary
16209   enable_fast_install=needless
16210 fi
16211
16212
16213 # The else clause should only fire when bootstrapping the
16214 # libtool distribution, otherwise you forgot to ship ltmain.sh
16215 # with your package, and you will get complaints that there are
16216 # no rules to generate ltmain.sh.
16217 if test -f "$ltmain"; then
16218   # See if we are running on zsh, and set the options which allow our commands through
16219   # without removal of \ escapes.
16220   if test -n "${ZSH_VERSION+set}" ; then
16221     setopt NO_GLOB_SUBST
16222   fi
16223   # Now quote all the things that may contain metacharacters while being
16224   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16225   # variables and quote the copies for generation of the libtool script.
16226   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16227     SED SHELL STRIP \
16228     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16229     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16230     deplibs_check_method reload_flag reload_cmds need_locks \
16231     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16232     lt_cv_sys_global_symbol_to_c_name_address \
16233     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16234     old_postinstall_cmds old_postuninstall_cmds \
16235     compiler_F77 \
16236     CC_F77 \
16237     LD_F77 \
16238     lt_prog_compiler_wl_F77 \
16239     lt_prog_compiler_pic_F77 \
16240     lt_prog_compiler_static_F77 \
16241     lt_prog_compiler_no_builtin_flag_F77 \
16242     export_dynamic_flag_spec_F77 \
16243     thread_safe_flag_spec_F77 \
16244     whole_archive_flag_spec_F77 \
16245     enable_shared_with_static_runtimes_F77 \
16246     old_archive_cmds_F77 \
16247     old_archive_from_new_cmds_F77 \
16248     predep_objects_F77 \
16249     postdep_objects_F77 \
16250     predeps_F77 \
16251     postdeps_F77 \
16252     compiler_lib_search_path_F77 \
16253     compiler_lib_search_dirs_F77 \
16254     archive_cmds_F77 \
16255     archive_expsym_cmds_F77 \
16256     postinstall_cmds_F77 \
16257     postuninstall_cmds_F77 \
16258     old_archive_from_expsyms_cmds_F77 \
16259     allow_undefined_flag_F77 \
16260     no_undefined_flag_F77 \
16261     export_symbols_cmds_F77 \
16262     hardcode_libdir_flag_spec_F77 \
16263     hardcode_libdir_flag_spec_ld_F77 \
16264     hardcode_libdir_separator_F77 \
16265     hardcode_automatic_F77 \
16266     module_cmds_F77 \
16267     module_expsym_cmds_F77 \
16268     lt_cv_prog_compiler_c_o_F77 \
16269     fix_srcfile_path_F77 \
16270     exclude_expsyms_F77 \
16271     include_expsyms_F77; do
16272
16273     case $var in
16274     old_archive_cmds_F77 | \
16275     old_archive_from_new_cmds_F77 | \
16276     archive_cmds_F77 | \
16277     archive_expsym_cmds_F77 | \
16278     module_cmds_F77 | \
16279     module_expsym_cmds_F77 | \
16280     old_archive_from_expsyms_cmds_F77 | \
16281     export_symbols_cmds_F77 | \
16282     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16283     postinstall_cmds | postuninstall_cmds | \
16284     old_postinstall_cmds | old_postuninstall_cmds | \
16285     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16286       # Double-quote double-evaled strings.
16287       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16288       ;;
16289     *)
16290       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16291       ;;
16292     esac
16293   done
16294
16295   case $lt_echo in
16296   *'\$0 --fallback-echo"')
16297     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16298     ;;
16299   esac
16300
16301 cfgfile="$ofile"
16302
16303   cat <<__EOF__ >> "$cfgfile"
16304 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16305
16306 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16307
16308 # Shell to use when invoking shell scripts.
16309 SHELL=$lt_SHELL
16310
16311 # Whether or not to build shared libraries.
16312 build_libtool_libs=$enable_shared
16313
16314 # Whether or not to build static libraries.
16315 build_old_libs=$enable_static
16316
16317 # Whether or not to add -lc for building shared libraries.
16318 build_libtool_need_lc=$archive_cmds_need_lc_F77
16319
16320 # Whether or not to disallow shared libs when runtime libs are static
16321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16322
16323 # Whether or not to optimize for fast installation.
16324 fast_install=$enable_fast_install
16325
16326 # The host system.
16327 host_alias=$host_alias
16328 host=$host
16329 host_os=$host_os
16330
16331 # The build system.
16332 build_alias=$build_alias
16333 build=$build
16334 build_os=$build_os
16335
16336 # An echo program that does not interpret backslashes.
16337 echo=$lt_echo
16338
16339 # The archiver.
16340 AR=$lt_AR
16341 AR_FLAGS=$lt_AR_FLAGS
16342
16343 # A C compiler.
16344 LTCC=$lt_LTCC
16345
16346 # LTCC compiler flags.
16347 LTCFLAGS=$lt_LTCFLAGS
16348
16349 # A language-specific compiler.
16350 CC=$lt_compiler_F77
16351
16352 # Is the compiler the GNU C compiler?
16353 with_gcc=$GCC_F77
16354
16355 # An ERE matcher.
16356 EGREP=$lt_EGREP
16357
16358 # The linker used to build libraries.
16359 LD=$lt_LD_F77
16360
16361 # Whether we need hard or soft links.
16362 LN_S=$lt_LN_S
16363
16364 # A BSD-compatible nm program.
16365 NM=$lt_NM
16366
16367 # A symbol stripping program
16368 STRIP=$lt_STRIP
16369
16370 # Used to examine libraries when file_magic_cmd begins "file"
16371 MAGIC_CMD=$MAGIC_CMD
16372
16373 # Used on cygwin: DLL creation program.
16374 DLLTOOL="$DLLTOOL"
16375
16376 # Used on cygwin: object dumper.
16377 OBJDUMP="$OBJDUMP"
16378
16379 # Used on cygwin: assembler.
16380 AS="$AS"
16381
16382 # The name of the directory that contains temporary libtool files.
16383 objdir=$objdir
16384
16385 # How to create reloadable object files.
16386 reload_flag=$lt_reload_flag
16387 reload_cmds=$lt_reload_cmds
16388
16389 # How to pass a linker flag through the compiler.
16390 wl=$lt_lt_prog_compiler_wl_F77
16391
16392 # Object file suffix (normally "o").
16393 objext="$ac_objext"
16394
16395 # Old archive suffix (normally "a").
16396 libext="$libext"
16397
16398 # Shared library suffix (normally ".so").
16399 shrext_cmds='$shrext_cmds'
16400
16401 # Executable file suffix (normally "").
16402 exeext="$exeext"
16403
16404 # Additional compiler flags for building library objects.
16405 pic_flag=$lt_lt_prog_compiler_pic_F77
16406 pic_mode=$pic_mode
16407
16408 # What is the maximum length of a command?
16409 max_cmd_len=$lt_cv_sys_max_cmd_len
16410
16411 # Does compiler simultaneously support -c and -o options?
16412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16413
16414 # Must we lock files when doing compilation?
16415 need_locks=$lt_need_locks
16416
16417 # Do we need the lib prefix for modules?
16418 need_lib_prefix=$need_lib_prefix
16419
16420 # Do we need a version for libraries?
16421 need_version=$need_version
16422
16423 # Whether dlopen is supported.
16424 dlopen_support=$enable_dlopen
16425
16426 # Whether dlopen of programs is supported.
16427 dlopen_self=$enable_dlopen_self
16428
16429 # Whether dlopen of statically linked programs is supported.
16430 dlopen_self_static=$enable_dlopen_self_static
16431
16432 # Compiler flag to prevent dynamic linking.
16433 link_static_flag=$lt_lt_prog_compiler_static_F77
16434
16435 # Compiler flag to turn off builtin functions.
16436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16437
16438 # Compiler flag to allow reflexive dlopens.
16439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16440
16441 # Compiler flag to generate shared objects directly from archives.
16442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16443
16444 # Compiler flag to generate thread-safe objects.
16445 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16446
16447 # Library versioning type.
16448 version_type=$version_type
16449
16450 # Format of library name prefix.
16451 libname_spec=$lt_libname_spec
16452
16453 # List of archive names.  First name is the real one, the rest are links.
16454 # The last name is the one that the linker finds with -lNAME.
16455 library_names_spec=$lt_library_names_spec
16456
16457 # The coded name of the library, if different from the real name.
16458 soname_spec=$lt_soname_spec
16459
16460 # Commands used to build and install an old-style archive.
16461 RANLIB=$lt_RANLIB
16462 old_archive_cmds=$lt_old_archive_cmds_F77
16463 old_postinstall_cmds=$lt_old_postinstall_cmds
16464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16465
16466 # Create an old-style archive from a shared archive.
16467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16468
16469 # Create a temporary old-style archive to link instead of a shared archive.
16470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16471
16472 # Commands used to build and install a shared archive.
16473 archive_cmds=$lt_archive_cmds_F77
16474 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16475 postinstall_cmds=$lt_postinstall_cmds
16476 postuninstall_cmds=$lt_postuninstall_cmds
16477
16478 # Commands used to build a loadable module (assumed same as above if empty)
16479 module_cmds=$lt_module_cmds_F77
16480 module_expsym_cmds=$lt_module_expsym_cmds_F77
16481
16482 # Commands to strip libraries.
16483 old_striplib=$lt_old_striplib
16484 striplib=$lt_striplib
16485
16486 # Dependencies to place before the objects being linked to create a
16487 # shared library.
16488 predep_objects=$lt_predep_objects_F77
16489
16490 # Dependencies to place after the objects being linked to create a
16491 # shared library.
16492 postdep_objects=$lt_postdep_objects_F77
16493
16494 # Dependencies to place before the objects being linked to create a
16495 # shared library.
16496 predeps=$lt_predeps_F77
16497
16498 # Dependencies to place after the objects being linked to create a
16499 # shared library.
16500 postdeps=$lt_postdeps_F77
16501
16502 # The directories searched by this compiler when creating a shared
16503 # library
16504 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16505
16506 # The library search path used internally by the compiler when linking
16507 # a shared library.
16508 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16509
16510 # Method to check whether dependent libraries are shared objects.
16511 deplibs_check_method=$lt_deplibs_check_method
16512
16513 # Command to use when deplibs_check_method == file_magic.
16514 file_magic_cmd=$lt_file_magic_cmd
16515
16516 # Flag that allows shared libraries with undefined symbols to be built.
16517 allow_undefined_flag=$lt_allow_undefined_flag_F77
16518
16519 # Flag that forces no undefined symbols.
16520 no_undefined_flag=$lt_no_undefined_flag_F77
16521
16522 # Commands used to finish a libtool library installation in a directory.
16523 finish_cmds=$lt_finish_cmds
16524
16525 # Same as above, but a single script fragment to be evaled but not shown.
16526 finish_eval=$lt_finish_eval
16527
16528 # Take the output of nm and produce a listing of raw symbols and C names.
16529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16530
16531 # Transform the output of nm in a proper C declaration
16532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16533
16534 # Transform the output of nm in a C name address pair
16535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16536
16537 # This is the shared library runtime path variable.
16538 runpath_var=$runpath_var
16539
16540 # This is the shared library path variable.
16541 shlibpath_var=$shlibpath_var
16542
16543 # Is shlibpath searched before the hard-coded library search path?
16544 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16545
16546 # How to hardcode a shared library path into an executable.
16547 hardcode_action=$hardcode_action_F77
16548
16549 # Whether we should hardcode library paths into libraries.
16550 hardcode_into_libs=$hardcode_into_libs
16551
16552 # Flag to hardcode \$libdir into a binary during linking.
16553 # This must work even if \$libdir does not exist.
16554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16555
16556 # If ld is used when linking, flag to hardcode \$libdir into
16557 # a binary during linking. This must work even if \$libdir does
16558 # not exist.
16559 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16560
16561 # Whether we need a single -rpath flag with a separated argument.
16562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16563
16564 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16565 # resulting binary.
16566 hardcode_direct=$hardcode_direct_F77
16567
16568 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16569 # resulting binary.
16570 hardcode_minus_L=$hardcode_minus_L_F77
16571
16572 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16573 # the resulting binary.
16574 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16575
16576 # Set to yes if building a shared library automatically hardcodes DIR into the library
16577 # and all subsequent libraries and executables linked against it.
16578 hardcode_automatic=$hardcode_automatic_F77
16579
16580 # Variables whose values should be saved in libtool wrapper scripts and
16581 # restored at relink time.
16582 variables_saved_for_relink="$variables_saved_for_relink"
16583
16584 # Whether libtool must link a program against all its dependency libraries.
16585 link_all_deplibs=$link_all_deplibs_F77
16586
16587 # Compile-time system search path for libraries
16588 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16589
16590 # Run-time system search path for libraries
16591 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16592
16593 # Fix the shell variable \$srcfile for the compiler.
16594 fix_srcfile_path=$lt_fix_srcfile_path
16595
16596 # Set to yes if exported symbols are required.
16597 always_export_symbols=$always_export_symbols_F77
16598
16599 # The commands to list exported symbols.
16600 export_symbols_cmds=$lt_export_symbols_cmds_F77
16601
16602 # The commands to extract the exported symbol list from a shared archive.
16603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16604
16605 # Symbols that should not be listed in the preloaded symbols.
16606 exclude_expsyms=$lt_exclude_expsyms_F77
16607
16608 # Symbols that must always be exported.
16609 include_expsyms=$lt_include_expsyms_F77
16610
16611 # ### END LIBTOOL TAG CONFIG: $tagname
16612
16613 __EOF__
16614
16615
16616 else
16617   # If there is no Makefile yet, we rely on a make rule to execute
16618   # `config.status --recheck' to rerun these tests and create the
16619   # libtool script then.
16620   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16621   if test -f "$ltmain_in"; then
16622     test -f Makefile && make "$ltmain"
16623   fi
16624 fi
16625
16626
16627 ac_ext=c
16628 ac_cpp='$CPP $CPPFLAGS'
16629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16632
16633 CC="$lt_save_CC"
16634
16635         else
16636           tagname=""
16637         fi
16638         ;;
16639
16640       GCJ)
16641         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16642
16643
16644 # Source file extension for Java test sources.
16645 ac_ext=java
16646
16647 # Object file extension for compiled Java test sources.
16648 objext=o
16649 objext_GCJ=$objext
16650
16651 # Code to be used in simple compile tests
16652 lt_simple_compile_test_code="class foo {}"
16653
16654 # Code to be used in simple link tests
16655 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16656
16657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16658
16659 # If no C compiler was specified, use CC.
16660 LTCC=${LTCC-"$CC"}
16661
16662 # If no C compiler flags were specified, use CFLAGS.
16663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16664
16665 # Allow CC to be a program name with arguments.
16666 compiler=$CC
16667
16668
16669 # save warnings/boilerplate of simple test code
16670 ac_outfile=conftest.$ac_objext
16671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16673 _lt_compiler_boilerplate=`cat conftest.err`
16674 $rm conftest*
16675
16676 ac_outfile=conftest.$ac_objext
16677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16679 _lt_linker_boilerplate=`cat conftest.err`
16680 $rm -r conftest*
16681
16682
16683 # Allow CC to be a program name with arguments.
16684 lt_save_CC="$CC"
16685 CC=${GCJ-"gcj"}
16686 compiler=$CC
16687 compiler_GCJ=$CC
16688 for cc_temp in $compiler""; do
16689   case $cc_temp in
16690     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16691     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16692     \-*) ;;
16693     *) break;;
16694   esac
16695 done
16696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16697
16698
16699 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16700 archive_cmds_need_lc_GCJ=no
16701
16702 old_archive_cmds_GCJ=$old_archive_cmds
16703
16704
16705 lt_prog_compiler_no_builtin_flag_GCJ=
16706
16707 if test "$GCC" = yes; then
16708   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16709
16710
16711 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16712 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16713 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16714   echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716   lt_cv_prog_compiler_rtti_exceptions=no
16717   ac_outfile=conftest.$ac_objext
16718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16719    lt_compiler_flag="-fno-rtti -fno-exceptions"
16720    # Insert the option either (1) after the last *FLAGS variable, or
16721    # (2) before a word containing "conftest.", or (3) at the end.
16722    # Note that $ac_compile itself does not contain backslashes and begins
16723    # with a dollar sign (not a hyphen), so the echo should work correctly.
16724    # The option is referenced via a variable to avoid confusing sed.
16725    lt_compile=`echo "$ac_compile" | $SED \
16726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16728    -e 's:$: $lt_compiler_flag:'`
16729    (eval echo "\"\$as_me:16729: $lt_compile\"" >&5)
16730    (eval "$lt_compile" 2>conftest.err)
16731    ac_status=$?
16732    cat conftest.err >&5
16733    echo "$as_me:16733: \$? = $ac_status" >&5
16734    if (exit $ac_status) && test -s "$ac_outfile"; then
16735      # The compiler can only warn and ignore the option if not recognized
16736      # So say no if there are warnings other than the usual output.
16737      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16738      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16739      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16740        lt_cv_prog_compiler_rtti_exceptions=yes
16741      fi
16742    fi
16743    $rm conftest*
16744
16745 fi
16746 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16747 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16748
16749 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16750     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16751 else
16752     :
16753 fi
16754
16755 fi
16756
16757 lt_prog_compiler_wl_GCJ=
16758 lt_prog_compiler_pic_GCJ=
16759 lt_prog_compiler_static_GCJ=
16760
16761 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16763
16764   if test "$GCC" = yes; then
16765     lt_prog_compiler_wl_GCJ='-Wl,'
16766     lt_prog_compiler_static_GCJ='-static'
16767
16768     case $host_os in
16769       aix*)
16770       # All AIX code is PIC.
16771       if test "$host_cpu" = ia64; then
16772         # AIX 5 now supports IA64 processor
16773         lt_prog_compiler_static_GCJ='-Bstatic'
16774       fi
16775       ;;
16776
16777     amigaos*)
16778       # FIXME: we need at least 68020 code to build shared libraries, but
16779       # adding the `-m68020' flag to GCC prevents building anything better,
16780       # like `-m68040'.
16781       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16782       ;;
16783
16784     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16785       # PIC is the default for these OSes.
16786       ;;
16787
16788     mingw* | cygwin* | pw32* | os2*)
16789       # This hack is so that the source file can tell whether it is being
16790       # built for inclusion in a dll (and should export symbols for example).
16791       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16792       # (--disable-auto-import) libraries
16793
16794       ;;
16795
16796     darwin* | rhapsody*)
16797       # PIC is the default on this platform
16798       # Common symbols not allowed in MH_DYLIB files
16799       lt_prog_compiler_pic_GCJ='-fno-common'
16800       ;;
16801
16802     interix[3-9]*)
16803       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16804       # Instead, we relocate shared libraries at runtime.
16805       ;;
16806
16807     msdosdjgpp*)
16808       # Just because we use GCC doesn't mean we suddenly get shared libraries
16809       # on systems that don't support them.
16810       lt_prog_compiler_can_build_shared_GCJ=no
16811       enable_shared=no
16812       ;;
16813
16814     sysv4*MP*)
16815       if test -d /usr/nec; then
16816         lt_prog_compiler_pic_GCJ=-Kconform_pic
16817       fi
16818       ;;
16819
16820     hpux*)
16821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16822       # not for PA HP-UX.
16823       case $host_cpu in
16824       hppa*64*|ia64*)
16825         # +Z the default
16826         ;;
16827       *)
16828         lt_prog_compiler_pic_GCJ='-fPIC'
16829         ;;
16830       esac
16831       ;;
16832
16833     *)
16834       lt_prog_compiler_pic_GCJ='-fPIC'
16835       ;;
16836     esac
16837   else
16838     # PORTME Check for flag to pass linker flags through the system compiler.
16839     case $host_os in
16840     aix*)
16841       lt_prog_compiler_wl_GCJ='-Wl,'
16842       if test "$host_cpu" = ia64; then
16843         # AIX 5 now supports IA64 processor
16844         lt_prog_compiler_static_GCJ='-Bstatic'
16845       else
16846         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16847       fi
16848       ;;
16849       darwin*)
16850         # PIC is the default on this platform
16851         # Common symbols not allowed in MH_DYLIB files
16852        case $cc_basename in
16853          xlc*)
16854          lt_prog_compiler_pic_GCJ='-qnocommon'
16855          lt_prog_compiler_wl_GCJ='-Wl,'
16856          ;;
16857        esac
16858        ;;
16859
16860     mingw* | cygwin* | pw32* | os2*)
16861       # This hack is so that the source file can tell whether it is being
16862       # built for inclusion in a dll (and should export symbols for example).
16863
16864       ;;
16865
16866     hpux9* | hpux10* | hpux11*)
16867       lt_prog_compiler_wl_GCJ='-Wl,'
16868       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16869       # not for PA HP-UX.
16870       case $host_cpu in
16871       hppa*64*|ia64*)
16872         # +Z the default
16873         ;;
16874       *)
16875         lt_prog_compiler_pic_GCJ='+Z'
16876         ;;
16877       esac
16878       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16879       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16880       ;;
16881
16882     irix5* | irix6* | nonstopux*)
16883       lt_prog_compiler_wl_GCJ='-Wl,'
16884       # PIC (with -KPIC) is the default.
16885       lt_prog_compiler_static_GCJ='-non_shared'
16886       ;;
16887
16888     newsos6)
16889       lt_prog_compiler_pic_GCJ='-KPIC'
16890       lt_prog_compiler_static_GCJ='-Bstatic'
16891       ;;
16892
16893     linux* | k*bsd*-gnu)
16894       case $cc_basename in
16895       icc* | ecc*)
16896         lt_prog_compiler_wl_GCJ='-Wl,'
16897         lt_prog_compiler_pic_GCJ='-KPIC'
16898         lt_prog_compiler_static_GCJ='-static'
16899         ;;
16900       pgcc* | pgf77* | pgf90* | pgf95*)
16901         # Portland Group compilers (*not* the Pentium gcc compiler,
16902         # which looks to be a dead project)
16903         lt_prog_compiler_wl_GCJ='-Wl,'
16904         lt_prog_compiler_pic_GCJ='-fpic'
16905         lt_prog_compiler_static_GCJ='-Bstatic'
16906         ;;
16907       ccc*)
16908         lt_prog_compiler_wl_GCJ='-Wl,'
16909         # All Alpha code is PIC.
16910         lt_prog_compiler_static_GCJ='-non_shared'
16911         ;;
16912       *)
16913         case `$CC -V 2>&1 | sed 5q` in
16914         *Sun\ C*)
16915           # Sun C 5.9
16916           lt_prog_compiler_pic_GCJ='-KPIC'
16917           lt_prog_compiler_static_GCJ='-Bstatic'
16918           lt_prog_compiler_wl_GCJ='-Wl,'
16919           ;;
16920         *Sun\ F*)
16921           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16922           lt_prog_compiler_pic_GCJ='-KPIC'
16923           lt_prog_compiler_static_GCJ='-Bstatic'
16924           lt_prog_compiler_wl_GCJ=''
16925           ;;
16926         esac
16927         ;;
16928       esac
16929       ;;
16930
16931     osf3* | osf4* | osf5*)
16932       lt_prog_compiler_wl_GCJ='-Wl,'
16933       # All OSF/1 code is PIC.
16934       lt_prog_compiler_static_GCJ='-non_shared'
16935       ;;
16936
16937     rdos*)
16938       lt_prog_compiler_static_GCJ='-non_shared'
16939       ;;
16940
16941     solaris*)
16942       lt_prog_compiler_pic_GCJ='-KPIC'
16943       lt_prog_compiler_static_GCJ='-Bstatic'
16944       case $cc_basename in
16945       f77* | f90* | f95*)
16946         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16947       *)
16948         lt_prog_compiler_wl_GCJ='-Wl,';;
16949       esac
16950       ;;
16951
16952     sunos4*)
16953       lt_prog_compiler_wl_GCJ='-Qoption ld '
16954       lt_prog_compiler_pic_GCJ='-PIC'
16955       lt_prog_compiler_static_GCJ='-Bstatic'
16956       ;;
16957
16958     sysv4 | sysv4.2uw2* | sysv4.3*)
16959       lt_prog_compiler_wl_GCJ='-Wl,'
16960       lt_prog_compiler_pic_GCJ='-KPIC'
16961       lt_prog_compiler_static_GCJ='-Bstatic'
16962       ;;
16963
16964     sysv4*MP*)
16965       if test -d /usr/nec ;then
16966         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16967         lt_prog_compiler_static_GCJ='-Bstatic'
16968       fi
16969       ;;
16970
16971     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16972       lt_prog_compiler_wl_GCJ='-Wl,'
16973       lt_prog_compiler_pic_GCJ='-KPIC'
16974       lt_prog_compiler_static_GCJ='-Bstatic'
16975       ;;
16976
16977     unicos*)
16978       lt_prog_compiler_wl_GCJ='-Wl,'
16979       lt_prog_compiler_can_build_shared_GCJ=no
16980       ;;
16981
16982     uts4*)
16983       lt_prog_compiler_pic_GCJ='-pic'
16984       lt_prog_compiler_static_GCJ='-Bstatic'
16985       ;;
16986
16987     *)
16988       lt_prog_compiler_can_build_shared_GCJ=no
16989       ;;
16990     esac
16991   fi
16992
16993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16994 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16995
16996 #
16997 # Check to make sure the PIC flag actually works.
16998 #
16999 if test -n "$lt_prog_compiler_pic_GCJ"; then
17000
17001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17003 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006   lt_cv_prog_compiler_pic_works_GCJ=no
17007   ac_outfile=conftest.$ac_objext
17008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17009    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17010    # Insert the option either (1) after the last *FLAGS variable, or
17011    # (2) before a word containing "conftest.", or (3) at the end.
17012    # Note that $ac_compile itself does not contain backslashes and begins
17013    # with a dollar sign (not a hyphen), so the echo should work correctly.
17014    # The option is referenced via a variable to avoid confusing sed.
17015    lt_compile=`echo "$ac_compile" | $SED \
17016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17018    -e 's:$: $lt_compiler_flag:'`
17019    (eval echo "\"\$as_me:17019: $lt_compile\"" >&5)
17020    (eval "$lt_compile" 2>conftest.err)
17021    ac_status=$?
17022    cat conftest.err >&5
17023    echo "$as_me:17023: \$? = $ac_status" >&5
17024    if (exit $ac_status) && test -s "$ac_outfile"; then
17025      # The compiler can only warn and ignore the option if not recognized
17026      # So say no if there are warnings other than the usual output.
17027      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17028      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17029      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17030        lt_cv_prog_compiler_pic_works_GCJ=yes
17031      fi
17032    fi
17033    $rm conftest*
17034
17035 fi
17036 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17037 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17038
17039 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17040     case $lt_prog_compiler_pic_GCJ in
17041      "" | " "*) ;;
17042      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17043      esac
17044 else
17045     lt_prog_compiler_pic_GCJ=
17046      lt_prog_compiler_can_build_shared_GCJ=no
17047 fi
17048
17049 fi
17050 case $host_os in
17051   # For platforms which do not support PIC, -DPIC is meaningless:
17052   *djgpp*)
17053     lt_prog_compiler_pic_GCJ=
17054     ;;
17055   *)
17056     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17057     ;;
17058 esac
17059
17060 #
17061 # Check to make sure the static flag actually works.
17062 #
17063 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17066 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069   lt_cv_prog_compiler_static_works_GCJ=no
17070    save_LDFLAGS="$LDFLAGS"
17071    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17072    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17073    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17074      # The linker can only warn and ignore the option if not recognized
17075      # So say no if there are warnings
17076      if test -s conftest.err; then
17077        # Append any errors to the config.log.
17078        cat conftest.err 1>&5
17079        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17080        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17081        if diff conftest.exp conftest.er2 >/dev/null; then
17082          lt_cv_prog_compiler_static_works_GCJ=yes
17083        fi
17084      else
17085        lt_cv_prog_compiler_static_works_GCJ=yes
17086      fi
17087    fi
17088    $rm -r conftest*
17089    LDFLAGS="$save_LDFLAGS"
17090
17091 fi
17092 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17093 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17094
17095 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17096     :
17097 else
17098     lt_prog_compiler_static_GCJ=
17099 fi
17100
17101
17102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17104 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17105   echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107   lt_cv_prog_compiler_c_o_GCJ=no
17108    $rm -r conftest 2>/dev/null
17109    mkdir conftest
17110    cd conftest
17111    mkdir out
17112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17113
17114    lt_compiler_flag="-o out/conftest2.$ac_objext"
17115    # Insert the option either (1) after the last *FLAGS variable, or
17116    # (2) before a word containing "conftest.", or (3) at the end.
17117    # Note that $ac_compile itself does not contain backslashes and begins
17118    # with a dollar sign (not a hyphen), so the echo should work correctly.
17119    lt_compile=`echo "$ac_compile" | $SED \
17120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17122    -e 's:$: $lt_compiler_flag:'`
17123    (eval echo "\"\$as_me:17123: $lt_compile\"" >&5)
17124    (eval "$lt_compile" 2>out/conftest.err)
17125    ac_status=$?
17126    cat out/conftest.err >&5
17127    echo "$as_me:17127: \$? = $ac_status" >&5
17128    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17129    then
17130      # The compiler can only warn and ignore the option if not recognized
17131      # So say no if there are warnings
17132      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17133      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17134      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17135        lt_cv_prog_compiler_c_o_GCJ=yes
17136      fi
17137    fi
17138    chmod u+w . 2>&5
17139    $rm conftest*
17140    # SGI C++ compiler will create directory out/ii_files/ for
17141    # template instantiation
17142    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17143    $rm out/* && rmdir out
17144    cd ..
17145    rmdir conftest
17146    $rm conftest*
17147
17148 fi
17149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17151
17152
17153 hard_links="nottested"
17154 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17155   # do not overwrite the value of need_locks provided by the user
17156   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17158   hard_links=yes
17159   $rm conftest*
17160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17161   touch conftest.a
17162   ln conftest.a conftest.b 2>&5 || hard_links=no
17163   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17164   { echo "$as_me:$LINENO: result: $hard_links" >&5
17165 echo "${ECHO_T}$hard_links" >&6; }
17166   if test "$hard_links" = no; then
17167     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17169     need_locks=warn
17170   fi
17171 else
17172   need_locks=no
17173 fi
17174
17175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17177
17178   runpath_var=
17179   allow_undefined_flag_GCJ=
17180   enable_shared_with_static_runtimes_GCJ=no
17181   archive_cmds_GCJ=
17182   archive_expsym_cmds_GCJ=
17183   old_archive_From_new_cmds_GCJ=
17184   old_archive_from_expsyms_cmds_GCJ=
17185   export_dynamic_flag_spec_GCJ=
17186   whole_archive_flag_spec_GCJ=
17187   thread_safe_flag_spec_GCJ=
17188   hardcode_libdir_flag_spec_GCJ=
17189   hardcode_libdir_flag_spec_ld_GCJ=
17190   hardcode_libdir_separator_GCJ=
17191   hardcode_direct_GCJ=no
17192   hardcode_minus_L_GCJ=no
17193   hardcode_shlibpath_var_GCJ=unsupported
17194   link_all_deplibs_GCJ=unknown
17195   hardcode_automatic_GCJ=no
17196   module_cmds_GCJ=
17197   module_expsym_cmds_GCJ=
17198   always_export_symbols_GCJ=no
17199   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17200   # include_expsyms should be a list of space-separated symbols to be *always*
17201   # included in the symbol list
17202   include_expsyms_GCJ=
17203   # exclude_expsyms can be an extended regexp of symbols to exclude
17204   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17205   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17206   # as well as any symbol that contains `d'.
17207   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17208   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17209   # platforms (ab)use it in PIC code, but their linkers get confused if
17210   # the symbol is explicitly referenced.  Since portable code cannot
17211   # rely on this symbol name, it's probably fine to never include it in
17212   # preloaded symbol tables.
17213   # Exclude shared library initialization/finalization symbols.
17214   extract_expsyms_cmds=
17215   # Just being paranoid about ensuring that cc_basename is set.
17216   for cc_temp in $compiler""; do
17217   case $cc_temp in
17218     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17219     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17220     \-*) ;;
17221     *) break;;
17222   esac
17223 done
17224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17225
17226   case $host_os in
17227   cygwin* | mingw* | pw32*)
17228     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17229     # When not using gcc, we currently assume that we are using
17230     # Microsoft Visual C++.
17231     if test "$GCC" != yes; then
17232       with_gnu_ld=no
17233     fi
17234     ;;
17235   interix*)
17236     # we just hope/assume this is gcc and not c89 (= MSVC++)
17237     with_gnu_ld=yes
17238     ;;
17239   openbsd*)
17240     with_gnu_ld=no
17241     ;;
17242   esac
17243
17244   ld_shlibs_GCJ=yes
17245   if test "$with_gnu_ld" = yes; then
17246     # If archive_cmds runs LD, not CC, wlarc should be empty
17247     wlarc='${wl}'
17248
17249     # Set some defaults for GNU ld with shared library support. These
17250     # are reset later if shared libraries are not supported. Putting them
17251     # here allows them to be overridden if necessary.
17252     runpath_var=LD_RUN_PATH
17253     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17254     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17255     # ancient GNU ld didn't support --whole-archive et. al.
17256     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17257         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17258       else
17259         whole_archive_flag_spec_GCJ=
17260     fi
17261     supports_anon_versioning=no
17262     case `$LD -v 2>/dev/null` in
17263       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17264       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17265       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17266       *\ 2.11.*) ;; # other 2.11 versions
17267       *) supports_anon_versioning=yes ;;
17268     esac
17269
17270     # See if GNU ld supports shared libraries.
17271     case $host_os in
17272     aix[3-9]*)
17273       # On AIX/PPC, the GNU linker is very broken
17274       if test "$host_cpu" != ia64; then
17275         ld_shlibs_GCJ=no
17276         cat <<EOF 1>&2
17277
17278 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17279 *** to be unable to reliably create shared libraries on AIX.
17280 *** Therefore, libtool is disabling shared libraries support.  If you
17281 *** really care for shared libraries, you may want to modify your PATH
17282 *** so that a non-GNU linker is found, and then restart.
17283
17284 EOF
17285       fi
17286       ;;
17287
17288     amigaos*)
17289       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)'
17290       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17291       hardcode_minus_L_GCJ=yes
17292
17293       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17294       # that the semantics of dynamic libraries on AmigaOS, at least up
17295       # to version 4, is to share data among multiple programs linked
17296       # with the same dynamic library.  Since this doesn't match the
17297       # behavior of shared libraries on other platforms, we can't use
17298       # them.
17299       ld_shlibs_GCJ=no
17300       ;;
17301
17302     beos*)
17303       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17304         allow_undefined_flag_GCJ=unsupported
17305         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17306         # support --undefined.  This deserves some investigation.  FIXME
17307         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17308       else
17309         ld_shlibs_GCJ=no
17310       fi
17311       ;;
17312
17313     cygwin* | mingw* | pw32*)
17314       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17315       # as there is no search path for DLLs.
17316       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17317       allow_undefined_flag_GCJ=unsupported
17318       always_export_symbols_GCJ=no
17319       enable_shared_with_static_runtimes_GCJ=yes
17320       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17321
17322       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17323         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17324         # If the export-symbols file already is a .def file (1st line
17325         # is EXPORTS), use it as is; otherwise, prepend...
17326         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17327           cp $export_symbols $output_objdir/$soname.def;
17328         else
17329           echo EXPORTS > $output_objdir/$soname.def;
17330           cat $export_symbols >> $output_objdir/$soname.def;
17331         fi~
17332         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17333       else
17334         ld_shlibs_GCJ=no
17335       fi
17336       ;;
17337
17338     interix[3-9]*)
17339       hardcode_direct_GCJ=no
17340       hardcode_shlibpath_var_GCJ=no
17341       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17342       export_dynamic_flag_spec_GCJ='${wl}-E'
17343       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17344       # Instead, shared libraries are loaded at an image base (0x10000000 by
17345       # default) and relocated if they conflict, which is a slow very memory
17346       # consuming and fragmenting process.  To avoid this, we pick a random,
17347       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17348       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17349       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'
17350       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'
17351       ;;
17352
17353     gnu* | linux* | k*bsd*-gnu)
17354       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17355         tmp_addflag=
17356         case $cc_basename,$host_cpu in
17357         pgcc*)                          # Portland Group C compiler
17358           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'
17359           tmp_addflag=' $pic_flag'
17360           ;;
17361         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17362           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'
17363           tmp_addflag=' $pic_flag -Mnomain' ;;
17364         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17365           tmp_addflag=' -i_dynamic' ;;
17366         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17367           tmp_addflag=' -i_dynamic -nofor_main' ;;
17368         ifc* | ifort*)                  # Intel Fortran compiler
17369           tmp_addflag=' -nofor_main' ;;
17370         esac
17371         case `$CC -V 2>&1 | sed 5q` in
17372         *Sun\ C*)                       # Sun C 5.9
17373           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'
17374           tmp_sharedflag='-G' ;;
17375         *Sun\ F*)                       # Sun Fortran 8.3
17376           tmp_sharedflag='-G' ;;
17377         *)
17378           tmp_sharedflag='-shared' ;;
17379         esac
17380         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17381
17382         if test $supports_anon_versioning = yes; then
17383           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17384   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17385   $echo "local: *; };" >> $output_objdir/$libname.ver~
17386           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17387         fi
17388         link_all_deplibs_GCJ=no
17389       else
17390         ld_shlibs_GCJ=no
17391       fi
17392       ;;
17393
17394     netbsd* | netbsdelf*-gnu)
17395       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17396         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17397         wlarc=
17398       else
17399         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17400         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17401       fi
17402       ;;
17403
17404     solaris*)
17405       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17406         ld_shlibs_GCJ=no
17407         cat <<EOF 1>&2
17408
17409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17410 *** create shared libraries on Solaris systems.  Therefore, libtool
17411 *** is disabling shared libraries support.  We urge you to upgrade GNU
17412 *** binutils to release 2.9.1 or newer.  Another option is to modify
17413 *** your PATH or compiler configuration so that the native linker is
17414 *** used, and then restart.
17415
17416 EOF
17417       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17418         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17420       else
17421         ld_shlibs_GCJ=no
17422       fi
17423       ;;
17424
17425     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17426       case `$LD -v 2>&1` in
17427         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17428         ld_shlibs_GCJ=no
17429         cat <<_LT_EOF 1>&2
17430
17431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17432 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17433 *** is disabling shared libraries support.  We urge you to upgrade GNU
17434 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17435 *** your PATH or compiler configuration so that the native linker is
17436 *** used, and then restart.
17437
17438 _LT_EOF
17439         ;;
17440         *)
17441           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17442             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17443             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17444             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17445           else
17446             ld_shlibs_GCJ=no
17447           fi
17448         ;;
17449       esac
17450       ;;
17451
17452     sunos4*)
17453       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17454       wlarc=
17455       hardcode_direct_GCJ=yes
17456       hardcode_shlibpath_var_GCJ=no
17457       ;;
17458
17459     *)
17460       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17461         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17462         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17463       else
17464         ld_shlibs_GCJ=no
17465       fi
17466       ;;
17467     esac
17468
17469     if test "$ld_shlibs_GCJ" = no; then
17470       runpath_var=
17471       hardcode_libdir_flag_spec_GCJ=
17472       export_dynamic_flag_spec_GCJ=
17473       whole_archive_flag_spec_GCJ=
17474     fi
17475   else
17476     # PORTME fill in a description of your system's linker (not GNU ld)
17477     case $host_os in
17478     aix3*)
17479       allow_undefined_flag_GCJ=unsupported
17480       always_export_symbols_GCJ=yes
17481       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'
17482       # Note: this linker hardcodes the directories in LIBPATH if there
17483       # are no directories specified by -L.
17484       hardcode_minus_L_GCJ=yes
17485       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17486         # Neither direct hardcoding nor static linking is supported with a
17487         # broken collect2.
17488         hardcode_direct_GCJ=unsupported
17489       fi
17490       ;;
17491
17492     aix[4-9]*)
17493       if test "$host_cpu" = ia64; then
17494         # On IA64, the linker does run time linking by default, so we don't
17495         # have to do anything special.
17496         aix_use_runtimelinking=no
17497         exp_sym_flag='-Bexport'
17498         no_entry_flag=""
17499       else
17500         # If we're using GNU nm, then we don't want the "-C" option.
17501         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17502         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17503           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'
17504         else
17505           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'
17506         fi
17507         aix_use_runtimelinking=no
17508
17509         # Test if we are trying to use run time linking or normal
17510         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17511         # need to do runtime linking.
17512         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17513           for ld_flag in $LDFLAGS; do
17514           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17515             aix_use_runtimelinking=yes
17516             break
17517           fi
17518           done
17519           ;;
17520         esac
17521
17522         exp_sym_flag='-bexport'
17523         no_entry_flag='-bnoentry'
17524       fi
17525
17526       # When large executables or shared objects are built, AIX ld can
17527       # have problems creating the table of contents.  If linking a library
17528       # or program results in "error TOC overflow" add -mminimal-toc to
17529       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17530       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17531
17532       archive_cmds_GCJ=''
17533       hardcode_direct_GCJ=yes
17534       hardcode_libdir_separator_GCJ=':'
17535       link_all_deplibs_GCJ=yes
17536
17537       if test "$GCC" = yes; then
17538         case $host_os in aix4.[012]|aix4.[012].*)
17539         # We only want to do this on AIX 4.2 and lower, the check
17540         # below for broken collect2 doesn't work under 4.3+
17541           collect2name=`${CC} -print-prog-name=collect2`
17542           if test -f "$collect2name" && \
17543            strings "$collect2name" | grep resolve_lib_name >/dev/null
17544           then
17545           # We have reworked collect2
17546           :
17547           else
17548           # We have old collect2
17549           hardcode_direct_GCJ=unsupported
17550           # It fails to find uninstalled libraries when the uninstalled
17551           # path is not listed in the libpath.  Setting hardcode_minus_L
17552           # to unsupported forces relinking
17553           hardcode_minus_L_GCJ=yes
17554           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17555           hardcode_libdir_separator_GCJ=
17556           fi
17557           ;;
17558         esac
17559         shared_flag='-shared'
17560         if test "$aix_use_runtimelinking" = yes; then
17561           shared_flag="$shared_flag "'${wl}-G'
17562         fi
17563       else
17564         # not using gcc
17565         if test "$host_cpu" = ia64; then
17566         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17567         # chokes on -Wl,-G. The following line is correct:
17568           shared_flag='-G'
17569         else
17570           if test "$aix_use_runtimelinking" = yes; then
17571             shared_flag='${wl}-G'
17572           else
17573             shared_flag='${wl}-bM:SRE'
17574           fi
17575         fi
17576       fi
17577
17578       # It seems that -bexpall does not export symbols beginning with
17579       # underscore (_), so it is better to generate a list of symbols to export.
17580       always_export_symbols_GCJ=yes
17581       if test "$aix_use_runtimelinking" = yes; then
17582         # Warning - without using the other runtime loading flags (-brtl),
17583         # -berok will link without error, but may produce a broken library.
17584         allow_undefined_flag_GCJ='-berok'
17585        # Determine the default libpath from the value encoded in an empty executable.
17586        cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592
17593 int
17594 main ()
17595 {
17596
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext conftest$ac_exeext
17602 if { (ac_try="$ac_link"
17603 case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_link") 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } && {
17615          test -z "$ac_c_werror_flag" ||
17616          test ! -s conftest.err
17617        } && test -s conftest$ac_exeext &&
17618        $as_test_x conftest$ac_exeext; then
17619
17620 lt_aix_libpath_sed='
17621     /Import File Strings/,/^$/ {
17622         /^0/ {
17623             s/^0  *\(.*\)$/\1/
17624             p
17625         }
17626     }'
17627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17628 # Check for a 64-bit object if we didn't find anything.
17629 if test -z "$aix_libpath"; then
17630   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17631 fi
17632 else
17633   echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636
17637 fi
17638
17639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640       conftest$ac_exeext conftest.$ac_ext
17641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17642
17643        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17644         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"
17645        else
17646         if test "$host_cpu" = ia64; then
17647           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17648           allow_undefined_flag_GCJ="-z nodefs"
17649           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"
17650         else
17651          # Determine the default libpath from the value encoded in an empty executable.
17652          cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658
17659 int
17660 main ()
17661 {
17662
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671   *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674   (eval "$ac_link") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_c_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest$ac_exeext &&
17684        $as_test_x conftest$ac_exeext; then
17685
17686 lt_aix_libpath_sed='
17687     /Import File Strings/,/^$/ {
17688         /^0/ {
17689             s/^0  *\(.*\)$/\1/
17690             p
17691         }
17692     }'
17693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17694 # Check for a 64-bit object if we didn't find anything.
17695 if test -z "$aix_libpath"; then
17696   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17697 fi
17698 else
17699   echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702
17703 fi
17704
17705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17706       conftest$ac_exeext conftest.$ac_ext
17707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17708
17709          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17710           # Warning - without using the other run time loading flags,
17711           # -berok will link without error, but may produce a broken library.
17712           no_undefined_flag_GCJ=' ${wl}-bernotok'
17713           allow_undefined_flag_GCJ=' ${wl}-berok'
17714           # Exported symbols can be pulled into shared objects from archives
17715           whole_archive_flag_spec_GCJ='$convenience'
17716           archive_cmds_need_lc_GCJ=yes
17717           # This is similar to how AIX traditionally builds its shared libraries.
17718           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'
17719         fi
17720       fi
17721       ;;
17722
17723     amigaos*)
17724       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)'
17725       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17726       hardcode_minus_L_GCJ=yes
17727       # see comment about different semantics on the GNU ld section
17728       ld_shlibs_GCJ=no
17729       ;;
17730
17731     bsdi[45]*)
17732       export_dynamic_flag_spec_GCJ=-rdynamic
17733       ;;
17734
17735     cygwin* | mingw* | pw32*)
17736       # When not using gcc, we currently assume that we are using
17737       # Microsoft Visual C++.
17738       # hardcode_libdir_flag_spec is actually meaningless, as there is
17739       # no search path for DLLs.
17740       hardcode_libdir_flag_spec_GCJ=' '
17741       allow_undefined_flag_GCJ=unsupported
17742       # Tell ltmain to make .lib files, not .a files.
17743       libext=lib
17744       # Tell ltmain to make .dll files, not .so files.
17745       shrext_cmds=".dll"
17746       # FIXME: Setting linknames here is a bad hack.
17747       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17748       # The linker will automatically build a .lib file if we build a DLL.
17749       old_archive_From_new_cmds_GCJ='true'
17750       # FIXME: Should let the user specify the lib program.
17751       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17752       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17753       enable_shared_with_static_runtimes_GCJ=yes
17754       ;;
17755
17756     darwin* | rhapsody*)
17757       case $host_os in
17758         rhapsody* | darwin1.[012])
17759          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17760          ;;
17761        *) # Darwin 1.3 on
17762          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17763            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17764          else
17765            case ${MACOSX_DEPLOYMENT_TARGET} in
17766              10.[012])
17767                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17768                ;;
17769              10.*)
17770                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17771                ;;
17772            esac
17773          fi
17774          ;;
17775       esac
17776       archive_cmds_need_lc_GCJ=no
17777       hardcode_direct_GCJ=no
17778       hardcode_automatic_GCJ=yes
17779       hardcode_shlibpath_var_GCJ=unsupported
17780       whole_archive_flag_spec_GCJ=''
17781       link_all_deplibs_GCJ=yes
17782     if test "$GCC" = yes ; then
17783         output_verbose_link_cmd='echo'
17784         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}"
17785         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17786         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}"
17787         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}"
17788     else
17789       case $cc_basename in
17790         xlc*)
17791          output_verbose_link_cmd='echo'
17792          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17793          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17794           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17795          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}'
17796           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}'
17797           ;;
17798        *)
17799          ld_shlibs_GCJ=no
17800           ;;
17801       esac
17802     fi
17803       ;;
17804
17805     dgux*)
17806       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17807       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17808       hardcode_shlibpath_var_GCJ=no
17809       ;;
17810
17811     freebsd1*)
17812       ld_shlibs_GCJ=no
17813       ;;
17814
17815     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17816     # support.  Future versions do this automatically, but an explicit c++rt0.o
17817     # does not break anything, and helps significantly (at the cost of a little
17818     # extra space).
17819     freebsd2.2*)
17820       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17821       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17822       hardcode_direct_GCJ=yes
17823       hardcode_shlibpath_var_GCJ=no
17824       ;;
17825
17826     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17827     freebsd2*)
17828       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17829       hardcode_direct_GCJ=yes
17830       hardcode_minus_L_GCJ=yes
17831       hardcode_shlibpath_var_GCJ=no
17832       ;;
17833
17834     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17835     freebsd* | dragonfly*)
17836       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17837       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17838       hardcode_direct_GCJ=yes
17839       hardcode_shlibpath_var_GCJ=no
17840       ;;
17841
17842     hpux9*)
17843       if test "$GCC" = yes; then
17844         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'
17845       else
17846         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'
17847       fi
17848       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17849       hardcode_libdir_separator_GCJ=:
17850       hardcode_direct_GCJ=yes
17851
17852       # hardcode_minus_L: Not really in the search PATH,
17853       # but as the default location of the library.
17854       hardcode_minus_L_GCJ=yes
17855       export_dynamic_flag_spec_GCJ='${wl}-E'
17856       ;;
17857
17858     hpux10*)
17859       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17860         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17861       else
17862         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17863       fi
17864       if test "$with_gnu_ld" = no; then
17865         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17866         hardcode_libdir_separator_GCJ=:
17867
17868         hardcode_direct_GCJ=yes
17869         export_dynamic_flag_spec_GCJ='${wl}-E'
17870
17871         # hardcode_minus_L: Not really in the search PATH,
17872         # but as the default location of the library.
17873         hardcode_minus_L_GCJ=yes
17874       fi
17875       ;;
17876
17877     hpux11*)
17878       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17879         case $host_cpu in
17880         hppa*64*)
17881           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17882           ;;
17883         ia64*)
17884           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17885           ;;
17886         *)
17887           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17888           ;;
17889         esac
17890       else
17891         case $host_cpu in
17892         hppa*64*)
17893           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17894           ;;
17895         ia64*)
17896           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17897           ;;
17898         *)
17899           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17900           ;;
17901         esac
17902       fi
17903       if test "$with_gnu_ld" = no; then
17904         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17905         hardcode_libdir_separator_GCJ=:
17906
17907         case $host_cpu in
17908         hppa*64*|ia64*)
17909           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17910           hardcode_direct_GCJ=no
17911           hardcode_shlibpath_var_GCJ=no
17912           ;;
17913         *)
17914           hardcode_direct_GCJ=yes
17915           export_dynamic_flag_spec_GCJ='${wl}-E'
17916
17917           # hardcode_minus_L: Not really in the search PATH,
17918           # but as the default location of the library.
17919           hardcode_minus_L_GCJ=yes
17920           ;;
17921         esac
17922       fi
17923       ;;
17924
17925     irix5* | irix6* | nonstopux*)
17926       if test "$GCC" = yes; then
17927         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'
17928       else
17929         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'
17930         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17931       fi
17932       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17933       hardcode_libdir_separator_GCJ=:
17934       link_all_deplibs_GCJ=yes
17935       ;;
17936
17937     netbsd* | netbsdelf*-gnu)
17938       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17939         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17940       else
17941         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17942       fi
17943       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17944       hardcode_direct_GCJ=yes
17945       hardcode_shlibpath_var_GCJ=no
17946       ;;
17947
17948     newsos6)
17949       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950       hardcode_direct_GCJ=yes
17951       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17952       hardcode_libdir_separator_GCJ=:
17953       hardcode_shlibpath_var_GCJ=no
17954       ;;
17955
17956     openbsd*)
17957       if test -f /usr/libexec/ld.so; then
17958         hardcode_direct_GCJ=yes
17959         hardcode_shlibpath_var_GCJ=no
17960         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17961           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17962           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17963           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17964           export_dynamic_flag_spec_GCJ='${wl}-E'
17965         else
17966           case $host_os in
17967            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17968              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17969              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17970              ;;
17971            *)
17972              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17973              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17974              ;;
17975           esac
17976         fi
17977       else
17978         ld_shlibs_GCJ=no
17979       fi
17980       ;;
17981
17982     os2*)
17983       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984       hardcode_minus_L_GCJ=yes
17985       allow_undefined_flag_GCJ=unsupported
17986       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'
17987       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17988       ;;
17989
17990     osf3*)
17991       if test "$GCC" = yes; then
17992         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17993         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'
17994       else
17995         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17996         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'
17997       fi
17998       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17999       hardcode_libdir_separator_GCJ=:
18000       ;;
18001
18002     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18003       if test "$GCC" = yes; then
18004         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18005         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'
18006         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18007       else
18008         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18009         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'
18010         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~
18011         $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'
18012
18013         # Both c and cxx compiler support -rpath directly
18014         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18015       fi
18016       hardcode_libdir_separator_GCJ=:
18017       ;;
18018
18019     solaris*)
18020       no_undefined_flag_GCJ=' -z text'
18021       if test "$GCC" = yes; then
18022         wlarc='${wl}'
18023         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18024         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18025           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18026       else
18027         wlarc=''
18028         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18029         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18030         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18031       fi
18032       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18033       hardcode_shlibpath_var_GCJ=no
18034       case $host_os in
18035       solaris2.[0-5] | solaris2.[0-5].*) ;;
18036       *)
18037         # The compiler driver will combine and reorder linker options,
18038         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18039         # but is careful enough not to reorder.
18040         # Supported since Solaris 2.6 (maybe 2.5.1?)
18041         if test "$GCC" = yes; then
18042           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18043         else
18044           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18045         fi
18046         ;;
18047       esac
18048       link_all_deplibs_GCJ=yes
18049       ;;
18050
18051     sunos4*)
18052       if test "x$host_vendor" = xsequent; then
18053         # Use $CC to link under sequent, because it throws in some extra .o
18054         # files that make .init and .fini sections work.
18055         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18056       else
18057         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18058       fi
18059       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060       hardcode_direct_GCJ=yes
18061       hardcode_minus_L_GCJ=yes
18062       hardcode_shlibpath_var_GCJ=no
18063       ;;
18064
18065     sysv4)
18066       case $host_vendor in
18067         sni)
18068           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069           hardcode_direct_GCJ=yes # is this really true???
18070         ;;
18071         siemens)
18072           ## LD is ld it makes a PLAMLIB
18073           ## CC just makes a GrossModule.
18074           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18075           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18076           hardcode_direct_GCJ=no
18077         ;;
18078         motorola)
18079           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18081         ;;
18082       esac
18083       runpath_var='LD_RUN_PATH'
18084       hardcode_shlibpath_var_GCJ=no
18085       ;;
18086
18087     sysv4.3*)
18088       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18089       hardcode_shlibpath_var_GCJ=no
18090       export_dynamic_flag_spec_GCJ='-Bexport'
18091       ;;
18092
18093     sysv4*MP*)
18094       if test -d /usr/nec; then
18095         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18096         hardcode_shlibpath_var_GCJ=no
18097         runpath_var=LD_RUN_PATH
18098         hardcode_runpath_var=yes
18099         ld_shlibs_GCJ=yes
18100       fi
18101       ;;
18102
18103     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18104       no_undefined_flag_GCJ='${wl}-z,text'
18105       archive_cmds_need_lc_GCJ=no
18106       hardcode_shlibpath_var_GCJ=no
18107       runpath_var='LD_RUN_PATH'
18108
18109       if test "$GCC" = yes; then
18110         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18111         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112       else
18113         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115       fi
18116       ;;
18117
18118     sysv5* | sco3.2v5* | sco5v6*)
18119       # Note: We can NOT use -z defs as we might desire, because we do not
18120       # link with -lc, and that would cause any symbols used from libc to
18121       # always be unresolved, which means just about no library would
18122       # ever link correctly.  If we're not using GNU ld we use -z text
18123       # though, which does catch some bad symbols but isn't as heavy-handed
18124       # as -z defs.
18125       no_undefined_flag_GCJ='${wl}-z,text'
18126       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18127       archive_cmds_need_lc_GCJ=no
18128       hardcode_shlibpath_var_GCJ=no
18129       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18130       hardcode_libdir_separator_GCJ=':'
18131       link_all_deplibs_GCJ=yes
18132       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18133       runpath_var='LD_RUN_PATH'
18134
18135       if test "$GCC" = yes; then
18136         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18137         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138       else
18139         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141       fi
18142       ;;
18143
18144     uts4*)
18145       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18146       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18147       hardcode_shlibpath_var_GCJ=no
18148       ;;
18149
18150     *)
18151       ld_shlibs_GCJ=no
18152       ;;
18153     esac
18154   fi
18155
18156 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18157 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18158 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18159
18160 #
18161 # Do we need to explicitly link libc?
18162 #
18163 case "x$archive_cmds_need_lc_GCJ" in
18164 x|xyes)
18165   # Assume -lc should be added
18166   archive_cmds_need_lc_GCJ=yes
18167
18168   if test "$enable_shared" = yes && test "$GCC" = yes; then
18169     case $archive_cmds_GCJ in
18170     *'~'*)
18171       # FIXME: we may have to deal with multi-command sequences.
18172       ;;
18173     '$CC '*)
18174       # Test whether the compiler implicitly links with -lc since on some
18175       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18176       # to ld, don't add -lc before -lgcc.
18177       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18178 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18179       $rm conftest*
18180       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18181
18182       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18183   (eval $ac_compile) 2>&5
18184   ac_status=$?
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } 2>conftest.err; then
18187         soname=conftest
18188         lib=conftest
18189         libobjs=conftest.$ac_objext
18190         deplibs=
18191         wl=$lt_prog_compiler_wl_GCJ
18192         pic_flag=$lt_prog_compiler_pic_GCJ
18193         compiler_flags=-v
18194         linker_flags=-v
18195         verstring=
18196         output_objdir=.
18197         libname=conftest
18198         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18199         allow_undefined_flag_GCJ=
18200         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18201   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18202   ac_status=$?
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); }
18205         then
18206           archive_cmds_need_lc_GCJ=no
18207         else
18208           archive_cmds_need_lc_GCJ=yes
18209         fi
18210         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18211       else
18212         cat conftest.err 1>&5
18213       fi
18214       $rm conftest*
18215       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18216 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18217       ;;
18218     esac
18219   fi
18220   ;;
18221 esac
18222
18223 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18224 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18225 library_names_spec=
18226 libname_spec='lib$name'
18227 soname_spec=
18228 shrext_cmds=".so"
18229 postinstall_cmds=
18230 postuninstall_cmds=
18231 finish_cmds=
18232 finish_eval=
18233 shlibpath_var=
18234 shlibpath_overrides_runpath=unknown
18235 version_type=none
18236 dynamic_linker="$host_os ld.so"
18237 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18238
18239 need_lib_prefix=unknown
18240 hardcode_into_libs=no
18241
18242 # when you set need_version to no, make sure it does not cause -set_version
18243 # flags to be left without arguments
18244 need_version=unknown
18245
18246 case $host_os in
18247 aix3*)
18248   version_type=linux
18249   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18250   shlibpath_var=LIBPATH
18251
18252   # AIX 3 has no versioning support, so we append a major version to the name.
18253   soname_spec='${libname}${release}${shared_ext}$major'
18254   ;;
18255
18256 aix[4-9]*)
18257   version_type=linux
18258   need_lib_prefix=no
18259   need_version=no
18260   hardcode_into_libs=yes
18261   if test "$host_cpu" = ia64; then
18262     # AIX 5 supports IA64
18263     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18264     shlibpath_var=LD_LIBRARY_PATH
18265   else
18266     # With GCC up to 2.95.x, collect2 would create an import file
18267     # for dependence libraries.  The import file would start with
18268     # the line `#! .'.  This would cause the generated library to
18269     # depend on `.', always an invalid library.  This was fixed in
18270     # development snapshots of GCC prior to 3.0.
18271     case $host_os in
18272       aix4 | aix4.[01] | aix4.[01].*)
18273       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18274            echo ' yes '
18275            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18276         :
18277       else
18278         can_build_shared=no
18279       fi
18280       ;;
18281     esac
18282     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18283     # soname into executable. Probably we can add versioning support to
18284     # collect2, so additional links can be useful in future.
18285     if test "$aix_use_runtimelinking" = yes; then
18286       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18287       # instead of lib<name>.a to let people know that these are not
18288       # typical AIX shared libraries.
18289       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18290     else
18291       # We preserve .a as extension for shared libraries through AIX4.2
18292       # and later when we are not doing run time linking.
18293       library_names_spec='${libname}${release}.a $libname.a'
18294       soname_spec='${libname}${release}${shared_ext}$major'
18295     fi
18296     shlibpath_var=LIBPATH
18297   fi
18298   ;;
18299
18300 amigaos*)
18301   library_names_spec='$libname.ixlibrary $libname.a'
18302   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18303   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'
18304   ;;
18305
18306 beos*)
18307   library_names_spec='${libname}${shared_ext}'
18308   dynamic_linker="$host_os ld.so"
18309   shlibpath_var=LIBRARY_PATH
18310   ;;
18311
18312 bsdi[45]*)
18313   version_type=linux
18314   need_version=no
18315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316   soname_spec='${libname}${release}${shared_ext}$major'
18317   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18318   shlibpath_var=LD_LIBRARY_PATH
18319   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18320   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18321   # the default ld.so.conf also contains /usr/contrib/lib and
18322   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18323   # libtool to hard-code these into programs
18324   ;;
18325
18326 cygwin* | mingw* | pw32*)
18327   version_type=windows
18328   shrext_cmds=".dll"
18329   need_version=no
18330   need_lib_prefix=no
18331
18332   case $GCC,$host_os in
18333   yes,cygwin* | yes,mingw* | yes,pw32*)
18334     library_names_spec='$libname.dll.a'
18335     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18336     postinstall_cmds='base_file=`basename \${file}`~
18337       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18338       dldir=$destdir/`dirname \$dlpath`~
18339       test -d \$dldir || mkdir -p \$dldir~
18340       $install_prog $dir/$dlname \$dldir/$dlname~
18341       chmod a+x \$dldir/$dlname'
18342     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18343       dlpath=$dir/\$dldll~
18344        $rm \$dlpath'
18345     shlibpath_overrides_runpath=yes
18346
18347     case $host_os in
18348     cygwin*)
18349       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18350       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18351       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18352       ;;
18353     mingw*)
18354       # MinGW DLLs use traditional 'lib' prefix
18355       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18356       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18357       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18358         # It is most probably a Windows format PATH printed by
18359         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18360         # path with ; separators, and with drive letters. We can handle the
18361         # drive letters (cygwin fileutils understands them), so leave them,
18362         # especially as we might pass files found there to a mingw objdump,
18363         # which wouldn't understand a cygwinified path. Ahh.
18364         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18365       else
18366         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18367       fi
18368       ;;
18369     pw32*)
18370       # pw32 DLLs use 'pw' prefix rather than 'lib'
18371       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18372       ;;
18373     esac
18374     ;;
18375
18376   *)
18377     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18378     ;;
18379   esac
18380   dynamic_linker='Win32 ld.exe'
18381   # FIXME: first we should search . and the directory the executable is in
18382   shlibpath_var=PATH
18383   ;;
18384
18385 darwin* | rhapsody*)
18386   dynamic_linker="$host_os dyld"
18387   version_type=darwin
18388   need_lib_prefix=no
18389   need_version=no
18390   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18391   soname_spec='${libname}${release}${major}$shared_ext'
18392   shlibpath_overrides_runpath=yes
18393   shlibpath_var=DYLD_LIBRARY_PATH
18394   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18395
18396   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18397   ;;
18398
18399 dgux*)
18400   version_type=linux
18401   need_lib_prefix=no
18402   need_version=no
18403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18404   soname_spec='${libname}${release}${shared_ext}$major'
18405   shlibpath_var=LD_LIBRARY_PATH
18406   ;;
18407
18408 freebsd1*)
18409   dynamic_linker=no
18410   ;;
18411
18412 freebsd* | dragonfly*)
18413   # DragonFly does not have aout.  When/if they implement a new
18414   # versioning mechanism, adjust this.
18415   if test -x /usr/bin/objformat; then
18416     objformat=`/usr/bin/objformat`
18417   else
18418     case $host_os in
18419     freebsd[123]*) objformat=aout ;;
18420     *) objformat=elf ;;
18421     esac
18422   fi
18423   version_type=freebsd-$objformat
18424   case $version_type in
18425     freebsd-elf*)
18426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18427       need_version=no
18428       need_lib_prefix=no
18429       ;;
18430     freebsd-*)
18431       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18432       need_version=yes
18433       ;;
18434   esac
18435   shlibpath_var=LD_LIBRARY_PATH
18436   case $host_os in
18437   freebsd2*)
18438     shlibpath_overrides_runpath=yes
18439     ;;
18440   freebsd3.[01]* | freebsdelf3.[01]*)
18441     shlibpath_overrides_runpath=yes
18442     hardcode_into_libs=yes
18443     ;;
18444   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18445   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18446     shlibpath_overrides_runpath=no
18447     hardcode_into_libs=yes
18448     ;;
18449   *) # from 4.6 on, and DragonFly
18450     shlibpath_overrides_runpath=yes
18451     hardcode_into_libs=yes
18452     ;;
18453   esac
18454   ;;
18455
18456 gnu*)
18457   version_type=linux
18458   need_lib_prefix=no
18459   need_version=no
18460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18461   soname_spec='${libname}${release}${shared_ext}$major'
18462   shlibpath_var=LD_LIBRARY_PATH
18463   hardcode_into_libs=yes
18464   ;;
18465
18466 hpux9* | hpux10* | hpux11*)
18467   # Give a soname corresponding to the major version so that dld.sl refuses to
18468   # link against other versions.
18469   version_type=sunos
18470   need_lib_prefix=no
18471   need_version=no
18472   case $host_cpu in
18473   ia64*)
18474     shrext_cmds='.so'
18475     hardcode_into_libs=yes
18476     dynamic_linker="$host_os dld.so"
18477     shlibpath_var=LD_LIBRARY_PATH
18478     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18480     soname_spec='${libname}${release}${shared_ext}$major'
18481     if test "X$HPUX_IA64_MODE" = X32; then
18482       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18483     else
18484       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18485     fi
18486     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18487     ;;
18488    hppa*64*)
18489      shrext_cmds='.sl'
18490      hardcode_into_libs=yes
18491      dynamic_linker="$host_os dld.sl"
18492      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18493      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18494      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495      soname_spec='${libname}${release}${shared_ext}$major'
18496      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18497      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18498      ;;
18499    *)
18500     shrext_cmds='.sl'
18501     dynamic_linker="$host_os dld.sl"
18502     shlibpath_var=SHLIB_PATH
18503     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18505     soname_spec='${libname}${release}${shared_ext}$major'
18506     ;;
18507   esac
18508   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18509   postinstall_cmds='chmod 555 $lib'
18510   ;;
18511
18512 interix[3-9]*)
18513   version_type=linux
18514   need_lib_prefix=no
18515   need_version=no
18516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517   soname_spec='${libname}${release}${shared_ext}$major'
18518   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18519   shlibpath_var=LD_LIBRARY_PATH
18520   shlibpath_overrides_runpath=no
18521   hardcode_into_libs=yes
18522   ;;
18523
18524 irix5* | irix6* | nonstopux*)
18525   case $host_os in
18526     nonstopux*) version_type=nonstopux ;;
18527     *)
18528         if test "$lt_cv_prog_gnu_ld" = yes; then
18529                 version_type=linux
18530         else
18531                 version_type=irix
18532         fi ;;
18533   esac
18534   need_lib_prefix=no
18535   need_version=no
18536   soname_spec='${libname}${release}${shared_ext}$major'
18537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18538   case $host_os in
18539   irix5* | nonstopux*)
18540     libsuff= shlibsuff=
18541     ;;
18542   *)
18543     case $LD in # libtool.m4 will add one of these switches to LD
18544     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18545       libsuff= shlibsuff= libmagic=32-bit;;
18546     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18547       libsuff=32 shlibsuff=N32 libmagic=N32;;
18548     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18549       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18550     *) libsuff= shlibsuff= libmagic=never-match;;
18551     esac
18552     ;;
18553   esac
18554   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18555   shlibpath_overrides_runpath=no
18556   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18557   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18558   hardcode_into_libs=yes
18559   ;;
18560
18561 # No shared lib support for Linux oldld, aout, or coff.
18562 linux*oldld* | linux*aout* | linux*coff*)
18563   dynamic_linker=no
18564   ;;
18565
18566 # This must be Linux ELF.
18567 linux* | k*bsd*-gnu)
18568   version_type=linux
18569   need_lib_prefix=no
18570   need_version=no
18571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572   soname_spec='${libname}${release}${shared_ext}$major'
18573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18574   shlibpath_var=LD_LIBRARY_PATH
18575   shlibpath_overrides_runpath=no
18576   # This implies no fast_install, which is unacceptable.
18577   # Some rework will be needed to allow for fast_install
18578   # before this can be enabled.
18579   hardcode_into_libs=yes
18580
18581   # Append ld.so.conf contents to the search path
18582   if test -f /etc/ld.so.conf; then
18583     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' ' '`
18584     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18585   fi
18586
18587   # We used to test for /lib/ld.so.1 and disable shared libraries on
18588   # powerpc, because MkLinux only supported shared libraries with the
18589   # GNU dynamic linker.  Since this was broken with cross compilers,
18590   # most powerpc-linux boxes support dynamic linking these days and
18591   # people can always --disable-shared, the test was removed, and we
18592   # assume the GNU/Linux dynamic linker is in use.
18593   dynamic_linker='GNU/Linux ld.so'
18594   ;;
18595
18596 netbsdelf*-gnu)
18597   version_type=linux
18598   need_lib_prefix=no
18599   need_version=no
18600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18601   soname_spec='${libname}${release}${shared_ext}$major'
18602   shlibpath_var=LD_LIBRARY_PATH
18603   shlibpath_overrides_runpath=no
18604   hardcode_into_libs=yes
18605   dynamic_linker='NetBSD ld.elf_so'
18606   ;;
18607
18608 netbsd*)
18609   version_type=sunos
18610   need_lib_prefix=no
18611   need_version=no
18612   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18614     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18615     dynamic_linker='NetBSD (a.out) ld.so'
18616   else
18617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18618     soname_spec='${libname}${release}${shared_ext}$major'
18619     dynamic_linker='NetBSD ld.elf_so'
18620   fi
18621   shlibpath_var=LD_LIBRARY_PATH
18622   shlibpath_overrides_runpath=yes
18623   hardcode_into_libs=yes
18624   ;;
18625
18626 newsos6)
18627   version_type=linux
18628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629   shlibpath_var=LD_LIBRARY_PATH
18630   shlibpath_overrides_runpath=yes
18631   ;;
18632
18633 nto-qnx*)
18634   version_type=linux
18635   need_lib_prefix=no
18636   need_version=no
18637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638   soname_spec='${libname}${release}${shared_ext}$major'
18639   shlibpath_var=LD_LIBRARY_PATH
18640   shlibpath_overrides_runpath=yes
18641   ;;
18642
18643 openbsd*)
18644   version_type=sunos
18645   sys_lib_dlsearch_path_spec="/usr/lib"
18646   need_lib_prefix=no
18647   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18648   case $host_os in
18649     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18650     *)                         need_version=no  ;;
18651   esac
18652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18654   shlibpath_var=LD_LIBRARY_PATH
18655   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18656     case $host_os in
18657       openbsd2.[89] | openbsd2.[89].*)
18658         shlibpath_overrides_runpath=no
18659         ;;
18660       *)
18661         shlibpath_overrides_runpath=yes
18662         ;;
18663       esac
18664   else
18665     shlibpath_overrides_runpath=yes
18666   fi
18667   ;;
18668
18669 os2*)
18670   libname_spec='$name'
18671   shrext_cmds=".dll"
18672   need_lib_prefix=no
18673   library_names_spec='$libname${shared_ext} $libname.a'
18674   dynamic_linker='OS/2 ld.exe'
18675   shlibpath_var=LIBPATH
18676   ;;
18677
18678 osf3* | osf4* | osf5*)
18679   version_type=osf
18680   need_lib_prefix=no
18681   need_version=no
18682   soname_spec='${libname}${release}${shared_ext}$major'
18683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684   shlibpath_var=LD_LIBRARY_PATH
18685   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18686   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18687   ;;
18688
18689 rdos*)
18690   dynamic_linker=no
18691   ;;
18692
18693 solaris*)
18694   version_type=linux
18695   need_lib_prefix=no
18696   need_version=no
18697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18698   soname_spec='${libname}${release}${shared_ext}$major'
18699   shlibpath_var=LD_LIBRARY_PATH
18700   shlibpath_overrides_runpath=yes
18701   hardcode_into_libs=yes
18702   # ldd complains unless libraries are executable
18703   postinstall_cmds='chmod +x $lib'
18704   ;;
18705
18706 sunos4*)
18707   version_type=sunos
18708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18709   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18710   shlibpath_var=LD_LIBRARY_PATH
18711   shlibpath_overrides_runpath=yes
18712   if test "$with_gnu_ld" = yes; then
18713     need_lib_prefix=no
18714   fi
18715   need_version=yes
18716   ;;
18717
18718 sysv4 | sysv4.3*)
18719   version_type=linux
18720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721   soname_spec='${libname}${release}${shared_ext}$major'
18722   shlibpath_var=LD_LIBRARY_PATH
18723   case $host_vendor in
18724     sni)
18725       shlibpath_overrides_runpath=no
18726       need_lib_prefix=no
18727       export_dynamic_flag_spec='${wl}-Blargedynsym'
18728       runpath_var=LD_RUN_PATH
18729       ;;
18730     siemens)
18731       need_lib_prefix=no
18732       ;;
18733     motorola)
18734       need_lib_prefix=no
18735       need_version=no
18736       shlibpath_overrides_runpath=no
18737       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18738       ;;
18739   esac
18740   ;;
18741
18742 sysv4*MP*)
18743   if test -d /usr/nec ;then
18744     version_type=linux
18745     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18746     soname_spec='$libname${shared_ext}.$major'
18747     shlibpath_var=LD_LIBRARY_PATH
18748   fi
18749   ;;
18750
18751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18752   version_type=freebsd-elf
18753   need_lib_prefix=no
18754   need_version=no
18755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18756   soname_spec='${libname}${release}${shared_ext}$major'
18757   shlibpath_var=LD_LIBRARY_PATH
18758   hardcode_into_libs=yes
18759   if test "$with_gnu_ld" = yes; then
18760     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18761     shlibpath_overrides_runpath=no
18762   else
18763     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18764     shlibpath_overrides_runpath=yes
18765     case $host_os in
18766       sco3.2v5*)
18767         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18768         ;;
18769     esac
18770   fi
18771   sys_lib_dlsearch_path_spec='/usr/lib'
18772   ;;
18773
18774 uts4*)
18775   version_type=linux
18776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777   soname_spec='${libname}${release}${shared_ext}$major'
18778   shlibpath_var=LD_LIBRARY_PATH
18779   ;;
18780
18781 *)
18782   dynamic_linker=no
18783   ;;
18784 esac
18785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18786 echo "${ECHO_T}$dynamic_linker" >&6; }
18787 test "$dynamic_linker" = no && can_build_shared=no
18788
18789 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18793 fi
18794
18795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18800 fi
18801
18802 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18803
18804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18805 if test "$GCC" = yes; then
18806   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18807 fi
18808
18809 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18811 hardcode_action_GCJ=
18812 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18813    test -n "$runpath_var_GCJ" || \
18814    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18815
18816   # We can hardcode non-existant directories.
18817   if test "$hardcode_direct_GCJ" != no &&
18818      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18819      # have to relink, otherwise we might link with an installed library
18820      # when we should be linking with a yet-to-be-installed one
18821      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18822      test "$hardcode_minus_L_GCJ" != no; then
18823     # Linking always hardcodes the temporary library directory.
18824     hardcode_action_GCJ=relink
18825   else
18826     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18827     hardcode_action_GCJ=immediate
18828   fi
18829 else
18830   # We cannot hardcode anything, or else we can only hardcode existing
18831   # directories.
18832   hardcode_action_GCJ=unsupported
18833 fi
18834 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18835 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18836
18837 if test "$hardcode_action_GCJ" = relink; then
18838   # Fast installation is not supported
18839   enable_fast_install=no
18840 elif test "$shlibpath_overrides_runpath" = yes ||
18841      test "$enable_shared" = no; then
18842   # Fast installation is not necessary
18843   enable_fast_install=needless
18844 fi
18845
18846
18847 # The else clause should only fire when bootstrapping the
18848 # libtool distribution, otherwise you forgot to ship ltmain.sh
18849 # with your package, and you will get complaints that there are
18850 # no rules to generate ltmain.sh.
18851 if test -f "$ltmain"; then
18852   # See if we are running on zsh, and set the options which allow our commands through
18853   # without removal of \ escapes.
18854   if test -n "${ZSH_VERSION+set}" ; then
18855     setopt NO_GLOB_SUBST
18856   fi
18857   # Now quote all the things that may contain metacharacters while being
18858   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18859   # variables and quote the copies for generation of the libtool script.
18860   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18861     SED SHELL STRIP \
18862     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18863     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18864     deplibs_check_method reload_flag reload_cmds need_locks \
18865     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18866     lt_cv_sys_global_symbol_to_c_name_address \
18867     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18868     old_postinstall_cmds old_postuninstall_cmds \
18869     compiler_GCJ \
18870     CC_GCJ \
18871     LD_GCJ \
18872     lt_prog_compiler_wl_GCJ \
18873     lt_prog_compiler_pic_GCJ \
18874     lt_prog_compiler_static_GCJ \
18875     lt_prog_compiler_no_builtin_flag_GCJ \
18876     export_dynamic_flag_spec_GCJ \
18877     thread_safe_flag_spec_GCJ \
18878     whole_archive_flag_spec_GCJ \
18879     enable_shared_with_static_runtimes_GCJ \
18880     old_archive_cmds_GCJ \
18881     old_archive_from_new_cmds_GCJ \
18882     predep_objects_GCJ \
18883     postdep_objects_GCJ \
18884     predeps_GCJ \
18885     postdeps_GCJ \
18886     compiler_lib_search_path_GCJ \
18887     compiler_lib_search_dirs_GCJ \
18888     archive_cmds_GCJ \
18889     archive_expsym_cmds_GCJ \
18890     postinstall_cmds_GCJ \
18891     postuninstall_cmds_GCJ \
18892     old_archive_from_expsyms_cmds_GCJ \
18893     allow_undefined_flag_GCJ \
18894     no_undefined_flag_GCJ \
18895     export_symbols_cmds_GCJ \
18896     hardcode_libdir_flag_spec_GCJ \
18897     hardcode_libdir_flag_spec_ld_GCJ \
18898     hardcode_libdir_separator_GCJ \
18899     hardcode_automatic_GCJ \
18900     module_cmds_GCJ \
18901     module_expsym_cmds_GCJ \
18902     lt_cv_prog_compiler_c_o_GCJ \
18903     fix_srcfile_path_GCJ \
18904     exclude_expsyms_GCJ \
18905     include_expsyms_GCJ; do
18906
18907     case $var in
18908     old_archive_cmds_GCJ | \
18909     old_archive_from_new_cmds_GCJ | \
18910     archive_cmds_GCJ | \
18911     archive_expsym_cmds_GCJ | \
18912     module_cmds_GCJ | \
18913     module_expsym_cmds_GCJ | \
18914     old_archive_from_expsyms_cmds_GCJ | \
18915     export_symbols_cmds_GCJ | \
18916     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18917     postinstall_cmds | postuninstall_cmds | \
18918     old_postinstall_cmds | old_postuninstall_cmds | \
18919     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18920       # Double-quote double-evaled strings.
18921       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18922       ;;
18923     *)
18924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18925       ;;
18926     esac
18927   done
18928
18929   case $lt_echo in
18930   *'\$0 --fallback-echo"')
18931     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18932     ;;
18933   esac
18934
18935 cfgfile="$ofile"
18936
18937   cat <<__EOF__ >> "$cfgfile"
18938 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18939
18940 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18941
18942 # Shell to use when invoking shell scripts.
18943 SHELL=$lt_SHELL
18944
18945 # Whether or not to build shared libraries.
18946 build_libtool_libs=$enable_shared
18947
18948 # Whether or not to build static libraries.
18949 build_old_libs=$enable_static
18950
18951 # Whether or not to add -lc for building shared libraries.
18952 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18953
18954 # Whether or not to disallow shared libs when runtime libs are static
18955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18956
18957 # Whether or not to optimize for fast installation.
18958 fast_install=$enable_fast_install
18959
18960 # The host system.
18961 host_alias=$host_alias
18962 host=$host
18963 host_os=$host_os
18964
18965 # The build system.
18966 build_alias=$build_alias
18967 build=$build
18968 build_os=$build_os
18969
18970 # An echo program that does not interpret backslashes.
18971 echo=$lt_echo
18972
18973 # The archiver.
18974 AR=$lt_AR
18975 AR_FLAGS=$lt_AR_FLAGS
18976
18977 # A C compiler.
18978 LTCC=$lt_LTCC
18979
18980 # LTCC compiler flags.
18981 LTCFLAGS=$lt_LTCFLAGS
18982
18983 # A language-specific compiler.
18984 CC=$lt_compiler_GCJ
18985
18986 # Is the compiler the GNU C compiler?
18987 with_gcc=$GCC_GCJ
18988
18989 # An ERE matcher.
18990 EGREP=$lt_EGREP
18991
18992 # The linker used to build libraries.
18993 LD=$lt_LD_GCJ
18994
18995 # Whether we need hard or soft links.
18996 LN_S=$lt_LN_S
18997
18998 # A BSD-compatible nm program.
18999 NM=$lt_NM
19000
19001 # A symbol stripping program
19002 STRIP=$lt_STRIP
19003
19004 # Used to examine libraries when file_magic_cmd begins "file"
19005 MAGIC_CMD=$MAGIC_CMD
19006
19007 # Used on cygwin: DLL creation program.
19008 DLLTOOL="$DLLTOOL"
19009
19010 # Used on cygwin: object dumper.
19011 OBJDUMP="$OBJDUMP"
19012
19013 # Used on cygwin: assembler.
19014 AS="$AS"
19015
19016 # The name of the directory that contains temporary libtool files.
19017 objdir=$objdir
19018
19019 # How to create reloadable object files.
19020 reload_flag=$lt_reload_flag
19021 reload_cmds=$lt_reload_cmds
19022
19023 # How to pass a linker flag through the compiler.
19024 wl=$lt_lt_prog_compiler_wl_GCJ
19025
19026 # Object file suffix (normally "o").
19027 objext="$ac_objext"
19028
19029 # Old archive suffix (normally "a").
19030 libext="$libext"
19031
19032 # Shared library suffix (normally ".so").
19033 shrext_cmds='$shrext_cmds'
19034
19035 # Executable file suffix (normally "").
19036 exeext="$exeext"
19037
19038 # Additional compiler flags for building library objects.
19039 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19040 pic_mode=$pic_mode
19041
19042 # What is the maximum length of a command?
19043 max_cmd_len=$lt_cv_sys_max_cmd_len
19044
19045 # Does compiler simultaneously support -c and -o options?
19046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19047
19048 # Must we lock files when doing compilation?
19049 need_locks=$lt_need_locks
19050
19051 # Do we need the lib prefix for modules?
19052 need_lib_prefix=$need_lib_prefix
19053
19054 # Do we need a version for libraries?
19055 need_version=$need_version
19056
19057 # Whether dlopen is supported.
19058 dlopen_support=$enable_dlopen
19059
19060 # Whether dlopen of programs is supported.
19061 dlopen_self=$enable_dlopen_self
19062
19063 # Whether dlopen of statically linked programs is supported.
19064 dlopen_self_static=$enable_dlopen_self_static
19065
19066 # Compiler flag to prevent dynamic linking.
19067 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19068
19069 # Compiler flag to turn off builtin functions.
19070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19071
19072 # Compiler flag to allow reflexive dlopens.
19073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19074
19075 # Compiler flag to generate shared objects directly from archives.
19076 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19077
19078 # Compiler flag to generate thread-safe objects.
19079 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19080
19081 # Library versioning type.
19082 version_type=$version_type
19083
19084 # Format of library name prefix.
19085 libname_spec=$lt_libname_spec
19086
19087 # List of archive names.  First name is the real one, the rest are links.
19088 # The last name is the one that the linker finds with -lNAME.
19089 library_names_spec=$lt_library_names_spec
19090
19091 # The coded name of the library, if different from the real name.
19092 soname_spec=$lt_soname_spec
19093
19094 # Commands used to build and install an old-style archive.
19095 RANLIB=$lt_RANLIB
19096 old_archive_cmds=$lt_old_archive_cmds_GCJ
19097 old_postinstall_cmds=$lt_old_postinstall_cmds
19098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19099
19100 # Create an old-style archive from a shared archive.
19101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19102
19103 # Create a temporary old-style archive to link instead of a shared archive.
19104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19105
19106 # Commands used to build and install a shared archive.
19107 archive_cmds=$lt_archive_cmds_GCJ
19108 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19109 postinstall_cmds=$lt_postinstall_cmds
19110 postuninstall_cmds=$lt_postuninstall_cmds
19111
19112 # Commands used to build a loadable module (assumed same as above if empty)
19113 module_cmds=$lt_module_cmds_GCJ
19114 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19115
19116 # Commands to strip libraries.
19117 old_striplib=$lt_old_striplib
19118 striplib=$lt_striplib
19119
19120 # Dependencies to place before the objects being linked to create a
19121 # shared library.
19122 predep_objects=$lt_predep_objects_GCJ
19123
19124 # Dependencies to place after the objects being linked to create a
19125 # shared library.
19126 postdep_objects=$lt_postdep_objects_GCJ
19127
19128 # Dependencies to place before the objects being linked to create a
19129 # shared library.
19130 predeps=$lt_predeps_GCJ
19131
19132 # Dependencies to place after the objects being linked to create a
19133 # shared library.
19134 postdeps=$lt_postdeps_GCJ
19135
19136 # The directories searched by this compiler when creating a shared
19137 # library
19138 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19139
19140 # The library search path used internally by the compiler when linking
19141 # a shared library.
19142 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19143
19144 # Method to check whether dependent libraries are shared objects.
19145 deplibs_check_method=$lt_deplibs_check_method
19146
19147 # Command to use when deplibs_check_method == file_magic.
19148 file_magic_cmd=$lt_file_magic_cmd
19149
19150 # Flag that allows shared libraries with undefined symbols to be built.
19151 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19152
19153 # Flag that forces no undefined symbols.
19154 no_undefined_flag=$lt_no_undefined_flag_GCJ
19155
19156 # Commands used to finish a libtool library installation in a directory.
19157 finish_cmds=$lt_finish_cmds
19158
19159 # Same as above, but a single script fragment to be evaled but not shown.
19160 finish_eval=$lt_finish_eval
19161
19162 # Take the output of nm and produce a listing of raw symbols and C names.
19163 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19164
19165 # Transform the output of nm in a proper C declaration
19166 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19167
19168 # Transform the output of nm in a C name address pair
19169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19170
19171 # This is the shared library runtime path variable.
19172 runpath_var=$runpath_var
19173
19174 # This is the shared library path variable.
19175 shlibpath_var=$shlibpath_var
19176
19177 # Is shlibpath searched before the hard-coded library search path?
19178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19179
19180 # How to hardcode a shared library path into an executable.
19181 hardcode_action=$hardcode_action_GCJ
19182
19183 # Whether we should hardcode library paths into libraries.
19184 hardcode_into_libs=$hardcode_into_libs
19185
19186 # Flag to hardcode \$libdir into a binary during linking.
19187 # This must work even if \$libdir does not exist.
19188 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19189
19190 # If ld is used when linking, flag to hardcode \$libdir into
19191 # a binary during linking. This must work even if \$libdir does
19192 # not exist.
19193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19194
19195 # Whether we need a single -rpath flag with a separated argument.
19196 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19197
19198 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19199 # resulting binary.
19200 hardcode_direct=$hardcode_direct_GCJ
19201
19202 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19203 # resulting binary.
19204 hardcode_minus_L=$hardcode_minus_L_GCJ
19205
19206 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19207 # the resulting binary.
19208 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19209
19210 # Set to yes if building a shared library automatically hardcodes DIR into the library
19211 # and all subsequent libraries and executables linked against it.
19212 hardcode_automatic=$hardcode_automatic_GCJ
19213
19214 # Variables whose values should be saved in libtool wrapper scripts and
19215 # restored at relink time.
19216 variables_saved_for_relink="$variables_saved_for_relink"
19217
19218 # Whether libtool must link a program against all its dependency libraries.
19219 link_all_deplibs=$link_all_deplibs_GCJ
19220
19221 # Compile-time system search path for libraries
19222 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19223
19224 # Run-time system search path for libraries
19225 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19226
19227 # Fix the shell variable \$srcfile for the compiler.
19228 fix_srcfile_path=$lt_fix_srcfile_path
19229
19230 # Set to yes if exported symbols are required.
19231 always_export_symbols=$always_export_symbols_GCJ
19232
19233 # The commands to list exported symbols.
19234 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19235
19236 # The commands to extract the exported symbol list from a shared archive.
19237 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19238
19239 # Symbols that should not be listed in the preloaded symbols.
19240 exclude_expsyms=$lt_exclude_expsyms_GCJ
19241
19242 # Symbols that must always be exported.
19243 include_expsyms=$lt_include_expsyms_GCJ
19244
19245 # ### END LIBTOOL TAG CONFIG: $tagname
19246
19247 __EOF__
19248
19249
19250 else
19251   # If there is no Makefile yet, we rely on a make rule to execute
19252   # `config.status --recheck' to rerun these tests and create the
19253   # libtool script then.
19254   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19255   if test -f "$ltmain_in"; then
19256     test -f Makefile && make "$ltmain"
19257   fi
19258 fi
19259
19260
19261 ac_ext=c
19262 ac_cpp='$CPP $CPPFLAGS'
19263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19266
19267 CC="$lt_save_CC"
19268
19269         else
19270           tagname=""
19271         fi
19272         ;;
19273
19274       RC)
19275
19276
19277 # Source file extension for RC test sources.
19278 ac_ext=rc
19279
19280 # Object file extension for compiled RC test sources.
19281 objext=o
19282 objext_RC=$objext
19283
19284 # Code to be used in simple compile tests
19285 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19286
19287 # Code to be used in simple link tests
19288 lt_simple_link_test_code="$lt_simple_compile_test_code"
19289
19290 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19291
19292 # If no C compiler was specified, use CC.
19293 LTCC=${LTCC-"$CC"}
19294
19295 # If no C compiler flags were specified, use CFLAGS.
19296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19297
19298 # Allow CC to be a program name with arguments.
19299 compiler=$CC
19300
19301
19302 # save warnings/boilerplate of simple test code
19303 ac_outfile=conftest.$ac_objext
19304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19306 _lt_compiler_boilerplate=`cat conftest.err`
19307 $rm conftest*
19308
19309 ac_outfile=conftest.$ac_objext
19310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19312 _lt_linker_boilerplate=`cat conftest.err`
19313 $rm -r conftest*
19314
19315
19316 # Allow CC to be a program name with arguments.
19317 lt_save_CC="$CC"
19318 CC=${RC-"windres"}
19319 compiler=$CC
19320 compiler_RC=$CC
19321 for cc_temp in $compiler""; do
19322   case $cc_temp in
19323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19325     \-*) ;;
19326     *) break;;
19327   esac
19328 done
19329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19330
19331 lt_cv_prog_compiler_c_o_RC=yes
19332
19333 # The else clause should only fire when bootstrapping the
19334 # libtool distribution, otherwise you forgot to ship ltmain.sh
19335 # with your package, and you will get complaints that there are
19336 # no rules to generate ltmain.sh.
19337 if test -f "$ltmain"; then
19338   # See if we are running on zsh, and set the options which allow our commands through
19339   # without removal of \ escapes.
19340   if test -n "${ZSH_VERSION+set}" ; then
19341     setopt NO_GLOB_SUBST
19342   fi
19343   # Now quote all the things that may contain metacharacters while being
19344   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19345   # variables and quote the copies for generation of the libtool script.
19346   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19347     SED SHELL STRIP \
19348     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19349     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19350     deplibs_check_method reload_flag reload_cmds need_locks \
19351     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19352     lt_cv_sys_global_symbol_to_c_name_address \
19353     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19354     old_postinstall_cmds old_postuninstall_cmds \
19355     compiler_RC \
19356     CC_RC \
19357     LD_RC \
19358     lt_prog_compiler_wl_RC \
19359     lt_prog_compiler_pic_RC \
19360     lt_prog_compiler_static_RC \
19361     lt_prog_compiler_no_builtin_flag_RC \
19362     export_dynamic_flag_spec_RC \
19363     thread_safe_flag_spec_RC \
19364     whole_archive_flag_spec_RC \
19365     enable_shared_with_static_runtimes_RC \
19366     old_archive_cmds_RC \
19367     old_archive_from_new_cmds_RC \
19368     predep_objects_RC \
19369     postdep_objects_RC \
19370     predeps_RC \
19371     postdeps_RC \
19372     compiler_lib_search_path_RC \
19373     compiler_lib_search_dirs_RC \
19374     archive_cmds_RC \
19375     archive_expsym_cmds_RC \
19376     postinstall_cmds_RC \
19377     postuninstall_cmds_RC \
19378     old_archive_from_expsyms_cmds_RC \
19379     allow_undefined_flag_RC \
19380     no_undefined_flag_RC \
19381     export_symbols_cmds_RC \
19382     hardcode_libdir_flag_spec_RC \
19383     hardcode_libdir_flag_spec_ld_RC \
19384     hardcode_libdir_separator_RC \
19385     hardcode_automatic_RC \
19386     module_cmds_RC \
19387     module_expsym_cmds_RC \
19388     lt_cv_prog_compiler_c_o_RC \
19389     fix_srcfile_path_RC \
19390     exclude_expsyms_RC \
19391     include_expsyms_RC; do
19392
19393     case $var in
19394     old_archive_cmds_RC | \
19395     old_archive_from_new_cmds_RC | \
19396     archive_cmds_RC | \
19397     archive_expsym_cmds_RC | \
19398     module_cmds_RC | \
19399     module_expsym_cmds_RC | \
19400     old_archive_from_expsyms_cmds_RC | \
19401     export_symbols_cmds_RC | \
19402     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19403     postinstall_cmds | postuninstall_cmds | \
19404     old_postinstall_cmds | old_postuninstall_cmds | \
19405     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19406       # Double-quote double-evaled strings.
19407       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19408       ;;
19409     *)
19410       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19411       ;;
19412     esac
19413   done
19414
19415   case $lt_echo in
19416   *'\$0 --fallback-echo"')
19417     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19418     ;;
19419   esac
19420
19421 cfgfile="$ofile"
19422
19423   cat <<__EOF__ >> "$cfgfile"
19424 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19425
19426 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19427
19428 # Shell to use when invoking shell scripts.
19429 SHELL=$lt_SHELL
19430
19431 # Whether or not to build shared libraries.
19432 build_libtool_libs=$enable_shared
19433
19434 # Whether or not to build static libraries.
19435 build_old_libs=$enable_static
19436
19437 # Whether or not to add -lc for building shared libraries.
19438 build_libtool_need_lc=$archive_cmds_need_lc_RC
19439
19440 # Whether or not to disallow shared libs when runtime libs are static
19441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19442
19443 # Whether or not to optimize for fast installation.
19444 fast_install=$enable_fast_install
19445
19446 # The host system.
19447 host_alias=$host_alias
19448 host=$host
19449 host_os=$host_os
19450
19451 # The build system.
19452 build_alias=$build_alias
19453 build=$build
19454 build_os=$build_os
19455
19456 # An echo program that does not interpret backslashes.
19457 echo=$lt_echo
19458
19459 # The archiver.
19460 AR=$lt_AR
19461 AR_FLAGS=$lt_AR_FLAGS
19462
19463 # A C compiler.
19464 LTCC=$lt_LTCC
19465
19466 # LTCC compiler flags.
19467 LTCFLAGS=$lt_LTCFLAGS
19468
19469 # A language-specific compiler.
19470 CC=$lt_compiler_RC
19471
19472 # Is the compiler the GNU C compiler?
19473 with_gcc=$GCC_RC
19474
19475 # An ERE matcher.
19476 EGREP=$lt_EGREP
19477
19478 # The linker used to build libraries.
19479 LD=$lt_LD_RC
19480
19481 # Whether we need hard or soft links.
19482 LN_S=$lt_LN_S
19483
19484 # A BSD-compatible nm program.
19485 NM=$lt_NM
19486
19487 # A symbol stripping program
19488 STRIP=$lt_STRIP
19489
19490 # Used to examine libraries when file_magic_cmd begins "file"
19491 MAGIC_CMD=$MAGIC_CMD
19492
19493 # Used on cygwin: DLL creation program.
19494 DLLTOOL="$DLLTOOL"
19495
19496 # Used on cygwin: object dumper.
19497 OBJDUMP="$OBJDUMP"
19498
19499 # Used on cygwin: assembler.
19500 AS="$AS"
19501
19502 # The name of the directory that contains temporary libtool files.
19503 objdir=$objdir
19504
19505 # How to create reloadable object files.
19506 reload_flag=$lt_reload_flag
19507 reload_cmds=$lt_reload_cmds
19508
19509 # How to pass a linker flag through the compiler.
19510 wl=$lt_lt_prog_compiler_wl_RC
19511
19512 # Object file suffix (normally "o").
19513 objext="$ac_objext"
19514
19515 # Old archive suffix (normally "a").
19516 libext="$libext"
19517
19518 # Shared library suffix (normally ".so").
19519 shrext_cmds='$shrext_cmds'
19520
19521 # Executable file suffix (normally "").
19522 exeext="$exeext"
19523
19524 # Additional compiler flags for building library objects.
19525 pic_flag=$lt_lt_prog_compiler_pic_RC
19526 pic_mode=$pic_mode
19527
19528 # What is the maximum length of a command?
19529 max_cmd_len=$lt_cv_sys_max_cmd_len
19530
19531 # Does compiler simultaneously support -c and -o options?
19532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19533
19534 # Must we lock files when doing compilation?
19535 need_locks=$lt_need_locks
19536
19537 # Do we need the lib prefix for modules?
19538 need_lib_prefix=$need_lib_prefix
19539
19540 # Do we need a version for libraries?
19541 need_version=$need_version
19542
19543 # Whether dlopen is supported.
19544 dlopen_support=$enable_dlopen
19545
19546 # Whether dlopen of programs is supported.
19547 dlopen_self=$enable_dlopen_self
19548
19549 # Whether dlopen of statically linked programs is supported.
19550 dlopen_self_static=$enable_dlopen_self_static
19551
19552 # Compiler flag to prevent dynamic linking.
19553 link_static_flag=$lt_lt_prog_compiler_static_RC
19554
19555 # Compiler flag to turn off builtin functions.
19556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19557
19558 # Compiler flag to allow reflexive dlopens.
19559 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19560
19561 # Compiler flag to generate shared objects directly from archives.
19562 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19563
19564 # Compiler flag to generate thread-safe objects.
19565 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19566
19567 # Library versioning type.
19568 version_type=$version_type
19569
19570 # Format of library name prefix.
19571 libname_spec=$lt_libname_spec
19572
19573 # List of archive names.  First name is the real one, the rest are links.
19574 # The last name is the one that the linker finds with -lNAME.
19575 library_names_spec=$lt_library_names_spec
19576
19577 # The coded name of the library, if different from the real name.
19578 soname_spec=$lt_soname_spec
19579
19580 # Commands used to build and install an old-style archive.
19581 RANLIB=$lt_RANLIB
19582 old_archive_cmds=$lt_old_archive_cmds_RC
19583 old_postinstall_cmds=$lt_old_postinstall_cmds
19584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19585
19586 # Create an old-style archive from a shared archive.
19587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19588
19589 # Create a temporary old-style archive to link instead of a shared archive.
19590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19591
19592 # Commands used to build and install a shared archive.
19593 archive_cmds=$lt_archive_cmds_RC
19594 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19595 postinstall_cmds=$lt_postinstall_cmds
19596 postuninstall_cmds=$lt_postuninstall_cmds
19597
19598 # Commands used to build a loadable module (assumed same as above if empty)
19599 module_cmds=$lt_module_cmds_RC
19600 module_expsym_cmds=$lt_module_expsym_cmds_RC
19601
19602 # Commands to strip libraries.
19603 old_striplib=$lt_old_striplib
19604 striplib=$lt_striplib
19605
19606 # Dependencies to place before the objects being linked to create a
19607 # shared library.
19608 predep_objects=$lt_predep_objects_RC
19609
19610 # Dependencies to place after the objects being linked to create a
19611 # shared library.
19612 postdep_objects=$lt_postdep_objects_RC
19613
19614 # Dependencies to place before the objects being linked to create a
19615 # shared library.
19616 predeps=$lt_predeps_RC
19617
19618 # Dependencies to place after the objects being linked to create a
19619 # shared library.
19620 postdeps=$lt_postdeps_RC
19621
19622 # The directories searched by this compiler when creating a shared
19623 # library
19624 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19625
19626 # The library search path used internally by the compiler when linking
19627 # a shared library.
19628 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19629
19630 # Method to check whether dependent libraries are shared objects.
19631 deplibs_check_method=$lt_deplibs_check_method
19632
19633 # Command to use when deplibs_check_method == file_magic.
19634 file_magic_cmd=$lt_file_magic_cmd
19635
19636 # Flag that allows shared libraries with undefined symbols to be built.
19637 allow_undefined_flag=$lt_allow_undefined_flag_RC
19638
19639 # Flag that forces no undefined symbols.
19640 no_undefined_flag=$lt_no_undefined_flag_RC
19641
19642 # Commands used to finish a libtool library installation in a directory.
19643 finish_cmds=$lt_finish_cmds
19644
19645 # Same as above, but a single script fragment to be evaled but not shown.
19646 finish_eval=$lt_finish_eval
19647
19648 # Take the output of nm and produce a listing of raw symbols and C names.
19649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19650
19651 # Transform the output of nm in a proper C declaration
19652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19653
19654 # Transform the output of nm in a C name address pair
19655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19656
19657 # This is the shared library runtime path variable.
19658 runpath_var=$runpath_var
19659
19660 # This is the shared library path variable.
19661 shlibpath_var=$shlibpath_var
19662
19663 # Is shlibpath searched before the hard-coded library search path?
19664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19665
19666 # How to hardcode a shared library path into an executable.
19667 hardcode_action=$hardcode_action_RC
19668
19669 # Whether we should hardcode library paths into libraries.
19670 hardcode_into_libs=$hardcode_into_libs
19671
19672 # Flag to hardcode \$libdir into a binary during linking.
19673 # This must work even if \$libdir does not exist.
19674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19675
19676 # If ld is used when linking, flag to hardcode \$libdir into
19677 # a binary during linking. This must work even if \$libdir does
19678 # not exist.
19679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19680
19681 # Whether we need a single -rpath flag with a separated argument.
19682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19683
19684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19685 # resulting binary.
19686 hardcode_direct=$hardcode_direct_RC
19687
19688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19689 # resulting binary.
19690 hardcode_minus_L=$hardcode_minus_L_RC
19691
19692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19693 # the resulting binary.
19694 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19695
19696 # Set to yes if building a shared library automatically hardcodes DIR into the library
19697 # and all subsequent libraries and executables linked against it.
19698 hardcode_automatic=$hardcode_automatic_RC
19699
19700 # Variables whose values should be saved in libtool wrapper scripts and
19701 # restored at relink time.
19702 variables_saved_for_relink="$variables_saved_for_relink"
19703
19704 # Whether libtool must link a program against all its dependency libraries.
19705 link_all_deplibs=$link_all_deplibs_RC
19706
19707 # Compile-time system search path for libraries
19708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19709
19710 # Run-time system search path for libraries
19711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19712
19713 # Fix the shell variable \$srcfile for the compiler.
19714 fix_srcfile_path=$lt_fix_srcfile_path
19715
19716 # Set to yes if exported symbols are required.
19717 always_export_symbols=$always_export_symbols_RC
19718
19719 # The commands to list exported symbols.
19720 export_symbols_cmds=$lt_export_symbols_cmds_RC
19721
19722 # The commands to extract the exported symbol list from a shared archive.
19723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19724
19725 # Symbols that should not be listed in the preloaded symbols.
19726 exclude_expsyms=$lt_exclude_expsyms_RC
19727
19728 # Symbols that must always be exported.
19729 include_expsyms=$lt_include_expsyms_RC
19730
19731 # ### END LIBTOOL TAG CONFIG: $tagname
19732
19733 __EOF__
19734
19735
19736 else
19737   # If there is no Makefile yet, we rely on a make rule to execute
19738   # `config.status --recheck' to rerun these tests and create the
19739   # libtool script then.
19740   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19741   if test -f "$ltmain_in"; then
19742     test -f Makefile && make "$ltmain"
19743   fi
19744 fi
19745
19746
19747 ac_ext=c
19748 ac_cpp='$CPP $CPPFLAGS'
19749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19752
19753 CC="$lt_save_CC"
19754
19755         ;;
19756
19757       *)
19758         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19759 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19760    { (exit 1); exit 1; }; }
19761         ;;
19762       esac
19763
19764       # Append the new tag name to the list of available tags.
19765       if test -n "$tagname" ; then
19766       available_tags="$available_tags $tagname"
19767     fi
19768     fi
19769   done
19770   IFS="$lt_save_ifs"
19771
19772   # Now substitute the updated list of available tags.
19773   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19774     mv "${ofile}T" "$ofile"
19775     chmod +x "$ofile"
19776   else
19777     rm -f "${ofile}T"
19778     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19779 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19780    { (exit 1); exit 1; }; }
19781   fi
19782 fi
19783
19784
19785
19786 # This can be used to rebuild libtool when needed
19787 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19788
19789 # Always use our own libtool.
19790 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19791
19792 # Prevent multiple expansion
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19814 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19815 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19816 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819   cat >conftest.make <<\_ACEOF
19820 SHELL = /bin/sh
19821 all:
19822         @echo '@@@%%%=$(MAKE)=@@@%%%'
19823 _ACEOF
19824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19826   *@@@%%%=?*=@@@%%%*)
19827     eval ac_cv_prog_make_${ac_make}_set=yes;;
19828   *)
19829     eval ac_cv_prog_make_${ac_make}_set=no;;
19830 esac
19831 rm -f conftest.make
19832 fi
19833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19834   { echo "$as_me:$LINENO: result: yes" >&5
19835 echo "${ECHO_T}yes" >&6; }
19836   SET_MAKE=
19837 else
19838   { echo "$as_me:$LINENO: result: no" >&5
19839 echo "${ECHO_T}no" >&6; }
19840   SET_MAKE="MAKE=${MAKE-make}"
19841 fi
19842
19843 if test "x$CC" != xcc; then
19844   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19845 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19846 else
19847   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19848 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19849 fi
19850 set dummy $CC; ac_cc=`echo $2 |
19851                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19852 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855   cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861
19862 int
19863 main ()
19864 {
19865
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 # Make sure it works both with $CC and with simple cc.
19871 # We do the test twice because some compilers refuse to overwrite an
19872 # existing .o file with -o, though they will create one.
19873 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19874 rm -f conftest2.*
19875 if { (case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_try") 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } &&
19884    test -f conftest2.$ac_objext && { (case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_try") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); };
19893 then
19894   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19895   if test "x$CC" != xcc; then
19896     # Test first that cc exists at all.
19897     if { ac_try='cc -c conftest.$ac_ext >&5'
19898   { (case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_try") 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19908       rm -f conftest2.*
19909       if { (case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_try") 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } &&
19918          test -f conftest2.$ac_objext && { (case "(($ac_try" in
19919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920   *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923   (eval "$ac_try") 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); };
19927       then
19928         # cc works too.
19929         :
19930       else
19931         # cc exists but doesn't like -o.
19932         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19933       fi
19934     fi
19935   fi
19936 else
19937   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19938 fi
19939 rm -f core conftest*
19940
19941 fi
19942 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19943   { echo "$as_me:$LINENO: result: yes" >&5
19944 echo "${ECHO_T}yes" >&6; }
19945 else
19946   { echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6; }
19948
19949 cat >>confdefs.h <<\_ACEOF
19950 #define NO_MINUS_C_MINUS_O 1
19951 _ACEOF
19952
19953 fi
19954
19955 # FIXME: we rely on the cache variable name because
19956 # there is no other way.
19957 set dummy $CC
19958 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19959 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19960    # Losing compiler, so override with the script.
19961    # FIXME: It is wrong to rewrite CC.
19962    # But if we don't then we get into trouble of one sort or another.
19963    # A longer-term fix would be to have automake use am__CC in this case,
19964    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19965    CC="$am_aux_dir/compile $CC"
19966 fi
19967
19968
19969
19970
19971
19972
19973 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19974         if test -n "$ac_tool_prefix"; then
19975   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19979 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982   case $PKG_CONFIG in
19983   [\\/]* | ?:[\\/]*)
19984   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19985   ;;
19986   *)
19987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19988 for as_dir in $PATH
19989 do
19990   IFS=$as_save_IFS
19991   test -z "$as_dir" && as_dir=.
19992   for ac_exec_ext in '' $ac_executable_extensions; do
19993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19994     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19996     break 2
19997   fi
19998 done
19999 done
20000 IFS=$as_save_IFS
20001
20002   ;;
20003 esac
20004 fi
20005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20006 if test -n "$PKG_CONFIG"; then
20007   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20009 else
20010   { echo "$as_me:$LINENO: result: no" >&5
20011 echo "${ECHO_T}no" >&6; }
20012 fi
20013
20014
20015 fi
20016 if test -z "$ac_cv_path_PKG_CONFIG"; then
20017   ac_pt_PKG_CONFIG=$PKG_CONFIG
20018   # Extract the first word of "pkg-config", so it can be a program name with args.
20019 set dummy pkg-config; ac_word=$2
20020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20022 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20023   echo $ECHO_N "(cached) $ECHO_C" >&6
20024 else
20025   case $ac_pt_PKG_CONFIG in
20026   [\\/]* | ?:[\\/]*)
20027   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20028   ;;
20029   *)
20030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20031 for as_dir in $PATH
20032 do
20033   IFS=$as_save_IFS
20034   test -z "$as_dir" && as_dir=.
20035   for ac_exec_ext in '' $ac_executable_extensions; do
20036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20037     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20039     break 2
20040   fi
20041 done
20042 done
20043 IFS=$as_save_IFS
20044
20045   ;;
20046 esac
20047 fi
20048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20049 if test -n "$ac_pt_PKG_CONFIG"; then
20050   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20051 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20052 else
20053   { echo "$as_me:$LINENO: result: no" >&5
20054 echo "${ECHO_T}no" >&6; }
20055 fi
20056
20057   if test "x$ac_pt_PKG_CONFIG" = x; then
20058     PKG_CONFIG=""
20059   else
20060     case $cross_compiling:$ac_tool_warned in
20061 yes:)
20062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20063 whose name does not start with the host triplet.  If you think this
20064 configuration is useful to you, please write to autoconf@gnu.org." >&5
20065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20066 whose name does not start with the host triplet.  If you think this
20067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20068 ac_tool_warned=yes ;;
20069 esac
20070     PKG_CONFIG=$ac_pt_PKG_CONFIG
20071   fi
20072 else
20073   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20074 fi
20075
20076 fi
20077 if test -n "$PKG_CONFIG"; then
20078         _pkg_min_version=0.9.0
20079         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20080 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20081         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20082                 { echo "$as_me:$LINENO: result: yes" >&5
20083 echo "${ECHO_T}yes" >&6; }
20084         else
20085                 { echo "$as_me:$LINENO: result: no" >&5
20086 echo "${ECHO_T}no" >&6; }
20087                 PKG_CONFIG=""
20088         fi
20089
20090 fi
20091
20092 pkg_failed=no
20093 { echo "$as_me:$LINENO: checking for FOOBAR" >&5
20094 echo $ECHO_N "checking for FOOBAR... $ECHO_C" >&6; }
20095
20096 if test -n "$PKG_CONFIG"; then
20097     if test -n "$FOOBAR_CFLAGS"; then
20098         pkg_cv_FOOBAR_CFLAGS="$FOOBAR_CFLAGS"
20099     else
20100         if test -n "$PKG_CONFIG" && \
20101     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"foobar\"") >&5
20102   ($PKG_CONFIG --exists --print-errors "foobar") 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); }; then
20106   pkg_cv_FOOBAR_CFLAGS=`$PKG_CONFIG --cflags "foobar" 2>/dev/null`
20107 else
20108   pkg_failed=yes
20109 fi
20110     fi
20111 else
20112         pkg_failed=untried
20113 fi
20114 if test -n "$PKG_CONFIG"; then
20115     if test -n "$FOOBAR_LIBS"; then
20116         pkg_cv_FOOBAR_LIBS="$FOOBAR_LIBS"
20117     else
20118         if test -n "$PKG_CONFIG" && \
20119     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"foobar\"") >&5
20120   ($PKG_CONFIG --exists --print-errors "foobar") 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; then
20124   pkg_cv_FOOBAR_LIBS=`$PKG_CONFIG --libs "foobar" 2>/dev/null`
20125 else
20126   pkg_failed=yes
20127 fi
20128     fi
20129 else
20130         pkg_failed=untried
20131 fi
20132
20133
20134
20135 if test $pkg_failed = yes; then
20136
20137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20138         _pkg_short_errors_supported=yes
20139 else
20140         _pkg_short_errors_supported=no
20141 fi
20142         if test $_pkg_short_errors_supported = yes; then
20143                 FOOBAR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "foobar"`
20144         else
20145                 FOOBAR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "foobar"`
20146         fi
20147         # Put the nasty error message in config.log where it belongs
20148         echo "$FOOBAR_PKG_ERRORS" >&5
20149
20150         { echo "$as_me:$LINENO: result: no" >&5
20151 echo "${ECHO_T}no" >&6; }
20152                 true
20153 elif test $pkg_failed = untried; then
20154         true
20155 else
20156         FOOBAR_CFLAGS=$pkg_cv_FOOBAR_CFLAGS
20157         FOOBAR_LIBS=$pkg_cv_FOOBAR_LIBS
20158         { echo "$as_me:$LINENO: result: yes" >&5
20159 echo "${ECHO_T}yes" >&6; }
20160         true
20161 fi
20162
20163 # Check whether --enable-sqlite was given.
20164 if test "${enable_sqlite+set}" = set; then
20165   enableval=$enable_sqlite; enable_sqlite=$enableval
20166 else
20167   enable_sqlite="yes"
20168 fi
20169
20170 if test "$enable_sqlite" == "yes"; then
20171
20172 pkg_failed=no
20173 { echo "$as_me:$LINENO: checking for SQLITE3" >&5
20174 echo $ECHO_N "checking for SQLITE3... $ECHO_C" >&6; }
20175
20176 if test -n "$PKG_CONFIG"; then
20177     if test -n "$SQLITE3_CFLAGS"; then
20178         pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
20179     else
20180         if test -n "$PKG_CONFIG" && \
20181     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20182   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20183   ac_status=$?
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); }; then
20186   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
20187 else
20188   pkg_failed=yes
20189 fi
20190     fi
20191 else
20192         pkg_failed=untried
20193 fi
20194 if test -n "$PKG_CONFIG"; then
20195     if test -n "$SQLITE3_LIBS"; then
20196         pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
20197     else
20198         if test -n "$PKG_CONFIG" && \
20199     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20200   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; then
20204   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
20205 else
20206   pkg_failed=yes
20207 fi
20208     fi
20209 else
20210         pkg_failed=untried
20211 fi
20212
20213
20214
20215 if test $pkg_failed = yes; then
20216
20217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20218         _pkg_short_errors_supported=yes
20219 else
20220         _pkg_short_errors_supported=no
20221 fi
20222         if test $_pkg_short_errors_supported = yes; then
20223                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
20224         else
20225                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
20226         fi
20227         # Put the nasty error message in config.log where it belongs
20228         echo "$SQLITE3_PKG_ERRORS" >&5
20229
20230         { { echo "$as_me:$LINENO: error: Package requirements (sqlite3) were not met:
20231
20232 $SQLITE3_PKG_ERRORS
20233
20234 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20235 installed software in a non-standard prefix.
20236
20237 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20238 and SQLITE3_LIBS to avoid the need to call pkg-config.
20239 See the pkg-config man page for more details.
20240 " >&5
20241 echo "$as_me: error: Package requirements (sqlite3) were not met:
20242
20243 $SQLITE3_PKG_ERRORS
20244
20245 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20246 installed software in a non-standard prefix.
20247
20248 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20249 and SQLITE3_LIBS to avoid the need to call pkg-config.
20250 See the pkg-config man page for more details.
20251 " >&2;}
20252    { (exit 1); exit 1; }; }
20253 elif test $pkg_failed = untried; then
20254         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20255 is in your PATH or set the PKG_CONFIG environment variable to the full
20256 path to pkg-config.
20257
20258 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20259 and SQLITE3_LIBS to avoid the need to call pkg-config.
20260 See the pkg-config man page for more details.
20261
20262 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20263 See \`config.log' for more details." >&5
20264 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20265 is in your PATH or set the PKG_CONFIG environment variable to the full
20266 path to pkg-config.
20267
20268 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20269 and SQLITE3_LIBS to avoid the need to call pkg-config.
20270 See the pkg-config man page for more details.
20271
20272 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20273 See \`config.log' for more details." >&2;}
20274    { (exit 1); exit 1; }; }
20275 else
20276         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
20277         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
20278         { echo "$as_me:$LINENO: result: yes" >&5
20279 echo "${ECHO_T}yes" >&6; }
20280         :
20281 fi
20282     HAVE_SQLITE=1
20283 else
20284     HAVE_SQLITE=0
20285 fi
20286
20287 cat >>confdefs.h <<_ACEOF
20288 #define ONOFF_SQLITE_SUPPORT $HAVE_SQLITE
20289 _ACEOF
20290
20291
20292 # Check whether --enable-regex was given.
20293 if test "${enable_regex+set}" = set; then
20294   enableval=$enable_regex; enable_regex=$enableval
20295 else
20296   enable_regex="yes"
20297 fi
20298
20299 if test "$enable_regex" == "yes"; then
20300
20301 pkg_failed=no
20302 { echo "$as_me:$LINENO: checking for PCRE" >&5
20303 echo $ECHO_N "checking for PCRE... $ECHO_C" >&6; }
20304
20305 if test -n "$PKG_CONFIG"; then
20306     if test -n "$PCRE_CFLAGS"; then
20307         pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
20308     else
20309         if test -n "$PKG_CONFIG" && \
20310     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20311   ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; then
20315   pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
20316 else
20317   pkg_failed=yes
20318 fi
20319     fi
20320 else
20321         pkg_failed=untried
20322 fi
20323 if test -n "$PKG_CONFIG"; then
20324     if test -n "$PCRE_LIBS"; then
20325         pkg_cv_PCRE_LIBS="$PCRE_LIBS"
20326     else
20327         if test -n "$PKG_CONFIG" && \
20328     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20329   ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; then
20333   pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
20334 else
20335   pkg_failed=yes
20336 fi
20337     fi
20338 else
20339         pkg_failed=untried
20340 fi
20341
20342
20343
20344 if test $pkg_failed = yes; then
20345
20346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20347         _pkg_short_errors_supported=yes
20348 else
20349         _pkg_short_errors_supported=no
20350 fi
20351         if test $_pkg_short_errors_supported = yes; then
20352                 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
20353         else
20354                 PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
20355         fi
20356         # Put the nasty error message in config.log where it belongs
20357         echo "$PCRE_PKG_ERRORS" >&5
20358
20359         { echo "$as_me:$LINENO: result: no" >&5
20360 echo "${ECHO_T}no" >&6; }
20361                 { { echo "$as_me:$LINENO: error: libpcre not found, required for --enable-regex" >&5
20362 echo "$as_me: error: libpcre not found, required for --enable-regex" >&2;}
20363    { (exit 1); exit 1; }; }
20364 elif test $pkg_failed = untried; then
20365         { { echo "$as_me:$LINENO: error: libpcre not found, required for --enable-regex" >&5
20366 echo "$as_me: error: libpcre not found, required for --enable-regex" >&2;}
20367    { (exit 1); exit 1; }; }
20368 else
20369         PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
20370         PCRE_LIBS=$pkg_cv_PCRE_LIBS
20371         { echo "$as_me:$LINENO: result: yes" >&5
20372 echo "${ECHO_T}yes" >&6; }
20373         HAVE_PCRE=1
20374 fi
20375     HAVE_PCRE=1
20376 else
20377     HAVE_PCRE=0
20378 fi
20379
20380 cat >>confdefs.h <<_ACEOF
20381 #define ONOFF_REGEX_SUPPORT $HAVE_PCRE
20382 _ACEOF
20383
20384
20385 if test "${ac_cv_header_zlib_h+set}" = set; then
20386   { echo "$as_me:$LINENO: checking for zlib.h" >&5
20387 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20388 if test "${ac_cv_header_zlib_h+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 fi
20391 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20392 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20393 else
20394   # Is the header compilable?
20395 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
20396 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 $ac_includes_default
20404 #include <zlib.h>
20405 _ACEOF
20406 rm -f conftest.$ac_objext
20407 if { (ac_try="$ac_compile"
20408 case "(($ac_try" in
20409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410   *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413   (eval "$ac_compile") 2>conftest.er1
20414   ac_status=$?
20415   grep -v '^ *+' conftest.er1 >conftest.err
20416   rm -f conftest.er1
20417   cat conftest.err >&5
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); } && {
20420          test -z "$ac_c_werror_flag" ||
20421          test ! -s conftest.err
20422        } && test -s conftest.$ac_objext; then
20423   ac_header_compiler=yes
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428         ac_header_compiler=no
20429 fi
20430
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20433 echo "${ECHO_T}$ac_header_compiler" >&6; }
20434
20435 # Is the header present?
20436 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
20437 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
20438 cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h.  */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h.  */
20444 #include <zlib.h>
20445 _ACEOF
20446 if { (ac_try="$ac_cpp conftest.$ac_ext"
20447 case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } >/dev/null && {
20459          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20460          test ! -s conftest.err
20461        }; then
20462   ac_header_preproc=yes
20463 else
20464   echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467   ac_header_preproc=no
20468 fi
20469
20470 rm -f conftest.err conftest.$ac_ext
20471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20472 echo "${ECHO_T}$ac_header_preproc" >&6; }
20473
20474 # So?  What about this header?
20475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20476   yes:no: )
20477     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20478 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20479     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20480 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20481     ac_header_preproc=yes
20482     ;;
20483   no:yes:* )
20484     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20485 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20486     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
20487 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
20488     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20489 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20490     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
20491 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20492     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20493 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20494     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20495 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20496
20497     ;;
20498 esac
20499 { echo "$as_me:$LINENO: checking for zlib.h" >&5
20500 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20501 if test "${ac_cv_header_zlib_h+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504   ac_cv_header_zlib_h=$ac_header_preproc
20505 fi
20506 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20507 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20508
20509 fi
20510 if test $ac_cv_header_zlib_h = yes; then
20511   :
20512 else
20513   { { echo "$as_me:$LINENO: error: zlib.h not found." >&5
20514 echo "$as_me: error: zlib.h not found." >&2;}
20515    { (exit 1); exit 1; }; }
20516 fi
20517
20518
20519 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20520   { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20521 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20522 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 fi
20525 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20526 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20527 else
20528   # Is the header compilable?
20529 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h usability" >&5
20530 echo $ECHO_N "checking xmltok/xmlparse.h usability... $ECHO_C" >&6; }
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 $ac_includes_default
20538 #include <xmltok/xmlparse.h>
20539 _ACEOF
20540 rm -f conftest.$ac_objext
20541 if { (ac_try="$ac_compile"
20542 case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_compile") 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } && {
20554          test -z "$ac_c_werror_flag" ||
20555          test ! -s conftest.err
20556        } && test -s conftest.$ac_objext; then
20557   ac_header_compiler=yes
20558 else
20559   echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20561
20562         ac_header_compiler=no
20563 fi
20564
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20567 echo "${ECHO_T}$ac_header_compiler" >&6; }
20568
20569 # Is the header present?
20570 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h presence" >&5
20571 echo $ECHO_N "checking xmltok/xmlparse.h presence... $ECHO_C" >&6; }
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578 #include <xmltok/xmlparse.h>
20579 _ACEOF
20580 if { (ac_try="$ac_cpp conftest.$ac_ext"
20581 case "(($ac_try" in
20582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583   *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20587   ac_status=$?
20588   grep -v '^ *+' conftest.er1 >conftest.err
20589   rm -f conftest.er1
20590   cat conftest.err >&5
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); } >/dev/null && {
20593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20594          test ! -s conftest.err
20595        }; then
20596   ac_header_preproc=yes
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601   ac_header_preproc=no
20602 fi
20603
20604 rm -f conftest.err conftest.$ac_ext
20605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20606 echo "${ECHO_T}$ac_header_preproc" >&6; }
20607
20608 # So?  What about this header?
20609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20610   yes:no: )
20611     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&5
20612 echo "$as_me: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20613     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&5
20614 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&2;}
20615     ac_header_preproc=yes
20616     ;;
20617   no:yes:* )
20618     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&5
20619 echo "$as_me: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&2;}
20620     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h:     check for missing prerequisite headers?" >&5
20621 echo "$as_me: WARNING: xmltok/xmlparse.h:     check for missing prerequisite headers?" >&2;}
20622     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&5
20623 echo "$as_me: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&2;}
20624     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h:     section \"Present But Cannot Be Compiled\"" >&5
20625 echo "$as_me: WARNING: xmltok/xmlparse.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20626     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&5
20627 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&2;}
20628     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&5
20629 echo "$as_me: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&2;}
20630
20631     ;;
20632 esac
20633 { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20634 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20635 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638   ac_cv_header_xmltok_xmlparse_h=$ac_header_preproc
20639 fi
20640 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20641 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20642
20643 fi
20644 if test $ac_cv_header_xmltok_xmlparse_h = yes; then
20645   have_system_xmltok="yes"
20646 fi
20647
20648
20649 if test "${ac_cv_header_expat_h+set}" = set; then
20650   { echo "$as_me:$LINENO: checking for expat.h" >&5
20651 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20652 if test "${ac_cv_header_expat_h+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 fi
20655 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20656 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20657 else
20658   # Is the header compilable?
20659 { echo "$as_me:$LINENO: checking expat.h usability" >&5
20660 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 $ac_includes_default
20668 #include <expat.h>
20669 _ACEOF
20670 rm -f conftest.$ac_objext
20671 if { (ac_try="$ac_compile"
20672 case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_compile") 2>conftest.er1
20678   ac_status=$?
20679   grep -v '^ *+' conftest.er1 >conftest.err
20680   rm -f conftest.er1
20681   cat conftest.err >&5
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } && {
20684          test -z "$ac_c_werror_flag" ||
20685          test ! -s conftest.err
20686        } && test -s conftest.$ac_objext; then
20687   ac_header_compiler=yes
20688 else
20689   echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20691
20692         ac_header_compiler=no
20693 fi
20694
20695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20697 echo "${ECHO_T}$ac_header_compiler" >&6; }
20698
20699 # Is the header present?
20700 { echo "$as_me:$LINENO: checking expat.h presence" >&5
20701 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
20702 cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708 #include <expat.h>
20709 _ACEOF
20710 if { (ac_try="$ac_cpp conftest.$ac_ext"
20711 case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } >/dev/null && {
20723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20724          test ! -s conftest.err
20725        }; then
20726   ac_header_preproc=yes
20727 else
20728   echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731   ac_header_preproc=no
20732 fi
20733
20734 rm -f conftest.err conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20736 echo "${ECHO_T}$ac_header_preproc" >&6; }
20737
20738 # So?  What about this header?
20739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20740   yes:no: )
20741     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20742 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20743     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20744 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20745     ac_header_preproc=yes
20746     ;;
20747   no:yes:* )
20748     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20749 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20750     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
20751 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
20752     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20753 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20754     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
20755 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20756     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20757 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20758     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20759 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20760
20761     ;;
20762 esac
20763 { echo "$as_me:$LINENO: checking for expat.h" >&5
20764 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20765 if test "${ac_cv_header_expat_h+set}" = set; then
20766   echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768   ac_cv_header_expat_h=$ac_header_preproc
20769 fi
20770 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20771 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20772
20773 fi
20774 if test $ac_cv_header_expat_h = yes; then
20775   have_system_expat="yes"
20776 fi
20777
20778
20779
20780 # Check whether --enable-libical was given.
20781 if test "${enable_libical+set}" = set; then
20782   enableval=$enable_libical; enable_libical=$enableval
20783 else
20784   enable_libical="yes"
20785 fi
20786
20787 if test "$enable_libical" == "yes"; then
20788
20789 pkg_failed=no
20790 { echo "$as_me:$LINENO: checking for LIBICAL" >&5
20791 echo $ECHO_N "checking for LIBICAL... $ECHO_C" >&6; }
20792
20793 if test -n "$PKG_CONFIG"; then
20794     if test -n "$LIBICAL_CFLAGS"; then
20795         pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
20796     else
20797         if test -n "$PKG_CONFIG" && \
20798     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20799   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; then
20803   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
20804 else
20805   pkg_failed=yes
20806 fi
20807     fi
20808 else
20809         pkg_failed=untried
20810 fi
20811 if test -n "$PKG_CONFIG"; then
20812     if test -n "$LIBICAL_LIBS"; then
20813         pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
20814     else
20815         if test -n "$PKG_CONFIG" && \
20816     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20817   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20818   ac_status=$?
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); }; then
20821   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
20822 else
20823   pkg_failed=yes
20824 fi
20825     fi
20826 else
20827         pkg_failed=untried
20828 fi
20829
20830
20831
20832 if test $pkg_failed = yes; then
20833
20834 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20835         _pkg_short_errors_supported=yes
20836 else
20837         _pkg_short_errors_supported=no
20838 fi
20839         if test $_pkg_short_errors_supported = yes; then
20840                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical"`
20841         else
20842                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical"`
20843         fi
20844         # Put the nasty error message in config.log where it belongs
20845         echo "$LIBICAL_PKG_ERRORS" >&5
20846
20847         { echo "$as_me:$LINENO: result: no" >&5
20848 echo "${ECHO_T}no" >&6; }
20849
20850 pkg_failed=no
20851 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20852 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20853
20854 if test -n "$PKG_CONFIG"; then
20855     if test -n "$LIBECAL_CFLAGS"; then
20856         pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20857     else
20858         if test -n "$PKG_CONFIG" && \
20859     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20860   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; then
20864   pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20865 else
20866   pkg_failed=yes
20867 fi
20868     fi
20869 else
20870         pkg_failed=untried
20871 fi
20872 if test -n "$PKG_CONFIG"; then
20873     if test -n "$LIBECAL_LIBS"; then
20874         pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20875     else
20876         if test -n "$PKG_CONFIG" && \
20877     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20878   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; then
20882   pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20883 else
20884   pkg_failed=yes
20885 fi
20886     fi
20887 else
20888         pkg_failed=untried
20889 fi
20890
20891
20892
20893 if test $pkg_failed = yes; then
20894
20895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20896         _pkg_short_errors_supported=yes
20897 else
20898         _pkg_short_errors_supported=no
20899 fi
20900         if test $_pkg_short_errors_supported = yes; then
20901                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20902         else
20903                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20904         fi
20905         # Put the nasty error message in config.log where it belongs
20906         echo "$LIBECAL_PKG_ERRORS" >&5
20907
20908         { echo "$as_me:$LINENO: result: no" >&5
20909 echo "${ECHO_T}no" >&6; }
20910                 true
20911 elif test $pkg_failed = untried; then
20912         true
20913 else
20914         LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20915         LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20916         { echo "$as_me:$LINENO: result: yes" >&5
20917 echo "${ECHO_T}yes" >&6; }
20918
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_LIBICAL 1
20921 _ACEOF
20922
20923
20924 cat >>confdefs.h <<\_ACEOF
20925 #define HAVE_LIBECAL 1
20926 _ACEOF
20927
20928 fi
20929 elif test $pkg_failed = untried; then
20930
20931 pkg_failed=no
20932 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20933 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20934
20935 if test -n "$PKG_CONFIG"; then
20936     if test -n "$LIBECAL_CFLAGS"; then
20937         pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20938     else
20939         if test -n "$PKG_CONFIG" && \
20940     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20941   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20942   ac_status=$?
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); }; then
20945   pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20946 else
20947   pkg_failed=yes
20948 fi
20949     fi
20950 else
20951         pkg_failed=untried
20952 fi
20953 if test -n "$PKG_CONFIG"; then
20954     if test -n "$LIBECAL_LIBS"; then
20955         pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20956     else
20957         if test -n "$PKG_CONFIG" && \
20958     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20959   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; then
20963   pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20964 else
20965   pkg_failed=yes
20966 fi
20967     fi
20968 else
20969         pkg_failed=untried
20970 fi
20971
20972
20973
20974 if test $pkg_failed = yes; then
20975
20976 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20977         _pkg_short_errors_supported=yes
20978 else
20979         _pkg_short_errors_supported=no
20980 fi
20981         if test $_pkg_short_errors_supported = yes; then
20982                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20983         else
20984                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20985         fi
20986         # Put the nasty error message in config.log where it belongs
20987         echo "$LIBECAL_PKG_ERRORS" >&5
20988
20989         { echo "$as_me:$LINENO: result: no" >&5
20990 echo "${ECHO_T}no" >&6; }
20991                 true
20992 elif test $pkg_failed = untried; then
20993         true
20994 else
20995         LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20996         LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20997         { echo "$as_me:$LINENO: result: yes" >&5
20998 echo "${ECHO_T}yes" >&6; }
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define HAVE_LIBICAL 1
21002 _ACEOF
21003
21004
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_LIBECAL 1
21007 _ACEOF
21008
21009 fi
21010 else
21011         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
21012         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
21013         { echo "$as_me:$LINENO: result: yes" >&5
21014 echo "${ECHO_T}yes" >&6; }
21015
21016 cat >>confdefs.h <<\_ACEOF
21017 #define HAVE_LIBICAL 1
21018 _ACEOF
21019
21020 fi
21021 fi
21022
21023 # Check whether --enable-evolution-compatibility was given.
21024 if test "${enable_evolution_compatibility+set}" = set; then
21025   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
21026 else
21027   enable_evolution_compatibility="no"
21028 fi
21029
21030 if test "$enable_evolution_compatibility" == "yes"; then
21031
21032 cat >>confdefs.h <<\_ACEOF
21033 #define EVOLUTION_COMPATIBILITY 1
21034 _ACEOF
21035
21036    LIBICAL_LIBS=
21037    LIBECAL_LIBS=
21038 fi
21039
21040
21041 # Check whether --with-xmltok was given.
21042 if test "${with_xmltok+set}" = set; then
21043   withval=$with_xmltok;  if test "$withval" = "builtin"; then with_xmltok="builtin"
21044           elif test "$withval" = "system" || test "$withval" = "yes"; then with_xmltok="system"
21045           else with_xmltok="$withval"
21046           fi
21047 else
21048    with_xmltok="no"
21049 fi
21050
21051
21052
21053 # Check whether --with-expat was given.
21054 if test "${with_expat+set}" = set; then
21055   withval=$with_expat;  if test "$withval" = "system" || test "$withval" = "yes"; then with_expat="system"
21056           else with_expath="$withval"
21057           fi
21058 else
21059    with_expat="no"
21060 fi
21061
21062
21063 if test "$with_xmltok" = "no" && test "$with_expat" = "no"; then
21064    if test "$have_system_expat" = "yes"; then
21065       with_expat="yes"
21066       XMLPARSE_LIBS="-lexpat"
21067    elif test "$have_system_xmltok" = "yes"; then
21068       with_xmltok="yes"
21069       XMLPARSE_LIBS="-lxmlparse"
21070    else
21071       with_xmltok="builtin"
21072    fi
21073 elif test "$with_expat" != "no"; then
21074    if test "$with_expat" = "system"; then
21075       if test "$have_system_expat" = "yes"; then XMLPARSE_LIBS="-lexpat"
21076       else { { echo "$as_me:$LINENO: error: expat.h not found." >&5
21077 echo "$as_me: error: expat.h not found." >&2;}
21078    { (exit 1); exit 1; }; }
21079       fi
21080    else # user path
21081       XMLPARSE_LIBS="-L$with_expat/lib -lexpat"
21082       XMLPARSE_CFLAGS="-I$with_expat/include"
21083    fi
21084    with_expat="yes"
21085 else # with_xmltok
21086    if test "$with_xmltok" = "system"; then
21087       if test "$have_system_xmltok" = "yes"; then XMLPARSE_LIBS="-lxmlparse"
21088       else { { echo "$as_me:$LINENO: error: xmltok/xmplarse.h not found." >&5
21089 echo "$as_me: error: xmltok/xmplarse.h not found." >&2;}
21090    { (exit 1); exit 1; }; }
21091       fi
21092    elif test "$with_xmltok" != "builtin"; then
21093       XMLPARSE_LIBS="-L$with_xmltok/lib -lxmlparse"
21094       XMLPARSE_CFLAGS="-I$with_xmltok/include"
21095    fi
21096 fi
21097
21098 if test "$with_expat" = "yes"; then
21099
21100 cat >>confdefs.h <<\_ACEOF
21101 #define HAVE_EXPAT 1
21102 _ACEOF
21103
21104 elif test "$with_xmltok" != "builtin"; then
21105
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_SYS_XMLTOK 1
21108 _ACEOF
21109
21110 else
21111
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_BUILTIN_XMLTOK 1
21114 _ACEOF
21115
21116 fi
21117
21118
21119
21120  if test "$with_xmltok" = "builtin"; then
21121   COND_XMLPARSE_TRUE=
21122   COND_XMLPARSE_FALSE='#'
21123 else
21124   COND_XMLPARSE_TRUE='#'
21125   COND_XMLPARSE_FALSE=
21126 fi
21127
21128
21129 if test "${ac_cv_header_stdint_h+set}" = set; then
21130   { echo "$as_me:$LINENO: checking for stdint.h" >&5
21131 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21132 if test "${ac_cv_header_stdint_h+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 fi
21135 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21136 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21137 else
21138   # Is the header compilable?
21139 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
21140 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 $ac_includes_default
21148 #include <stdint.h>
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_compile") 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } && {
21164          test -z "$ac_c_werror_flag" ||
21165          test ! -s conftest.err
21166        } && test -s conftest.$ac_objext; then
21167   ac_header_compiler=yes
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172         ac_header_compiler=no
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6; }
21178
21179 # Is the header present?
21180 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
21181 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 #include <stdint.h>
21189 _ACEOF
21190 if { (ac_try="$ac_cpp conftest.$ac_ext"
21191 case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } >/dev/null && {
21203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204          test ! -s conftest.err
21205        }; then
21206   ac_header_preproc=yes
21207 else
21208   echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211   ac_header_preproc=no
21212 fi
21213
21214 rm -f conftest.err conftest.$ac_ext
21215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21216 echo "${ECHO_T}$ac_header_preproc" >&6; }
21217
21218 # So?  What about this header?
21219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21220   yes:no: )
21221     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
21222 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21223     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
21224 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
21225     ac_header_preproc=yes
21226     ;;
21227   no:yes:* )
21228     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
21229 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
21230     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
21231 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
21232     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
21233 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
21234     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
21235 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21236     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
21237 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
21238     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
21239 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
21240
21241     ;;
21242 esac
21243 { echo "$as_me:$LINENO: checking for stdint.h" >&5
21244 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21245 if test "${ac_cv_header_stdint_h+set}" = set; then
21246   echo $ECHO_N "(cached) $ECHO_C" >&6
21247 else
21248   ac_cv_header_stdint_h=$ac_header_preproc
21249 fi
21250 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21251 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21252
21253 fi
21254
21255
21256
21257 # the autotools SDK always assumes that it is linked against the engine
21258
21259 cat >>confdefs.h <<\_ACEOF
21260 #define UIAPI_LINKED 1
21261 _ACEOF
21262
21263
21264 cat >>confdefs.h <<\_ACEOF
21265 #define DBAPI_LINKED 1
21266 _ACEOF
21267
21268
21269 cat >>confdefs.h <<\_ACEOF
21270 #define DBAPI_SRV_LINKED 1
21271 _ACEOF
21272
21273
21274 # determines which object files are needed in the SDK:
21275 # if linking statically, some object files are shared with
21276 # libsynthesis.a
21277  if test "$enable_shared" = "no"; then
21278   COND_STATIC_TRUE=
21279   COND_STATIC_FALSE='#'
21280 else
21281   COND_STATIC_TRUE='#'
21282   COND_STATIC_FALSE=
21283 fi
21284
21285
21286 # Disable unconditionally at the moment. Would add dependency of SDK
21287 # on SyncML Toolkit.
21288
21289 cat >>confdefs.h <<\_ACEOF
21290 #define WITHOUT_SAN_1_1 1
21291 _ACEOF
21292
21293
21294 ac_config_files="$ac_config_files Makefile src/Makefile synthesis.pc synthesis-sdk.pc"
21295
21296 cat >confcache <<\_ACEOF
21297 # This file is a shell script that caches the results of configure
21298 # tests run on this system so they can be shared between configure
21299 # scripts and configure runs, see configure's option --config-cache.
21300 # It is not useful on other systems.  If it contains results you don't
21301 # want to keep, you may remove or edit it.
21302 #
21303 # config.status only pays attention to the cache file if you give it
21304 # the --recheck option to rerun configure.
21305 #
21306 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21308 # following values.
21309
21310 _ACEOF
21311
21312 # The following way of writing the cache mishandles newlines in values,
21313 # but we know of no workaround that is simple, portable, and efficient.
21314 # So, we kill variables containing newlines.
21315 # Ultrix sh set writes to stderr and can't be redirected directly,
21316 # and sets the high bit in the cache file unless we assign to the vars.
21317 (
21318   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21319     eval ac_val=\$$ac_var
21320     case $ac_val in #(
21321     *${as_nl}*)
21322       case $ac_var in #(
21323       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21324 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21325       esac
21326       case $ac_var in #(
21327       _ | IFS | as_nl) ;; #(
21328       *) $as_unset $ac_var ;;
21329       esac ;;
21330     esac
21331   done
21332
21333   (set) 2>&1 |
21334     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21335     *${as_nl}ac_space=\ *)
21336       # `set' does not quote correctly, so add quotes (double-quote
21337       # substitution turns \\\\ into \\, and sed turns \\ into \).
21338       sed -n \
21339         "s/'/'\\\\''/g;
21340           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21341       ;; #(
21342     *)
21343       # `set' quotes correctly as required by POSIX, so do not add quotes.
21344       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21345       ;;
21346     esac |
21347     sort
21348 ) |
21349   sed '
21350      /^ac_cv_env_/b end
21351      t clear
21352      :clear
21353      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21354      t end
21355      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21356      :end' >>confcache
21357 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21358   if test -w "$cache_file"; then
21359     test "x$cache_file" != "x/dev/null" &&
21360       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21361 echo "$as_me: updating cache $cache_file" >&6;}
21362     cat confcache >$cache_file
21363   else
21364     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21365 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21366   fi
21367 fi
21368 rm -f confcache
21369
21370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21371 # Let make expand exec_prefix.
21372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21373
21374 DEFS=-DHAVE_CONFIG_H
21375
21376 ac_libobjs=
21377 ac_ltlibobjs=
21378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21379   # 1. Remove the extension, and $U if already installed.
21380   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21381   ac_i=`echo "$ac_i" | sed "$ac_script"`
21382   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21383   #    will be set to the directory where LIBOBJS objects are built.
21384   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21385   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21386 done
21387 LIBOBJS=$ac_libobjs
21388
21389 LTLIBOBJS=$ac_ltlibobjs
21390
21391
21392 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21393   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21394 Usually this means the macro was only invoked conditionally." >&5
21395 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21396 Usually this means the macro was only invoked conditionally." >&2;}
21397    { (exit 1); exit 1; }; }
21398 fi
21399 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21400   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21401 Usually this means the macro was only invoked conditionally." >&5
21402 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21403 Usually this means the macro was only invoked conditionally." >&2;}
21404    { (exit 1); exit 1; }; }
21405 fi
21406 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21407   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21408 Usually this means the macro was only invoked conditionally." >&5
21409 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21410 Usually this means the macro was only invoked conditionally." >&2;}
21411    { (exit 1); exit 1; }; }
21412 fi
21413 if test -z "${COND_XMLPARSE_TRUE}" && test -z "${COND_XMLPARSE_FALSE}"; then
21414   { { echo "$as_me:$LINENO: error: conditional \"COND_XMLPARSE\" was never defined.
21415 Usually this means the macro was only invoked conditionally." >&5
21416 echo "$as_me: error: conditional \"COND_XMLPARSE\" was never defined.
21417 Usually this means the macro was only invoked conditionally." >&2;}
21418    { (exit 1); exit 1; }; }
21419 fi
21420 if test -z "${COND_STATIC_TRUE}" && test -z "${COND_STATIC_FALSE}"; then
21421   { { echo "$as_me:$LINENO: error: conditional \"COND_STATIC\" was never defined.
21422 Usually this means the macro was only invoked conditionally." >&5
21423 echo "$as_me: error: conditional \"COND_STATIC\" was never defined.
21424 Usually this means the macro was only invoked conditionally." >&2;}
21425    { (exit 1); exit 1; }; }
21426 fi
21427
21428 : ${CONFIG_STATUS=./config.status}
21429 ac_clean_files_save=$ac_clean_files
21430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21433 cat >$CONFIG_STATUS <<_ACEOF
21434 #! $SHELL
21435 # Generated by $as_me.
21436 # Run this file to recreate the current configuration.
21437 # Compiler output produced by configure, useful for debugging
21438 # configure, is in config.log if it exists.
21439
21440 debug=false
21441 ac_cs_recheck=false
21442 ac_cs_silent=false
21443 SHELL=\${CONFIG_SHELL-$SHELL}
21444 _ACEOF
21445
21446 cat >>$CONFIG_STATUS <<\_ACEOF
21447 ## --------------------- ##
21448 ## M4sh Initialization.  ##
21449 ## --------------------- ##
21450
21451 # Be more Bourne compatible
21452 DUALCASE=1; export DUALCASE # for MKS sh
21453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21454   emulate sh
21455   NULLCMD=:
21456   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21457   # is contrary to our usage.  Disable this feature.
21458   alias -g '${1+"$@"}'='"$@"'
21459   setopt NO_GLOB_SUBST
21460 else
21461   case `(set -o) 2>/dev/null` in
21462   *posix*) set -o posix ;;
21463 esac
21464
21465 fi
21466
21467
21468
21469
21470 # PATH needs CR
21471 # Avoid depending upon Character Ranges.
21472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21475 as_cr_digits='0123456789'
21476 as_cr_alnum=$as_cr_Letters$as_cr_digits
21477
21478 # The user is always right.
21479 if test "${PATH_SEPARATOR+set}" != set; then
21480   echo "#! /bin/sh" >conf$$.sh
21481   echo  "exit 0"   >>conf$$.sh
21482   chmod +x conf$$.sh
21483   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21484     PATH_SEPARATOR=';'
21485   else
21486     PATH_SEPARATOR=:
21487   fi
21488   rm -f conf$$.sh
21489 fi
21490
21491 # Support unset when possible.
21492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21493   as_unset=unset
21494 else
21495   as_unset=false
21496 fi
21497
21498
21499 # IFS
21500 # We need space, tab and new line, in precisely that order.  Quoting is
21501 # there to prevent editors from complaining about space-tab.
21502 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21503 # splitting by setting IFS to empty value.)
21504 as_nl='
21505 '
21506 IFS=" ""        $as_nl"
21507
21508 # Find who we are.  Look in the path if we contain no directory separator.
21509 case $0 in
21510   *[\\/]* ) as_myself=$0 ;;
21511   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21512 for as_dir in $PATH
21513 do
21514   IFS=$as_save_IFS
21515   test -z "$as_dir" && as_dir=.
21516   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21517 done
21518 IFS=$as_save_IFS
21519
21520      ;;
21521 esac
21522 # We did not find ourselves, most probably we were run as `sh COMMAND'
21523 # in which case we are not to be found in the path.
21524 if test "x$as_myself" = x; then
21525   as_myself=$0
21526 fi
21527 if test ! -f "$as_myself"; then
21528   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21529   { (exit 1); exit 1; }
21530 fi
21531
21532 # Work around bugs in pre-3.0 UWIN ksh.
21533 for as_var in ENV MAIL MAILPATH
21534 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21535 done
21536 PS1='$ '
21537 PS2='> '
21538 PS4='+ '
21539
21540 # NLS nuisances.
21541 for as_var in \
21542   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21543   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21544   LC_TELEPHONE LC_TIME
21545 do
21546   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21547     eval $as_var=C; export $as_var
21548   else
21549     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21550   fi
21551 done
21552
21553 # Required to use basename.
21554 if expr a : '\(a\)' >/dev/null 2>&1 &&
21555    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21556   as_expr=expr
21557 else
21558   as_expr=false
21559 fi
21560
21561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21562   as_basename=basename
21563 else
21564   as_basename=false
21565 fi
21566
21567
21568 # Name of the executable.
21569 as_me=`$as_basename -- "$0" ||
21570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21571          X"$0" : 'X\(//\)$' \| \
21572          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21573 echo X/"$0" |
21574     sed '/^.*\/\([^/][^/]*\)\/*$/{
21575             s//\1/
21576             q
21577           }
21578           /^X\/\(\/\/\)$/{
21579             s//\1/
21580             q
21581           }
21582           /^X\/\(\/\).*/{
21583             s//\1/
21584             q
21585           }
21586           s/.*/./; q'`
21587
21588 # CDPATH.
21589 $as_unset CDPATH
21590
21591
21592
21593   as_lineno_1=$LINENO
21594   as_lineno_2=$LINENO
21595   test "x$as_lineno_1" != "x$as_lineno_2" &&
21596   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21597
21598   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21599   # uniformly replaced by the line number.  The first 'sed' inserts a
21600   # line-number line after each line using $LINENO; the second 'sed'
21601   # does the real work.  The second script uses 'N' to pair each
21602   # line-number line with the line containing $LINENO, and appends
21603   # trailing '-' during substitution so that $LINENO is not a special
21604   # case at line end.
21605   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21606   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21607   # E. McMahon (1931-1989) for sed's syntax.  :-)
21608   sed -n '
21609     p
21610     /[$]LINENO/=
21611   ' <$as_myself |
21612     sed '
21613       s/[$]LINENO.*/&-/
21614       t lineno
21615       b
21616       :lineno
21617       N
21618       :loop
21619       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21620       t loop
21621       s/-\n.*//
21622     ' >$as_me.lineno &&
21623   chmod +x "$as_me.lineno" ||
21624     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21625    { (exit 1); exit 1; }; }
21626
21627   # Don't try to exec as it changes $[0], causing all sort of problems
21628   # (the dirname of $[0] is not the place where we might find the
21629   # original and so on.  Autoconf is especially sensitive to this).
21630   . "./$as_me.lineno"
21631   # Exit status is that of the last command.
21632   exit
21633 }
21634
21635
21636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21637   as_dirname=dirname
21638 else
21639   as_dirname=false
21640 fi
21641
21642 ECHO_C= ECHO_N= ECHO_T=
21643 case `echo -n x` in
21644 -n*)
21645   case `echo 'x\c'` in
21646   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21647   *)   ECHO_C='\c';;
21648   esac;;
21649 *)
21650   ECHO_N='-n';;
21651 esac
21652
21653 if expr a : '\(a\)' >/dev/null 2>&1 &&
21654    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21655   as_expr=expr
21656 else
21657   as_expr=false
21658 fi
21659
21660 rm -f conf$$ conf$$.exe conf$$.file
21661 if test -d conf$$.dir; then
21662   rm -f conf$$.dir/conf$$.file
21663 else
21664   rm -f conf$$.dir
21665   mkdir conf$$.dir
21666 fi
21667 echo >conf$$.file
21668 if ln -s conf$$.file conf$$ 2>/dev/null; then
21669   as_ln_s='ln -s'
21670   # ... but there are two gotchas:
21671   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21672   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21673   # In both cases, we have to default to `cp -p'.
21674   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21675     as_ln_s='cp -p'
21676 elif ln conf$$.file conf$$ 2>/dev/null; then
21677   as_ln_s=ln
21678 else
21679   as_ln_s='cp -p'
21680 fi
21681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21682 rmdir conf$$.dir 2>/dev/null
21683
21684 if mkdir -p . 2>/dev/null; then
21685   as_mkdir_p=:
21686 else
21687   test -d ./-p && rmdir ./-p
21688   as_mkdir_p=false
21689 fi
21690
21691 if test -x / >/dev/null 2>&1; then
21692   as_test_x='test -x'
21693 else
21694   if ls -dL / >/dev/null 2>&1; then
21695     as_ls_L_option=L
21696   else
21697     as_ls_L_option=
21698   fi
21699   as_test_x='
21700     eval sh -c '\''
21701       if test -d "$1"; then
21702         test -d "$1/.";
21703       else
21704         case $1 in
21705         -*)set "./$1";;
21706         esac;
21707         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21708         ???[sx]*):;;*)false;;esac;fi
21709     '\'' sh
21710   '
21711 fi
21712 as_executable_p=$as_test_x
21713
21714 # Sed expression to map a string onto a valid CPP name.
21715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21716
21717 # Sed expression to map a string onto a valid variable name.
21718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21719
21720
21721 exec 6>&1
21722
21723 # Save the log message, to keep $[0] and so on meaningful, and to
21724 # report actual input values of CONFIG_FILES etc. instead of their
21725 # values after options handling.
21726 ac_log="
21727 This file was extended by $as_me, which was
21728 generated by GNU Autoconf 2.61.  Invocation command line was
21729
21730   CONFIG_FILES    = $CONFIG_FILES
21731   CONFIG_HEADERS  = $CONFIG_HEADERS
21732   CONFIG_LINKS    = $CONFIG_LINKS
21733   CONFIG_COMMANDS = $CONFIG_COMMANDS
21734   $ $0 $@
21735
21736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21737 "
21738
21739 _ACEOF
21740
21741 cat >>$CONFIG_STATUS <<_ACEOF
21742 # Files that config.status was made for.
21743 config_files="$ac_config_files"
21744 config_headers="$ac_config_headers"
21745 config_commands="$ac_config_commands"
21746
21747 _ACEOF
21748
21749 cat >>$CONFIG_STATUS <<\_ACEOF
21750 ac_cs_usage="\
21751 \`$as_me' instantiates files from templates according to the
21752 current configuration.
21753
21754 Usage: $0 [OPTIONS] [FILE]...
21755
21756   -h, --help       print this help, then exit
21757   -V, --version    print version number and configuration settings, then exit
21758   -q, --quiet      do not print progress messages
21759   -d, --debug      don't remove temporary files
21760       --recheck    update $as_me by reconfiguring in the same conditions
21761   --file=FILE[:TEMPLATE]
21762                    instantiate the configuration file FILE
21763   --header=FILE[:TEMPLATE]
21764                    instantiate the configuration header FILE
21765
21766 Configuration files:
21767 $config_files
21768
21769 Configuration headers:
21770 $config_headers
21771
21772 Configuration commands:
21773 $config_commands
21774
21775 Report bugs to <bug-autoconf@gnu.org>."
21776
21777 _ACEOF
21778 cat >>$CONFIG_STATUS <<_ACEOF
21779 ac_cs_version="\\
21780 config.status
21781 configured by $0, generated by GNU Autoconf 2.61,
21782   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21783
21784 Copyright (C) 2006 Free Software Foundation, Inc.
21785 This config.status script is free software; the Free Software Foundation
21786 gives unlimited permission to copy, distribute and modify it."
21787
21788 ac_pwd='$ac_pwd'
21789 srcdir='$srcdir'
21790 INSTALL='$INSTALL'
21791 MKDIR_P='$MKDIR_P'
21792 _ACEOF
21793
21794 cat >>$CONFIG_STATUS <<\_ACEOF
21795 # If no file are specified by the user, then we need to provide default
21796 # value.  By we need to know if files were specified by the user.
21797 ac_need_defaults=:
21798 while test $# != 0
21799 do
21800   case $1 in
21801   --*=*)
21802     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21803     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21804     ac_shift=:
21805     ;;
21806   *)
21807     ac_option=$1
21808     ac_optarg=$2
21809     ac_shift=shift
21810     ;;
21811   esac
21812
21813   case $ac_option in
21814   # Handling of the options.
21815   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21816     ac_cs_recheck=: ;;
21817   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21818     echo "$ac_cs_version"; exit ;;
21819   --debug | --debu | --deb | --de | --d | -d )
21820     debug=: ;;
21821   --file | --fil | --fi | --f )
21822     $ac_shift
21823     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21824     ac_need_defaults=false;;
21825   --header | --heade | --head | --hea )
21826     $ac_shift
21827     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21828     ac_need_defaults=false;;
21829   --he | --h)
21830     # Conflict between --help and --header
21831     { echo "$as_me: error: ambiguous option: $1
21832 Try \`$0 --help' for more information." >&2
21833    { (exit 1); exit 1; }; };;
21834   --help | --hel | -h )
21835     echo "$ac_cs_usage"; exit ;;
21836   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21837   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21838     ac_cs_silent=: ;;
21839
21840   # This is an error.
21841   -*) { echo "$as_me: error: unrecognized option: $1
21842 Try \`$0 --help' for more information." >&2
21843    { (exit 1); exit 1; }; } ;;
21844
21845   *) ac_config_targets="$ac_config_targets $1"
21846      ac_need_defaults=false ;;
21847
21848   esac
21849   shift
21850 done
21851
21852 ac_configure_extra_args=
21853
21854 if $ac_cs_silent; then
21855   exec 6>/dev/null
21856   ac_configure_extra_args="$ac_configure_extra_args --silent"
21857 fi
21858
21859 _ACEOF
21860 cat >>$CONFIG_STATUS <<_ACEOF
21861 if \$ac_cs_recheck; then
21862   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21863   CONFIG_SHELL=$SHELL
21864   export CONFIG_SHELL
21865   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21866 fi
21867
21868 _ACEOF
21869 cat >>$CONFIG_STATUS <<\_ACEOF
21870 exec 5>>config.log
21871 {
21872   echo
21873   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21874 ## Running $as_me. ##
21875 _ASBOX
21876   echo "$ac_log"
21877 } >&5
21878
21879 _ACEOF
21880 cat >>$CONFIG_STATUS <<_ACEOF
21881 #
21882 # INIT-COMMANDS
21883 #
21884 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21885
21886 _ACEOF
21887
21888 cat >>$CONFIG_STATUS <<\_ACEOF
21889
21890 # Handling of arguments.
21891 for ac_config_target in $ac_config_targets
21892 do
21893   case $ac_config_target in
21894     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21895     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21896     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21897     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21898     "synthesis.pc") CONFIG_FILES="$CONFIG_FILES synthesis.pc" ;;
21899     "synthesis-sdk.pc") CONFIG_FILES="$CONFIG_FILES synthesis-sdk.pc" ;;
21900
21901   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21902 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21903    { (exit 1); exit 1; }; };;
21904   esac
21905 done
21906
21907
21908 # If the user did not use the arguments to specify the items to instantiate,
21909 # then the envvar interface is used.  Set only those that are not.
21910 # We use the long form for the default assignment because of an extremely
21911 # bizarre bug on SunOS 4.1.3.
21912 if $ac_need_defaults; then
21913   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21914   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21915   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21916 fi
21917
21918 # Have a temporary directory for convenience.  Make it in the build tree
21919 # simply because there is no reason against having it here, and in addition,
21920 # creating and moving files from /tmp can sometimes cause problems.
21921 # Hook for its removal unless debugging.
21922 # Note that there is a small window in which the directory will not be cleaned:
21923 # after its creation but before its name has been assigned to `$tmp'.
21924 $debug ||
21925 {
21926   tmp=
21927   trap 'exit_status=$?
21928   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21929 ' 0
21930   trap '{ (exit 1); exit 1; }' 1 2 13 15
21931 }
21932 # Create a (secure) tmp directory for tmp files.
21933
21934 {
21935   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21936   test -n "$tmp" && test -d "$tmp"
21937 }  ||
21938 {
21939   tmp=./conf$$-$RANDOM
21940   (umask 077 && mkdir "$tmp")
21941 } ||
21942 {
21943    echo "$me: cannot create a temporary directory in ." >&2
21944    { (exit 1); exit 1; }
21945 }
21946
21947 #
21948 # Set up the sed scripts for CONFIG_FILES section.
21949 #
21950
21951 # No need to generate the scripts if there are no CONFIG_FILES.
21952 # This happens for instance when ./config.status config.h
21953 if test -n "$CONFIG_FILES"; then
21954
21955 _ACEOF
21956
21957
21958
21959 ac_delim='%!_!# '
21960 for ac_last_try in false false false false false :; do
21961   cat >conf$$subs.sed <<_ACEOF
21962 SHELL!$SHELL$ac_delim
21963 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21964 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21965 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21966 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21967 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21968 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21969 exec_prefix!$exec_prefix$ac_delim
21970 prefix!$prefix$ac_delim
21971 program_transform_name!$program_transform_name$ac_delim
21972 bindir!$bindir$ac_delim
21973 sbindir!$sbindir$ac_delim
21974 libexecdir!$libexecdir$ac_delim
21975 datarootdir!$datarootdir$ac_delim
21976 datadir!$datadir$ac_delim
21977 sysconfdir!$sysconfdir$ac_delim
21978 sharedstatedir!$sharedstatedir$ac_delim
21979 localstatedir!$localstatedir$ac_delim
21980 includedir!$includedir$ac_delim
21981 oldincludedir!$oldincludedir$ac_delim
21982 docdir!$docdir$ac_delim
21983 infodir!$infodir$ac_delim
21984 htmldir!$htmldir$ac_delim
21985 dvidir!$dvidir$ac_delim
21986 pdfdir!$pdfdir$ac_delim
21987 psdir!$psdir$ac_delim
21988 libdir!$libdir$ac_delim
21989 localedir!$localedir$ac_delim
21990 mandir!$mandir$ac_delim
21991 DEFS!$DEFS$ac_delim
21992 ECHO_C!$ECHO_C$ac_delim
21993 ECHO_N!$ECHO_N$ac_delim
21994 ECHO_T!$ECHO_T$ac_delim
21995 LIBS!$LIBS$ac_delim
21996 build_alias!$build_alias$ac_delim
21997 host_alias!$host_alias$ac_delim
21998 target_alias!$target_alias$ac_delim
21999 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22000 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22001 INSTALL_DATA!$INSTALL_DATA$ac_delim
22002 am__isrc!$am__isrc$ac_delim
22003 CYGPATH_W!$CYGPATH_W$ac_delim
22004 PACKAGE!$PACKAGE$ac_delim
22005 VERSION!$VERSION$ac_delim
22006 ACLOCAL!$ACLOCAL$ac_delim
22007 AUTOCONF!$AUTOCONF$ac_delim
22008 AUTOMAKE!$AUTOMAKE$ac_delim
22009 AUTOHEADER!$AUTOHEADER$ac_delim
22010 MAKEINFO!$MAKEINFO$ac_delim
22011 install_sh!$install_sh$ac_delim
22012 STRIP!$STRIP$ac_delim
22013 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22014 mkdir_p!$mkdir_p$ac_delim
22015 AWK!$AWK$ac_delim
22016 SET_MAKE!$SET_MAKE$ac_delim
22017 am__leading_dot!$am__leading_dot$ac_delim
22018 AMTAR!$AMTAR$ac_delim
22019 am__tar!$am__tar$ac_delim
22020 am__untar!$am__untar$ac_delim
22021 CXX!$CXX$ac_delim
22022 CXXFLAGS!$CXXFLAGS$ac_delim
22023 LDFLAGS!$LDFLAGS$ac_delim
22024 CPPFLAGS!$CPPFLAGS$ac_delim
22025 ac_ct_CXX!$ac_ct_CXX$ac_delim
22026 EXEEXT!$EXEEXT$ac_delim
22027 OBJEXT!$OBJEXT$ac_delim
22028 DEPDIR!$DEPDIR$ac_delim
22029 am__include!$am__include$ac_delim
22030 am__quote!$am__quote$ac_delim
22031 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22032 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22033 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22034 CXXDEPMODE!$CXXDEPMODE$ac_delim
22035 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22036 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22037 build!$build$ac_delim
22038 build_cpu!$build_cpu$ac_delim
22039 build_vendor!$build_vendor$ac_delim
22040 build_os!$build_os$ac_delim
22041 host!$host$ac_delim
22042 host_cpu!$host_cpu$ac_delim
22043 host_vendor!$host_vendor$ac_delim
22044 host_os!$host_os$ac_delim
22045 CC!$CC$ac_delim
22046 CFLAGS!$CFLAGS$ac_delim
22047 ac_ct_CC!$ac_ct_CC$ac_delim
22048 CCDEPMODE!$CCDEPMODE$ac_delim
22049 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22050 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22051 SED!$SED$ac_delim
22052 GREP!$GREP$ac_delim
22053 EGREP!$EGREP$ac_delim
22054 LN_S!$LN_S$ac_delim
22055 ECHO!$ECHO$ac_delim
22056 AR!$AR$ac_delim
22057 RANLIB!$RANLIB$ac_delim
22058 DSYMUTIL!$DSYMUTIL$ac_delim
22059 _ACEOF
22060
22061   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22062     break
22063   elif $ac_last_try; then
22064     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22066    { (exit 1); exit 1; }; }
22067   else
22068     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22069   fi
22070 done
22071
22072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22073 if test -n "$ac_eof"; then
22074   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22075   ac_eof=`expr $ac_eof + 1`
22076 fi
22077
22078 cat >>$CONFIG_STATUS <<_ACEOF
22079 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22081 _ACEOF
22082 sed '
22083 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22084 s/^/s,@/; s/!/@,|#_!!_#|/
22085 :n
22086 t n
22087 s/'"$ac_delim"'$/,g/; t
22088 s/$/\\/; p
22089 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22090 ' >>$CONFIG_STATUS <conf$$subs.sed
22091 rm -f conf$$subs.sed
22092 cat >>$CONFIG_STATUS <<_ACEOF
22093 CEOF$ac_eof
22094 _ACEOF
22095
22096
22097 ac_delim='%!_!# '
22098 for ac_last_try in false false false false false :; do
22099   cat >conf$$subs.sed <<_ACEOF
22100 NMEDIT!$NMEDIT$ac_delim
22101 CPP!$CPP$ac_delim
22102 CXXCPP!$CXXCPP$ac_delim
22103 F77!$F77$ac_delim
22104 FFLAGS!$FFLAGS$ac_delim
22105 ac_ct_F77!$ac_ct_F77$ac_delim
22106 LIBTOOL!$LIBTOOL$ac_delim
22107 PKG_CONFIG!$PKG_CONFIG$ac_delim
22108 FOOBAR_CFLAGS!$FOOBAR_CFLAGS$ac_delim
22109 FOOBAR_LIBS!$FOOBAR_LIBS$ac_delim
22110 SQLITE3_CFLAGS!$SQLITE3_CFLAGS$ac_delim
22111 SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
22112 PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
22113 PCRE_LIBS!$PCRE_LIBS$ac_delim
22114 LIBICAL_CFLAGS!$LIBICAL_CFLAGS$ac_delim
22115 LIBICAL_LIBS!$LIBICAL_LIBS$ac_delim
22116 LIBECAL_CFLAGS!$LIBECAL_CFLAGS$ac_delim
22117 LIBECAL_LIBS!$LIBECAL_LIBS$ac_delim
22118 XMLPARSE_LIBS!$XMLPARSE_LIBS$ac_delim
22119 XMLPARSE_CFLAGS!$XMLPARSE_CFLAGS$ac_delim
22120 COND_XMLPARSE_TRUE!$COND_XMLPARSE_TRUE$ac_delim
22121 COND_XMLPARSE_FALSE!$COND_XMLPARSE_FALSE$ac_delim
22122 COND_STATIC_TRUE!$COND_STATIC_TRUE$ac_delim
22123 COND_STATIC_FALSE!$COND_STATIC_FALSE$ac_delim
22124 LIBOBJS!$LIBOBJS$ac_delim
22125 LTLIBOBJS!$LTLIBOBJS$ac_delim
22126 _ACEOF
22127
22128   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
22129     break
22130   elif $ac_last_try; then
22131     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22132 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22133    { (exit 1); exit 1; }; }
22134   else
22135     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22136   fi
22137 done
22138
22139 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22140 if test -n "$ac_eof"; then
22141   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22142   ac_eof=`expr $ac_eof + 1`
22143 fi
22144
22145 cat >>$CONFIG_STATUS <<_ACEOF
22146 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22148 _ACEOF
22149 sed '
22150 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22151 s/^/s,@/; s/!/@,|#_!!_#|/
22152 :n
22153 t n
22154 s/'"$ac_delim"'$/,g/; t
22155 s/$/\\/; p
22156 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22157 ' >>$CONFIG_STATUS <conf$$subs.sed
22158 rm -f conf$$subs.sed
22159 cat >>$CONFIG_STATUS <<_ACEOF
22160 :end
22161 s/|#_!!_#|//g
22162 CEOF$ac_eof
22163 _ACEOF
22164
22165
22166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22168 # trailing colons and then remove the whole line if VPATH becomes empty
22169 # (actually we leave an empty line to preserve line numbers).
22170 if test "x$srcdir" = x.; then
22171   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22172 s/:*\$(srcdir):*/:/
22173 s/:*\${srcdir}:*/:/
22174 s/:*@srcdir@:*/:/
22175 s/^\([^=]*=[     ]*\):*/\1/
22176 s/:*$//
22177 s/^[^=]*=[       ]*$//
22178 }'
22179 fi
22180
22181 cat >>$CONFIG_STATUS <<\_ACEOF
22182 fi # test -n "$CONFIG_FILES"
22183
22184
22185 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22186 do
22187   case $ac_tag in
22188   :[FHLC]) ac_mode=$ac_tag; continue;;
22189   esac
22190   case $ac_mode$ac_tag in
22191   :[FHL]*:*);;
22192   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22193 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22194    { (exit 1); exit 1; }; };;
22195   :[FH]-) ac_tag=-:-;;
22196   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22197   esac
22198   ac_save_IFS=$IFS
22199   IFS=:
22200   set x $ac_tag
22201   IFS=$ac_save_IFS
22202   shift
22203   ac_file=$1
22204   shift
22205
22206   case $ac_mode in
22207   :L) ac_source=$1;;
22208   :[FH])
22209     ac_file_inputs=
22210     for ac_f
22211     do
22212       case $ac_f in
22213       -) ac_f="$tmp/stdin";;
22214       *) # Look for the file first in the build tree, then in the source tree
22215          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22216          # because $ac_f cannot contain `:'.
22217          test -f "$ac_f" ||
22218            case $ac_f in
22219            [\\/$]*) false;;
22220            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22221            esac ||
22222            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22223 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22224    { (exit 1); exit 1; }; };;
22225       esac
22226       ac_file_inputs="$ac_file_inputs $ac_f"
22227     done
22228
22229     # Let's still pretend it is `configure' which instantiates (i.e., don't
22230     # use $as_me), people would be surprised to read:
22231     #    /* config.h.  Generated by config.status.  */
22232     configure_input="Generated from "`IFS=:
22233           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22234     if test x"$ac_file" != x-; then
22235       configure_input="$ac_file.  $configure_input"
22236       { echo "$as_me:$LINENO: creating $ac_file" >&5
22237 echo "$as_me: creating $ac_file" >&6;}
22238     fi
22239
22240     case $ac_tag in
22241     *:-:* | *:-) cat >"$tmp/stdin";;
22242     esac
22243     ;;
22244   esac
22245
22246   ac_dir=`$as_dirname -- "$ac_file" ||
22247 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248          X"$ac_file" : 'X\(//\)[^/]' \| \
22249          X"$ac_file" : 'X\(//\)$' \| \
22250          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22251 echo X"$ac_file" |
22252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22253             s//\1/
22254             q
22255           }
22256           /^X\(\/\/\)[^/].*/{
22257             s//\1/
22258             q
22259           }
22260           /^X\(\/\/\)$/{
22261             s//\1/
22262             q
22263           }
22264           /^X\(\/\).*/{
22265             s//\1/
22266             q
22267           }
22268           s/.*/./; q'`
22269   { as_dir="$ac_dir"
22270   case $as_dir in #(
22271   -*) as_dir=./$as_dir;;
22272   esac
22273   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22274     as_dirs=
22275     while :; do
22276       case $as_dir in #(
22277       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22278       *) as_qdir=$as_dir;;
22279       esac
22280       as_dirs="'$as_qdir' $as_dirs"
22281       as_dir=`$as_dirname -- "$as_dir" ||
22282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283          X"$as_dir" : 'X\(//\)[^/]' \| \
22284          X"$as_dir" : 'X\(//\)$' \| \
22285          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22286 echo X"$as_dir" |
22287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22288             s//\1/
22289             q
22290           }
22291           /^X\(\/\/\)[^/].*/{
22292             s//\1/
22293             q
22294           }
22295           /^X\(\/\/\)$/{
22296             s//\1/
22297             q
22298           }
22299           /^X\(\/\).*/{
22300             s//\1/
22301             q
22302           }
22303           s/.*/./; q'`
22304       test -d "$as_dir" && break
22305     done
22306     test -z "$as_dirs" || eval "mkdir $as_dirs"
22307   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22308 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22309    { (exit 1); exit 1; }; }; }
22310   ac_builddir=.
22311
22312 case "$ac_dir" in
22313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22314 *)
22315   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22316   # A ".." for each directory in $ac_dir_suffix.
22317   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22318   case $ac_top_builddir_sub in
22319   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22320   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22321   esac ;;
22322 esac
22323 ac_abs_top_builddir=$ac_pwd
22324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22325 # for backward compatibility:
22326 ac_top_builddir=$ac_top_build_prefix
22327
22328 case $srcdir in
22329   .)  # We are building in place.
22330     ac_srcdir=.
22331     ac_top_srcdir=$ac_top_builddir_sub
22332     ac_abs_top_srcdir=$ac_pwd ;;
22333   [\\/]* | ?:[\\/]* )  # Absolute name.
22334     ac_srcdir=$srcdir$ac_dir_suffix;
22335     ac_top_srcdir=$srcdir
22336     ac_abs_top_srcdir=$srcdir ;;
22337   *) # Relative name.
22338     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22339     ac_top_srcdir=$ac_top_build_prefix$srcdir
22340     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22341 esac
22342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22343
22344
22345   case $ac_mode in
22346   :F)
22347   #
22348   # CONFIG_FILE
22349   #
22350
22351   case $INSTALL in
22352   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22353   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22354   esac
22355   ac_MKDIR_P=$MKDIR_P
22356   case $MKDIR_P in
22357   [\\/$]* | ?:[\\/]* ) ;;
22358   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22359   esac
22360 _ACEOF
22361
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 # If the template does not know about datarootdir, expand it.
22364 # FIXME: This hack should be removed a few years after 2.60.
22365 ac_datarootdir_hack=; ac_datarootdir_seen=
22366
22367 case `sed -n '/datarootdir/ {
22368   p
22369   q
22370 }
22371 /@datadir@/p
22372 /@docdir@/p
22373 /@infodir@/p
22374 /@localedir@/p
22375 /@mandir@/p
22376 ' $ac_file_inputs` in
22377 *datarootdir*) ac_datarootdir_seen=yes;;
22378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22379   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22381 _ACEOF
22382 cat >>$CONFIG_STATUS <<_ACEOF
22383   ac_datarootdir_hack='
22384   s&@datadir@&$datadir&g
22385   s&@docdir@&$docdir&g
22386   s&@infodir@&$infodir&g
22387   s&@localedir@&$localedir&g
22388   s&@mandir@&$mandir&g
22389     s&\\\${datarootdir}&$datarootdir&g' ;;
22390 esac
22391 _ACEOF
22392
22393 # Neutralize VPATH when `$srcdir' = `.'.
22394 # Shell code in configure.ac might set extrasub.
22395 # FIXME: do we really want to maintain this feature?
22396 cat >>$CONFIG_STATUS <<_ACEOF
22397   sed "$ac_vpsub
22398 $extrasub
22399 _ACEOF
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22401 :t
22402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22403 s&@configure_input@&$configure_input&;t t
22404 s&@top_builddir@&$ac_top_builddir_sub&;t t
22405 s&@srcdir@&$ac_srcdir&;t t
22406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22407 s&@top_srcdir@&$ac_top_srcdir&;t t
22408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22409 s&@builddir@&$ac_builddir&;t t
22410 s&@abs_builddir@&$ac_abs_builddir&;t t
22411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22412 s&@INSTALL@&$ac_INSTALL&;t t
22413 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22414 $ac_datarootdir_hack
22415 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22416
22417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22418   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22419   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22420   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22421 which seems to be undefined.  Please make sure it is defined." >&5
22422 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22423 which seems to be undefined.  Please make sure it is defined." >&2;}
22424
22425   rm -f "$tmp/stdin"
22426   case $ac_file in
22427   -) cat "$tmp/out"; rm -f "$tmp/out";;
22428   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22429   esac
22430  ;;
22431   :H)
22432   #
22433   # CONFIG_HEADER
22434   #
22435 _ACEOF
22436
22437 # Transform confdefs.h into a sed script `conftest.defines', that
22438 # substitutes the proper values into config.h.in to produce config.h.
22439 rm -f conftest.defines conftest.tail
22440 # First, append a space to every undef/define line, to ease matching.
22441 echo 's/$/ /' >conftest.defines
22442 # Then, protect against being on the right side of a sed subst, or in
22443 # an unquoted here document, in config.status.  If some macros were
22444 # called several times there might be several #defines for the same
22445 # symbol, which is useless.  But do not sort them, since the last
22446 # AC_DEFINE must be honored.
22447 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22448 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22449 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22450 # PARAMS is the parameter list in the macro definition--in most cases, it's
22451 # just an empty string.
22452 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22453 ac_dB='\\)[      (].*,\\1define\\2'
22454 ac_dC=' '
22455 ac_dD=' ,'
22456
22457 uniq confdefs.h |
22458   sed -n '
22459         t rset
22460         :rset
22461         s/^[     ]*#[    ]*define[       ][      ]*//
22462         t ok
22463         d
22464         :ok
22465         s/[\\&,]/\\&/g
22466         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22467         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22468   ' >>conftest.defines
22469
22470 # Remove the space that was appended to ease matching.
22471 # Then replace #undef with comments.  This is necessary, for
22472 # example, in the case of _POSIX_SOURCE, which is predefined and required
22473 # on some systems where configure will not decide to define it.
22474 # (The regexp can be short, since the line contains either #define or #undef.)
22475 echo 's/ $//
22476 s,^[     #]*u.*,/* & */,' >>conftest.defines
22477
22478 # Break up conftest.defines:
22479 ac_max_sed_lines=50
22480
22481 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22482 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22483 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22484 # et cetera.
22485 ac_in='$ac_file_inputs'
22486 ac_out='"$tmp/out1"'
22487 ac_nxt='"$tmp/out2"'
22488
22489 while :
22490 do
22491   # Write a here document:
22492     cat >>$CONFIG_STATUS <<_ACEOF
22493     # First, check the format of the line:
22494     cat >"\$tmp/defines.sed" <<\\CEOF
22495 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22496 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22497 b
22498 :def
22499 _ACEOF
22500   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22501   echo 'CEOF
22502     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22503   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22504   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22505   grep . conftest.tail >/dev/null || break
22506   rm -f conftest.defines
22507   mv conftest.tail conftest.defines
22508 done
22509 rm -f conftest.defines conftest.tail
22510
22511 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22512 cat >>$CONFIG_STATUS <<\_ACEOF
22513   if test x"$ac_file" != x-; then
22514     echo "/* $configure_input  */" >"$tmp/config.h"
22515     cat "$ac_result" >>"$tmp/config.h"
22516     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22517       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22518 echo "$as_me: $ac_file is unchanged" >&6;}
22519     else
22520       rm -f $ac_file
22521       mv "$tmp/config.h" $ac_file
22522     fi
22523   else
22524     echo "/* $configure_input  */"
22525     cat "$ac_result"
22526   fi
22527   rm -f "$tmp/out12"
22528 # Compute $ac_file's index in $config_headers.
22529 _am_arg=$ac_file
22530 _am_stamp_count=1
22531 for _am_header in $config_headers :; do
22532   case $_am_header in
22533     $_am_arg | $_am_arg:* )
22534       break ;;
22535     * )
22536       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22537   esac
22538 done
22539 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22540 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22541          X"$_am_arg" : 'X\(//\)[^/]' \| \
22542          X"$_am_arg" : 'X\(//\)$' \| \
22543          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22544 echo X"$_am_arg" |
22545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22546             s//\1/
22547             q
22548           }
22549           /^X\(\/\/\)[^/].*/{
22550             s//\1/
22551             q
22552           }
22553           /^X\(\/\/\)$/{
22554             s//\1/
22555             q
22556           }
22557           /^X\(\/\).*/{
22558             s//\1/
22559             q
22560           }
22561           s/.*/./; q'`/stamp-h$_am_stamp_count
22562  ;;
22563
22564   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22565 echo "$as_me: executing $ac_file commands" >&6;}
22566  ;;
22567   esac
22568
22569
22570   case $ac_file$ac_mode in
22571     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22572   # Strip MF so we end up with the name of the file.
22573   mf=`echo "$mf" | sed -e 's/:.*$//'`
22574   # Check whether this is an Automake generated Makefile or not.
22575   # We used to match only the files named `Makefile.in', but
22576   # some people rename them; so instead we look at the file content.
22577   # Grep'ing the first line is not enough: some people post-process
22578   # each Makefile.in and add a new line on top of each file to say so.
22579   # Grep'ing the whole file is not good either: AIX grep has a line
22580   # limit of 2048, but all sed's we know have understand at least 4000.
22581   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22582     dirpart=`$as_dirname -- "$mf" ||
22583 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22584          X"$mf" : 'X\(//\)[^/]' \| \
22585          X"$mf" : 'X\(//\)$' \| \
22586          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22587 echo X"$mf" |
22588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22589             s//\1/
22590             q
22591           }
22592           /^X\(\/\/\)[^/].*/{
22593             s//\1/
22594             q
22595           }
22596           /^X\(\/\/\)$/{
22597             s//\1/
22598             q
22599           }
22600           /^X\(\/\).*/{
22601             s//\1/
22602             q
22603           }
22604           s/.*/./; q'`
22605   else
22606     continue
22607   fi
22608   # Extract the definition of DEPDIR, am__include, and am__quote
22609   # from the Makefile without running `make'.
22610   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22611   test -z "$DEPDIR" && continue
22612   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22613   test -z "am__include" && continue
22614   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22615   # When using ansi2knr, U may be empty or an underscore; expand it
22616   U=`sed -n 's/^U = //p' < "$mf"`
22617   # Find all dependency output files, they are included files with
22618   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22619   # simplest approach to changing $(DEPDIR) to its actual value in the
22620   # expansion.
22621   for file in `sed -n "
22622     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22623        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22624     # Make sure the directory exists.
22625     test -f "$dirpart/$file" && continue
22626     fdir=`$as_dirname -- "$file" ||
22627 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22628          X"$file" : 'X\(//\)[^/]' \| \
22629          X"$file" : 'X\(//\)$' \| \
22630          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22631 echo X"$file" |
22632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22633             s//\1/
22634             q
22635           }
22636           /^X\(\/\/\)[^/].*/{
22637             s//\1/
22638             q
22639           }
22640           /^X\(\/\/\)$/{
22641             s//\1/
22642             q
22643           }
22644           /^X\(\/\).*/{
22645             s//\1/
22646             q
22647           }
22648           s/.*/./; q'`
22649     { as_dir=$dirpart/$fdir
22650   case $as_dir in #(
22651   -*) as_dir=./$as_dir;;
22652   esac
22653   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22654     as_dirs=
22655     while :; do
22656       case $as_dir in #(
22657       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22658       *) as_qdir=$as_dir;;
22659       esac
22660       as_dirs="'$as_qdir' $as_dirs"
22661       as_dir=`$as_dirname -- "$as_dir" ||
22662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22663          X"$as_dir" : 'X\(//\)[^/]' \| \
22664          X"$as_dir" : 'X\(//\)$' \| \
22665          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22666 echo X"$as_dir" |
22667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22668             s//\1/
22669             q
22670           }
22671           /^X\(\/\/\)[^/].*/{
22672             s//\1/
22673             q
22674           }
22675           /^X\(\/\/\)$/{
22676             s//\1/
22677             q
22678           }
22679           /^X\(\/\).*/{
22680             s//\1/
22681             q
22682           }
22683           s/.*/./; q'`
22684       test -d "$as_dir" && break
22685     done
22686     test -z "$as_dirs" || eval "mkdir $as_dirs"
22687   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22688 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22689    { (exit 1); exit 1; }; }; }
22690     # echo "creating $dirpart/$file"
22691     echo '# dummy' > "$dirpart/$file"
22692   done
22693 done
22694  ;;
22695
22696   esac
22697 done # for ac_tag
22698
22699
22700 { (exit 0); exit 0; }
22701 _ACEOF
22702 chmod +x $CONFIG_STATUS
22703 ac_clean_files=$ac_clean_files_save
22704
22705
22706 # configure is writing to config.log, and then calls config.status.
22707 # config.status does its own redirection, appending to config.log.
22708 # Unfortunately, on DOS this fails, as config.log is still kept open
22709 # by configure, so config.status won't be able to write to it; its
22710 # output is simply discarded.  So we exec the FD to /dev/null,
22711 # effectively closing config.log, so it can be properly (re)opened and
22712 # appended to by config.status.  When coming back to configure, we
22713 # need to make the FD available again.
22714 if test "$no_create" != yes; then
22715   ac_cs_success=:
22716   ac_config_status_args=
22717   test "$silent" = yes &&
22718     ac_config_status_args="$ac_config_status_args --quiet"
22719   exec 5>/dev/null
22720   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22721   exec 5>>config.log
22722   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22723   # would make configure fail if this is the last instruction.
22724   $ac_cs_success || { (exit 1); exit 1; }
22725 fi
22726