tracing and small fixes to improve object destruction pathways
[ardour.git] / libs / cairomm / 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="cairomm/cairomm.h"
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 GENERIC_MAJOR_VERSION
808 GENERIC_MINOR_VERSION
809 GENERIC_MICRO_VERSION
810 GENERIC_VERSION
811 GENERIC_LIBRARY_VERSION
812 INSTALL_PROGRAM
813 INSTALL_SCRIPT
814 INSTALL_DATA
815 CYGPATH_W
816 PACKAGE
817 VERSION
818 ACLOCAL
819 AUTOCONF
820 AUTOMAKE
821 AUTOHEADER
822 MAKEINFO
823 install_sh
824 STRIP
825 INSTALL_STRIP_PROGRAM
826 mkdir_p
827 AWK
828 SET_MAKE
829 am__leading_dot
830 AMTAR
831 am__tar
832 am__untar
833 CXX
834 CXXFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CXX
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CXXDEPMODE
847 am__fastdepCXX_TRUE
848 am__fastdepCXX_FALSE
849 CXXCPP
850 build
851 build_cpu
852 build_vendor
853 build_os
854 host
855 host_cpu
856 host_vendor
857 host_os
858 CC
859 CFLAGS
860 ac_ct_CC
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 SED
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 AR
870 RANLIB
871 DLLTOOL
872 AS
873 OBJDUMP
874 CPP
875 F77
876 FFLAGS
877 ac_ct_F77
878 LIBTOOL
879 PLATFORM_WIN32_TRUE
880 PLATFORM_WIN32_FALSE
881 OS_WIN32_TRUE
882 OS_WIN32_FALSE
883 PKG_CONFIG
884 CAIROMM_CFLAGS
885 CAIROMM_LIBS
886 BOOST_CPPFLAGS
887 BOOST_LDFLAGS
888 BOOST_UNIT_TEST_FRAMEWORK_LIB
889 AUTOTESTS_TRUE
890 AUTOTESTS_FALSE
891 DOXYGEN
892 DOT
893 DOCS_SUBDIR
894 LIBOBJS
895 LTLIBOBJS'
896 ac_subst_files=''
897       ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CXX
901 CXXFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CCC
906 CXXCPP
907 CC
908 CFLAGS
909 CPP
910 F77
911 FFLAGS
912 PKG_CONFIG
913 CAIROMM_CFLAGS
914 CAIROMM_LIBS'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967   # If the previous option needs an argument, assign it.
968   if test -n "$ac_prev"; then
969     eval $ac_prev=\$ac_option
970     ac_prev=
971     continue
972   fi
973
974   case $ac_option in
975   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976   *)    ac_optarg=yes ;;
977   esac
978
979   # Accept the important Cygnus configure options, so we can diagnose typos.
980
981   case $ac_dashdash$ac_option in
982   --)
983     ac_dashdash=yes ;;
984
985   -bindir | --bindir | --bindi | --bind | --bin | --bi)
986     ac_prev=bindir ;;
987   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988     bindir=$ac_optarg ;;
989
990   -build | --build | --buil | --bui | --bu)
991     ac_prev=build_alias ;;
992   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993     build_alias=$ac_optarg ;;
994
995   -cache-file | --cache-file | --cache-fil | --cache-fi \
996   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997     ac_prev=cache_file ;;
998   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000     cache_file=$ac_optarg ;;
1001
1002   --config-cache | -C)
1003     cache_file=config.cache ;;
1004
1005   -datadir | --datadir | --datadi | --datad)
1006     ac_prev=datadir ;;
1007   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008     datadir=$ac_optarg ;;
1009
1010   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011   | --dataroo | --dataro | --datar)
1012     ac_prev=datarootdir ;;
1013   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015     datarootdir=$ac_optarg ;;
1016
1017   -disable-* | --disable-*)
1018     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022    { (exit 1); exit 1; }; }
1023     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024     eval enable_$ac_feature=no ;;
1025
1026   -docdir | --docdir | --docdi | --doc | --do)
1027     ac_prev=docdir ;;
1028   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029     docdir=$ac_optarg ;;
1030
1031   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032     ac_prev=dvidir ;;
1033   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034     dvidir=$ac_optarg ;;
1035
1036   -enable-* | --enable-*)
1037     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041    { (exit 1); exit 1; }; }
1042     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043     eval enable_$ac_feature=\$ac_optarg ;;
1044
1045   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047   | --exec | --exe | --ex)
1048     ac_prev=exec_prefix ;;
1049   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051   | --exec=* | --exe=* | --ex=*)
1052     exec_prefix=$ac_optarg ;;
1053
1054   -gas | --gas | --ga | --g)
1055     # Obsolete; use --with-gas.
1056     with_gas=yes ;;
1057
1058   -help | --help | --hel | --he | -h)
1059     ac_init_help=long ;;
1060   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061     ac_init_help=recursive ;;
1062   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063     ac_init_help=short ;;
1064
1065   -host | --host | --hos | --ho)
1066     ac_prev=host_alias ;;
1067   -host=* | --host=* | --hos=* | --ho=*)
1068     host_alias=$ac_optarg ;;
1069
1070   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071     ac_prev=htmldir ;;
1072   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073   | --ht=*)
1074     htmldir=$ac_optarg ;;
1075
1076   -includedir | --includedir | --includedi | --included | --include \
1077   | --includ | --inclu | --incl | --inc)
1078     ac_prev=includedir ;;
1079   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080   | --includ=* | --inclu=* | --incl=* | --inc=*)
1081     includedir=$ac_optarg ;;
1082
1083   -infodir | --infodir | --infodi | --infod | --info | --inf)
1084     ac_prev=infodir ;;
1085   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086     infodir=$ac_optarg ;;
1087
1088   -libdir | --libdir | --libdi | --libd)
1089     ac_prev=libdir ;;
1090   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091     libdir=$ac_optarg ;;
1092
1093   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094   | --libexe | --libex | --libe)
1095     ac_prev=libexecdir ;;
1096   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097   | --libexe=* | --libex=* | --libe=*)
1098     libexecdir=$ac_optarg ;;
1099
1100   -localedir | --localedir | --localedi | --localed | --locale)
1101     ac_prev=localedir ;;
1102   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103     localedir=$ac_optarg ;;
1104
1105   -localstatedir | --localstatedir | --localstatedi | --localstated \
1106   | --localstate | --localstat | --localsta | --localst | --locals)
1107     ac_prev=localstatedir ;;
1108   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110     localstatedir=$ac_optarg ;;
1111
1112   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113     ac_prev=mandir ;;
1114   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115     mandir=$ac_optarg ;;
1116
1117   -nfp | --nfp | --nf)
1118     # Obsolete; use --without-fp.
1119     with_fp=no ;;
1120
1121   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122   | --no-cr | --no-c | -n)
1123     no_create=yes ;;
1124
1125   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127     no_recursion=yes ;;
1128
1129   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131   | --oldin | --oldi | --old | --ol | --o)
1132     ac_prev=oldincludedir ;;
1133   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136     oldincludedir=$ac_optarg ;;
1137
1138   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139     ac_prev=prefix ;;
1140   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141     prefix=$ac_optarg ;;
1142
1143   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144   | --program-pre | --program-pr | --program-p)
1145     ac_prev=program_prefix ;;
1146   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148     program_prefix=$ac_optarg ;;
1149
1150   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151   | --program-suf | --program-su | --program-s)
1152     ac_prev=program_suffix ;;
1153   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155     program_suffix=$ac_optarg ;;
1156
1157   -program-transform-name | --program-transform-name \
1158   | --program-transform-nam | --program-transform-na \
1159   | --program-transform-n | --program-transform- \
1160   | --program-transform | --program-transfor \
1161   | --program-transfo | --program-transf \
1162   | --program-trans | --program-tran \
1163   | --progr-tra | --program-tr | --program-t)
1164     ac_prev=program_transform_name ;;
1165   -program-transform-name=* | --program-transform-name=* \
1166   | --program-transform-nam=* | --program-transform-na=* \
1167   | --program-transform-n=* | --program-transform-=* \
1168   | --program-transform=* | --program-transfor=* \
1169   | --program-transfo=* | --program-transf=* \
1170   | --program-trans=* | --program-tran=* \
1171   | --progr-tra=* | --program-tr=* | --program-t=*)
1172     program_transform_name=$ac_optarg ;;
1173
1174   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175     ac_prev=pdfdir ;;
1176   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177     pdfdir=$ac_optarg ;;
1178
1179   -psdir | --psdir | --psdi | --psd | --ps)
1180     ac_prev=psdir ;;
1181   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182     psdir=$ac_optarg ;;
1183
1184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185   | -silent | --silent | --silen | --sile | --sil)
1186     silent=yes ;;
1187
1188   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189     ac_prev=sbindir ;;
1190   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191   | --sbi=* | --sb=*)
1192     sbindir=$ac_optarg ;;
1193
1194   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196   | --sharedst | --shareds | --shared | --share | --shar \
1197   | --sha | --sh)
1198     ac_prev=sharedstatedir ;;
1199   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202   | --sha=* | --sh=*)
1203     sharedstatedir=$ac_optarg ;;
1204
1205   -site | --site | --sit)
1206     ac_prev=site ;;
1207   -site=* | --site=* | --sit=*)
1208     site=$ac_optarg ;;
1209
1210   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211     ac_prev=srcdir ;;
1212   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213     srcdir=$ac_optarg ;;
1214
1215   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216   | --syscon | --sysco | --sysc | --sys | --sy)
1217     ac_prev=sysconfdir ;;
1218   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220     sysconfdir=$ac_optarg ;;
1221
1222   -target | --target | --targe | --targ | --tar | --ta | --t)
1223     ac_prev=target_alias ;;
1224   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225     target_alias=$ac_optarg ;;
1226
1227   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228     verbose=yes ;;
1229
1230   -version | --version | --versio | --versi | --vers | -V)
1231     ac_init_version=: ;;
1232
1233   -with-* | --with-*)
1234     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       { echo "$as_me: error: invalid package name: $ac_package" >&2
1238    { (exit 1); exit 1; }; }
1239     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240     eval with_$ac_package=\$ac_optarg ;;
1241
1242   -without-* | --without-*)
1243     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       { echo "$as_me: error: invalid package name: $ac_package" >&2
1247    { (exit 1); exit 1; }; }
1248     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249     eval with_$ac_package=no ;;
1250
1251   --x)
1252     # Obsolete; use --with-x.
1253     with_x=yes ;;
1254
1255   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256   | --x-incl | --x-inc | --x-in | --x-i)
1257     ac_prev=x_includes ;;
1258   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260     x_includes=$ac_optarg ;;
1261
1262   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264     ac_prev=x_libraries ;;
1265   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267     x_libraries=$ac_optarg ;;
1268
1269   -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271    { (exit 1); exit 1; }; }
1272     ;;
1273
1274   *=*)
1275     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279    { (exit 1); exit 1; }; }
1280     eval $ac_envvar=\$ac_optarg
1281     export $ac_envvar ;;
1282
1283   *)
1284     # FIXME: should be removed in autoconf 3.0.
1285     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289     ;;
1290
1291   esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296   { echo "$as_me: error: missing argument to $ac_option" >&2
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 # Be sure to have absolute directory names.
1301 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302                 datadir sysconfdir sharedstatedir localstatedir includedir \
1303                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304                 libdir localedir mandir
1305 do
1306   eval ac_val=\$$ac_var
1307   case $ac_val in
1308     [\\/$]* | ?:[\\/]* )  continue;;
1309     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310   esac
1311   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312    { (exit 1); exit 1; }; }
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324   if test "x$build_alias" = x; then
1325     cross_compiling=maybe
1326     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327     If a cross compiler is detected then cross compile mode will be used." >&2
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   { echo "$as_me: error: Working directory cannot be determined" >&2
1343    { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   { echo "$as_me: error: pwd does not report name of working directory" >&2
1346    { (exit 1); exit 1; }; }
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351   ac_srcdir_defaulted=yes
1352   # Try the directory containing this script, then the parent directory.
1353   ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355          X"$0" : 'X\(//\)[^/]' \| \
1356          X"$0" : 'X\(//\)$' \| \
1357          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358 echo X"$0" |
1359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)[^/].*/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\).*/{
1372             s//\1/
1373             q
1374           }
1375           s/.*/./; q'`
1376   srcdir=$ac_confdir
1377   if test ! -r "$srcdir/$ac_unique_file"; then
1378     srcdir=..
1379   fi
1380 else
1381   ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386    { (exit 1); exit 1; }; }
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391    { (exit 1); exit 1; }; }
1392         pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395   srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_env_${ac_var}_value=\$${ac_var}
1406   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414   # Omit some internal or obsolete options to make the list less imposing.
1415   # This message is too long to be a string in the A/UX 3.1 sh.
1416   cat <<_ACEOF
1417 \`configure' configures this package to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427   -h, --help              display this help and exit
1428       --help=short        display options specific to this package
1429       --help=recursive    display the short help of all the included packages
1430   -V, --version           display version information and exit
1431   -q, --quiet, --silent   do not print \`checking...' messages
1432       --cache-file=FILE   cache test results in FILE [disabled]
1433   -C, --config-cache      alias for \`--cache-file=config.cache'
1434   -n, --no-create         do not create output files
1435       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438   --prefix=PREFIX         install architecture-independent files in PREFIX
1439                           [$ac_default_prefix]
1440   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                           [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451   --bindir=DIR           user executables [EPREFIX/bin]
1452   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1453   --libexecdir=DIR       program executables [EPREFIX/libexec]
1454   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1455   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1456   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1457   --libdir=DIR           object code libraries [EPREFIX/lib]
1458   --includedir=DIR       C header files [PREFIX/include]
1459   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1460   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1461   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1462   --infodir=DIR          info documentation [DATAROOTDIR/info]
1463   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1464   --mandir=DIR           man documentation [DATAROOTDIR/man]
1465   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1466   --htmldir=DIR          html documentation [DOCDIR]
1467   --dvidir=DIR           dvi documentation [DOCDIR]
1468   --pdfdir=DIR           pdf documentation [DOCDIR]
1469   --psdir=DIR            ps documentation [DOCDIR]
1470 _ACEOF
1471
1472   cat <<\_ACEOF
1473
1474 Program names:
1475   --program-prefix=PREFIX            prepend PREFIX to installed program names
1476   --program-suffix=SUFFIX            append SUFFIX to installed program names
1477   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1478
1479 System types:
1480   --build=BUILD     configure for building on BUILD [guessed]
1481   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492   --disable-dependency-tracking  speeds up one-time build
1493   --enable-dependency-tracking   do not reject slow dependency extractors
1494   --enable-shared[=PKGS]  build shared libraries [default=yes]
1495   --enable-static[=PKGS]  build static libraries [default=yes]
1496   --enable-fast-install[=PKGS]
1497                           optimize for fast installation [default=yes]
1498   --disable-libtool-lock  avoid locking (might break parallel builds)
1499   --enable-tests=yes|no   enable automated tests (default is no)
1500   --enable-api-exceptions  Build exceptions API.
1501                               [default=yes]
1502   --enable-docs           build the included docs [default=yes]
1503
1504 Optional Packages:
1505   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1508   --with-pic              try to use only PIC/non-PIC objects [default=use
1509                           both]
1510   --with-tags[=TAGS]      include additional configurations [automatic]
1511   --with-boost[=DIR]      use boost (default is No) - it is possible to
1512                           specify the root directory for boost (optional)
1513   --with-boost-unit-test-framework[=special-lib]
1514                           use the Unit_Test_Framework library from boost - it
1515                           is possible to specify a certain library for the
1516                           linker e.g.
1517                           --with-boost-unit-test-framework=boost_unit_test_framework-gcc
1518
1519 Some influential environment variables:
1520   CXX         C++ compiler command
1521   CXXFLAGS    C++ compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CXXCPP      C++ preprocessor
1528   CC          C compiler command
1529   CFLAGS      C compiler flags
1530   CPP         C preprocessor
1531   F77         Fortran 77 compiler command
1532   FFLAGS      Fortran 77 compiler flags
1533   PKG_CONFIG  path to pkg-config utility
1534   CAIROMM_CFLAGS
1535               C compiler flags for CAIROMM, overriding pkg-config
1536   CAIROMM_LIBS
1537               linker flags for CAIROMM, overriding pkg-config
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547   # If there are subdirs, report their specific --help.
1548   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549     test -d "$ac_dir" || continue
1550     ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556   # A ".." for each directory in $ac_dir_suffix.
1557   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558   case $ac_top_builddir_sub in
1559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561   esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569   .)  # We are building in place.
1570     ac_srcdir=.
1571     ac_top_srcdir=$ac_top_builddir_sub
1572     ac_abs_top_srcdir=$ac_pwd ;;
1573   [\\/]* | ?:[\\/]* )  # Absolute name.
1574     ac_srcdir=$srcdir$ac_dir_suffix;
1575     ac_top_srcdir=$srcdir
1576     ac_abs_top_srcdir=$srcdir ;;
1577   *) # Relative name.
1578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579     ac_top_srcdir=$ac_top_build_prefix$srcdir
1580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584     cd "$ac_dir" || { ac_status=$?; continue; }
1585     # Check for guested configure.
1586     if test -f "$ac_srcdir/configure.gnu"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589     elif test -f "$ac_srcdir/configure"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure" --help=recursive
1592     else
1593       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594     fi || ac_status=$?
1595     cd "$ac_pwd" || { ac_status=$?; break; }
1596   done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601   cat <<\_ACEOF
1602 configure
1603 generated by GNU Autoconf 2.61
1604
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1615
1616 It was created by $as_me, which was
1617 generated by GNU Autoconf 2.61.  Invocation command line was
1618
1619   $ $0 $@
1620
1621 _ACEOF
1622 exec 5>>config.log
1623 {
1624 cat <<_ASUNAME
1625 ## --------- ##
1626 ## Platform. ##
1627 ## --------- ##
1628
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1637
1638 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1639 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1642 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1643 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1644 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1645
1646 _ASUNAME
1647
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651   IFS=$as_save_IFS
1652   test -z "$as_dir" && as_dir=.
1653   echo "PATH: $as_dir"
1654 done
1655 IFS=$as_save_IFS
1656
1657 } >&5
1658
1659 cat >&5 <<_ACEOF
1660
1661
1662 ## ----------- ##
1663 ## Core tests. ##
1664 ## ----------- ##
1665
1666 _ACEOF
1667
1668
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_configure_args=
1675 ac_configure_args0=
1676 ac_configure_args1=
1677 ac_must_keep_next=false
1678 for ac_pass in 1 2
1679 do
1680   for ac_arg
1681   do
1682     case $ac_arg in
1683     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685     | -silent | --silent | --silen | --sile | --sil)
1686       continue ;;
1687     *\'*)
1688       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689     esac
1690     case $ac_pass in
1691     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692     2)
1693       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694       if test $ac_must_keep_next = true; then
1695         ac_must_keep_next=false # Got value, back to normal.
1696       else
1697         case $ac_arg in
1698           *=* | --config-cache | -C | -disable-* | --disable-* \
1699           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701           | -with-* | --with-* | -without-* | --without-* | --x)
1702             case "$ac_configure_args0 " in
1703               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704             esac
1705             ;;
1706           -* ) ac_must_keep_next=true ;;
1707         esac
1708       fi
1709       ac_configure_args="$ac_configure_args '$ac_arg'"
1710       ;;
1711     esac
1712   done
1713 done
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log.  We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723   # Save into config.log some information that might help in debugging.
1724   {
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1731 _ASBOX
1732     echo
1733     # The following way of writing the cache mishandles newlines in values,
1734 (
1735   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736     eval ac_val=\$$ac_var
1737     case $ac_val in #(
1738     *${as_nl}*)
1739       case $ac_var in #(
1740       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742       esac
1743       case $ac_var in #(
1744       _ | IFS | as_nl) ;; #(
1745       *) $as_unset $ac_var ;;
1746       esac ;;
1747     esac
1748   done
1749   (set) 2>&1 |
1750     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751     *${as_nl}ac_space=\ *)
1752       sed -n \
1753         "s/'\''/'\''\\\\'\'''\''/g;
1754           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755       ;; #(
1756     *)
1757       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758       ;;
1759     esac |
1760     sort
1761 )
1762     echo
1763
1764     cat <<\_ASBOX
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1768 _ASBOX
1769     echo
1770     for ac_var in $ac_subst_vars
1771     do
1772       eval ac_val=\$$ac_var
1773       case $ac_val in
1774       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775       esac
1776       echo "$ac_var='\''$ac_val'\''"
1777     done | sort
1778     echo
1779
1780     if test -n "$ac_subst_files"; then
1781       cat <<\_ASBOX
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1785 _ASBOX
1786       echo
1787       for ac_var in $ac_subst_files
1788       do
1789         eval ac_val=\$$ac_var
1790         case $ac_val in
1791         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792         esac
1793         echo "$ac_var='\''$ac_val'\''"
1794       done | sort
1795       echo
1796     fi
1797
1798     if test -s confdefs.h; then
1799       cat <<\_ASBOX
1800 ## ----------- ##
1801 ## confdefs.h. ##
1802 ## ----------- ##
1803 _ASBOX
1804       echo
1805       cat confdefs.h
1806       echo
1807     fi
1808     test "$ac_signal" != 0 &&
1809       echo "$as_me: caught signal $ac_signal"
1810     echo "$as_me: exit $exit_status"
1811   } >&5
1812   rm -f core *.core core.conftest.* &&
1813     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814     exit $exit_status
1815 ' 0
1816 for ac_signal in 1 2 13 15; do
1817   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 done
1819 ac_signal=0
1820
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1823
1824 # Predefined preprocessor variables.
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 _ACEOF
1849
1850
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854   set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857 else
1858   set x "$ac_default_prefix/share/config.site" \
1859         "$ac_default_prefix/etc/config.site"
1860 fi
1861 shift
1862 for ac_site_file
1863 do
1864   if test -r "$ac_site_file"; then
1865     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867     sed 's/^/| /' "$ac_site_file" >&5
1868     . "$ac_site_file"
1869   fi
1870 done
1871
1872 if test -r "$cache_file"; then
1873   # Some versions of bash will fail to source /dev/null (special
1874   # files actually), so we avoid doing that.
1875   if test -f "$cache_file"; then
1876     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1878     case $cache_file in
1879       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880       *)                      . "./$cache_file";;
1881     esac
1882   fi
1883 else
1884   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1886   >$cache_file
1887 fi
1888
1889 # Check that the precious variables saved in the cache have kept the same
1890 # value.
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894   eval ac_new_set=\$ac_env_${ac_var}_set
1895   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896   eval ac_new_val=\$ac_env_${ac_var}_value
1897   case $ac_old_set,$ac_new_set in
1898     set,)
1899       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901       ac_cache_corrupted=: ;;
1902     ,set)
1903       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905       ac_cache_corrupted=: ;;
1906     ,);;
1907     *)
1908       if test "x$ac_old_val" != "x$ac_new_val"; then
1909         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1912 echo "$as_me:   former value:  $ac_old_val" >&2;}
1913         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1914 echo "$as_me:   current value: $ac_new_val" >&2;}
1915         ac_cache_corrupted=:
1916       fi;;
1917   esac
1918   # Pass precious variables to config.status.
1919   if test "$ac_new_set" = set; then
1920     case $ac_new_val in
1921     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922     *) ac_arg=$ac_var=$ac_new_val ;;
1923     esac
1924     case " $ac_configure_args " in
1925       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1926       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927     esac
1928   fi
1929 done
1930 if $ac_cache_corrupted; then
1931   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959
1960
1961
1962 #release versioning
1963 GENERIC_MAJOR_VERSION=1
1964 GENERIC_MINOR_VERSION=4
1965 GENERIC_MICRO_VERSION=6
1966 GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
1967
1968
1969
1970
1971
1972 #shared library versioning
1973 GENERIC_LIBRARY_VERSION=2:0:1
1974 #                       | | |
1975 #                +------+ | +---+
1976 #                |        |     |
1977 #             current:revision:age
1978 #                |        |     |
1979 #                |        |     +- increment if interfaces have been added
1980 #                |        |        set to zero if interfaces have been removed
1981 #                                  or changed
1982 #                |        +- increment if source code has changed
1983 #                |           set to zero if current is incremented
1984 #                +- increment if interfaces have been added, removed or changed
1985
1986
1987
1988 VERSION=$GENERIC_VERSION
1989
1990 am__api_version="1.9"
1991 ac_aux_dir=
1992 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1993   if test -f "$ac_dir/install-sh"; then
1994     ac_aux_dir=$ac_dir
1995     ac_install_sh="$ac_aux_dir/install-sh -c"
1996     break
1997   elif test -f "$ac_dir/install.sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install.sh -c"
2000     break
2001   elif test -f "$ac_dir/shtool"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/shtool install -c"
2004     break
2005   fi
2006 done
2007 if test -z "$ac_aux_dir"; then
2008   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2009 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 # These three variables are undocumented and unsupported,
2014 # and are intended to be withdrawn in a future Autoconf release.
2015 # They can cause serious problems if a builder's source tree is in a directory
2016 # whose full name contains unusual characters.
2017 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2018 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2019 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2020
2021
2022 # Find a good install program.  We prefer a C program (faster),
2023 # so one script is as good as another.  But avoid the broken or
2024 # incompatible versions:
2025 # SysV /etc/install, /usr/sbin/install
2026 # SunOS /usr/etc/install
2027 # IRIX /sbin/install
2028 # AIX /bin/install
2029 # AmigaOS /C/install, which installs bootblocks on floppy discs
2030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2033 # OS/2's system install, which has a completely different semantic
2034 # ./install, which can be erroneously created by make from ./install.sh.
2035 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2036 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2037 if test -z "$INSTALL"; then
2038 if test "${ac_cv_path_install+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   # Account for people who put trailing slashes in PATH elements.
2047 case $as_dir/ in
2048   ./ | .// | /cC/* | \
2049   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2050   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2051   /usr/ucb/* ) ;;
2052   *)
2053     # OSF1 and SCO ODT 3.0 have their own names for install.
2054     # Don't use installbsd from OSF since it installs stuff as root
2055     # by default.
2056     for ac_prog in ginstall scoinst install; do
2057       for ac_exec_ext in '' $ac_executable_extensions; do
2058         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2059           if test $ac_prog = install &&
2060             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2061             # AIX install.  It has an incompatible calling convention.
2062             :
2063           elif test $ac_prog = install &&
2064             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065             # program-specific install script used by HP pwplus--don't use.
2066             :
2067           else
2068             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2069             break 3
2070           fi
2071         fi
2072       done
2073     done
2074     ;;
2075 esac
2076 done
2077 IFS=$as_save_IFS
2078
2079
2080 fi
2081   if test "${ac_cv_path_install+set}" = set; then
2082     INSTALL=$ac_cv_path_install
2083   else
2084     # As a last resort, use the slow shell script.  Don't cache a
2085     # value for INSTALL within a source directory, because that will
2086     # break other packages using the cache if that directory is
2087     # removed, or if the value is a relative name.
2088     INSTALL=$ac_install_sh
2089   fi
2090 fi
2091 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2092 echo "${ECHO_T}$INSTALL" >&6; }
2093
2094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2095 # It thinks the first close brace ends the variable substitution.
2096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2097
2098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2099
2100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2101
2102 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2103 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2104 # Just in case
2105 sleep 1
2106 echo timestamp > conftest.file
2107 # Do `set' in a subshell so we don't clobber the current shell's
2108 # arguments.  Must try -L first in case configure is actually a
2109 # symlink; some systems play weird games with the mod time of symlinks
2110 # (eg FreeBSD returns the mod time of the symlink's containing
2111 # directory).
2112 if (
2113    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2114    if test "$*" = "X"; then
2115       # -L didn't work.
2116       set X `ls -t $srcdir/configure conftest.file`
2117    fi
2118    rm -f conftest.file
2119    if test "$*" != "X $srcdir/configure conftest.file" \
2120       && test "$*" != "X conftest.file $srcdir/configure"; then
2121
2122       # If neither matched, then we have a broken ls.  This can happen
2123       # if, for instance, CONFIG_SHELL is bash and it inherits a
2124       # broken ls alias from the environment.  This has actually
2125       # happened.  Such a system could not be considered "sane".
2126       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2127 alias in your environment" >&5
2128 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2129 alias in your environment" >&2;}
2130    { (exit 1); exit 1; }; }
2131    fi
2132
2133    test "$2" = conftest.file
2134    )
2135 then
2136    # Ok.
2137    :
2138 else
2139    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2140 Check your system clock" >&5
2141 echo "$as_me: error: newly created file is older than distributed files!
2142 Check your system clock" >&2;}
2143    { (exit 1); exit 1; }; }
2144 fi
2145 { echo "$as_me:$LINENO: result: yes" >&5
2146 echo "${ECHO_T}yes" >&6; }
2147 test "$program_prefix" != NONE &&
2148   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2149 # Use a double $ so make ignores it.
2150 test "$program_suffix" != NONE &&
2151   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2152 # Double any \ or $.  echo might interpret backslashes.
2153 # By default was `s,x,x', remove it if useless.
2154 cat <<\_ACEOF >conftest.sed
2155 s/[\\$]/&&/g;s/;s,x,x,$//
2156 _ACEOF
2157 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2158 rm -f conftest.sed
2159
2160 # expand $ac_aux_dir to an absolute path
2161 am_aux_dir=`cd $ac_aux_dir && pwd`
2162
2163 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2164 # Use eval to expand $SHELL
2165 if eval "$MISSING --run true"; then
2166   am_missing_run="$MISSING --run "
2167 else
2168   am_missing_run=
2169   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2170 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2171 fi
2172
2173 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2174   # We used to keeping the `.' as first argument, in order to
2175   # allow $(mkdir_p) to be used without argument.  As in
2176   #   $(mkdir_p) $(somedir)
2177   # where $(somedir) is conditionally defined.  However this is wrong
2178   # for two reasons:
2179   #  1. if the package is installed by a user who cannot write `.'
2180   #     make install will fail,
2181   #  2. the above comment should most certainly read
2182   #     $(mkdir_p) $(DESTDIR)$(somedir)
2183   #     so it does not work when $(somedir) is undefined and
2184   #     $(DESTDIR) is not.
2185   #  To support the latter case, we have to write
2186   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2187   #  so the `.' trick is pointless.
2188   mkdir_p='mkdir -p --'
2189 else
2190   # On NextStep and OpenStep, the `mkdir' command does not
2191   # recognize any option.  It will interpret all options as
2192   # directories to create, and then abort because `.' already
2193   # exists.
2194   for d in ./-p ./--version;
2195   do
2196     test -d $d && rmdir $d
2197   done
2198   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2199   if test -f "$ac_aux_dir/mkinstalldirs"; then
2200     mkdir_p='$(mkinstalldirs)'
2201   else
2202     mkdir_p='$(install_sh) -d'
2203   fi
2204 fi
2205
2206 for ac_prog in gawk mawk nawk awk
2207 do
2208   # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   if test -n "$AWK"; then
2216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223   for ac_exec_ext in '' $ac_executable_extensions; do
2224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225     ac_cv_prog_AWK="$ac_prog"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 AWK=$ac_cv_prog_AWK
2236 if test -n "$AWK"; then
2237   { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2239 else
2240   { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 fi
2243
2244
2245   test -n "$AWK" && break
2246 done
2247
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   cat >conftest.make <<\_ACEOF
2255 SHELL = /bin/sh
2256 all:
2257         @echo '@@@%%%=$(MAKE)=@@@%%%'
2258 _ACEOF
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261   *@@@%%%=?*=@@@%%%*)
2262     eval ac_cv_prog_make_${ac_make}_set=yes;;
2263   *)
2264     eval ac_cv_prog_make_${ac_make}_set=no;;
2265 esac
2266 rm -f conftest.make
2267 fi
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269   { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2271   SET_MAKE=
2272 else
2273   { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275   SET_MAKE="MAKE=${MAKE-make}"
2276 fi
2277
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2281   am__leading_dot=.
2282 else
2283   am__leading_dot=_
2284 fi
2285 rmdir .tst 2>/dev/null
2286
2287 # test to see if srcdir already configured
2288 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2289    test -f $srcdir/config.status; then
2290   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297   if (cygpath --version) >/dev/null 2>/dev/null; then
2298     CYGPATH_W='cygpath -w'
2299   else
2300     CYGPATH_W=echo
2301   fi
2302 fi
2303
2304
2305 # Define the identity of the package.
2306  PACKAGE=cairomm
2307  VERSION=$GENERIC_VERSION
2308
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2312 _ACEOF
2313
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2317 _ACEOF
2318
2319 # Some tools Automake needs.
2320
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2322
2323
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2325
2326
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2328
2329
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2331
2332
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2334
2335 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2336
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'.  However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342   if test -n "$ac_tool_prefix"; then
2343   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   if test -n "$STRIP"; then
2351   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358   for ac_exec_ext in '' $ac_executable_extensions; do
2359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372   { echo "$as_me:$LINENO: result: $STRIP" >&5
2373 echo "${ECHO_T}$STRIP" >&6; }
2374 else
2375   { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 fi
2378
2379
2380 fi
2381 if test -z "$ac_cv_prog_STRIP"; then
2382   ac_ct_STRIP=$STRIP
2383   # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   if test -n "$ac_ct_STRIP"; then
2391   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396   IFS=$as_save_IFS
2397   test -z "$as_dir" && as_dir=.
2398   for ac_exec_ext in '' $ac_executable_extensions; do
2399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400     ac_cv_prog_ac_ct_STRIP="strip"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406 IFS=$as_save_IFS
2407
2408 fi
2409 fi
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2414 else
2415   { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2417 fi
2418
2419   if test "x$ac_ct_STRIP" = x; then
2420     STRIP=":"
2421   else
2422     case $cross_compiling:$ac_tool_warned in
2423 yes:)
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet.  If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet.  If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432     STRIP=$ac_ct_STRIP
2433   fi
2434 else
2435   STRIP="$ac_cv_prog_STRIP"
2436 fi
2437
2438 fi
2439 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2440
2441 # We need awk for the "check" target.  The system "awk" is bad on
2442 # some platforms.
2443 # Always define AMTAR for backward compatibility.
2444
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2446
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2448
2449
2450
2451
2452
2453
2454 ac_config_headers="$ac_config_headers cairomm/cairommconfig.h"
2455
2456
2457 ac_ext=cpp
2458 ac_cpp='$CXXCPP $CPPFLAGS'
2459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2462 if test -z "$CXX"; then
2463   if test -n "$CCC"; then
2464     CXX=$CCC
2465   else
2466     if test -n "$ac_tool_prefix"; then
2467   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2468   do
2469     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_CXX+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   if test -n "$CXX"; then
2477   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484   for ac_exec_ext in '' $ac_executable_extensions; do
2485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488     break 2
2489   fi
2490 done
2491 done
2492 IFS=$as_save_IFS
2493
2494 fi
2495 fi
2496 CXX=$ac_cv_prog_CXX
2497 if test -n "$CXX"; then
2498   { echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6; }
2500 else
2501   { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2503 fi
2504
2505
2506     test -n "$CXX" && break
2507   done
2508 fi
2509 if test -z "$CXX"; then
2510   ac_ct_CXX=$CXX
2511   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2512 do
2513   # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test -n "$ac_ct_CXX"; then
2521   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528   for ac_exec_ext in '' $ac_executable_extensions; do
2529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530     ac_cv_prog_ac_ct_CXX="$ac_prog"
2531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2544 else
2545   { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 fi
2548
2549
2550   test -n "$ac_ct_CXX" && break
2551 done
2552
2553   if test "x$ac_ct_CXX" = x; then
2554     CXX="g++"
2555   else
2556     case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet.  If you think this
2560 configuration is useful to you, please write to autoconf@gnu.org." >&5
2561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet.  If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2564 ac_tool_warned=yes ;;
2565 esac
2566     CXX=$ac_ct_CXX
2567   fi
2568 fi
2569
2570   fi
2571 fi
2572 # Provide some information about the compiler.
2573 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2574 ac_compiler=`set X $ac_compile; echo $2`
2575 { (ac_try="$ac_compiler --version >&5"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compiler --version >&5") 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }
2585 { (ac_try="$ac_compiler -v >&5"
2586 case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_compiler -v >&5") 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }
2595 { (ac_try="$ac_compiler -V >&5"
2596 case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601   (eval "$ac_compiler -V >&5") 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }
2605
2606 cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 ac_clean_files_save=$ac_clean_files
2622 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2623 # Try to create an executable without -o first, disregard a.out.
2624 # It will help us diagnose broken compilers, and finding out an intuition
2625 # of exeext.
2626 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2627 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2628 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629 #
2630 # List of possible output files, starting from the most likely.
2631 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2632 # only as a last resort.  b.out is created by i960 compilers.
2633 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2634 #
2635 # The IRIX 6 linker writes into existing files which may not be
2636 # executable, retaining their permissions.  Remove them first so a
2637 # subsequent execution test works.
2638 ac_rmfiles=
2639 for ac_file in $ac_files
2640 do
2641   case $ac_file in
2642     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2643     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2644   esac
2645 done
2646 rm -f $ac_rmfiles
2647
2648 if { (ac_try="$ac_link_default"
2649 case "(($ac_try" in
2650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651   *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654   (eval "$ac_link_default") 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; then
2658   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2660 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2661 # so that the user can short-circuit this test for compilers unknown to
2662 # Autoconf.
2663 for ac_file in $ac_files ''
2664 do
2665   test -f "$ac_file" || continue
2666   case $ac_file in
2667     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2668         ;;
2669     [ab].out )
2670         # We found the default executable, but exeext='' is most
2671         # certainly right.
2672         break;;
2673     *.* )
2674         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2675         then :; else
2676            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2677         fi
2678         # We set ac_cv_exeext here because the later test for it is not
2679         # safe: cross compilers may not add the suffix if given an `-o'
2680         # argument, so we may need to know it at that point already.
2681         # Even if this section looks crufty: it has the advantage of
2682         # actually working.
2683         break;;
2684     * )
2685         break;;
2686   esac
2687 done
2688 test "$ac_cv_exeext" = no && ac_cv_exeext=
2689
2690 else
2691   ac_file=''
2692 fi
2693
2694 { echo "$as_me:$LINENO: result: $ac_file" >&5
2695 echo "${ECHO_T}$ac_file" >&6; }
2696 if test -z "$ac_file"; then
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: C++ compiler cannot create executables
2703 See \`config.log' for more details." >&2;}
2704    { (exit 77); exit 77; }; }
2705 fi
2706
2707 ac_exeext=$ac_cv_exeext
2708
2709 # Check that the compiler produces executables we can run.  If not, either
2710 # the compiler is broken, or we cross compile.
2711 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2712 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2713 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2714 # If not cross compiling, check that we can run a simple program.
2715 if test "$cross_compiling" != yes; then
2716   if { ac_try='./$ac_file'
2717   { (case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_try") 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726     cross_compiling=no
2727   else
2728     if test "$cross_compiling" = maybe; then
2729         cross_compiling=yes
2730     else
2731         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2732 If you meant to cross compile, use \`--host'.
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot run C++ compiled programs.
2735 If you meant to cross compile, use \`--host'.
2736 See \`config.log' for more details." >&2;}
2737    { (exit 1); exit 1; }; }
2738     fi
2739   fi
2740 fi
2741 { echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6; }
2743
2744 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2745 ac_clean_files=$ac_clean_files_save
2746 # Check that the compiler produces executables we can run.  If not, either
2747 # the compiler is broken, or we cross compile.
2748 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2750 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2751 echo "${ECHO_T}$cross_compiling" >&6; }
2752
2753 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2754 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2755 if { (ac_try="$ac_link"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_link") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; then
2765   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2766 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2767 # work properly (i.e., refer to `conftest.exe'), while it won't with
2768 # `rm'.
2769 for ac_file in conftest.exe conftest conftest.*; do
2770   test -f "$ac_file" || continue
2771   case $ac_file in
2772     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2773     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774           break;;
2775     * ) break;;
2776   esac
2777 done
2778 else
2779   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2780 See \`config.log' for more details." >&5
2781 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2782 See \`config.log' for more details." >&2;}
2783    { (exit 1); exit 1; }; }
2784 fi
2785
2786 rm -f conftest$ac_cv_exeext
2787 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2788 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2789
2790 rm -f conftest.$ac_ext
2791 EXEEXT=$ac_cv_exeext
2792 ac_exeext=$EXEEXT
2793 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2794 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2795 if test "${ac_cv_objext+set}" = set; then
2796   echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798   cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h.  */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h.  */
2804
2805 int
2806 main ()
2807 {
2808
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 rm -f conftest.o conftest.obj
2814 if { (ac_try="$ac_compile"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_compile") 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; then
2824   for ac_file in conftest.o conftest.obj conftest.*; do
2825   test -f "$ac_file" || continue;
2826   case $ac_file in
2827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2828     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2829        break;;
2830   esac
2831 done
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2839 See \`config.log' for more details." >&2;}
2840    { (exit 1); exit 1; }; }
2841 fi
2842
2843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2844 fi
2845 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2846 echo "${ECHO_T}$ac_cv_objext" >&6; }
2847 OBJEXT=$ac_cv_objext
2848 ac_objext=$OBJEXT
2849 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2850 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2851 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860
2861 int
2862 main ()
2863 {
2864 #ifndef __GNUC__
2865        choke me
2866 #endif
2867
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (ac_try="$ac_compile"
2874 case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_compile") 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } && {
2886          test -z "$ac_cxx_werror_flag" ||
2887          test ! -s conftest.err
2888        } && test -s conftest.$ac_objext; then
2889   ac_compiler_gnu=yes
2890 else
2891   echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894         ac_compiler_gnu=no
2895 fi
2896
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2899
2900 fi
2901 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2902 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2903 GXX=`test $ac_compiler_gnu = yes && echo yes`
2904 ac_test_CXXFLAGS=${CXXFLAGS+set}
2905 ac_save_CXXFLAGS=$CXXFLAGS
2906 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2907 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_cxx_g+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2912    ac_cxx_werror_flag=yes
2913    ac_cv_prog_cxx_g=no
2914    CXXFLAGS="-g"
2915    cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921
2922 int
2923 main ()
2924 {
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compile") 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } && {
2944          test -z "$ac_cxx_werror_flag" ||
2945          test ! -s conftest.err
2946        } && test -s conftest.$ac_objext; then
2947   ac_cv_prog_cxx_g=yes
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952         CXXFLAGS=""
2953       cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959
2960 int
2961 main ()
2962 {
2963
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_compile") 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } && {
2982          test -z "$ac_cxx_werror_flag" ||
2983          test ! -s conftest.err
2984        } && test -s conftest.$ac_objext; then
2985   :
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2991          CXXFLAGS="-g"
2992          cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998
2999 int
3000 main ()
3001 {
3002
3003   ;
3004   return 0;
3005 }
3006 _ACEOF
3007 rm -f conftest.$ac_objext
3008 if { (ac_try="$ac_compile"
3009 case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_compile") 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } && {
3021          test -z "$ac_cxx_werror_flag" ||
3022          test ! -s conftest.err
3023        } && test -s conftest.$ac_objext; then
3024   ac_cv_prog_cxx_g=yes
3025 else
3026   echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029
3030 fi
3031
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 fi
3034
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 fi
3037
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3040 fi
3041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3043 if test "$ac_test_CXXFLAGS" = set; then
3044   CXXFLAGS=$ac_save_CXXFLAGS
3045 elif test $ac_cv_prog_cxx_g = yes; then
3046   if test "$GXX" = yes; then
3047     CXXFLAGS="-g -O2"
3048   else
3049     CXXFLAGS="-g"
3050   fi
3051 else
3052   if test "$GXX" = yes; then
3053     CXXFLAGS="-O2"
3054   else
3055     CXXFLAGS=
3056   fi
3057 fi
3058 ac_ext=c
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 DEPDIR="${am__leading_dot}deps"
3064
3065 ac_config_commands="$ac_config_commands depfiles"
3066
3067
3068 am_make=${MAKE-make}
3069 cat > confinc << 'END'
3070 am__doit:
3071         @echo done
3072 .PHONY: am__doit
3073 END
3074 # If we don't find an include directive, just comment out the code.
3075 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3076 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3077 am__include="#"
3078 am__quote=
3079 _am_result=none
3080 # First try GNU make style include.
3081 echo "include confinc" > confmf
3082 # We grep out `Entering directory' and `Leaving directory'
3083 # messages which can occur if `w' ends up in MAKEFLAGS.
3084 # In particular we don't look at `^make:' because GNU make might
3085 # be invoked under some other name (usually "gmake"), in which
3086 # case it prints its new name instead of `make'.
3087 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3088    am__include=include
3089    am__quote=
3090    _am_result=GNU
3091 fi
3092 # Now try BSD make style include.
3093 if test "$am__include" = "#"; then
3094    echo '.include "confinc"' > confmf
3095    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3096       am__include=.include
3097       am__quote="\""
3098       _am_result=BSD
3099    fi
3100 fi
3101
3102
3103 { echo "$as_me:$LINENO: result: $_am_result" >&5
3104 echo "${ECHO_T}$_am_result" >&6; }
3105 rm -f confinc confmf
3106
3107 # Check whether --enable-dependency-tracking was given.
3108 if test "${enable_dependency_tracking+set}" = set; then
3109   enableval=$enable_dependency_tracking;
3110 fi
3111
3112 if test "x$enable_dependency_tracking" != xno; then
3113   am_depcomp="$ac_aux_dir/depcomp"
3114   AMDEPBACKSLASH='\'
3115 fi
3116
3117
3118 if test "x$enable_dependency_tracking" != xno; then
3119   AMDEP_TRUE=
3120   AMDEP_FALSE='#'
3121 else
3122   AMDEP_TRUE='#'
3123   AMDEP_FALSE=
3124 fi
3125
3126
3127
3128
3129 depcc="$CXX"  am_compiler_list=
3130
3131 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3132 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3133 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3137   # We make a subdir and do the tests there.  Otherwise we can end up
3138   # making bogus files that we don't know about and never remove.  For
3139   # instance it was reported that on HP-UX the gcc test will end up
3140   # making a dummy file named `D' -- because `-MD' means `put the output
3141   # in D'.
3142   mkdir conftest.dir
3143   # Copy depcomp to subdir because otherwise we won't find it if we're
3144   # using a relative directory.
3145   cp "$am_depcomp" conftest.dir
3146   cd conftest.dir
3147   # We will build objects and dependencies in a subdirectory because
3148   # it helps to detect inapplicable dependency modes.  For instance
3149   # both Tru64's cc and ICC support -MD to output dependencies as a
3150   # side effect of compilation, but ICC will put the dependencies in
3151   # the current directory while Tru64 will put them in the object
3152   # directory.
3153   mkdir sub
3154
3155   am_cv_CXX_dependencies_compiler_type=none
3156   if test "$am_compiler_list" = ""; then
3157      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3158   fi
3159   for depmode in $am_compiler_list; do
3160     # Setup a source with many dependencies, because some compilers
3161     # like to wrap large dependency lists on column 80 (with \), and
3162     # we should not choose a depcomp mode which is confused by this.
3163     #
3164     # We need to recreate these files for each test, as the compiler may
3165     # overwrite some of them when testing with obscure command lines.
3166     # This happens at least with the AIX C compiler.
3167     : > sub/conftest.c
3168     for i in 1 2 3 4 5 6; do
3169       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3170       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3171       # Solaris 8's {/usr,}/bin/sh.
3172       touch sub/conftst$i.h
3173     done
3174     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3175
3176     case $depmode in
3177     nosideeffect)
3178       # after this tag, mechanisms are not by side-effect, so they'll
3179       # only be used when explicitly requested
3180       if test "x$enable_dependency_tracking" = xyes; then
3181         continue
3182       else
3183         break
3184       fi
3185       ;;
3186     none) break ;;
3187     esac
3188     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3189     # mode.  It turns out that the SunPro C++ compiler does not properly
3190     # handle `-M -o', and we need to detect this.
3191     if depmode=$depmode \
3192        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3193        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3194        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3195          >/dev/null 2>conftest.err &&
3196        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3197        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3198        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3199       # icc doesn't choke on unknown options, it will just issue warnings
3200       # or remarks (even with -Werror).  So we grep stderr for any message
3201       # that says an option was ignored or not supported.
3202       # When given -MP, icc 7.0 and 7.1 complain thusly:
3203       #   icc: Command line warning: ignoring option '-M'; no argument required
3204       # The diagnosis changed in icc 8.0:
3205       #   icc: Command line remark: option '-MP' not supported
3206       if (grep 'ignoring option' conftest.err ||
3207           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3208         am_cv_CXX_dependencies_compiler_type=$depmode
3209         break
3210       fi
3211     fi
3212   done
3213
3214   cd ..
3215   rm -rf conftest.dir
3216 else
3217   am_cv_CXX_dependencies_compiler_type=none
3218 fi
3219
3220 fi
3221 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3222 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3223 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3224
3225
3226
3227 if
3228   test "x$enable_dependency_tracking" != xno \
3229   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3230   am__fastdepCXX_TRUE=
3231   am__fastdepCXX_FALSE='#'
3232 else
3233   am__fastdepCXX_TRUE='#'
3234   am__fastdepCXX_FALSE=
3235 fi
3236
3237
3238 ac_ext=cpp
3239 ac_cpp='$CXXCPP $CPPFLAGS'
3240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3243 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3244 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3245 if test -z "$CXXCPP"; then
3246   if test "${ac_cv_prog_CXXCPP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249       # Double quotes because CXXCPP needs to be expanded
3250     for CXXCPP in "$CXX -E" "/lib/cpp"
3251     do
3252       ac_preproc_ok=false
3253 for ac_cxx_preproc_warn_flag in '' yes
3254 do
3255   # Use a header file that comes with gcc, so configuring glibc
3256   # with a fresh cross-compiler works.
3257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258   # <limits.h> exists even on freestanding compilers.
3259   # On the NeXT, cc -E runs the code through the compiler's parser,
3260   # not just through cpp. "Syntax error" is here to catch this case.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272                      Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null && {
3287          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3288          test ! -s conftest.err
3289        }; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298
3299 rm -f conftest.err conftest.$ac_ext
3300
3301   # OK, works on sane cases.  Now check whether nonexistent headers
3302   # can be detected and how.
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null && {
3324          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3325          test ! -s conftest.err
3326        }; then
3327   # Broken: success on invalid input.
3328 continue
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Passes both tests.
3334 ac_preproc_ok=:
3335 break
3336 fi
3337
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   break
3345 fi
3346
3347     done
3348     ac_cv_prog_CXXCPP=$CXXCPP
3349
3350 fi
3351   CXXCPP=$ac_cv_prog_CXXCPP
3352 else
3353   ac_cv_prog_CXXCPP=$CXXCPP
3354 fi
3355 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3356 echo "${ECHO_T}$CXXCPP" >&6; }
3357 ac_preproc_ok=false
3358 for ac_cxx_preproc_warn_flag in '' yes
3359 do
3360   # Use a header file that comes with gcc, so configuring glibc
3361   # with a fresh cross-compiler works.
3362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363   # <limits.h> exists even on freestanding compilers.
3364   # On the NeXT, cc -E runs the code through the compiler's parser,
3365   # not just through cpp. "Syntax error" is here to catch this case.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377                      Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null && {
3392          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3393          test ! -s conftest.err
3394        }; then
3395   :
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403
3404 rm -f conftest.err conftest.$ac_ext
3405
3406   # OK, works on sane cases.  Now check whether nonexistent headers
3407   # can be detected and how.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } >/dev/null && {
3429          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3430          test ! -s conftest.err
3431        }; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464 ac_ext=cpp
3465 ac_cpp='$CXXCPP $CPPFLAGS'
3466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3469
3470 # Find a good install program.  We prefer a C program (faster),
3471 # so one script is as good as another.  But avoid the broken or
3472 # incompatible versions:
3473 # SysV /etc/install, /usr/sbin/install
3474 # SunOS /usr/etc/install
3475 # IRIX /sbin/install
3476 # AIX /bin/install
3477 # AmigaOS /C/install, which installs bootblocks on floppy discs
3478 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3479 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3480 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3481 # OS/2's system install, which has a completely different semantic
3482 # ./install, which can be erroneously created by make from ./install.sh.
3483 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3484 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3485 if test -z "$INSTALL"; then
3486 if test "${ac_cv_path_install+set}" = set; then
3487   echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494   # Account for people who put trailing slashes in PATH elements.
3495 case $as_dir/ in
3496   ./ | .// | /cC/* | \
3497   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3498   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3499   /usr/ucb/* ) ;;
3500   *)
3501     # OSF1 and SCO ODT 3.0 have their own names for install.
3502     # Don't use installbsd from OSF since it installs stuff as root
3503     # by default.
3504     for ac_prog in ginstall scoinst install; do
3505       for ac_exec_ext in '' $ac_executable_extensions; do
3506         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3507           if test $ac_prog = install &&
3508             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3509             # AIX install.  It has an incompatible calling convention.
3510             :
3511           elif test $ac_prog = install &&
3512             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3513             # program-specific install script used by HP pwplus--don't use.
3514             :
3515           else
3516             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3517             break 3
3518           fi
3519         fi
3520       done
3521     done
3522     ;;
3523 esac
3524 done
3525 IFS=$as_save_IFS
3526
3527
3528 fi
3529   if test "${ac_cv_path_install+set}" = set; then
3530     INSTALL=$ac_cv_path_install
3531   else
3532     # As a last resort, use the slow shell script.  Don't cache a
3533     # value for INSTALL within a source directory, because that will
3534     # break other packages using the cache if that directory is
3535     # removed, or if the value is a relative name.
3536     INSTALL=$ac_install_sh
3537   fi
3538 fi
3539 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3540 echo "${ECHO_T}$INSTALL" >&6; }
3541
3542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3543 # It thinks the first close brace ends the variable substitution.
3544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3545
3546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3547
3548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3549
3550
3551
3552 # Check whether --enable-shared was given.
3553 if test "${enable_shared+set}" = set; then
3554   enableval=$enable_shared; p=${PACKAGE-default}
3555     case $enableval in
3556     yes) enable_shared=yes ;;
3557     no) enable_shared=no ;;
3558     *)
3559       enable_shared=no
3560       # Look at the argument we got.  We use all the common list separators.
3561       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3562       for pkg in $enableval; do
3563         IFS="$lt_save_ifs"
3564         if test "X$pkg" = "X$p"; then
3565           enable_shared=yes
3566         fi
3567       done
3568       IFS="$lt_save_ifs"
3569       ;;
3570     esac
3571 else
3572   enable_shared=yes
3573 fi
3574
3575
3576 # Check whether --enable-static was given.
3577 if test "${enable_static+set}" = set; then
3578   enableval=$enable_static; p=${PACKAGE-default}
3579     case $enableval in
3580     yes) enable_static=yes ;;
3581     no) enable_static=no ;;
3582     *)
3583      enable_static=no
3584       # Look at the argument we got.  We use all the common list separators.
3585       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3586       for pkg in $enableval; do
3587         IFS="$lt_save_ifs"
3588         if test "X$pkg" = "X$p"; then
3589           enable_static=yes
3590         fi
3591       done
3592       IFS="$lt_save_ifs"
3593       ;;
3594     esac
3595 else
3596   enable_static=yes
3597 fi
3598
3599
3600 # Check whether --enable-fast-install was given.
3601 if test "${enable_fast_install+set}" = set; then
3602   enableval=$enable_fast_install; p=${PACKAGE-default}
3603     case $enableval in
3604     yes) enable_fast_install=yes ;;
3605     no) enable_fast_install=no ;;
3606     *)
3607       enable_fast_install=no
3608       # Look at the argument we got.  We use all the common list separators.
3609       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3610       for pkg in $enableval; do
3611         IFS="$lt_save_ifs"
3612         if test "X$pkg" = "X$p"; then
3613           enable_fast_install=yes
3614         fi
3615       done
3616       IFS="$lt_save_ifs"
3617       ;;
3618     esac
3619 else
3620   enable_fast_install=yes
3621 fi
3622
3623
3624 # Make sure we can run config.sub.
3625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3626   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3627 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3628    { (exit 1); exit 1; }; }
3629
3630 { echo "$as_me:$LINENO: checking build system type" >&5
3631 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3632 if test "${ac_cv_build+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   ac_build_alias=$build_alias
3636 test "x$ac_build_alias" = x &&
3637   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3638 test "x$ac_build_alias" = x &&
3639   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3641    { (exit 1); exit 1; }; }
3642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3643   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3644 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3645    { (exit 1); exit 1; }; }
3646
3647 fi
3648 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3649 echo "${ECHO_T}$ac_cv_build" >&6; }
3650 case $ac_cv_build in
3651 *-*-*) ;;
3652 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3653 echo "$as_me: error: invalid value of canonical build" >&2;}
3654    { (exit 1); exit 1; }; };;
3655 esac
3656 build=$ac_cv_build
3657 ac_save_IFS=$IFS; IFS='-'
3658 set x $ac_cv_build
3659 shift
3660 build_cpu=$1
3661 build_vendor=$2
3662 shift; shift
3663 # Remember, the first character of IFS is used to create $*,
3664 # except with old shells:
3665 build_os=$*
3666 IFS=$ac_save_IFS
3667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3668
3669
3670 { echo "$as_me:$LINENO: checking host system type" >&5
3671 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3672 if test "${ac_cv_host+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   if test "x$host_alias" = x; then
3676   ac_cv_host=$ac_cv_build
3677 else
3678   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3679     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3680 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3681    { (exit 1); exit 1; }; }
3682 fi
3683
3684 fi
3685 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3686 echo "${ECHO_T}$ac_cv_host" >&6; }
3687 case $ac_cv_host in
3688 *-*-*) ;;
3689 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3690 echo "$as_me: error: invalid value of canonical host" >&2;}
3691    { (exit 1); exit 1; }; };;
3692 esac
3693 host=$ac_cv_host
3694 ac_save_IFS=$IFS; IFS='-'
3695 set x $ac_cv_host
3696 shift
3697 host_cpu=$1
3698 host_vendor=$2
3699 shift; shift
3700 # Remember, the first character of IFS is used to create $*,
3701 # except with old shells:
3702 host_os=$*
3703 IFS=$ac_save_IFS
3704 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3705
3706
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 if test -n "$ac_tool_prefix"; then
3713   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3717 if test "${ac_cv_prog_CC+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   if test -n "$CC"; then
3721   ac_cv_prog_CC="$CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726   IFS=$as_save_IFS
3727   test -z "$as_dir" && as_dir=.
3728   for ac_exec_ext in '' $ac_executable_extensions; do
3729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732     break 2
3733   fi
3734 done
3735 done
3736 IFS=$as_save_IFS
3737
3738 fi
3739 fi
3740 CC=$ac_cv_prog_CC
3741 if test -n "$CC"; then
3742   { echo "$as_me:$LINENO: result: $CC" >&5
3743 echo "${ECHO_T}$CC" >&6; }
3744 else
3745   { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3747 fi
3748
3749
3750 fi
3751 if test -z "$ac_cv_prog_CC"; then
3752   ac_ct_CC=$CC
3753   # Extract the first word of "gcc", so it can be a program name with args.
3754 set dummy gcc; ac_word=$2
3755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   if test -n "$ac_ct_CC"; then
3761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766   IFS=$as_save_IFS
3767   test -z "$as_dir" && as_dir=.
3768   for ac_exec_ext in '' $ac_executable_extensions; do
3769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770     ac_cv_prog_ac_ct_CC="gcc"
3771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772     break 2
3773   fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3781 if test -n "$ac_ct_CC"; then
3782   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3783 echo "${ECHO_T}$ac_ct_CC" >&6; }
3784 else
3785   { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3787 fi
3788
3789   if test "x$ac_ct_CC" = x; then
3790     CC=""
3791   else
3792     case $cross_compiling:$ac_tool_warned in
3793 yes:)
3794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3795 whose name does not start with the host triplet.  If you think this
3796 configuration is useful to you, please write to autoconf@gnu.org." >&5
3797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3798 whose name does not start with the host triplet.  If you think this
3799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3800 ac_tool_warned=yes ;;
3801 esac
3802     CC=$ac_ct_CC
3803   fi
3804 else
3805   CC="$ac_cv_prog_CC"
3806 fi
3807
3808 if test -z "$CC"; then
3809           if test -n "$ac_tool_prefix"; then
3810     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3814 if test "${ac_cv_prog_CC+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827     ac_cv_prog_CC="${ac_tool_prefix}cc"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839   { echo "$as_me:$LINENO: result: $CC" >&5
3840 echo "${ECHO_T}$CC" >&6; }
3841 else
3842   { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3844 fi
3845
3846
3847   fi
3848 fi
3849 if test -z "$CC"; then
3850   # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3854 if test "${ac_cv_prog_CC+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   if test -n "$CC"; then
3858   ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860   ac_prog_rejected=no
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869        ac_prog_rejected=yes
3870        continue
3871      fi
3872     ac_cv_prog_CC="cc"
3873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877 done
3878 IFS=$as_save_IFS
3879
3880 if test $ac_prog_rejected = yes; then
3881   # We found a bogon in the path, so make sure we never use it.
3882   set dummy $ac_cv_prog_CC
3883   shift
3884   if test $# != 0; then
3885     # We chose a different compiler from the bogus one.
3886     # However, it has the same basename, so the bogon will be chosen
3887     # first if we set CC to just the basename; use the full file name.
3888     shift
3889     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3890   fi
3891 fi
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896   { echo "$as_me:$LINENO: result: $CC" >&5
3897 echo "${ECHO_T}$CC" >&6; }
3898 else
3899   { echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6; }
3901 fi
3902
3903
3904 fi
3905 if test -z "$CC"; then
3906   if test -n "$ac_tool_prefix"; then
3907   for ac_prog in cl.exe
3908   do
3909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3913 if test "${ac_cv_prog_CC+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test -n "$CC"; then
3917   ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924   for ac_exec_ext in '' $ac_executable_extensions; do
3925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3926     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931 done
3932 IFS=$as_save_IFS
3933
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938   { echo "$as_me:$LINENO: result: $CC" >&5
3939 echo "${ECHO_T}$CC" >&6; }
3940 else
3941   { echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6; }
3943 fi
3944
3945
3946     test -n "$CC" && break
3947   done
3948 fi
3949 if test -z "$CC"; then
3950   ac_ct_CC=$CC
3951   for ac_prog in cl.exe
3952 do
3953   # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if test -n "$ac_ct_CC"; then
3961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968   for ac_exec_ext in '' $ac_executable_extensions; do
3969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970     ac_cv_prog_ac_ct_CC="$ac_prog"
3971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975 done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3983 echo "${ECHO_T}$ac_ct_CC" >&6; }
3984 else
3985   { echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6; }
3987 fi
3988
3989
3990   test -n "$ac_ct_CC" && break
3991 done
3992
3993   if test "x$ac_ct_CC" = x; then
3994     CC=""
3995   else
3996     case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3999 whose name does not start with the host triplet.  If you think this
4000 configuration is useful to you, please write to autoconf@gnu.org." >&5
4001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4002 whose name does not start with the host triplet.  If you think this
4003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4004 ac_tool_warned=yes ;;
4005 esac
4006     CC=$ac_ct_CC
4007   fi
4008 fi
4009
4010 fi
4011
4012
4013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4014 See \`config.log' for more details." >&5
4015 echo "$as_me: error: no acceptable C compiler found in \$PATH
4016 See \`config.log' for more details." >&2;}
4017    { (exit 1); exit 1; }; }
4018
4019 # Provide some information about the compiler.
4020 echo "$as_me:$LINENO: checking for C compiler version" >&5
4021 ac_compiler=`set X $ac_compile; echo $2`
4022 { (ac_try="$ac_compiler --version >&5"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028   (eval "$ac_compiler --version >&5") 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }
4032 { (ac_try="$ac_compiler -v >&5"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038   (eval "$ac_compiler -v >&5") 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }
4042 { (ac_try="$ac_compiler -V >&5"
4043 case "(($ac_try" in
4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045   *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048   (eval "$ac_compiler -V >&5") 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }
4052
4053 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4054 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4055 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h.  */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h.  */
4064
4065 int
4066 main ()
4067 {
4068 #ifndef __GNUC__
4069        choke me
4070 #endif
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_compile") 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } && {
4090          test -z "$ac_c_werror_flag" ||
4091          test ! -s conftest.err
4092        } && test -s conftest.$ac_objext; then
4093   ac_compiler_gnu=yes
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098         ac_compiler_gnu=no
4099 fi
4100
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4103
4104 fi
4105 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4106 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4107 GCC=`test $ac_compiler_gnu = yes && echo yes`
4108 ac_test_CFLAGS=${CFLAGS+set}
4109 ac_save_CFLAGS=$CFLAGS
4110 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_cc_g+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   ac_save_c_werror_flag=$ac_c_werror_flag
4116    ac_c_werror_flag=yes
4117    ac_cv_prog_cc_g=no
4118    CFLAGS="-g"
4119    cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_compile") 2>conftest.er1
4142   ac_status=$?
4143   grep -v '^ *+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } && {
4148          test -z "$ac_c_werror_flag" ||
4149          test ! -s conftest.err
4150        } && test -s conftest.$ac_objext; then
4151   ac_cv_prog_cc_g=yes
4152 else
4153   echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156         CFLAGS=""
4157       cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163
4164 int
4165 main ()
4166 {
4167
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_compile") 2>conftest.er1
4180   ac_status=$?
4181   grep -v '^ *+' conftest.er1 >conftest.err
4182   rm -f conftest.er1
4183   cat conftest.err >&5
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } && {
4186          test -z "$ac_c_werror_flag" ||
4187          test ! -s conftest.err
4188        } && test -s conftest.$ac_objext; then
4189   :
4190 else
4191   echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194         ac_c_werror_flag=$ac_save_c_werror_flag
4195          CFLAGS="-g"
4196          cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218   (eval "$ac_compile") 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } && {
4225          test -z "$ac_c_werror_flag" ||
4226          test ! -s conftest.err
4227        } && test -s conftest.$ac_objext; then
4228   ac_cv_prog_cc_g=yes
4229 else
4230   echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233
4234 fi
4235
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 fi
4238
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 fi
4241
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243    ac_c_werror_flag=$ac_save_c_werror_flag
4244 fi
4245 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4246 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4247 if test "$ac_test_CFLAGS" = set; then
4248   CFLAGS=$ac_save_CFLAGS
4249 elif test $ac_cv_prog_cc_g = yes; then
4250   if test "$GCC" = yes; then
4251     CFLAGS="-g -O2"
4252   else
4253     CFLAGS="-g"
4254   fi
4255 else
4256   if test "$GCC" = yes; then
4257     CFLAGS="-O2"
4258   else
4259     CFLAGS=
4260   fi
4261 fi
4262 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4263 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_cc_c89+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   ac_cv_prog_cc_c89=no
4268 ac_save_CC=$CC
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 #include <stdarg.h>
4276 #include <stdio.h>
4277 #include <sys/types.h>
4278 #include <sys/stat.h>
4279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4280 struct buf { int x; };
4281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4282 static char *e (p, i)
4283      char **p;
4284      int i;
4285 {
4286   return p[i];
4287 }
4288 static char *f (char * (*g) (char **, int), char **p, ...)
4289 {
4290   char *s;
4291   va_list v;
4292   va_start (v,p);
4293   s = g (p, va_arg (v,int));
4294   va_end (v);
4295   return s;
4296 }
4297
4298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4299    function prototypes and stuff, but not '\xHH' hex character constants.
4300    These don't provoke an error unfortunately, instead are silently treated
4301    as 'x'.  The following induces an error, until -std is added to get
4302    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4303    array size at least.  It's necessary to write '\x00'==0 to get something
4304    that's true only with -std.  */
4305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4306
4307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4308    inside strings and character constants.  */
4309 #define FOO(x) 'x'
4310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4311
4312 int test (int i, double x);
4313 struct s1 {int (*f) (int a);};
4314 struct s2 {int (*f) (double a);};
4315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4316 int argc;
4317 char **argv;
4318 int
4319 main ()
4320 {
4321 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4327         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4328 do
4329   CC="$ac_save_CC $ac_arg"
4330   rm -f conftest.$ac_objext
4331 if { (ac_try="$ac_compile"
4332 case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_compile") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && {
4344          test -z "$ac_c_werror_flag" ||
4345          test ! -s conftest.err
4346        } && test -s conftest.$ac_objext; then
4347   ac_cv_prog_cc_c89=$ac_arg
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext
4356   test "x$ac_cv_prog_cc_c89" != "xno" && break
4357 done
4358 rm -f conftest.$ac_ext
4359 CC=$ac_save_CC
4360
4361 fi
4362 # AC_CACHE_VAL
4363 case "x$ac_cv_prog_cc_c89" in
4364   x)
4365     { echo "$as_me:$LINENO: result: none needed" >&5
4366 echo "${ECHO_T}none needed" >&6; } ;;
4367   xno)
4368     { echo "$as_me:$LINENO: result: unsupported" >&5
4369 echo "${ECHO_T}unsupported" >&6; } ;;
4370   *)
4371     CC="$CC $ac_cv_prog_cc_c89"
4372     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4373 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4374 esac
4375
4376
4377 ac_ext=cpp
4378 ac_cpp='$CXXCPP $CPPFLAGS'
4379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4382
4383 depcc="$CC"   am_compiler_list=
4384
4385 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4386 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4387 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391   # We make a subdir and do the tests there.  Otherwise we can end up
4392   # making bogus files that we don't know about and never remove.  For
4393   # instance it was reported that on HP-UX the gcc test will end up
4394   # making a dummy file named `D' -- because `-MD' means `put the output
4395   # in D'.
4396   mkdir conftest.dir
4397   # Copy depcomp to subdir because otherwise we won't find it if we're
4398   # using a relative directory.
4399   cp "$am_depcomp" conftest.dir
4400   cd conftest.dir
4401   # We will build objects and dependencies in a subdirectory because
4402   # it helps to detect inapplicable dependency modes.  For instance
4403   # both Tru64's cc and ICC support -MD to output dependencies as a
4404   # side effect of compilation, but ICC will put the dependencies in
4405   # the current directory while Tru64 will put them in the object
4406   # directory.
4407   mkdir sub
4408
4409   am_cv_CC_dependencies_compiler_type=none
4410   if test "$am_compiler_list" = ""; then
4411      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4412   fi
4413   for depmode in $am_compiler_list; do
4414     # Setup a source with many dependencies, because some compilers
4415     # like to wrap large dependency lists on column 80 (with \), and
4416     # we should not choose a depcomp mode which is confused by this.
4417     #
4418     # We need to recreate these files for each test, as the compiler may
4419     # overwrite some of them when testing with obscure command lines.
4420     # This happens at least with the AIX C compiler.
4421     : > sub/conftest.c
4422     for i in 1 2 3 4 5 6; do
4423       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4424       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4425       # Solaris 8's {/usr,}/bin/sh.
4426       touch sub/conftst$i.h
4427     done
4428     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4429
4430     case $depmode in
4431     nosideeffect)
4432       # after this tag, mechanisms are not by side-effect, so they'll
4433       # only be used when explicitly requested
4434       if test "x$enable_dependency_tracking" = xyes; then
4435         continue
4436       else
4437         break
4438       fi
4439       ;;
4440     none) break ;;
4441     esac
4442     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4443     # mode.  It turns out that the SunPro C++ compiler does not properly
4444     # handle `-M -o', and we need to detect this.
4445     if depmode=$depmode \
4446        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4447        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4448        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4449          >/dev/null 2>conftest.err &&
4450        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4451        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4452        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4453       # icc doesn't choke on unknown options, it will just issue warnings
4454       # or remarks (even with -Werror).  So we grep stderr for any message
4455       # that says an option was ignored or not supported.
4456       # When given -MP, icc 7.0 and 7.1 complain thusly:
4457       #   icc: Command line warning: ignoring option '-M'; no argument required
4458       # The diagnosis changed in icc 8.0:
4459       #   icc: Command line remark: option '-MP' not supported
4460       if (grep 'ignoring option' conftest.err ||
4461           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4462         am_cv_CC_dependencies_compiler_type=$depmode
4463         break
4464       fi
4465     fi
4466   done
4467
4468   cd ..
4469   rm -rf conftest.dir
4470 else
4471   am_cv_CC_dependencies_compiler_type=none
4472 fi
4473
4474 fi
4475 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4476 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4478
4479
4480
4481 if
4482   test "x$enable_dependency_tracking" != xno \
4483   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4484   am__fastdepCC_TRUE=
4485   am__fastdepCC_FALSE='#'
4486 else
4487   am__fastdepCC_TRUE='#'
4488   am__fastdepCC_FALSE=
4489 fi
4490
4491
4492 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4493 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4494 if test "${lt_cv_path_SED+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   # Loop through the user's path and test for sed and gsed.
4498 # Then use that list of sed's as ones to test for truncation.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504   for lt_ac_prog in sed gsed; do
4505     for ac_exec_ext in '' $ac_executable_extensions; do
4506       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4507         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4508       fi
4509     done
4510   done
4511 done
4512 IFS=$as_save_IFS
4513 lt_ac_max=0
4514 lt_ac_count=0
4515 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4516 # along with /bin/sed that truncates output.
4517 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4518   test ! -f $lt_ac_sed && continue
4519   cat /dev/null > conftest.in
4520   lt_ac_count=0
4521   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4522   # Check for GNU sed and select it if it is found.
4523   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4524     lt_cv_path_SED=$lt_ac_sed
4525     break
4526   fi
4527   while true; do
4528     cat conftest.in conftest.in >conftest.tmp
4529     mv conftest.tmp conftest.in
4530     cp conftest.in conftest.nl
4531     echo >>conftest.nl
4532     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4533     cmp -s conftest.out conftest.nl || break
4534     # 10000 chars as input seems more than enough
4535     test $lt_ac_count -gt 10 && break
4536     lt_ac_count=`expr $lt_ac_count + 1`
4537     if test $lt_ac_count -gt $lt_ac_max; then
4538       lt_ac_max=$lt_ac_count
4539       lt_cv_path_SED=$lt_ac_sed
4540     fi
4541   done
4542 done
4543
4544 fi
4545
4546 SED=$lt_cv_path_SED
4547
4548 { echo "$as_me:$LINENO: result: $SED" >&5
4549 echo "${ECHO_T}$SED" >&6; }
4550
4551 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4552 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4553 if test "${ac_cv_path_GREP+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   # Extract the first word of "grep ggrep" to use in msg output
4557 if test -z "$GREP"; then
4558 set dummy grep ggrep; ac_prog_name=$2
4559 if test "${ac_cv_path_GREP+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   ac_path_GREP_found=false
4563 # Loop through the user's path and test for each of PROGNAME-LIST
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_prog in grep ggrep; do
4570   for ac_exec_ext in '' $ac_executable_extensions; do
4571     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4572     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4573     # Check for GNU ac_path_GREP and select it if it is found.
4574   # Check for GNU $ac_path_GREP
4575 case `"$ac_path_GREP" --version 2>&1` in
4576 *GNU*)
4577   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4578 *)
4579   ac_count=0
4580   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4581   while :
4582   do
4583     cat "conftest.in" "conftest.in" >"conftest.tmp"
4584     mv "conftest.tmp" "conftest.in"
4585     cp "conftest.in" "conftest.nl"
4586     echo 'GREP' >> "conftest.nl"
4587     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589     ac_count=`expr $ac_count + 1`
4590     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4591       # Best one so far, save it but keep looking for a better one
4592       ac_cv_path_GREP="$ac_path_GREP"
4593       ac_path_GREP_max=$ac_count
4594     fi
4595     # 10*(2^10) chars as input seems more than enough
4596     test $ac_count -gt 10 && break
4597   done
4598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599 esac
4600
4601
4602     $ac_path_GREP_found && break 3
4603   done
4604 done
4605
4606 done
4607 IFS=$as_save_IFS
4608
4609
4610 fi
4611
4612 GREP="$ac_cv_path_GREP"
4613 if test -z "$GREP"; then
4614   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4615 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4616    { (exit 1); exit 1; }; }
4617 fi
4618
4619 else
4620   ac_cv_path_GREP=$GREP
4621 fi
4622
4623
4624 fi
4625 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4626 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4627  GREP="$ac_cv_path_GREP"
4628
4629
4630 { echo "$as_me:$LINENO: checking for egrep" >&5
4631 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4632 if test "${ac_cv_path_EGREP+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4636    then ac_cv_path_EGREP="$GREP -E"
4637    else
4638      # Extract the first word of "egrep" to use in msg output
4639 if test -z "$EGREP"; then
4640 set dummy egrep; ac_prog_name=$2
4641 if test "${ac_cv_path_EGREP+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   ac_path_EGREP_found=false
4645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_prog in egrep; do
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4654     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4655     # Check for GNU ac_path_EGREP and select it if it is found.
4656   # Check for GNU $ac_path_EGREP
4657 case `"$ac_path_EGREP" --version 2>&1` in
4658 *GNU*)
4659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660 *)
4661   ac_count=0
4662   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4663   while :
4664   do
4665     cat "conftest.in" "conftest.in" >"conftest.tmp"
4666     mv "conftest.tmp" "conftest.in"
4667     cp "conftest.in" "conftest.nl"
4668     echo 'EGREP' >> "conftest.nl"
4669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671     ac_count=`expr $ac_count + 1`
4672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4673       # Best one so far, save it but keep looking for a better one
4674       ac_cv_path_EGREP="$ac_path_EGREP"
4675       ac_path_EGREP_max=$ac_count
4676     fi
4677     # 10*(2^10) chars as input seems more than enough
4678     test $ac_count -gt 10 && break
4679   done
4680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 esac
4682
4683
4684     $ac_path_EGREP_found && break 3
4685   done
4686 done
4687
4688 done
4689 IFS=$as_save_IFS
4690
4691
4692 fi
4693
4694 EGREP="$ac_cv_path_EGREP"
4695 if test -z "$EGREP"; then
4696   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4697 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4698    { (exit 1); exit 1; }; }
4699 fi
4700
4701 else
4702   ac_cv_path_EGREP=$EGREP
4703 fi
4704
4705
4706    fi
4707 fi
4708 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4709 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4710  EGREP="$ac_cv_path_EGREP"
4711
4712
4713
4714 # Check whether --with-gnu-ld was given.
4715 if test "${with_gnu_ld+set}" = set; then
4716   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4717 else
4718   with_gnu_ld=no
4719 fi
4720
4721 ac_prog=ld
4722 if test "$GCC" = yes; then
4723   # Check if gcc -print-prog-name=ld gives a path.
4724   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4725 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4726   case $host in
4727   *-*-mingw*)
4728     # gcc leaves a trailing carriage return which upsets mingw
4729     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4730   *)
4731     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4732   esac
4733   case $ac_prog in
4734     # Accept absolute paths.
4735     [\\/]* | ?:[\\/]*)
4736       re_direlt='/[^/][^/]*/\.\./'
4737       # Canonicalize the pathname of ld
4738       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4739       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4740         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4741       done
4742       test -z "$LD" && LD="$ac_prog"
4743       ;;
4744   "")
4745     # If it fails, then pretend we aren't using GCC.
4746     ac_prog=ld
4747     ;;
4748   *)
4749     # If it is relative, then search for the first ld in PATH.
4750     with_gnu_ld=unknown
4751     ;;
4752   esac
4753 elif test "$with_gnu_ld" = yes; then
4754   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4755 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4756 else
4757   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4758 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4759 fi
4760 if test "${lt_cv_path_LD+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   if test -z "$LD"; then
4764   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4765   for ac_dir in $PATH; do
4766     IFS="$lt_save_ifs"
4767     test -z "$ac_dir" && ac_dir=.
4768     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4769       lt_cv_path_LD="$ac_dir/$ac_prog"
4770       # Check to see if the program is GNU ld.  I'd rather use --version,
4771       # but apparently some variants of GNU ld only accept -v.
4772       # Break only if it was the GNU/non-GNU ld that we prefer.
4773       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4774       *GNU* | *'with BFD'*)
4775         test "$with_gnu_ld" != no && break
4776         ;;
4777       *)
4778         test "$with_gnu_ld" != yes && break
4779         ;;
4780       esac
4781     fi
4782   done
4783   IFS="$lt_save_ifs"
4784 else
4785   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4786 fi
4787 fi
4788
4789 LD="$lt_cv_path_LD"
4790 if test -n "$LD"; then
4791   { echo "$as_me:$LINENO: result: $LD" >&5
4792 echo "${ECHO_T}$LD" >&6; }
4793 else
4794   { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4796 fi
4797 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4798 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4799    { (exit 1); exit 1; }; }
4800 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4801 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4802 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808   lt_cv_prog_gnu_ld=yes
4809   ;;
4810 *)
4811   lt_cv_prog_gnu_ld=no
4812   ;;
4813 esac
4814 fi
4815 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4816 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4818
4819
4820 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4821 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4822 if test "${lt_cv_ld_reload_flag+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   lt_cv_ld_reload_flag='-r'
4826 fi
4827 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4828 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4829 reload_flag=$lt_cv_ld_reload_flag
4830 case $reload_flag in
4831 "" | " "*) ;;
4832 *) reload_flag=" $reload_flag" ;;
4833 esac
4834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4835 case $host_os in
4836   darwin*)
4837     if test "$GCC" = yes; then
4838       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4839     else
4840       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4841     fi
4842     ;;
4843 esac
4844
4845 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4846 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4847 if test "${lt_cv_path_NM+set}" = set; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   if test -n "$NM"; then
4851   # Let the user override the test.
4852   lt_cv_path_NM="$NM"
4853 else
4854   lt_nm_to_check="${ac_tool_prefix}nm"
4855   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4856     lt_nm_to_check="$lt_nm_to_check nm"
4857   fi
4858   for lt_tmp_nm in $lt_nm_to_check; do
4859     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4860     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4861       IFS="$lt_save_ifs"
4862       test -z "$ac_dir" && ac_dir=.
4863       tmp_nm="$ac_dir/$lt_tmp_nm"
4864       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4865         # Check to see if the nm accepts a BSD-compat flag.
4866         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4867         #   nm: unknown option "B" ignored
4868         # Tru64's nm complains that /dev/null is an invalid object file
4869         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4870         */dev/null* | *'Invalid file or object type'*)
4871           lt_cv_path_NM="$tmp_nm -B"
4872           break
4873           ;;
4874         *)
4875           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4876           */dev/null*)
4877             lt_cv_path_NM="$tmp_nm -p"
4878             break
4879             ;;
4880           *)
4881             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4882             continue # so that we can try to find one that supports BSD flags
4883             ;;
4884           esac
4885           ;;
4886         esac
4887       fi
4888     done
4889     IFS="$lt_save_ifs"
4890   done
4891   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4892 fi
4893 fi
4894 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4895 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4896 NM="$lt_cv_path_NM"
4897
4898 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4899 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4900 LN_S=$as_ln_s
4901 if test "$LN_S" = "ln -s"; then
4902   { echo "$as_me:$LINENO: result: yes" >&5
4903 echo "${ECHO_T}yes" >&6; }
4904 else
4905   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4906 echo "${ECHO_T}no, using $LN_S" >&6; }
4907 fi
4908
4909 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4910 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4911 if test "${lt_cv_deplibs_check_method+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   lt_cv_file_magic_cmd='$MAGIC_CMD'
4915 lt_cv_file_magic_test_file=
4916 lt_cv_deplibs_check_method='unknown'
4917 # Need to set the preceding variable on all platforms that support
4918 # interlibrary dependencies.
4919 # 'none' -- dependencies not supported.
4920 # `unknown' -- same as none, but documents that we really don't know.
4921 # 'pass_all' -- all dependencies passed with no checks.
4922 # 'test_compile' -- check by making test program.
4923 # 'file_magic [[regex]]' -- check by looking for files in library path
4924 # which responds to the $file_magic_cmd with a given extended regex.
4925 # If you have `file' or equivalent on your system and you're not sure
4926 # whether `pass_all' will *always* work, you probably want this one.
4927
4928 case $host_os in
4929 aix4* | aix5*)
4930   lt_cv_deplibs_check_method=pass_all
4931   ;;
4932
4933 beos*)
4934   lt_cv_deplibs_check_method=pass_all
4935   ;;
4936
4937 bsdi[45]*)
4938   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4939   lt_cv_file_magic_cmd='/usr/bin/file -L'
4940   lt_cv_file_magic_test_file=/shlib/libc.so
4941   ;;
4942
4943 cygwin*)
4944   # func_win32_libid is a shell function defined in ltmain.sh
4945   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4946   lt_cv_file_magic_cmd='func_win32_libid'
4947   ;;
4948
4949 mingw* | pw32*)
4950   # Base MSYS/MinGW do not provide the 'file' command needed by
4951   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4952   # unless we find 'file', for example because we are cross-compiling.
4953   if ( file / ) >/dev/null 2>&1; then
4954     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4955     lt_cv_file_magic_cmd='func_win32_libid'
4956   else
4957     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4958     lt_cv_file_magic_cmd='$OBJDUMP -f'
4959   fi
4960   ;;
4961
4962 darwin* | rhapsody*)
4963   lt_cv_deplibs_check_method=pass_all
4964   ;;
4965
4966 freebsd* | dragonfly*)
4967   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4968     case $host_cpu in
4969     i*86 )
4970       # Not sure whether the presence of OpenBSD here was a mistake.
4971       # Let's accept both of them until this is cleared up.
4972       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4973       lt_cv_file_magic_cmd=/usr/bin/file
4974       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4975       ;;
4976     esac
4977   else
4978     lt_cv_deplibs_check_method=pass_all
4979   fi
4980   ;;
4981
4982 gnu*)
4983   lt_cv_deplibs_check_method=pass_all
4984   ;;
4985
4986 hpux10.20* | hpux11*)
4987   lt_cv_file_magic_cmd=/usr/bin/file
4988   case $host_cpu in
4989   ia64*)
4990     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4991     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4992     ;;
4993   hppa*64*)
4994     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]'
4995     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4996     ;;
4997   *)
4998     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4999     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5000     ;;
5001   esac
5002   ;;
5003
5004 interix[3-9]*)
5005   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5006   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5007   ;;
5008
5009 irix5* | irix6* | nonstopux*)
5010   case $LD in
5011   *-32|*"-32 ") libmagic=32-bit;;
5012   *-n32|*"-n32 ") libmagic=N32;;
5013   *-64|*"-64 ") libmagic=64-bit;;
5014   *) libmagic=never-match;;
5015   esac
5016   lt_cv_deplibs_check_method=pass_all
5017   ;;
5018
5019 # This must be Linux ELF.
5020 linux* | k*bsd*-gnu)
5021   lt_cv_deplibs_check_method=pass_all
5022   ;;
5023
5024 netbsd* | netbsdelf*-gnu)
5025   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5026     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5027   else
5028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5029   fi
5030   ;;
5031
5032 newos6*)
5033   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5034   lt_cv_file_magic_cmd=/usr/bin/file
5035   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5036   ;;
5037
5038 nto-qnx*)
5039   lt_cv_deplibs_check_method=unknown
5040   ;;
5041
5042 openbsd*)
5043   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5044     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5045   else
5046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5047   fi
5048   ;;
5049
5050 osf3* | osf4* | osf5*)
5051   lt_cv_deplibs_check_method=pass_all
5052   ;;
5053
5054 rdos*)
5055   lt_cv_deplibs_check_method=pass_all
5056   ;;
5057
5058 solaris*)
5059   lt_cv_deplibs_check_method=pass_all
5060   ;;
5061
5062 sysv4 | sysv4.3*)
5063   case $host_vendor in
5064   motorola)
5065     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]'
5066     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5067     ;;
5068   ncr)
5069     lt_cv_deplibs_check_method=pass_all
5070     ;;
5071   sequent)
5072     lt_cv_file_magic_cmd='/bin/file'
5073     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5074     ;;
5075   sni)
5076     lt_cv_file_magic_cmd='/bin/file'
5077     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5078     lt_cv_file_magic_test_file=/lib/libc.so
5079     ;;
5080   siemens)
5081     lt_cv_deplibs_check_method=pass_all
5082     ;;
5083   pc)
5084     lt_cv_deplibs_check_method=pass_all
5085     ;;
5086   esac
5087   ;;
5088
5089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5090   lt_cv_deplibs_check_method=pass_all
5091   ;;
5092 esac
5093
5094 fi
5095 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5096 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5097 file_magic_cmd=$lt_cv_file_magic_cmd
5098 deplibs_check_method=$lt_cv_deplibs_check_method
5099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5100
5101
5102
5103
5104 # If no C compiler was specified, use CC.
5105 LTCC=${LTCC-"$CC"}
5106
5107 # If no C compiler flags were specified, use CFLAGS.
5108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5109
5110 # Allow CC to be a program name with arguments.
5111 compiler=$CC
5112
5113
5114 # Check whether --enable-libtool-lock was given.
5115 if test "${enable_libtool_lock+set}" = set; then
5116   enableval=$enable_libtool_lock;
5117 fi
5118
5119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5120
5121 # Some flags need to be propagated to the compiler or linker for good
5122 # libtool support.
5123 case $host in
5124 ia64-*-hpux*)
5125   # Find out which ABI we are using.
5126   echo 'int i;' > conftest.$ac_ext
5127   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128   (eval $ac_compile) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; then
5132     case `/usr/bin/file conftest.$ac_objext` in
5133     *ELF-32*)
5134       HPUX_IA64_MODE="32"
5135       ;;
5136     *ELF-64*)
5137       HPUX_IA64_MODE="64"
5138       ;;
5139     esac
5140   fi
5141   rm -rf conftest*
5142   ;;
5143 *-*-irix6*)
5144   # Find out which ABI we are using.
5145   echo '#line 5145 "configure"' > conftest.$ac_ext
5146   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147   (eval $ac_compile) 2>&5
5148   ac_status=$?
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); }; then
5151    if test "$lt_cv_prog_gnu_ld" = yes; then
5152     case `/usr/bin/file conftest.$ac_objext` in
5153     *32-bit*)
5154       LD="${LD-ld} -melf32bsmip"
5155       ;;
5156     *N32*)
5157       LD="${LD-ld} -melf32bmipn32"
5158       ;;
5159     *64-bit*)
5160       LD="${LD-ld} -melf64bmip"
5161       ;;
5162     esac
5163    else
5164     case `/usr/bin/file conftest.$ac_objext` in
5165     *32-bit*)
5166       LD="${LD-ld} -32"
5167       ;;
5168     *N32*)
5169       LD="${LD-ld} -n32"
5170       ;;
5171     *64-bit*)
5172       LD="${LD-ld} -64"
5173       ;;
5174     esac
5175    fi
5176   fi
5177   rm -rf conftest*
5178   ;;
5179
5180 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5181 s390*-*linux*|sparc*-*linux*)
5182   # Find out which ABI we are using.
5183   echo 'int i;' > conftest.$ac_ext
5184   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185   (eval $ac_compile) 2>&5
5186   ac_status=$?
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); }; then
5189     case `/usr/bin/file conftest.o` in
5190     *32-bit*)
5191       case $host in
5192         x86_64-*kfreebsd*-gnu)
5193           LD="${LD-ld} -m elf_i386_fbsd"
5194           ;;
5195         x86_64-*linux*)
5196           LD="${LD-ld} -m elf_i386"
5197           ;;
5198         ppc64-*linux*|powerpc64-*linux*)
5199           LD="${LD-ld} -m elf32ppclinux"
5200           ;;
5201         s390x-*linux*)
5202           LD="${LD-ld} -m elf_s390"
5203           ;;
5204         sparc64-*linux*)
5205           LD="${LD-ld} -m elf32_sparc"
5206           ;;
5207       esac
5208       ;;
5209     *64-bit*)
5210       case $host in
5211         x86_64-*kfreebsd*-gnu)
5212           LD="${LD-ld} -m elf_x86_64_fbsd"
5213           ;;
5214         x86_64-*linux*)
5215           LD="${LD-ld} -m elf_x86_64"
5216           ;;
5217         ppc*-*linux*|powerpc*-*linux*)
5218           LD="${LD-ld} -m elf64ppc"
5219           ;;
5220         s390*-*linux*)
5221           LD="${LD-ld} -m elf64_s390"
5222           ;;
5223         sparc*-*linux*)
5224           LD="${LD-ld} -m elf64_sparc"
5225           ;;
5226       esac
5227       ;;
5228     esac
5229   fi
5230   rm -rf conftest*
5231   ;;
5232
5233 *-*-sco3.2v5*)
5234   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5235   SAVE_CFLAGS="$CFLAGS"
5236   CFLAGS="$CFLAGS -belf"
5237   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5238 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5239 if test "${lt_cv_cc_needs_belf+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   ac_ext=c
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247
5248      cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254
5255 int
5256 main ()
5257 {
5258
5259   ;
5260   return 0;
5261 }
5262 _ACEOF
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (ac_try="$ac_link"
5265 case "(($ac_try" in
5266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267   *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270   (eval "$ac_link") 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } && {
5277          test -z "$ac_c_werror_flag" ||
5278          test ! -s conftest.err
5279        } && test -s conftest$ac_exeext &&
5280        $as_test_x conftest$ac_exeext; then
5281   lt_cv_cc_needs_belf=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286         lt_cv_cc_needs_belf=no
5287 fi
5288
5289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5290       conftest$ac_exeext conftest.$ac_ext
5291      ac_ext=c
5292 ac_cpp='$CPP $CPPFLAGS'
5293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296
5297 fi
5298 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5299 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5300   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5301     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5302     CFLAGS="$SAVE_CFLAGS"
5303   fi
5304   ;;
5305 sparc*-*solaris*)
5306   # Find out which ABI we are using.
5307   echo 'int i;' > conftest.$ac_ext
5308   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309   (eval $ac_compile) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; then
5313     case `/usr/bin/file conftest.o` in
5314     *64-bit*)
5315       case $lt_cv_prog_gnu_ld in
5316       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5317       *)    LD="${LD-ld} -64" ;;
5318       esac
5319       ;;
5320     esac
5321   fi
5322   rm -rf conftest*
5323   ;;
5324
5325 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5326   if test -n "$ac_tool_prefix"; then
5327   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5328 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   if test -n "$DLLTOOL"; then
5335   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342   for ac_exec_ext in '' $ac_executable_extensions; do
5343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 DLLTOOL=$ac_cv_prog_DLLTOOL
5355 if test -n "$DLLTOOL"; then
5356   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5357 echo "${ECHO_T}$DLLTOOL" >&6; }
5358 else
5359   { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5361 fi
5362
5363
5364 fi
5365 if test -z "$ac_cv_prog_DLLTOOL"; then
5366   ac_ct_DLLTOOL=$DLLTOOL
5367   # Extract the first word of "dlltool", so it can be a program name with args.
5368 set dummy dlltool; ac_word=$2
5369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5371 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5372   echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374   if test -n "$ac_ct_DLLTOOL"; then
5375   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380   IFS=$as_save_IFS
5381   test -z "$as_dir" && as_dir=.
5382   for ac_exec_ext in '' $ac_executable_extensions; do
5383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386     break 2
5387   fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5395 if test -n "$ac_ct_DLLTOOL"; then
5396   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5397 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5398 else
5399   { echo "$as_me:$LINENO: result: no" >&5
5400 echo "${ECHO_T}no" >&6; }
5401 fi
5402
5403   if test "x$ac_ct_DLLTOOL" = x; then
5404     DLLTOOL="false"
5405   else
5406     case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5409 whose name does not start with the host triplet.  If you think this
5410 configuration is useful to you, please write to autoconf@gnu.org." >&5
5411 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5412 whose name does not start with the host triplet.  If you think this
5413 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5414 ac_tool_warned=yes ;;
5415 esac
5416     DLLTOOL=$ac_ct_DLLTOOL
5417   fi
5418 else
5419   DLLTOOL="$ac_cv_prog_DLLTOOL"
5420 fi
5421
5422   if test -n "$ac_tool_prefix"; then
5423   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5424 set dummy ${ac_tool_prefix}as; ac_word=$2
5425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5427 if test "${ac_cv_prog_AS+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   if test -n "$AS"; then
5431   ac_cv_prog_AS="$AS" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440     ac_cv_prog_AS="${ac_tool_prefix}as"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 AS=$ac_cv_prog_AS
5451 if test -n "$AS"; then
5452   { echo "$as_me:$LINENO: result: $AS" >&5
5453 echo "${ECHO_T}$AS" >&6; }
5454 else
5455   { echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6; }
5457 fi
5458
5459
5460 fi
5461 if test -z "$ac_cv_prog_AS"; then
5462   ac_ct_AS=$AS
5463   # Extract the first word of "as", so it can be a program name with args.
5464 set dummy as; ac_word=$2
5465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470   if test -n "$ac_ct_AS"; then
5471   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478   for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_ac_ct_AS="as"
5481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5491 if test -n "$ac_ct_AS"; then
5492   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5493 echo "${ECHO_T}$ac_ct_AS" >&6; }
5494 else
5495   { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5497 fi
5498
5499   if test "x$ac_ct_AS" = x; then
5500     AS="false"
5501   else
5502     case $cross_compiling:$ac_tool_warned in
5503 yes:)
5504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5505 whose name does not start with the host triplet.  If you think this
5506 configuration is useful to you, please write to autoconf@gnu.org." >&5
5507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5508 whose name does not start with the host triplet.  If you think this
5509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5510 ac_tool_warned=yes ;;
5511 esac
5512     AS=$ac_ct_AS
5513   fi
5514 else
5515   AS="$ac_cv_prog_AS"
5516 fi
5517
5518   if test -n "$ac_tool_prefix"; then
5519   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   if test -n "$OBJDUMP"; then
5527   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534   for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 OBJDUMP=$ac_cv_prog_OBJDUMP
5547 if test -n "$OBJDUMP"; then
5548   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5549 echo "${ECHO_T}$OBJDUMP" >&6; }
5550 else
5551   { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5553 fi
5554
5555
5556 fi
5557 if test -z "$ac_cv_prog_OBJDUMP"; then
5558   ac_ct_OBJDUMP=$OBJDUMP
5559   # Extract the first word of "objdump", so it can be a program name with args.
5560 set dummy objdump; ac_word=$2
5561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5563 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   if test -n "$ac_ct_OBJDUMP"; then
5567   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574   for ac_exec_ext in '' $ac_executable_extensions; do
5575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5587 if test -n "$ac_ct_OBJDUMP"; then
5588   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5589 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5590 else
5591   { echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6; }
5593 fi
5594
5595   if test "x$ac_ct_OBJDUMP" = x; then
5596     OBJDUMP="false"
5597   else
5598     case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5601 whose name does not start with the host triplet.  If you think this
5602 configuration is useful to you, please write to autoconf@gnu.org." >&5
5603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5604 whose name does not start with the host triplet.  If you think this
5605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608     OBJDUMP=$ac_ct_OBJDUMP
5609   fi
5610 else
5611   OBJDUMP="$ac_cv_prog_OBJDUMP"
5612 fi
5613
5614   ;;
5615
5616 esac
5617
5618 need_locks="$enable_libtool_lock"
5619
5620
5621 ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5628 # On Suns, sometimes $CPP names a directory.
5629 if test -n "$CPP" && test -d "$CPP"; then
5630   CPP=
5631 fi
5632 if test -z "$CPP"; then
5633   if test "${ac_cv_prog_CPP+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636       # Double quotes because CPP needs to be expanded
5637     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5638     do
5639       ac_preproc_ok=false
5640 for ac_c_preproc_warn_flag in '' yes
5641 do
5642   # Use a header file that comes with gcc, so configuring glibc
5643   # with a fresh cross-compiler works.
5644   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645   # <limits.h> exists even on freestanding compilers.
5646   # On the NeXT, cc -E runs the code through the compiler's parser,
5647   # not just through cpp. "Syntax error" is here to catch this case.
5648   cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 #ifdef __STDC__
5655 # include <limits.h>
5656 #else
5657 # include <assert.h>
5658 #endif
5659                      Syntax error
5660 _ACEOF
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5662 case "(($ac_try" in
5663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664   *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } >/dev/null && {
5674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5675          test ! -s conftest.err
5676        }; then
5677   :
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682   # Broken: fails on valid input.
5683 continue
5684 fi
5685
5686 rm -f conftest.err conftest.$ac_ext
5687
5688   # OK, works on sane cases.  Now check whether nonexistent headers
5689   # can be detected and how.
5690   cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696 #include <ac_nonexistent.h>
5697 _ACEOF
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705   ac_status=$?
5706   grep -v '^ *+' conftest.er1 >conftest.err
5707   rm -f conftest.er1
5708   cat conftest.err >&5
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); } >/dev/null && {
5711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5712          test ! -s conftest.err
5713        }; then
5714   # Broken: success on invalid input.
5715 continue
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720   # Passes both tests.
5721 ac_preproc_ok=:
5722 break
5723 fi
5724
5725 rm -f conftest.err conftest.$ac_ext
5726
5727 done
5728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729 rm -f conftest.err conftest.$ac_ext
5730 if $ac_preproc_ok; then
5731   break
5732 fi
5733
5734     done
5735     ac_cv_prog_CPP=$CPP
5736
5737 fi
5738   CPP=$ac_cv_prog_CPP
5739 else
5740   ac_cv_prog_CPP=$CPP
5741 fi
5742 { echo "$as_me:$LINENO: result: $CPP" >&5
5743 echo "${ECHO_T}$CPP" >&6; }
5744 ac_preproc_ok=false
5745 for ac_c_preproc_warn_flag in '' yes
5746 do
5747   # Use a header file that comes with gcc, so configuring glibc
5748   # with a fresh cross-compiler works.
5749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750   # <limits.h> exists even on freestanding compilers.
5751   # On the NeXT, cc -E runs the code through the compiler's parser,
5752   # not just through cpp. "Syntax error" is here to catch this case.
5753   cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h.  */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h.  */
5759 #ifdef __STDC__
5760 # include <limits.h>
5761 #else
5762 # include <assert.h>
5763 #endif
5764                      Syntax error
5765 _ACEOF
5766 if { (ac_try="$ac_cpp conftest.$ac_ext"
5767 case "(($ac_try" in
5768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769   *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5773   ac_status=$?
5774   grep -v '^ *+' conftest.er1 >conftest.err
5775   rm -f conftest.er1
5776   cat conftest.err >&5
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } >/dev/null && {
5779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5780          test ! -s conftest.err
5781        }; then
5782   :
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787   # Broken: fails on valid input.
5788 continue
5789 fi
5790
5791 rm -f conftest.err conftest.$ac_ext
5792
5793   # OK, works on sane cases.  Now check whether nonexistent headers
5794   # can be detected and how.
5795   cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 #include <ac_nonexistent.h>
5802 _ACEOF
5803 if { (ac_try="$ac_cpp conftest.$ac_ext"
5804 case "(($ac_try" in
5805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806   *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810   ac_status=$?
5811   grep -v '^ *+' conftest.er1 >conftest.err
5812   rm -f conftest.er1
5813   cat conftest.err >&5
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } >/dev/null && {
5816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5817          test ! -s conftest.err
5818        }; then
5819   # Broken: success on invalid input.
5820 continue
5821 else
5822   echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825   # Passes both tests.
5826 ac_preproc_ok=:
5827 break
5828 fi
5829
5830 rm -f conftest.err conftest.$ac_ext
5831
5832 done
5833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834 rm -f conftest.err conftest.$ac_ext
5835 if $ac_preproc_ok; then
5836   :
5837 else
5838   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5839 See \`config.log' for more details." >&5
5840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5841 See \`config.log' for more details." >&2;}
5842    { (exit 1); exit 1; }; }
5843 fi
5844
5845 ac_ext=c
5846 ac_cpp='$CPP $CPPFLAGS'
5847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850
5851
5852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5854 if test "${ac_cv_header_stdc+set}" = set; then
5855   echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857   cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h.  */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h.  */
5863 #include <stdlib.h>
5864 #include <stdarg.h>
5865 #include <string.h>
5866 #include <float.h>
5867
5868 int
5869 main ()
5870 {
5871
5872   ;
5873   return 0;
5874 }
5875 _ACEOF
5876 rm -f conftest.$ac_objext
5877 if { (ac_try="$ac_compile"
5878 case "(($ac_try" in
5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880   *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883   (eval "$ac_compile") 2>conftest.er1
5884   ac_status=$?
5885   grep -v '^ *+' conftest.er1 >conftest.err
5886   rm -f conftest.er1
5887   cat conftest.err >&5
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); } && {
5890          test -z "$ac_c_werror_flag" ||
5891          test ! -s conftest.err
5892        } && test -s conftest.$ac_objext; then
5893   ac_cv_header_stdc=yes
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898         ac_cv_header_stdc=no
5899 fi
5900
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902
5903 if test $ac_cv_header_stdc = yes; then
5904   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5905   cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911 #include <string.h>
5912
5913 _ACEOF
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5915   $EGREP "memchr" >/dev/null 2>&1; then
5916   :
5917 else
5918   ac_cv_header_stdc=no
5919 fi
5920 rm -f conftest*
5921
5922 fi
5923
5924 if test $ac_cv_header_stdc = yes; then
5925   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5926   cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h.  */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h.  */
5932 #include <stdlib.h>
5933
5934 _ACEOF
5935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936   $EGREP "free" >/dev/null 2>&1; then
5937   :
5938 else
5939   ac_cv_header_stdc=no
5940 fi
5941 rm -f conftest*
5942
5943 fi
5944
5945 if test $ac_cv_header_stdc = yes; then
5946   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5947   if test "$cross_compiling" = yes; then
5948   :
5949 else
5950   cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h.  */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h.  */
5956 #include <ctype.h>
5957 #include <stdlib.h>
5958 #if ((' ' & 0x0FF) == 0x020)
5959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5961 #else
5962 # define ISLOWER(c) \
5963                    (('a' <= (c) && (c) <= 'i') \
5964                      || ('j' <= (c) && (c) <= 'r') \
5965                      || ('s' <= (c) && (c) <= 'z'))
5966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5967 #endif
5968
5969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5970 int
5971 main ()
5972 {
5973   int i;
5974   for (i = 0; i < 256; i++)
5975     if (XOR (islower (i), ISLOWER (i))
5976         || toupper (i) != TOUPPER (i))
5977       return 2;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest$ac_exeext
5982 if { (ac_try="$ac_link"
5983 case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988   (eval "$ac_link") 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5992   { (case "(($ac_try" in
5993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994   *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997   (eval "$ac_try") 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; }; then
6001   :
6002 else
6003   echo "$as_me: program exited with status $ac_status" >&5
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ( exit $ac_status )
6008 ac_cv_header_stdc=no
6009 fi
6010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6011 fi
6012
6013
6014 fi
6015 fi
6016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6018 if test $ac_cv_header_stdc = yes; then
6019
6020 cat >>confdefs.h <<\_ACEOF
6021 #define STDC_HEADERS 1
6022 _ACEOF
6023
6024 fi
6025
6026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6037                   inttypes.h stdint.h unistd.h
6038 do
6039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h.  */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h.  */
6051 $ac_includes_default
6052
6053 #include <$ac_header>
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_compile") 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } && {
6069          test -z "$ac_c_werror_flag" ||
6070          test ! -s conftest.err
6071        } && test -s conftest.$ac_objext; then
6072   eval "$as_ac_Header=yes"
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077         eval "$as_ac_Header=no"
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 ac_res=`eval echo '${'$as_ac_Header'}'`
6083                { echo "$as_me:$LINENO: result: $ac_res" >&5
6084 echo "${ECHO_T}$ac_res" >&6; }
6085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6086   cat >>confdefs.h <<_ACEOF
6087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6088 _ACEOF
6089
6090 fi
6091
6092 done
6093
6094
6095
6096 for ac_header in dlfcn.h
6097 do
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 fi
6105 ac_res=`eval echo '${'$as_ac_Header'}'`
6106                { echo "$as_me:$LINENO: result: $ac_res" >&5
6107 echo "${ECHO_T}$ac_res" >&6; }
6108 else
6109   # Is the header compilable?
6110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118 $ac_includes_default
6119 #include <$ac_header>
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125   *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } && {
6135          test -z "$ac_c_werror_flag" ||
6136          test ! -s conftest.err
6137        } && test -s conftest.$ac_objext; then
6138   ac_header_compiler=yes
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143         ac_header_compiler=no
6144 fi
6145
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6148 echo "${ECHO_T}$ac_header_compiler" >&6; }
6149
6150 # Is the header present?
6151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 #include <$ac_header>
6160 _ACEOF
6161 if { (ac_try="$ac_cpp conftest.$ac_ext"
6162 case "(($ac_try" in
6163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164   *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } >/dev/null && {
6174          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6175          test ! -s conftest.err
6176        }; then
6177   ac_header_preproc=yes
6178 else
6179   echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182   ac_header_preproc=no
6183 fi
6184
6185 rm -f conftest.err conftest.$ac_ext
6186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6187 echo "${ECHO_T}$ac_header_preproc" >&6; }
6188
6189 # So?  What about this header?
6190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6191   yes:no: )
6192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6196     ac_header_preproc=yes
6197     ;;
6198   no:yes:* )
6199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6211
6212     ;;
6213 esac
6214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   eval "$as_ac_Header=\$ac_header_preproc"
6220 fi
6221 ac_res=`eval echo '${'$as_ac_Header'}'`
6222                { echo "$as_me:$LINENO: result: $ac_res" >&5
6223 echo "${ECHO_T}$ac_res" >&6; }
6224
6225 fi
6226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6227   cat >>confdefs.h <<_ACEOF
6228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6229 _ACEOF
6230
6231 fi
6232
6233 done
6234
6235
6236
6237 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6238     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6239     (test "X$CXX" != "Xg++"))) ; then
6240   ac_ext=cpp
6241 ac_cpp='$CXXCPP $CPPFLAGS'
6242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6245 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6246 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6247 if test -z "$CXXCPP"; then
6248   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251       # Double quotes because CXXCPP needs to be expanded
6252     for CXXCPP in "$CXX -E" "/lib/cpp"
6253     do
6254       ac_preproc_ok=false
6255 for ac_cxx_preproc_warn_flag in '' yes
6256 do
6257   # Use a header file that comes with gcc, so configuring glibc
6258   # with a fresh cross-compiler works.
6259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6260   # <limits.h> exists even on freestanding compilers.
6261   # On the NeXT, cc -E runs the code through the compiler's parser,
6262   # not just through cpp. "Syntax error" is here to catch this case.
6263   cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h.  */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h.  */
6269 #ifdef __STDC__
6270 # include <limits.h>
6271 #else
6272 # include <assert.h>
6273 #endif
6274                      Syntax error
6275 _ACEOF
6276 if { (ac_try="$ac_cpp conftest.$ac_ext"
6277 case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } >/dev/null && {
6289          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6290          test ! -s conftest.err
6291        }; then
6292   :
6293 else
6294   echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6296
6297   # Broken: fails on valid input.
6298 continue
6299 fi
6300
6301 rm -f conftest.err conftest.$ac_ext
6302
6303   # OK, works on sane cases.  Now check whether nonexistent headers
6304   # can be detected and how.
6305   cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311 #include <ac_nonexistent.h>
6312 _ACEOF
6313 if { (ac_try="$ac_cpp conftest.$ac_ext"
6314 case "(($ac_try" in
6315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316   *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6320   ac_status=$?
6321   grep -v '^ *+' conftest.er1 >conftest.err
6322   rm -f conftest.er1
6323   cat conftest.err >&5
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } >/dev/null && {
6326          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6327          test ! -s conftest.err
6328        }; then
6329   # Broken: success on invalid input.
6330 continue
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335   # Passes both tests.
6336 ac_preproc_ok=:
6337 break
6338 fi
6339
6340 rm -f conftest.err conftest.$ac_ext
6341
6342 done
6343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6344 rm -f conftest.err conftest.$ac_ext
6345 if $ac_preproc_ok; then
6346   break
6347 fi
6348
6349     done
6350     ac_cv_prog_CXXCPP=$CXXCPP
6351
6352 fi
6353   CXXCPP=$ac_cv_prog_CXXCPP
6354 else
6355   ac_cv_prog_CXXCPP=$CXXCPP
6356 fi
6357 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6358 echo "${ECHO_T}$CXXCPP" >&6; }
6359 ac_preproc_ok=false
6360 for ac_cxx_preproc_warn_flag in '' yes
6361 do
6362   # Use a header file that comes with gcc, so configuring glibc
6363   # with a fresh cross-compiler works.
6364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6365   # <limits.h> exists even on freestanding compilers.
6366   # On the NeXT, cc -E runs the code through the compiler's parser,
6367   # not just through cpp. "Syntax error" is here to catch this case.
6368   cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 #ifdef __STDC__
6375 # include <limits.h>
6376 #else
6377 # include <assert.h>
6378 #endif
6379                      Syntax error
6380 _ACEOF
6381 if { (ac_try="$ac_cpp conftest.$ac_ext"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } >/dev/null && {
6394          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6395          test ! -s conftest.err
6396        }; then
6397   :
6398 else
6399   echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402   # Broken: fails on valid input.
6403 continue
6404 fi
6405
6406 rm -f conftest.err conftest.$ac_ext
6407
6408   # OK, works on sane cases.  Now check whether nonexistent headers
6409   # can be detected and how.
6410   cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h.  */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h.  */
6416 #include <ac_nonexistent.h>
6417 _ACEOF
6418 if { (ac_try="$ac_cpp conftest.$ac_ext"
6419 case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } >/dev/null && {
6431          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6432          test ! -s conftest.err
6433        }; then
6434   # Broken: success on invalid input.
6435 continue
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440   # Passes both tests.
6441 ac_preproc_ok=:
6442 break
6443 fi
6444
6445 rm -f conftest.err conftest.$ac_ext
6446
6447 done
6448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6449 rm -f conftest.err conftest.$ac_ext
6450 if $ac_preproc_ok; then
6451   :
6452 else
6453   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6454 See \`config.log' for more details." >&5
6455 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6456 See \`config.log' for more details." >&2;}
6457    { (exit 1); exit 1; }; }
6458 fi
6459
6460 ac_ext=cpp
6461 ac_cpp='$CXXCPP $CPPFLAGS'
6462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6465
6466 fi
6467
6468
6469 ac_ext=f
6470 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6471 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6473 if test -n "$ac_tool_prefix"; then
6474   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
6475   do
6476     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_F77+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   if test -n "$F77"; then
6484   ac_cv_prog_F77="$F77" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 F77=$ac_cv_prog_F77
6504 if test -n "$F77"; then
6505   { echo "$as_me:$LINENO: result: $F77" >&5
6506 echo "${ECHO_T}$F77" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6510 fi
6511
6512
6513     test -n "$F77" && break
6514   done
6515 fi
6516 if test -z "$F77"; then
6517   ac_ct_F77=$F77
6518   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
6519 do
6520   # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6524 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   if test -n "$ac_ct_F77"; then
6528   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535   for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_prog_ac_ct_F77="$ac_prog"
6538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6548 if test -n "$ac_ct_F77"; then
6549   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6550 echo "${ECHO_T}$ac_ct_F77" >&6; }
6551 else
6552   { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6554 fi
6555
6556
6557   test -n "$ac_ct_F77" && break
6558 done
6559
6560   if test "x$ac_ct_F77" = x; then
6561     F77=""
6562   else
6563     case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6566 whose name does not start with the host triplet.  If you think this
6567 configuration is useful to you, please write to autoconf@gnu.org." >&5
6568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet.  If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573     F77=$ac_ct_F77
6574   fi
6575 fi
6576
6577
6578 # Provide some information about the compiler.
6579 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6580 ac_compiler=`set X $ac_compile; echo $2`
6581 { (ac_try="$ac_compiler --version >&5"
6582 case "(($ac_try" in
6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584   *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587   (eval "$ac_compiler --version >&5") 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }
6591 { (ac_try="$ac_compiler -v >&5"
6592 case "(($ac_try" in
6593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594   *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597   (eval "$ac_compiler -v >&5") 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); }
6601 { (ac_try="$ac_compiler -V >&5"
6602 case "(($ac_try" in
6603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604   *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607   (eval "$ac_compiler -V >&5") 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }
6611 rm -f a.out
6612
6613 # If we don't use `.F' as extension, the preprocessor is not run on the
6614 # input file.  (Note that this only needs to work for GNU compilers.)
6615 ac_save_ext=$ac_ext
6616 ac_ext=F
6617 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6618 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6619 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   cat >conftest.$ac_ext <<_ACEOF
6623       program main
6624 #ifndef __GNUC__
6625        choke me
6626 #endif
6627
6628       end
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6632 case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637   (eval "$ac_compile") 2>conftest.er1
6638   ac_status=$?
6639   grep -v '^ *+' conftest.er1 >conftest.err
6640   rm -f conftest.er1
6641   cat conftest.err >&5
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } && {
6644          test -z "$ac_f77_werror_flag" ||
6645          test ! -s conftest.err
6646        } && test -s conftest.$ac_objext; then
6647   ac_compiler_gnu=yes
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652         ac_compiler_gnu=no
6653 fi
6654
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6657
6658 fi
6659 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6660 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6661 ac_ext=$ac_save_ext
6662 ac_test_FFLAGS=${FFLAGS+set}
6663 ac_save_FFLAGS=$FFLAGS
6664 FFLAGS=
6665 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6666 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_f77_g+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   FFLAGS=-g
6671 cat >conftest.$ac_ext <<_ACEOF
6672       program main
6673
6674       end
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6678 case "(($ac_try" in
6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680   *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683   (eval "$ac_compile") 2>conftest.er1
6684   ac_status=$?
6685   grep -v '^ *+' conftest.er1 >conftest.err
6686   rm -f conftest.er1
6687   cat conftest.err >&5
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } && {
6690          test -z "$ac_f77_werror_flag" ||
6691          test ! -s conftest.err
6692        } && test -s conftest.$ac_objext; then
6693   ac_cv_prog_f77_g=yes
6694 else
6695   echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698         ac_cv_prog_f77_g=no
6699 fi
6700
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702
6703 fi
6704 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6705 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6706 if test "$ac_test_FFLAGS" = set; then
6707   FFLAGS=$ac_save_FFLAGS
6708 elif test $ac_cv_prog_f77_g = yes; then
6709   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6710     FFLAGS="-g -O2"
6711   else
6712     FFLAGS="-g"
6713   fi
6714 else
6715   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6716     FFLAGS="-O2"
6717   else
6718     FFLAGS=
6719   fi
6720 fi
6721
6722 G77=`test $ac_compiler_gnu = yes && echo yes`
6723 ac_ext=cpp
6724 ac_cpp='$CXXCPP $CPPFLAGS'
6725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6728
6729
6730
6731 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6732
6733 # find the maximum length of command line arguments
6734 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6735 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6736 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739     i=0
6740   teststring="ABCD"
6741
6742   case $build_os in
6743   msdosdjgpp*)
6744     # On DJGPP, this test can blow up pretty badly due to problems in libc
6745     # (any single argument exceeding 2000 bytes causes a buffer overrun
6746     # during glob expansion).  Even if it were fixed, the result of this
6747     # check would be larger than it should be.
6748     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6749     ;;
6750
6751   gnu*)
6752     # Under GNU Hurd, this test is not required because there is
6753     # no limit to the length of command line arguments.
6754     # Libtool will interpret -1 as no limit whatsoever
6755     lt_cv_sys_max_cmd_len=-1;
6756     ;;
6757
6758   cygwin* | mingw*)
6759     # On Win9x/ME, this test blows up -- it succeeds, but takes
6760     # about 5 minutes as the teststring grows exponentially.
6761     # Worse, since 9x/ME are not pre-emptively multitasking,
6762     # you end up with a "frozen" computer, even though with patience
6763     # the test eventually succeeds (with a max line length of 256k).
6764     # Instead, let's just punt: use the minimum linelength reported by
6765     # all of the supported platforms: 8192 (on NT/2K/XP).
6766     lt_cv_sys_max_cmd_len=8192;
6767     ;;
6768
6769   amigaos*)
6770     # On AmigaOS with pdksh, this test takes hours, literally.
6771     # So we just punt and use a minimum line length of 8192.
6772     lt_cv_sys_max_cmd_len=8192;
6773     ;;
6774
6775   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6776     # This has been around since 386BSD, at least.  Likely further.
6777     if test -x /sbin/sysctl; then
6778       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6779     elif test -x /usr/sbin/sysctl; then
6780       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6781     else
6782       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6783     fi
6784     # And add a safety zone
6785     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6786     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6787     ;;
6788
6789   interix*)
6790     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6791     lt_cv_sys_max_cmd_len=196608
6792     ;;
6793
6794   osf*)
6795     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6796     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6797     # nice to cause kernel panics so lets avoid the loop below.
6798     # First set a reasonable default.
6799     lt_cv_sys_max_cmd_len=16384
6800     #
6801     if test -x /sbin/sysconfig; then
6802       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6803         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6804       esac
6805     fi
6806     ;;
6807   sco3.2v5*)
6808     lt_cv_sys_max_cmd_len=102400
6809     ;;
6810   sysv5* | sco5v6* | sysv4.2uw2*)
6811     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6812     if test -n "$kargmax"; then
6813       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6814     else
6815       lt_cv_sys_max_cmd_len=32768
6816     fi
6817     ;;
6818   *)
6819     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6820     if test -n "$lt_cv_sys_max_cmd_len"; then
6821       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6822       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6823     else
6824       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6825       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6826                = "XX$teststring") >/dev/null 2>&1 &&
6827               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6828               lt_cv_sys_max_cmd_len=$new_result &&
6829               test $i != 17 # 1/2 MB should be enough
6830       do
6831         i=`expr $i + 1`
6832         teststring=$teststring$teststring
6833       done
6834       teststring=
6835       # Add a significant safety factor because C++ compilers can tack on massive
6836       # amounts of additional arguments before passing them to the linker.
6837       # It appears as though 1/2 is a usable value.
6838       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6839     fi
6840     ;;
6841   esac
6842
6843 fi
6844
6845 if test -n $lt_cv_sys_max_cmd_len ; then
6846   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6847 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6848 else
6849   { echo "$as_me:$LINENO: result: none" >&5
6850 echo "${ECHO_T}none" >&6; }
6851 fi
6852
6853
6854
6855
6856
6857 # Check for command to grab the raw symbol name followed by C symbol from nm.
6858 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6859 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6860 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863
6864 # These are sane defaults that work on at least a few old systems.
6865 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6866
6867 # Character class describing NM global symbol codes.
6868 symcode='[BCDEGRST]'
6869
6870 # Regexp to match symbols that can be accessed directly from C.
6871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6872
6873 # Transform an extracted symbol line into a proper C declaration
6874 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6875
6876 # Transform an extracted symbol line into symbol name and symbol address
6877 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'"
6878
6879 # Define system-specific variables.
6880 case $host_os in
6881 aix*)
6882   symcode='[BCDT]'
6883   ;;
6884 cygwin* | mingw* | pw32*)
6885   symcode='[ABCDGISTW]'
6886   ;;
6887 hpux*) # Its linker distinguishes data from code symbols
6888   if test "$host_cpu" = ia64; then
6889     symcode='[ABCDEGRST]'
6890   fi
6891   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6892   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'"
6893   ;;
6894 linux* | k*bsd*-gnu)
6895   if test "$host_cpu" = ia64; then
6896     symcode='[ABCDGIRSTW]'
6897     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6898     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'"
6899   fi
6900   ;;
6901 irix* | nonstopux*)
6902   symcode='[BCDEGRST]'
6903   ;;
6904 osf*)
6905   symcode='[BCDEGQRST]'
6906   ;;
6907 solaris*)
6908   symcode='[BDRT]'
6909   ;;
6910 sco3.2v5*)
6911   symcode='[DT]'
6912   ;;
6913 sysv4.2uw2*)
6914   symcode='[DT]'
6915   ;;
6916 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6917   symcode='[ABDT]'
6918   ;;
6919 sysv4)
6920   symcode='[DFNSTU]'
6921   ;;
6922 esac
6923
6924 # Handle CRLF in mingw tool chain
6925 opt_cr=
6926 case $build_os in
6927 mingw*)
6928   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6929   ;;
6930 esac
6931
6932 # If we're using GNU nm, then use its standard symbol codes.
6933 case `$NM -V 2>&1` in
6934 *GNU* | *'with BFD'*)
6935   symcode='[ABCDGIRSTW]' ;;
6936 esac
6937
6938 # Try without a prefix undercore, then with it.
6939 for ac_symprfx in "" "_"; do
6940
6941   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6942   symxfrm="\\1 $ac_symprfx\\2 \\2"
6943
6944   # Write the raw and C identifiers.
6945   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6946
6947   # Check to see that the pipe works correctly.
6948   pipe_works=no
6949
6950   rm -f conftest*
6951   cat > conftest.$ac_ext <<EOF
6952 #ifdef __cplusplus
6953 extern "C" {
6954 #endif
6955 char nm_test_var;
6956 void nm_test_func(){}
6957 #ifdef __cplusplus
6958 }
6959 #endif
6960 int main(){nm_test_var='a';nm_test_func();return(0);}
6961 EOF
6962
6963   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964   (eval $ac_compile) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; then
6968     # Now try to grab the symbols.
6969     nlist=conftest.nm
6970     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6971   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } && test -s "$nlist"; then
6975       # Try sorting and uniquifying the output.
6976       if sort "$nlist" | uniq > "$nlist"T; then
6977         mv -f "$nlist"T "$nlist"
6978       else
6979         rm -f "$nlist"T
6980       fi
6981
6982       # Make sure that we snagged all the symbols we need.
6983       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6984         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6985           cat <<EOF > conftest.$ac_ext
6986 #ifdef __cplusplus
6987 extern "C" {
6988 #endif
6989
6990 EOF
6991           # Now generate the symbol file.
6992           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6993
6994           cat <<EOF >> conftest.$ac_ext
6995 #if defined (__STDC__) && __STDC__
6996 # define lt_ptr_t void *
6997 #else
6998 # define lt_ptr_t char *
6999 # define const
7000 #endif
7001
7002 /* The mapping between symbol names and symbols. */
7003 const struct {
7004   const char *name;
7005   lt_ptr_t address;
7006 }
7007 lt_preloaded_symbols[] =
7008 {
7009 EOF
7010           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7011           cat <<\EOF >> conftest.$ac_ext
7012   {0, (lt_ptr_t) 0}
7013 };
7014
7015 #ifdef __cplusplus
7016 }
7017 #endif
7018 EOF
7019           # Now try linking the two files.
7020           mv conftest.$ac_objext conftstm.$ac_objext
7021           lt_save_LIBS="$LIBS"
7022           lt_save_CFLAGS="$CFLAGS"
7023           LIBS="conftstm.$ac_objext"
7024           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7025           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026   (eval $ac_link) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7030             pipe_works=yes
7031           fi
7032           LIBS="$lt_save_LIBS"
7033           CFLAGS="$lt_save_CFLAGS"
7034         else
7035           echo "cannot find nm_test_func in $nlist" >&5
7036         fi
7037       else
7038         echo "cannot find nm_test_var in $nlist" >&5
7039       fi
7040     else
7041       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7042     fi
7043   else
7044     echo "$progname: failed program was:" >&5
7045     cat conftest.$ac_ext >&5
7046   fi
7047   rm -f conftest* conftst*
7048
7049   # Do not use the global_symbol_pipe unless it works.
7050   if test "$pipe_works" = yes; then
7051     break
7052   else
7053     lt_cv_sys_global_symbol_pipe=
7054   fi
7055 done
7056
7057 fi
7058
7059 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7060   lt_cv_sys_global_symbol_to_cdecl=
7061 fi
7062 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7063   { echo "$as_me:$LINENO: result: failed" >&5
7064 echo "${ECHO_T}failed" >&6; }
7065 else
7066   { echo "$as_me:$LINENO: result: ok" >&5
7067 echo "${ECHO_T}ok" >&6; }
7068 fi
7069
7070 { echo "$as_me:$LINENO: checking for objdir" >&5
7071 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7072 if test "${lt_cv_objdir+set}" = set; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075   rm -f .libs 2>/dev/null
7076 mkdir .libs 2>/dev/null
7077 if test -d .libs; then
7078   lt_cv_objdir=.libs
7079 else
7080   # MS-DOS does not allow filenames that begin with a dot.
7081   lt_cv_objdir=_libs
7082 fi
7083 rmdir .libs 2>/dev/null
7084 fi
7085 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7086 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7087 objdir=$lt_cv_objdir
7088
7089
7090
7091
7092
7093 case $host_os in
7094 aix3*)
7095   # AIX sometimes has problems with the GCC collect2 program.  For some
7096   # reason, if we set the COLLECT_NAMES environment variable, the problems
7097   # vanish in a puff of smoke.
7098   if test "X${COLLECT_NAMES+set}" != Xset; then
7099     COLLECT_NAMES=
7100     export COLLECT_NAMES
7101   fi
7102   ;;
7103 esac
7104
7105 # Sed substitution that helps us do robust quoting.  It backslashifies
7106 # metacharacters that are still active within double-quoted strings.
7107 Xsed='sed -e 1s/^X//'
7108 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7109
7110 # Same as above, but do not quote variable references.
7111 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7112
7113 # Sed substitution to delay expansion of an escaped shell variable in a
7114 # double_quote_subst'ed string.
7115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7116
7117 # Sed substitution to avoid accidental globbing in evaled expressions
7118 no_glob_subst='s/\*/\\\*/g'
7119
7120 # Constants:
7121 rm="rm -f"
7122
7123 # Global variables:
7124 default_ofile=libtool
7125 can_build_shared=yes
7126
7127 # All known linkers require a `.a' archive for static linking (except MSVC,
7128 # which needs '.lib').
7129 libext=a
7130 ltmain="$ac_aux_dir/ltmain.sh"
7131 ofile="$default_ofile"
7132 with_gnu_ld="$lt_cv_prog_gnu_ld"
7133
7134 if test -n "$ac_tool_prefix"; then
7135   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}ar; ac_word=$2
7137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139 if test "${ac_cv_prog_AR+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   if test -n "$AR"; then
7143   ac_cv_prog_AR="$AR" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150   for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_prog_AR="${ac_tool_prefix}ar"
7153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 AR=$ac_cv_prog_AR
7163 if test -n "$AR"; then
7164   { echo "$as_me:$LINENO: result: $AR" >&5
7165 echo "${ECHO_T}$AR" >&6; }
7166 else
7167   { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if test -z "$ac_cv_prog_AR"; then
7174   ac_ct_AR=$AR
7175   # Extract the first word of "ar", so it can be a program name with args.
7176 set dummy ar; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   if test -n "$ac_ct_AR"; then
7183   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190   for ac_exec_ext in '' $ac_executable_extensions; do
7191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192     ac_cv_prog_ac_ct_AR="ar"
7193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7203 if test -n "$ac_ct_AR"; then
7204   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7205 echo "${ECHO_T}$ac_ct_AR" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7209 fi
7210
7211   if test "x$ac_ct_AR" = x; then
7212     AR="false"
7213   else
7214     case $cross_compiling:$ac_tool_warned in
7215 yes:)
7216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7217 whose name does not start with the host triplet.  If you think this
7218 configuration is useful to you, please write to autoconf@gnu.org." >&5
7219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7220 whose name does not start with the host triplet.  If you think this
7221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7222 ac_tool_warned=yes ;;
7223 esac
7224     AR=$ac_ct_AR
7225   fi
7226 else
7227   AR="$ac_cv_prog_AR"
7228 fi
7229
7230 if test -n "$ac_tool_prefix"; then
7231   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_prog_RANLIB+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   if test -n "$RANLIB"; then
7239   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246   for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 RANLIB=$ac_cv_prog_RANLIB
7259 if test -n "$RANLIB"; then
7260   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7261 echo "${ECHO_T}$RANLIB" >&6; }
7262 else
7263   { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267
7268 fi
7269 if test -z "$ac_cv_prog_RANLIB"; then
7270   ac_ct_RANLIB=$RANLIB
7271   # Extract the first word of "ranlib", so it can be a program name with args.
7272 set dummy ranlib; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   if test -n "$ac_ct_RANLIB"; then
7279   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286   for ac_exec_ext in '' $ac_executable_extensions; do
7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288     ac_cv_prog_ac_ct_RANLIB="ranlib"
7289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7299 if test -n "$ac_ct_RANLIB"; then
7300   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7301 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7302 else
7303   { echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6; }
7305 fi
7306
7307   if test "x$ac_ct_RANLIB" = x; then
7308     RANLIB=":"
7309   else
7310     case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7313 whose name does not start with the host triplet.  If you think this
7314 configuration is useful to you, please write to autoconf@gnu.org." >&5
7315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7316 whose name does not start with the host triplet.  If you think this
7317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7318 ac_tool_warned=yes ;;
7319 esac
7320     RANLIB=$ac_ct_RANLIB
7321   fi
7322 else
7323   RANLIB="$ac_cv_prog_RANLIB"
7324 fi
7325
7326 if test -n "$ac_tool_prefix"; then
7327   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}strip; ac_word=$2
7329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331 if test "${ac_cv_prog_STRIP+set}" = set; then
7332   echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334   if test -n "$STRIP"; then
7335   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342   for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 STRIP=$ac_cv_prog_STRIP
7355 if test -n "$STRIP"; then
7356   { echo "$as_me:$LINENO: result: $STRIP" >&5
7357 echo "${ECHO_T}$STRIP" >&6; }
7358 else
7359   { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7361 fi
7362
7363
7364 fi
7365 if test -z "$ac_cv_prog_STRIP"; then
7366   ac_ct_STRIP=$STRIP
7367   # Extract the first word of "strip", so it can be a program name with args.
7368 set dummy strip; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   if test -n "$ac_ct_STRIP"; then
7375   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382   for ac_exec_ext in '' $ac_executable_extensions; do
7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384     ac_cv_prog_ac_ct_STRIP="strip"
7385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7395 if test -n "$ac_ct_STRIP"; then
7396   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7397 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7398 else
7399   { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7401 fi
7402
7403   if test "x$ac_ct_STRIP" = x; then
7404     STRIP=":"
7405   else
7406     case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7409 whose name does not start with the host triplet.  If you think this
7410 configuration is useful to you, please write to autoconf@gnu.org." >&5
7411 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7412 whose name does not start with the host triplet.  If you think this
7413 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416     STRIP=$ac_ct_STRIP
7417   fi
7418 else
7419   STRIP="$ac_cv_prog_STRIP"
7420 fi
7421
7422
7423 old_CC="$CC"
7424 old_CFLAGS="$CFLAGS"
7425
7426 # Set sane defaults for various variables
7427 test -z "$AR" && AR=ar
7428 test -z "$AR_FLAGS" && AR_FLAGS=cru
7429 test -z "$AS" && AS=as
7430 test -z "$CC" && CC=cc
7431 test -z "$LTCC" && LTCC=$CC
7432 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7433 test -z "$DLLTOOL" && DLLTOOL=dlltool
7434 test -z "$LD" && LD=ld
7435 test -z "$LN_S" && LN_S="ln -s"
7436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7437 test -z "$NM" && NM=nm
7438 test -z "$SED" && SED=sed
7439 test -z "$OBJDUMP" && OBJDUMP=objdump
7440 test -z "$RANLIB" && RANLIB=:
7441 test -z "$STRIP" && STRIP=:
7442 test -z "$ac_objext" && ac_objext=o
7443
7444 # Determine commands to create old-style static archives.
7445 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7446 old_postinstall_cmds='chmod 644 $oldlib'
7447 old_postuninstall_cmds=
7448
7449 if test -n "$RANLIB"; then
7450   case $host_os in
7451   openbsd*)
7452     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7453     ;;
7454   *)
7455     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7456     ;;
7457   esac
7458   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7459 fi
7460
7461 for cc_temp in $compiler""; do
7462   case $cc_temp in
7463     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7464     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7465     \-*) ;;
7466     *) break;;
7467   esac
7468 done
7469 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7470
7471
7472 # Only perform the check for file, if the check method requires it
7473 case $deplibs_check_method in
7474 file_magic*)
7475   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7476     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7477 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7478 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481   case $MAGIC_CMD in
7482 [\\/*] |  ?:[\\/]*)
7483   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7484   ;;
7485 *)
7486   lt_save_MAGIC_CMD="$MAGIC_CMD"
7487   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7488   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7489   for ac_dir in $ac_dummy; do
7490     IFS="$lt_save_ifs"
7491     test -z "$ac_dir" && ac_dir=.
7492     if test -f $ac_dir/${ac_tool_prefix}file; then
7493       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7494       if test -n "$file_magic_test_file"; then
7495         case $deplibs_check_method in
7496         "file_magic "*)
7497           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7498           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7499           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7500             $EGREP "$file_magic_regex" > /dev/null; then
7501             :
7502           else
7503             cat <<EOF 1>&2
7504
7505 *** Warning: the command libtool uses to detect shared libraries,
7506 *** $file_magic_cmd, produces output that libtool cannot recognize.
7507 *** The result is that libtool may fail to recognize shared libraries
7508 *** as such.  This will affect the creation of libtool libraries that
7509 *** depend on shared libraries, but programs linked with such libtool
7510 *** libraries will work regardless of this problem.  Nevertheless, you
7511 *** may want to report the problem to your system manager and/or to
7512 *** bug-libtool@gnu.org
7513
7514 EOF
7515           fi ;;
7516         esac
7517       fi
7518       break
7519     fi
7520   done
7521   IFS="$lt_save_ifs"
7522   MAGIC_CMD="$lt_save_MAGIC_CMD"
7523   ;;
7524 esac
7525 fi
7526
7527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7528 if test -n "$MAGIC_CMD"; then
7529   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7530 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7531 else
7532   { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7534 fi
7535
7536 if test -z "$lt_cv_path_MAGIC_CMD"; then
7537   if test -n "$ac_tool_prefix"; then
7538     { echo "$as_me:$LINENO: checking for file" >&5
7539 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7540 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   case $MAGIC_CMD in
7544 [\\/*] |  ?:[\\/]*)
7545   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7546   ;;
7547 *)
7548   lt_save_MAGIC_CMD="$MAGIC_CMD"
7549   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7550   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7551   for ac_dir in $ac_dummy; do
7552     IFS="$lt_save_ifs"
7553     test -z "$ac_dir" && ac_dir=.
7554     if test -f $ac_dir/file; then
7555       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7556       if test -n "$file_magic_test_file"; then
7557         case $deplibs_check_method in
7558         "file_magic "*)
7559           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7560           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7561           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7562             $EGREP "$file_magic_regex" > /dev/null; then
7563             :
7564           else
7565             cat <<EOF 1>&2
7566
7567 *** Warning: the command libtool uses to detect shared libraries,
7568 *** $file_magic_cmd, produces output that libtool cannot recognize.
7569 *** The result is that libtool may fail to recognize shared libraries
7570 *** as such.  This will affect the creation of libtool libraries that
7571 *** depend on shared libraries, but programs linked with such libtool
7572 *** libraries will work regardless of this problem.  Nevertheless, you
7573 *** may want to report the problem to your system manager and/or to
7574 *** bug-libtool@gnu.org
7575
7576 EOF
7577           fi ;;
7578         esac
7579       fi
7580       break
7581     fi
7582   done
7583   IFS="$lt_save_ifs"
7584   MAGIC_CMD="$lt_save_MAGIC_CMD"
7585   ;;
7586 esac
7587 fi
7588
7589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590 if test -n "$MAGIC_CMD"; then
7591   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7592 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7593 else
7594   { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7596 fi
7597
7598   else
7599     MAGIC_CMD=:
7600   fi
7601 fi
7602
7603   fi
7604   ;;
7605 esac
7606
7607 enable_dlopen=no
7608 enable_win32_dll=yes
7609
7610 # Check whether --enable-libtool-lock was given.
7611 if test "${enable_libtool_lock+set}" = set; then
7612   enableval=$enable_libtool_lock;
7613 fi
7614
7615 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7616
7617
7618 # Check whether --with-pic was given.
7619 if test "${with_pic+set}" = set; then
7620   withval=$with_pic; pic_mode="$withval"
7621 else
7622   pic_mode=default
7623 fi
7624
7625 test -z "$pic_mode" && pic_mode=default
7626
7627 # Use C for the default configuration in the libtool script
7628 tagname=
7629 lt_save_CC="$CC"
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636
7637 # Source file extension for C test sources.
7638 ac_ext=c
7639
7640 # Object file extension for compiled C test sources.
7641 objext=o
7642 objext=$objext
7643
7644 # Code to be used in simple compile tests
7645 lt_simple_compile_test_code="int some_variable = 0;"
7646
7647 # Code to be used in simple link tests
7648 lt_simple_link_test_code='int main(){return(0);}'
7649
7650
7651 # If no C compiler was specified, use CC.
7652 LTCC=${LTCC-"$CC"}
7653
7654 # If no C compiler flags were specified, use CFLAGS.
7655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7656
7657 # Allow CC to be a program name with arguments.
7658 compiler=$CC
7659
7660
7661 # save warnings/boilerplate of simple test code
7662 ac_outfile=conftest.$ac_objext
7663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7665 _lt_compiler_boilerplate=`cat conftest.err`
7666 $rm conftest*
7667
7668 ac_outfile=conftest.$ac_objext
7669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7671 _lt_linker_boilerplate=`cat conftest.err`
7672 $rm conftest*
7673
7674
7675
7676 lt_prog_compiler_no_builtin_flag=
7677
7678 if test "$GCC" = yes; then
7679   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7680
7681
7682 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7683 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7684 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   lt_cv_prog_compiler_rtti_exceptions=no
7688   ac_outfile=conftest.$ac_objext
7689    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7690    lt_compiler_flag="-fno-rtti -fno-exceptions"
7691    # Insert the option either (1) after the last *FLAGS variable, or
7692    # (2) before a word containing "conftest.", or (3) at the end.
7693    # Note that $ac_compile itself does not contain backslashes and begins
7694    # with a dollar sign (not a hyphen), so the echo should work correctly.
7695    # The option is referenced via a variable to avoid confusing sed.
7696    lt_compile=`echo "$ac_compile" | $SED \
7697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7699    -e 's:$: $lt_compiler_flag:'`
7700    (eval echo "\"\$as_me:7700: $lt_compile\"" >&5)
7701    (eval "$lt_compile" 2>conftest.err)
7702    ac_status=$?
7703    cat conftest.err >&5
7704    echo "$as_me:7704: \$? = $ac_status" >&5
7705    if (exit $ac_status) && test -s "$ac_outfile"; then
7706      # The compiler can only warn and ignore the option if not recognized
7707      # So say no if there are warnings other than the usual output.
7708      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7709      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7710      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7711        lt_cv_prog_compiler_rtti_exceptions=yes
7712      fi
7713    fi
7714    $rm conftest*
7715
7716 fi
7717 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7719
7720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7721     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7722 else
7723     :
7724 fi
7725
7726 fi
7727
7728 lt_prog_compiler_wl=
7729 lt_prog_compiler_pic=
7730 lt_prog_compiler_static=
7731
7732 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7734
7735   if test "$GCC" = yes; then
7736     lt_prog_compiler_wl='-Wl,'
7737     lt_prog_compiler_static='-static'
7738
7739     case $host_os in
7740       aix*)
7741       # All AIX code is PIC.
7742       if test "$host_cpu" = ia64; then
7743         # AIX 5 now supports IA64 processor
7744         lt_prog_compiler_static='-Bstatic'
7745       fi
7746       ;;
7747
7748     amigaos*)
7749       # FIXME: we need at least 68020 code to build shared libraries, but
7750       # adding the `-m68020' flag to GCC prevents building anything better,
7751       # like `-m68040'.
7752       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7753       ;;
7754
7755     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7756       # PIC is the default for these OSes.
7757       ;;
7758
7759     mingw* | cygwin* | pw32* | os2*)
7760       # This hack is so that the source file can tell whether it is being
7761       # built for inclusion in a dll (and should export symbols for example).
7762       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7763       # (--disable-auto-import) libraries
7764       lt_prog_compiler_pic='-DDLL_EXPORT'
7765       ;;
7766
7767     darwin* | rhapsody*)
7768       # PIC is the default on this platform
7769       # Common symbols not allowed in MH_DYLIB files
7770       lt_prog_compiler_pic='-fno-common'
7771       ;;
7772
7773     interix[3-9]*)
7774       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7775       # Instead, we relocate shared libraries at runtime.
7776       ;;
7777
7778     msdosdjgpp*)
7779       # Just because we use GCC doesn't mean we suddenly get shared libraries
7780       # on systems that don't support them.
7781       lt_prog_compiler_can_build_shared=no
7782       enable_shared=no
7783       ;;
7784
7785     sysv4*MP*)
7786       if test -d /usr/nec; then
7787         lt_prog_compiler_pic=-Kconform_pic
7788       fi
7789       ;;
7790
7791     hpux*)
7792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7793       # not for PA HP-UX.
7794       case $host_cpu in
7795       hppa*64*|ia64*)
7796         # +Z the default
7797         ;;
7798       *)
7799         lt_prog_compiler_pic='-fPIC'
7800         ;;
7801       esac
7802       ;;
7803
7804     *)
7805       lt_prog_compiler_pic='-fPIC'
7806       ;;
7807     esac
7808   else
7809     # PORTME Check for flag to pass linker flags through the system compiler.
7810     case $host_os in
7811     aix*)
7812       lt_prog_compiler_wl='-Wl,'
7813       if test "$host_cpu" = ia64; then
7814         # AIX 5 now supports IA64 processor
7815         lt_prog_compiler_static='-Bstatic'
7816       else
7817         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7818       fi
7819       ;;
7820       darwin*)
7821         # PIC is the default on this platform
7822         # Common symbols not allowed in MH_DYLIB files
7823        case $cc_basename in
7824          xlc*)
7825          lt_prog_compiler_pic='-qnocommon'
7826          lt_prog_compiler_wl='-Wl,'
7827          ;;
7828        esac
7829        ;;
7830
7831     mingw* | cygwin* | pw32* | os2*)
7832       # This hack is so that the source file can tell whether it is being
7833       # built for inclusion in a dll (and should export symbols for example).
7834       lt_prog_compiler_pic='-DDLL_EXPORT'
7835       ;;
7836
7837     hpux9* | hpux10* | hpux11*)
7838       lt_prog_compiler_wl='-Wl,'
7839       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7840       # not for PA HP-UX.
7841       case $host_cpu in
7842       hppa*64*|ia64*)
7843         # +Z the default
7844         ;;
7845       *)
7846         lt_prog_compiler_pic='+Z'
7847         ;;
7848       esac
7849       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7850       lt_prog_compiler_static='${wl}-a ${wl}archive'
7851       ;;
7852
7853     irix5* | irix6* | nonstopux*)
7854       lt_prog_compiler_wl='-Wl,'
7855       # PIC (with -KPIC) is the default.
7856       lt_prog_compiler_static='-non_shared'
7857       ;;
7858
7859     newsos6)
7860       lt_prog_compiler_pic='-KPIC'
7861       lt_prog_compiler_static='-Bstatic'
7862       ;;
7863
7864     linux* | k*bsd*-gnu)
7865       case $cc_basename in
7866       icc* | ecc*)
7867         lt_prog_compiler_wl='-Wl,'
7868         lt_prog_compiler_pic='-KPIC'
7869         lt_prog_compiler_static='-static'
7870         ;;
7871       pgcc* | pgf77* | pgf90* | pgf95*)
7872         # Portland Group compilers (*not* the Pentium gcc compiler,
7873         # which looks to be a dead project)
7874         lt_prog_compiler_wl='-Wl,'
7875         lt_prog_compiler_pic='-fpic'
7876         lt_prog_compiler_static='-Bstatic'
7877         ;;
7878       ccc*)
7879         lt_prog_compiler_wl='-Wl,'
7880         # All Alpha code is PIC.
7881         lt_prog_compiler_static='-non_shared'
7882         ;;
7883       *)
7884         case `$CC -V 2>&1 | sed 5q` in
7885         *Sun\ C*)
7886           # Sun C 5.9
7887           lt_prog_compiler_pic='-KPIC'
7888           lt_prog_compiler_static='-Bstatic'
7889           lt_prog_compiler_wl='-Wl,'
7890           ;;
7891         *Sun\ F*)
7892           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7893           lt_prog_compiler_pic='-KPIC'
7894           lt_prog_compiler_static='-Bstatic'
7895           lt_prog_compiler_wl=''
7896           ;;
7897         esac
7898         ;;
7899       esac
7900       ;;
7901
7902     osf3* | osf4* | osf5*)
7903       lt_prog_compiler_wl='-Wl,'
7904       # All OSF/1 code is PIC.
7905       lt_prog_compiler_static='-non_shared'
7906       ;;
7907
7908     rdos*)
7909       lt_prog_compiler_static='-non_shared'
7910       ;;
7911
7912     solaris*)
7913       lt_prog_compiler_pic='-KPIC'
7914       lt_prog_compiler_static='-Bstatic'
7915       case $cc_basename in
7916       f77* | f90* | f95*)
7917         lt_prog_compiler_wl='-Qoption ld ';;
7918       *)
7919         lt_prog_compiler_wl='-Wl,';;
7920       esac
7921       ;;
7922
7923     sunos4*)
7924       lt_prog_compiler_wl='-Qoption ld '
7925       lt_prog_compiler_pic='-PIC'
7926       lt_prog_compiler_static='-Bstatic'
7927       ;;
7928
7929     sysv4 | sysv4.2uw2* | sysv4.3*)
7930       lt_prog_compiler_wl='-Wl,'
7931       lt_prog_compiler_pic='-KPIC'
7932       lt_prog_compiler_static='-Bstatic'
7933       ;;
7934
7935     sysv4*MP*)
7936       if test -d /usr/nec ;then
7937         lt_prog_compiler_pic='-Kconform_pic'
7938         lt_prog_compiler_static='-Bstatic'
7939       fi
7940       ;;
7941
7942     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7943       lt_prog_compiler_wl='-Wl,'
7944       lt_prog_compiler_pic='-KPIC'
7945       lt_prog_compiler_static='-Bstatic'
7946       ;;
7947
7948     unicos*)
7949       lt_prog_compiler_wl='-Wl,'
7950       lt_prog_compiler_can_build_shared=no
7951       ;;
7952
7953     uts4*)
7954       lt_prog_compiler_pic='-pic'
7955       lt_prog_compiler_static='-Bstatic'
7956       ;;
7957
7958     *)
7959       lt_prog_compiler_can_build_shared=no
7960       ;;
7961     esac
7962   fi
7963
7964 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7965 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7966
7967 #
7968 # Check to make sure the PIC flag actually works.
7969 #
7970 if test -n "$lt_prog_compiler_pic"; then
7971
7972 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7974 if test "${lt_prog_compiler_pic_works+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   lt_prog_compiler_pic_works=no
7978   ac_outfile=conftest.$ac_objext
7979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7980    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7981    # Insert the option either (1) after the last *FLAGS variable, or
7982    # (2) before a word containing "conftest.", or (3) at the end.
7983    # Note that $ac_compile itself does not contain backslashes and begins
7984    # with a dollar sign (not a hyphen), so the echo should work correctly.
7985    # The option is referenced via a variable to avoid confusing sed.
7986    lt_compile=`echo "$ac_compile" | $SED \
7987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989    -e 's:$: $lt_compiler_flag:'`
7990    (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991    (eval "$lt_compile" 2>conftest.err)
7992    ac_status=$?
7993    cat conftest.err >&5
7994    echo "$as_me:7994: \$? = $ac_status" >&5
7995    if (exit $ac_status) && test -s "$ac_outfile"; then
7996      # The compiler can only warn and ignore the option if not recognized
7997      # So say no if there are warnings other than the usual output.
7998      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7999      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8000      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8001        lt_prog_compiler_pic_works=yes
8002      fi
8003    fi
8004    $rm conftest*
8005
8006 fi
8007 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8008 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8009
8010 if test x"$lt_prog_compiler_pic_works" = xyes; then
8011     case $lt_prog_compiler_pic in
8012      "" | " "*) ;;
8013      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8014      esac
8015 else
8016     lt_prog_compiler_pic=
8017      lt_prog_compiler_can_build_shared=no
8018 fi
8019
8020 fi
8021 case $host_os in
8022   # For platforms which do not support PIC, -DPIC is meaningless:
8023   *djgpp*)
8024     lt_prog_compiler_pic=
8025     ;;
8026   *)
8027     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8028     ;;
8029 esac
8030
8031 #
8032 # Check to make sure the static flag actually works.
8033 #
8034 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8035 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8036 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8037 if test "${lt_prog_compiler_static_works+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   lt_prog_compiler_static_works=no
8041    save_LDFLAGS="$LDFLAGS"
8042    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8043    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8044    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8045      # The linker can only warn and ignore the option if not recognized
8046      # So say no if there are warnings
8047      if test -s conftest.err; then
8048        # Append any errors to the config.log.
8049        cat conftest.err 1>&5
8050        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8051        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8052        if diff conftest.exp conftest.er2 >/dev/null; then
8053          lt_prog_compiler_static_works=yes
8054        fi
8055      else
8056        lt_prog_compiler_static_works=yes
8057      fi
8058    fi
8059    $rm conftest*
8060    LDFLAGS="$save_LDFLAGS"
8061
8062 fi
8063 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8064 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8065
8066 if test x"$lt_prog_compiler_static_works" = xyes; then
8067     :
8068 else
8069     lt_prog_compiler_static=
8070 fi
8071
8072
8073 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8075 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   lt_cv_prog_compiler_c_o=no
8079    $rm -r conftest 2>/dev/null
8080    mkdir conftest
8081    cd conftest
8082    mkdir out
8083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8084
8085    lt_compiler_flag="-o out/conftest2.$ac_objext"
8086    # Insert the option either (1) after the last *FLAGS variable, or
8087    # (2) before a word containing "conftest.", or (3) at the end.
8088    # Note that $ac_compile itself does not contain backslashes and begins
8089    # with a dollar sign (not a hyphen), so the echo should work correctly.
8090    lt_compile=`echo "$ac_compile" | $SED \
8091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8093    -e 's:$: $lt_compiler_flag:'`
8094    (eval echo "\"\$as_me:8094: $lt_compile\"" >&5)
8095    (eval "$lt_compile" 2>out/conftest.err)
8096    ac_status=$?
8097    cat out/conftest.err >&5
8098    echo "$as_me:8098: \$? = $ac_status" >&5
8099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8100    then
8101      # The compiler can only warn and ignore the option if not recognized
8102      # So say no if there are warnings
8103      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8104      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8105      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8106        lt_cv_prog_compiler_c_o=yes
8107      fi
8108    fi
8109    chmod u+w . 2>&5
8110    $rm conftest*
8111    # SGI C++ compiler will create directory out/ii_files/ for
8112    # template instantiation
8113    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8114    $rm out/* && rmdir out
8115    cd ..
8116    rmdir conftest
8117    $rm conftest*
8118
8119 fi
8120 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8122
8123
8124 hard_links="nottested"
8125 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8126   # do not overwrite the value of need_locks provided by the user
8127   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8129   hard_links=yes
8130   $rm conftest*
8131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8132   touch conftest.a
8133   ln conftest.a conftest.b 2>&5 || hard_links=no
8134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8135   { echo "$as_me:$LINENO: result: $hard_links" >&5
8136 echo "${ECHO_T}$hard_links" >&6; }
8137   if test "$hard_links" = no; then
8138     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8140     need_locks=warn
8141   fi
8142 else
8143   need_locks=no
8144 fi
8145
8146 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8148
8149   runpath_var=
8150   allow_undefined_flag=
8151   enable_shared_with_static_runtimes=no
8152   archive_cmds=
8153   archive_expsym_cmds=
8154   old_archive_From_new_cmds=
8155   old_archive_from_expsyms_cmds=
8156   export_dynamic_flag_spec=
8157   whole_archive_flag_spec=
8158   thread_safe_flag_spec=
8159   hardcode_libdir_flag_spec=
8160   hardcode_libdir_flag_spec_ld=
8161   hardcode_libdir_separator=
8162   hardcode_direct=no
8163   hardcode_minus_L=no
8164   hardcode_shlibpath_var=unsupported
8165   link_all_deplibs=unknown
8166   hardcode_automatic=no
8167   module_cmds=
8168   module_expsym_cmds=
8169   always_export_symbols=no
8170   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8171   # include_expsyms should be a list of space-separated symbols to be *always*
8172   # included in the symbol list
8173   include_expsyms=
8174   # exclude_expsyms can be an extended regexp of symbols to exclude
8175   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8176   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8177   # as well as any symbol that contains `d'.
8178   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8179   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8180   # platforms (ab)use it in PIC code, but their linkers get confused if
8181   # the symbol is explicitly referenced.  Since portable code cannot
8182   # rely on this symbol name, it's probably fine to never include it in
8183   # preloaded symbol tables.
8184   extract_expsyms_cmds=
8185   # Just being paranoid about ensuring that cc_basename is set.
8186   for cc_temp in $compiler""; do
8187   case $cc_temp in
8188     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8189     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8190     \-*) ;;
8191     *) break;;
8192   esac
8193 done
8194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8195
8196   case $host_os in
8197   cygwin* | mingw* | pw32*)
8198     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8199     # When not using gcc, we currently assume that we are using
8200     # Microsoft Visual C++.
8201     if test "$GCC" != yes; then
8202       with_gnu_ld=no
8203     fi
8204     ;;
8205   interix*)
8206     # we just hope/assume this is gcc and not c89 (= MSVC++)
8207     with_gnu_ld=yes
8208     ;;
8209   openbsd*)
8210     with_gnu_ld=no
8211     ;;
8212   esac
8213
8214   ld_shlibs=yes
8215   if test "$with_gnu_ld" = yes; then
8216     # If archive_cmds runs LD, not CC, wlarc should be empty
8217     wlarc='${wl}'
8218
8219     # Set some defaults for GNU ld with shared library support. These
8220     # are reset later if shared libraries are not supported. Putting them
8221     # here allows them to be overridden if necessary.
8222     runpath_var=LD_RUN_PATH
8223     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8224     export_dynamic_flag_spec='${wl}--export-dynamic'
8225     # ancient GNU ld didn't support --whole-archive et. al.
8226     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8227         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8228       else
8229         whole_archive_flag_spec=
8230     fi
8231     supports_anon_versioning=no
8232     case `$LD -v 2>/dev/null` in
8233       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8234       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8235       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8236       *\ 2.11.*) ;; # other 2.11 versions
8237       *) supports_anon_versioning=yes ;;
8238     esac
8239
8240     # See if GNU ld supports shared libraries.
8241     case $host_os in
8242     aix3* | aix4* | aix5*)
8243       # On AIX/PPC, the GNU linker is very broken
8244       if test "$host_cpu" != ia64; then
8245         ld_shlibs=no
8246         cat <<EOF 1>&2
8247
8248 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8249 *** to be unable to reliably create shared libraries on AIX.
8250 *** Therefore, libtool is disabling shared libraries support.  If you
8251 *** really care for shared libraries, you may want to modify your PATH
8252 *** so that a non-GNU linker is found, and then restart.
8253
8254 EOF
8255       fi
8256       ;;
8257
8258     amigaos*)
8259       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)'
8260       hardcode_libdir_flag_spec='-L$libdir'
8261       hardcode_minus_L=yes
8262
8263       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8264       # that the semantics of dynamic libraries on AmigaOS, at least up
8265       # to version 4, is to share data among multiple programs linked
8266       # with the same dynamic library.  Since this doesn't match the
8267       # behavior of shared libraries on other platforms, we can't use
8268       # them.
8269       ld_shlibs=no
8270       ;;
8271
8272     beos*)
8273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274         allow_undefined_flag=unsupported
8275         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8276         # support --undefined.  This deserves some investigation.  FIXME
8277         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278       else
8279         ld_shlibs=no
8280       fi
8281       ;;
8282
8283     cygwin* | mingw* | pw32*)
8284       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8285       # as there is no search path for DLLs.
8286       hardcode_libdir_flag_spec='-L$libdir'
8287       allow_undefined_flag=unsupported
8288       always_export_symbols=no
8289       enable_shared_with_static_runtimes=yes
8290       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8291
8292       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294         # If the export-symbols file already is a .def file (1st line
8295         # is EXPORTS), use it as is; otherwise, prepend...
8296         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8297           cp $export_symbols $output_objdir/$soname.def;
8298         else
8299           echo EXPORTS > $output_objdir/$soname.def;
8300           cat $export_symbols >> $output_objdir/$soname.def;
8301         fi~
8302         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8303       else
8304         ld_shlibs=no
8305       fi
8306       ;;
8307
8308     interix[3-9]*)
8309       hardcode_direct=no
8310       hardcode_shlibpath_var=no
8311       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8312       export_dynamic_flag_spec='${wl}-E'
8313       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8314       # Instead, shared libraries are loaded at an image base (0x10000000 by
8315       # default) and relocated if they conflict, which is a slow very memory
8316       # consuming and fragmenting process.  To avoid this, we pick a random,
8317       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8318       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8319       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8320       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'
8321       ;;
8322
8323     gnu* | linux* | k*bsd*-gnu)
8324       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8325         tmp_addflag=
8326         case $cc_basename,$host_cpu in
8327         pgcc*)                          # Portland Group C compiler
8328           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'
8329           tmp_addflag=' $pic_flag'
8330           ;;
8331         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8332           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'
8333           tmp_addflag=' $pic_flag -Mnomain' ;;
8334         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8335           tmp_addflag=' -i_dynamic' ;;
8336         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8337           tmp_addflag=' -i_dynamic -nofor_main' ;;
8338         ifc* | ifort*)                  # Intel Fortran compiler
8339           tmp_addflag=' -nofor_main' ;;
8340         esac
8341         case `$CC -V 2>&1 | sed 5q` in
8342         *Sun\ C*)                       # Sun C 5.9
8343           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'
8344           tmp_sharedflag='-G' ;;
8345         *Sun\ F*)                       # Sun Fortran 8.3
8346           tmp_sharedflag='-G' ;;
8347         *)
8348           tmp_sharedflag='-shared' ;;
8349         esac
8350         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8351
8352         if test $supports_anon_versioning = yes; then
8353           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8354   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8355   $echo "local: *; };" >> $output_objdir/$libname.ver~
8356           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8357         fi
8358         link_all_deplibs=no
8359       else
8360         ld_shlibs=no
8361       fi
8362       ;;
8363
8364     netbsd* | netbsdelf*-gnu)
8365       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8366         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8367         wlarc=
8368       else
8369         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8371       fi
8372       ;;
8373
8374     solaris*)
8375       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8376         ld_shlibs=no
8377         cat <<EOF 1>&2
8378
8379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8380 *** create shared libraries on Solaris systems.  Therefore, libtool
8381 *** is disabling shared libraries support.  We urge you to upgrade GNU
8382 *** binutils to release 2.9.1 or newer.  Another option is to modify
8383 *** your PATH or compiler configuration so that the native linker is
8384 *** used, and then restart.
8385
8386 EOF
8387       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8388         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8389         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8390       else
8391         ld_shlibs=no
8392       fi
8393       ;;
8394
8395     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8396       case `$LD -v 2>&1` in
8397         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8398         ld_shlibs=no
8399         cat <<_LT_EOF 1>&2
8400
8401 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8402 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8403 *** is disabling shared libraries support.  We urge you to upgrade GNU
8404 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8405 *** your PATH or compiler configuration so that the native linker is
8406 *** used, and then restart.
8407
8408 _LT_EOF
8409         ;;
8410         *)
8411           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8412             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8413             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8414             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8415           else
8416             ld_shlibs=no
8417           fi
8418         ;;
8419       esac
8420       ;;
8421
8422     sunos4*)
8423       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8424       wlarc=
8425       hardcode_direct=yes
8426       hardcode_shlibpath_var=no
8427       ;;
8428
8429     *)
8430       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8431         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8432         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8433       else
8434         ld_shlibs=no
8435       fi
8436       ;;
8437     esac
8438
8439     if test "$ld_shlibs" = no; then
8440       runpath_var=
8441       hardcode_libdir_flag_spec=
8442       export_dynamic_flag_spec=
8443       whole_archive_flag_spec=
8444     fi
8445   else
8446     # PORTME fill in a description of your system's linker (not GNU ld)
8447     case $host_os in
8448     aix3*)
8449       allow_undefined_flag=unsupported
8450       always_export_symbols=yes
8451       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'
8452       # Note: this linker hardcodes the directories in LIBPATH if there
8453       # are no directories specified by -L.
8454       hardcode_minus_L=yes
8455       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8456         # Neither direct hardcoding nor static linking is supported with a
8457         # broken collect2.
8458         hardcode_direct=unsupported
8459       fi
8460       ;;
8461
8462     aix4* | aix5*)
8463       if test "$host_cpu" = ia64; then
8464         # On IA64, the linker does run time linking by default, so we don't
8465         # have to do anything special.
8466         aix_use_runtimelinking=no
8467         exp_sym_flag='-Bexport'
8468         no_entry_flag=""
8469       else
8470         # If we're using GNU nm, then we don't want the "-C" option.
8471         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8472         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8473           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'
8474         else
8475           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'
8476         fi
8477         aix_use_runtimelinking=no
8478
8479         # Test if we are trying to use run time linking or normal
8480         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8481         # need to do runtime linking.
8482         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8483           for ld_flag in $LDFLAGS; do
8484           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8485             aix_use_runtimelinking=yes
8486             break
8487           fi
8488           done
8489           ;;
8490         esac
8491
8492         exp_sym_flag='-bexport'
8493         no_entry_flag='-bnoentry'
8494       fi
8495
8496       # When large executables or shared objects are built, AIX ld can
8497       # have problems creating the table of contents.  If linking a library
8498       # or program results in "error TOC overflow" add -mminimal-toc to
8499       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8500       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8501
8502       archive_cmds=''
8503       hardcode_direct=yes
8504       hardcode_libdir_separator=':'
8505       link_all_deplibs=yes
8506
8507       if test "$GCC" = yes; then
8508         case $host_os in aix4.[012]|aix4.[012].*)
8509         # We only want to do this on AIX 4.2 and lower, the check
8510         # below for broken collect2 doesn't work under 4.3+
8511           collect2name=`${CC} -print-prog-name=collect2`
8512           if test -f "$collect2name" && \
8513            strings "$collect2name" | grep resolve_lib_name >/dev/null
8514           then
8515           # We have reworked collect2
8516           :
8517           else
8518           # We have old collect2
8519           hardcode_direct=unsupported
8520           # It fails to find uninstalled libraries when the uninstalled
8521           # path is not listed in the libpath.  Setting hardcode_minus_L
8522           # to unsupported forces relinking
8523           hardcode_minus_L=yes
8524           hardcode_libdir_flag_spec='-L$libdir'
8525           hardcode_libdir_separator=
8526           fi
8527           ;;
8528         esac
8529         shared_flag='-shared'
8530         if test "$aix_use_runtimelinking" = yes; then
8531           shared_flag="$shared_flag "'${wl}-G'
8532         fi
8533       else
8534         # not using gcc
8535         if test "$host_cpu" = ia64; then
8536         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8537         # chokes on -Wl,-G. The following line is correct:
8538           shared_flag='-G'
8539         else
8540           if test "$aix_use_runtimelinking" = yes; then
8541             shared_flag='${wl}-G'
8542           else
8543             shared_flag='${wl}-bM:SRE'
8544           fi
8545         fi
8546       fi
8547
8548       # It seems that -bexpall does not export symbols beginning with
8549       # underscore (_), so it is better to generate a list of symbols to export.
8550       always_export_symbols=yes
8551       if test "$aix_use_runtimelinking" = yes; then
8552         # Warning - without using the other runtime loading flags (-brtl),
8553         # -berok will link without error, but may produce a broken library.
8554         allow_undefined_flag='-berok'
8555        # Determine the default libpath from the value encoded in an empty executable.
8556        cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562
8563 int
8564 main ()
8565 {
8566
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (ac_try="$ac_link"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_link") 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } && {
8585          test -z "$ac_c_werror_flag" ||
8586          test ! -s conftest.err
8587        } && test -s conftest$ac_exeext &&
8588        $as_test_x conftest$ac_exeext; then
8589
8590 lt_aix_libpath_sed='
8591     /Import File Strings/,/^$/ {
8592         /^0/ {
8593             s/^0  *\(.*\)$/\1/
8594             p
8595         }
8596     }'
8597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 # Check for a 64-bit object if we didn't find anything.
8599 if test -z "$aix_libpath"; then
8600   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8601 fi
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606
8607 fi
8608
8609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8610       conftest$ac_exeext conftest.$ac_ext
8611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8612
8613        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8614         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"
8615        else
8616         if test "$host_cpu" = ia64; then
8617           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8618           allow_undefined_flag="-z nodefs"
8619           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"
8620         else
8621          # Determine the default libpath from the value encoded in an empty executable.
8622          cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628
8629 int
8630 main ()
8631 {
8632
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (ac_try="$ac_link"
8639 case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_link") 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } && {
8651          test -z "$ac_c_werror_flag" ||
8652          test ! -s conftest.err
8653        } && test -s conftest$ac_exeext &&
8654        $as_test_x conftest$ac_exeext; then
8655
8656 lt_aix_libpath_sed='
8657     /Import File Strings/,/^$/ {
8658         /^0/ {
8659             s/^0  *\(.*\)$/\1/
8660             p
8661         }
8662     }'
8663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8664 # Check for a 64-bit object if we didn't find anything.
8665 if test -z "$aix_libpath"; then
8666   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667 fi
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672
8673 fi
8674
8675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676       conftest$ac_exeext conftest.$ac_ext
8677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8678
8679          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8680           # Warning - without using the other run time loading flags,
8681           # -berok will link without error, but may produce a broken library.
8682           no_undefined_flag=' ${wl}-bernotok'
8683           allow_undefined_flag=' ${wl}-berok'
8684           # Exported symbols can be pulled into shared objects from archives
8685           whole_archive_flag_spec='$convenience'
8686           archive_cmds_need_lc=yes
8687           # This is similar to how AIX traditionally builds its shared libraries.
8688           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'
8689         fi
8690       fi
8691       ;;
8692
8693     amigaos*)
8694       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)'
8695       hardcode_libdir_flag_spec='-L$libdir'
8696       hardcode_minus_L=yes
8697       # see comment about different semantics on the GNU ld section
8698       ld_shlibs=no
8699       ;;
8700
8701     bsdi[45]*)
8702       export_dynamic_flag_spec=-rdynamic
8703       ;;
8704
8705     cygwin* | mingw* | pw32*)
8706       # When not using gcc, we currently assume that we are using
8707       # Microsoft Visual C++.
8708       # hardcode_libdir_flag_spec is actually meaningless, as there is
8709       # no search path for DLLs.
8710       hardcode_libdir_flag_spec=' '
8711       allow_undefined_flag=unsupported
8712       # Tell ltmain to make .lib files, not .a files.
8713       libext=lib
8714       # Tell ltmain to make .dll files, not .so files.
8715       shrext_cmds=".dll"
8716       # FIXME: Setting linknames here is a bad hack.
8717       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8718       # The linker will automatically build a .lib file if we build a DLL.
8719       old_archive_From_new_cmds='true'
8720       # FIXME: Should let the user specify the lib program.
8721       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8722       fix_srcfile_path='`cygpath -w "$srcfile"`'
8723       enable_shared_with_static_runtimes=yes
8724       ;;
8725
8726     darwin* | rhapsody*)
8727       case $host_os in
8728         rhapsody* | darwin1.[012])
8729          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8730          ;;
8731        *) # Darwin 1.3 on
8732          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8733            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8734          else
8735            case ${MACOSX_DEPLOYMENT_TARGET} in
8736              10.[012])
8737                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8738                ;;
8739              10.*)
8740                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8741                ;;
8742            esac
8743          fi
8744          ;;
8745       esac
8746       archive_cmds_need_lc=no
8747       hardcode_direct=no
8748       hardcode_automatic=yes
8749       hardcode_shlibpath_var=unsupported
8750       whole_archive_flag_spec=''
8751       link_all_deplibs=yes
8752     if test "$GCC" = yes ; then
8753         output_verbose_link_cmd='echo'
8754         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8755       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8756       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8757       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8758       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}'
8759     else
8760       case $cc_basename in
8761         xlc*)
8762          output_verbose_link_cmd='echo'
8763          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8764          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8765           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8766          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}'
8767           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}'
8768           ;;
8769        *)
8770          ld_shlibs=no
8771           ;;
8772       esac
8773     fi
8774       ;;
8775
8776     dgux*)
8777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778       hardcode_libdir_flag_spec='-L$libdir'
8779       hardcode_shlibpath_var=no
8780       ;;
8781
8782     freebsd1*)
8783       ld_shlibs=no
8784       ;;
8785
8786     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8787     # support.  Future versions do this automatically, but an explicit c++rt0.o
8788     # does not break anything, and helps significantly (at the cost of a little
8789     # extra space).
8790     freebsd2.2*)
8791       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8792       hardcode_libdir_flag_spec='-R$libdir'
8793       hardcode_direct=yes
8794       hardcode_shlibpath_var=no
8795       ;;
8796
8797     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8798     freebsd2*)
8799       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800       hardcode_direct=yes
8801       hardcode_minus_L=yes
8802       hardcode_shlibpath_var=no
8803       ;;
8804
8805     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8806     freebsd* | dragonfly*)
8807       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8808       hardcode_libdir_flag_spec='-R$libdir'
8809       hardcode_direct=yes
8810       hardcode_shlibpath_var=no
8811       ;;
8812
8813     hpux9*)
8814       if test "$GCC" = yes; then
8815         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'
8816       else
8817         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'
8818       fi
8819       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8820       hardcode_libdir_separator=:
8821       hardcode_direct=yes
8822
8823       # hardcode_minus_L: Not really in the search PATH,
8824       # but as the default location of the library.
8825       hardcode_minus_L=yes
8826       export_dynamic_flag_spec='${wl}-E'
8827       ;;
8828
8829     hpux10*)
8830       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8831         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8832       else
8833         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8834       fi
8835       if test "$with_gnu_ld" = no; then
8836         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8837         hardcode_libdir_separator=:
8838
8839         hardcode_direct=yes
8840         export_dynamic_flag_spec='${wl}-E'
8841
8842         # hardcode_minus_L: Not really in the search PATH,
8843         # but as the default location of the library.
8844         hardcode_minus_L=yes
8845       fi
8846       ;;
8847
8848     hpux11*)
8849       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8850         case $host_cpu in
8851         hppa*64*)
8852           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853           ;;
8854         ia64*)
8855           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8856           ;;
8857         *)
8858           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8859           ;;
8860         esac
8861       else
8862         case $host_cpu in
8863         hppa*64*)
8864           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8865           ;;
8866         ia64*)
8867           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8868           ;;
8869         *)
8870           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8871           ;;
8872         esac
8873       fi
8874       if test "$with_gnu_ld" = no; then
8875         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8876         hardcode_libdir_separator=:
8877
8878         case $host_cpu in
8879         hppa*64*|ia64*)
8880           hardcode_libdir_flag_spec_ld='+b $libdir'
8881           hardcode_direct=no
8882           hardcode_shlibpath_var=no
8883           ;;
8884         *)
8885           hardcode_direct=yes
8886           export_dynamic_flag_spec='${wl}-E'
8887
8888           # hardcode_minus_L: Not really in the search PATH,
8889           # but as the default location of the library.
8890           hardcode_minus_L=yes
8891           ;;
8892         esac
8893       fi
8894       ;;
8895
8896     irix5* | irix6* | nonstopux*)
8897       if test "$GCC" = yes; then
8898         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'
8899       else
8900         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'
8901         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8902       fi
8903       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904       hardcode_libdir_separator=:
8905       link_all_deplibs=yes
8906       ;;
8907
8908     netbsd* | netbsdelf*-gnu)
8909       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8910         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8911       else
8912         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8913       fi
8914       hardcode_libdir_flag_spec='-R$libdir'
8915       hardcode_direct=yes
8916       hardcode_shlibpath_var=no
8917       ;;
8918
8919     newsos6)
8920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921       hardcode_direct=yes
8922       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923       hardcode_libdir_separator=:
8924       hardcode_shlibpath_var=no
8925       ;;
8926
8927     openbsd*)
8928       if test -f /usr/libexec/ld.so; then
8929         hardcode_direct=yes
8930         hardcode_shlibpath_var=no
8931         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8932           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8934           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935           export_dynamic_flag_spec='${wl}-E'
8936         else
8937           case $host_os in
8938            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8939              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940              hardcode_libdir_flag_spec='-R$libdir'
8941              ;;
8942            *)
8943              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8945              ;;
8946           esac
8947         fi
8948       else
8949         ld_shlibs=no
8950       fi
8951       ;;
8952
8953     os2*)
8954       hardcode_libdir_flag_spec='-L$libdir'
8955       hardcode_minus_L=yes
8956       allow_undefined_flag=unsupported
8957       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'
8958       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8959       ;;
8960
8961     osf3*)
8962       if test "$GCC" = yes; then
8963         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8964         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'
8965       else
8966         allow_undefined_flag=' -expect_unresolved \*'
8967         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'
8968       fi
8969       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970       hardcode_libdir_separator=:
8971       ;;
8972
8973     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8974       if test "$GCC" = yes; then
8975         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8976         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'
8977         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8978       else
8979         allow_undefined_flag=' -expect_unresolved \*'
8980         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'
8981         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8982         $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'
8983
8984         # Both c and cxx compiler support -rpath directly
8985         hardcode_libdir_flag_spec='-rpath $libdir'
8986       fi
8987       hardcode_libdir_separator=:
8988       ;;
8989
8990     solaris*)
8991       no_undefined_flag=' -z text'
8992       if test "$GCC" = yes; then
8993         wlarc='${wl}'
8994         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8996           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8997       else
8998         wlarc=''
8999         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9001         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9002       fi
9003       hardcode_libdir_flag_spec='-R$libdir'
9004       hardcode_shlibpath_var=no
9005       case $host_os in
9006       solaris2.[0-5] | solaris2.[0-5].*) ;;
9007       *)
9008         # The compiler driver will combine and reorder linker options,
9009         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9010         # but is careful enough not to reorder.
9011         # Supported since Solaris 2.6 (maybe 2.5.1?)
9012         if test "$GCC" = yes; then
9013           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9014         else
9015           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9016         fi
9017         ;;
9018       esac
9019       link_all_deplibs=yes
9020       ;;
9021
9022     sunos4*)
9023       if test "x$host_vendor" = xsequent; then
9024         # Use $CC to link under sequent, because it throws in some extra .o
9025         # files that make .init and .fini sections work.
9026         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9027       else
9028         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9029       fi
9030       hardcode_libdir_flag_spec='-L$libdir'
9031       hardcode_direct=yes
9032       hardcode_minus_L=yes
9033       hardcode_shlibpath_var=no
9034       ;;
9035
9036     sysv4)
9037       case $host_vendor in
9038         sni)
9039           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040           hardcode_direct=yes # is this really true???
9041         ;;
9042         siemens)
9043           ## LD is ld it makes a PLAMLIB
9044           ## CC just makes a GrossModule.
9045           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9046           reload_cmds='$CC -r -o $output$reload_objs'
9047           hardcode_direct=no
9048         ;;
9049         motorola)
9050           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9052         ;;
9053       esac
9054       runpath_var='LD_RUN_PATH'
9055       hardcode_shlibpath_var=no
9056       ;;
9057
9058     sysv4.3*)
9059       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060       hardcode_shlibpath_var=no
9061       export_dynamic_flag_spec='-Bexport'
9062       ;;
9063
9064     sysv4*MP*)
9065       if test -d /usr/nec; then
9066         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067         hardcode_shlibpath_var=no
9068         runpath_var=LD_RUN_PATH
9069         hardcode_runpath_var=yes
9070         ld_shlibs=yes
9071       fi
9072       ;;
9073
9074     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9075       no_undefined_flag='${wl}-z,text'
9076       archive_cmds_need_lc=no
9077       hardcode_shlibpath_var=no
9078       runpath_var='LD_RUN_PATH'
9079
9080       if test "$GCC" = yes; then
9081         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083       else
9084         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086       fi
9087       ;;
9088
9089     sysv5* | sco3.2v5* | sco5v6*)
9090       # Note: We can NOT use -z defs as we might desire, because we do not
9091       # link with -lc, and that would cause any symbols used from libc to
9092       # always be unresolved, which means just about no library would
9093       # ever link correctly.  If we're not using GNU ld we use -z text
9094       # though, which does catch some bad symbols but isn't as heavy-handed
9095       # as -z defs.
9096       no_undefined_flag='${wl}-z,text'
9097       allow_undefined_flag='${wl}-z,nodefs'
9098       archive_cmds_need_lc=no
9099       hardcode_shlibpath_var=no
9100       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9101       hardcode_libdir_separator=':'
9102       link_all_deplibs=yes
9103       export_dynamic_flag_spec='${wl}-Bexport'
9104       runpath_var='LD_RUN_PATH'
9105
9106       if test "$GCC" = yes; then
9107         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109       else
9110         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112       fi
9113       ;;
9114
9115     uts4*)
9116       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117       hardcode_libdir_flag_spec='-L$libdir'
9118       hardcode_shlibpath_var=no
9119       ;;
9120
9121     *)
9122       ld_shlibs=no
9123       ;;
9124     esac
9125   fi
9126
9127 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9128 echo "${ECHO_T}$ld_shlibs" >&6; }
9129 test "$ld_shlibs" = no && can_build_shared=no
9130
9131 #
9132 # Do we need to explicitly link libc?
9133 #
9134 case "x$archive_cmds_need_lc" in
9135 x|xyes)
9136   # Assume -lc should be added
9137   archive_cmds_need_lc=yes
9138
9139   if test "$enable_shared" = yes && test "$GCC" = yes; then
9140     case $archive_cmds in
9141     *'~'*)
9142       # FIXME: we may have to deal with multi-command sequences.
9143       ;;
9144     '$CC '*)
9145       # Test whether the compiler implicitly links with -lc since on some
9146       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9147       # to ld, don't add -lc before -lgcc.
9148       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9149 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9150       $rm conftest*
9151       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154   (eval $ac_compile) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); } 2>conftest.err; then
9158         soname=conftest
9159         lib=conftest
9160         libobjs=conftest.$ac_objext
9161         deplibs=
9162         wl=$lt_prog_compiler_wl
9163         pic_flag=$lt_prog_compiler_pic
9164         compiler_flags=-v
9165         linker_flags=-v
9166         verstring=
9167         output_objdir=.
9168         libname=conftest
9169         lt_save_allow_undefined_flag=$allow_undefined_flag
9170         allow_undefined_flag=
9171         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9172   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }
9176         then
9177           archive_cmds_need_lc=no
9178         else
9179           archive_cmds_need_lc=yes
9180         fi
9181         allow_undefined_flag=$lt_save_allow_undefined_flag
9182       else
9183         cat conftest.err 1>&5
9184       fi
9185       $rm conftest*
9186       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9187 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9188       ;;
9189     esac
9190   fi
9191   ;;
9192 esac
9193
9194 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9195 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9196 library_names_spec=
9197 libname_spec='lib$name'
9198 soname_spec=
9199 shrext_cmds=".so"
9200 postinstall_cmds=
9201 postuninstall_cmds=
9202 finish_cmds=
9203 finish_eval=
9204 shlibpath_var=
9205 shlibpath_overrides_runpath=unknown
9206 version_type=none
9207 dynamic_linker="$host_os ld.so"
9208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9209
9210 if test "$GCC" = yes; then
9211   case $host_os in
9212     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9213     *) lt_awk_arg="/^libraries:/" ;;
9214   esac
9215   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9216   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9217     # if the path contains ";" then we assume it to be the separator
9218     # otherwise default to the standard path separator (i.e. ":") - it is
9219     # assumed that no part of a normal pathname contains ";" but that should
9220     # okay in the real world where ";" in dirpaths is itself problematic.
9221     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9222   else
9223     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9224   fi
9225   # Ok, now we have the path, separated by spaces, we can step through it
9226   # and add multilib dir if necessary.
9227   lt_tmp_lt_search_path_spec=
9228   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9229   for lt_sys_path in $lt_search_path_spec; do
9230     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9231       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9232     else
9233       test -d "$lt_sys_path" && \
9234         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9235     fi
9236   done
9237   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9238 BEGIN {RS=" "; FS="/|\n";} {
9239   lt_foo="";
9240   lt_count=0;
9241   for (lt_i = NF; lt_i > 0; lt_i--) {
9242     if ($lt_i != "" && $lt_i != ".") {
9243       if ($lt_i == "..") {
9244         lt_count++;
9245       } else {
9246         if (lt_count == 0) {
9247           lt_foo="/" $lt_i lt_foo;
9248         } else {
9249           lt_count--;
9250         }
9251       }
9252     }
9253   }
9254   if (lt_foo != "") { lt_freq[lt_foo]++; }
9255   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9256 }'`
9257   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9258 else
9259   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9260 fi
9261 need_lib_prefix=unknown
9262 hardcode_into_libs=no
9263
9264 # when you set need_version to no, make sure it does not cause -set_version
9265 # flags to be left without arguments
9266 need_version=unknown
9267
9268 case $host_os in
9269 aix3*)
9270   version_type=linux
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9272   shlibpath_var=LIBPATH
9273
9274   # AIX 3 has no versioning support, so we append a major version to the name.
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   ;;
9277
9278 aix4* | aix5*)
9279   version_type=linux
9280   need_lib_prefix=no
9281   need_version=no
9282   hardcode_into_libs=yes
9283   if test "$host_cpu" = ia64; then
9284     # AIX 5 supports IA64
9285     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9286     shlibpath_var=LD_LIBRARY_PATH
9287   else
9288     # With GCC up to 2.95.x, collect2 would create an import file
9289     # for dependence libraries.  The import file would start with
9290     # the line `#! .'.  This would cause the generated library to
9291     # depend on `.', always an invalid library.  This was fixed in
9292     # development snapshots of GCC prior to 3.0.
9293     case $host_os in
9294       aix4 | aix4.[01] | aix4.[01].*)
9295       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9296            echo ' yes '
9297            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9298         :
9299       else
9300         can_build_shared=no
9301       fi
9302       ;;
9303     esac
9304     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9305     # soname into executable. Probably we can add versioning support to
9306     # collect2, so additional links can be useful in future.
9307     if test "$aix_use_runtimelinking" = yes; then
9308       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9309       # instead of lib<name>.a to let people know that these are not
9310       # typical AIX shared libraries.
9311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312     else
9313       # We preserve .a as extension for shared libraries through AIX4.2
9314       # and later when we are not doing run time linking.
9315       library_names_spec='${libname}${release}.a $libname.a'
9316       soname_spec='${libname}${release}${shared_ext}$major'
9317     fi
9318     shlibpath_var=LIBPATH
9319   fi
9320   ;;
9321
9322 amigaos*)
9323   library_names_spec='$libname.ixlibrary $libname.a'
9324   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9325   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'
9326   ;;
9327
9328 beos*)
9329   library_names_spec='${libname}${shared_ext}'
9330   dynamic_linker="$host_os ld.so"
9331   shlibpath_var=LIBRARY_PATH
9332   ;;
9333
9334 bsdi[45]*)
9335   version_type=linux
9336   need_version=no
9337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338   soname_spec='${libname}${release}${shared_ext}$major'
9339   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9340   shlibpath_var=LD_LIBRARY_PATH
9341   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9342   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9343   # the default ld.so.conf also contains /usr/contrib/lib and
9344   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9345   # libtool to hard-code these into programs
9346   ;;
9347
9348 cygwin* | mingw* | pw32*)
9349   version_type=windows
9350   shrext_cmds=".dll"
9351   need_version=no
9352   need_lib_prefix=no
9353
9354   case $GCC,$host_os in
9355   yes,cygwin* | yes,mingw* | yes,pw32*)
9356     library_names_spec='$libname.dll.a'
9357     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9358     postinstall_cmds='base_file=`basename \${file}`~
9359       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9360       dldir=$destdir/`dirname \$dlpath`~
9361       test -d \$dldir || mkdir -p \$dldir~
9362       $install_prog $dir/$dlname \$dldir/$dlname~
9363       chmod a+x \$dldir/$dlname'
9364     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9365       dlpath=$dir/\$dldll~
9366        $rm \$dlpath'
9367     shlibpath_overrides_runpath=yes
9368
9369     case $host_os in
9370     cygwin*)
9371       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9372       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9374       ;;
9375     mingw*)
9376       # MinGW DLLs use traditional 'lib' prefix
9377       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9378       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9379       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9380         # It is most probably a Windows format PATH printed by
9381         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9382         # path with ; separators, and with drive letters. We can handle the
9383         # drive letters (cygwin fileutils understands them), so leave them,
9384         # especially as we might pass files found there to a mingw objdump,
9385         # which wouldn't understand a cygwinified path. Ahh.
9386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9387       else
9388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9389       fi
9390       ;;
9391     pw32*)
9392       # pw32 DLLs use 'pw' prefix rather than 'lib'
9393       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9394       ;;
9395     esac
9396     ;;
9397
9398   *)
9399     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9400     ;;
9401   esac
9402   dynamic_linker='Win32 ld.exe'
9403   # FIXME: first we should search . and the directory the executable is in
9404   shlibpath_var=PATH
9405   ;;
9406
9407 darwin* | rhapsody*)
9408   dynamic_linker="$host_os dyld"
9409   version_type=darwin
9410   need_lib_prefix=no
9411   need_version=no
9412   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9413   soname_spec='${libname}${release}${major}$shared_ext'
9414   shlibpath_overrides_runpath=yes
9415   shlibpath_var=DYLD_LIBRARY_PATH
9416   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9417
9418   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9419   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9420   ;;
9421
9422 dgux*)
9423   version_type=linux
9424   need_lib_prefix=no
9425   need_version=no
9426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9427   soname_spec='${libname}${release}${shared_ext}$major'
9428   shlibpath_var=LD_LIBRARY_PATH
9429   ;;
9430
9431 freebsd1*)
9432   dynamic_linker=no
9433   ;;
9434
9435 freebsd* | dragonfly*)
9436   # DragonFly does not have aout.  When/if they implement a new
9437   # versioning mechanism, adjust this.
9438   if test -x /usr/bin/objformat; then
9439     objformat=`/usr/bin/objformat`
9440   else
9441     case $host_os in
9442     freebsd[123]*) objformat=aout ;;
9443     *) objformat=elf ;;
9444     esac
9445   fi
9446   version_type=freebsd-$objformat
9447   case $version_type in
9448     freebsd-elf*)
9449       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9450       need_version=no
9451       need_lib_prefix=no
9452       ;;
9453     freebsd-*)
9454       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9455       need_version=yes
9456       ;;
9457   esac
9458   shlibpath_var=LD_LIBRARY_PATH
9459   case $host_os in
9460   freebsd2*)
9461     shlibpath_overrides_runpath=yes
9462     ;;
9463   freebsd3.[01]* | freebsdelf3.[01]*)
9464     shlibpath_overrides_runpath=yes
9465     hardcode_into_libs=yes
9466     ;;
9467   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9468   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9469     shlibpath_overrides_runpath=no
9470     hardcode_into_libs=yes
9471     ;;
9472   *) # from 4.6 on, and DragonFly
9473     shlibpath_overrides_runpath=yes
9474     hardcode_into_libs=yes
9475     ;;
9476   esac
9477   ;;
9478
9479 gnu*)
9480   version_type=linux
9481   need_lib_prefix=no
9482   need_version=no
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9484   soname_spec='${libname}${release}${shared_ext}$major'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   hardcode_into_libs=yes
9487   ;;
9488
9489 hpux9* | hpux10* | hpux11*)
9490   # Give a soname corresponding to the major version so that dld.sl refuses to
9491   # link against other versions.
9492   version_type=sunos
9493   need_lib_prefix=no
9494   need_version=no
9495   case $host_cpu in
9496   ia64*)
9497     shrext_cmds='.so'
9498     hardcode_into_libs=yes
9499     dynamic_linker="$host_os dld.so"
9500     shlibpath_var=LD_LIBRARY_PATH
9501     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503     soname_spec='${libname}${release}${shared_ext}$major'
9504     if test "X$HPUX_IA64_MODE" = X32; then
9505       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9506     else
9507       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9508     fi
9509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9510     ;;
9511    hppa*64*)
9512      shrext_cmds='.sl'
9513      hardcode_into_libs=yes
9514      dynamic_linker="$host_os dld.sl"
9515      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9516      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9517      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518      soname_spec='${libname}${release}${shared_ext}$major'
9519      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9520      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9521      ;;
9522    *)
9523     shrext_cmds='.sl'
9524     dynamic_linker="$host_os dld.sl"
9525     shlibpath_var=SHLIB_PATH
9526     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528     soname_spec='${libname}${release}${shared_ext}$major'
9529     ;;
9530   esac
9531   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9532   postinstall_cmds='chmod 555 $lib'
9533   ;;
9534
9535 interix[3-9]*)
9536   version_type=linux
9537   need_lib_prefix=no
9538   need_version=no
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9542   shlibpath_var=LD_LIBRARY_PATH
9543   shlibpath_overrides_runpath=no
9544   hardcode_into_libs=yes
9545   ;;
9546
9547 irix5* | irix6* | nonstopux*)
9548   case $host_os in
9549     nonstopux*) version_type=nonstopux ;;
9550     *)
9551         if test "$lt_cv_prog_gnu_ld" = yes; then
9552                 version_type=linux
9553         else
9554                 version_type=irix
9555         fi ;;
9556   esac
9557   need_lib_prefix=no
9558   need_version=no
9559   soname_spec='${libname}${release}${shared_ext}$major'
9560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9561   case $host_os in
9562   irix5* | nonstopux*)
9563     libsuff= shlibsuff=
9564     ;;
9565   *)
9566     case $LD in # libtool.m4 will add one of these switches to LD
9567     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9568       libsuff= shlibsuff= libmagic=32-bit;;
9569     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9570       libsuff=32 shlibsuff=N32 libmagic=N32;;
9571     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9572       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9573     *) libsuff= shlibsuff= libmagic=never-match;;
9574     esac
9575     ;;
9576   esac
9577   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9578   shlibpath_overrides_runpath=no
9579   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9580   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9581   hardcode_into_libs=yes
9582   ;;
9583
9584 # No shared lib support for Linux oldld, aout, or coff.
9585 linux*oldld* | linux*aout* | linux*coff*)
9586   dynamic_linker=no
9587   ;;
9588
9589 # This must be Linux ELF.
9590 linux* | k*bsd*-gnu)
9591   version_type=linux
9592   need_lib_prefix=no
9593   need_version=no
9594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595   soname_spec='${libname}${release}${shared_ext}$major'
9596   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9597   shlibpath_var=LD_LIBRARY_PATH
9598   shlibpath_overrides_runpath=no
9599   # This implies no fast_install, which is unacceptable.
9600   # Some rework will be needed to allow for fast_install
9601   # before this can be enabled.
9602   hardcode_into_libs=yes
9603
9604   # Append ld.so.conf contents to the search path
9605   if test -f /etc/ld.so.conf; then
9606     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' ' '`
9607     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9608   fi
9609
9610   # We used to test for /lib/ld.so.1 and disable shared libraries on
9611   # powerpc, because MkLinux only supported shared libraries with the
9612   # GNU dynamic linker.  Since this was broken with cross compilers,
9613   # most powerpc-linux boxes support dynamic linking these days and
9614   # people can always --disable-shared, the test was removed, and we
9615   # assume the GNU/Linux dynamic linker is in use.
9616   dynamic_linker='GNU/Linux ld.so'
9617   ;;
9618
9619 netbsdelf*-gnu)
9620   version_type=linux
9621   need_lib_prefix=no
9622   need_version=no
9623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624   soname_spec='${libname}${release}${shared_ext}$major'
9625   shlibpath_var=LD_LIBRARY_PATH
9626   shlibpath_overrides_runpath=no
9627   hardcode_into_libs=yes
9628   dynamic_linker='NetBSD ld.elf_so'
9629   ;;
9630
9631 netbsd*)
9632   version_type=sunos
9633   need_lib_prefix=no
9634   need_version=no
9635   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9638     dynamic_linker='NetBSD (a.out) ld.so'
9639   else
9640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641     soname_spec='${libname}${release}${shared_ext}$major'
9642     dynamic_linker='NetBSD ld.elf_so'
9643   fi
9644   shlibpath_var=LD_LIBRARY_PATH
9645   shlibpath_overrides_runpath=yes
9646   hardcode_into_libs=yes
9647   ;;
9648
9649 newsos6)
9650   version_type=linux
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652   shlibpath_var=LD_LIBRARY_PATH
9653   shlibpath_overrides_runpath=yes
9654   ;;
9655
9656 nto-qnx*)
9657   version_type=linux
9658   need_lib_prefix=no
9659   need_version=no
9660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661   soname_spec='${libname}${release}${shared_ext}$major'
9662   shlibpath_var=LD_LIBRARY_PATH
9663   shlibpath_overrides_runpath=yes
9664   ;;
9665
9666 openbsd*)
9667   version_type=sunos
9668   sys_lib_dlsearch_path_spec="/usr/lib"
9669   need_lib_prefix=no
9670   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9671   case $host_os in
9672     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9673     *)                         need_version=no  ;;
9674   esac
9675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9677   shlibpath_var=LD_LIBRARY_PATH
9678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9679     case $host_os in
9680       openbsd2.[89] | openbsd2.[89].*)
9681         shlibpath_overrides_runpath=no
9682         ;;
9683       *)
9684         shlibpath_overrides_runpath=yes
9685         ;;
9686       esac
9687   else
9688     shlibpath_overrides_runpath=yes
9689   fi
9690   ;;
9691
9692 os2*)
9693   libname_spec='$name'
9694   shrext_cmds=".dll"
9695   need_lib_prefix=no
9696   library_names_spec='$libname${shared_ext} $libname.a'
9697   dynamic_linker='OS/2 ld.exe'
9698   shlibpath_var=LIBPATH
9699   ;;
9700
9701 osf3* | osf4* | osf5*)
9702   version_type=osf
9703   need_lib_prefix=no
9704   need_version=no
9705   soname_spec='${libname}${release}${shared_ext}$major'
9706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9709   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9710   ;;
9711
9712 rdos*)
9713   dynamic_linker=no
9714   ;;
9715
9716 solaris*)
9717   version_type=linux
9718   need_lib_prefix=no
9719   need_version=no
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721   soname_spec='${libname}${release}${shared_ext}$major'
9722   shlibpath_var=LD_LIBRARY_PATH
9723   shlibpath_overrides_runpath=yes
9724   hardcode_into_libs=yes
9725   # ldd complains unless libraries are executable
9726   postinstall_cmds='chmod +x $lib'
9727   ;;
9728
9729 sunos4*)
9730   version_type=sunos
9731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9732   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9733   shlibpath_var=LD_LIBRARY_PATH
9734   shlibpath_overrides_runpath=yes
9735   if test "$with_gnu_ld" = yes; then
9736     need_lib_prefix=no
9737   fi
9738   need_version=yes
9739   ;;
9740
9741 sysv4 | sysv4.3*)
9742   version_type=linux
9743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744   soname_spec='${libname}${release}${shared_ext}$major'
9745   shlibpath_var=LD_LIBRARY_PATH
9746   case $host_vendor in
9747     sni)
9748       shlibpath_overrides_runpath=no
9749       need_lib_prefix=no
9750       export_dynamic_flag_spec='${wl}-Blargedynsym'
9751       runpath_var=LD_RUN_PATH
9752       ;;
9753     siemens)
9754       need_lib_prefix=no
9755       ;;
9756     motorola)
9757       need_lib_prefix=no
9758       need_version=no
9759       shlibpath_overrides_runpath=no
9760       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9761       ;;
9762   esac
9763   ;;
9764
9765 sysv4*MP*)
9766   if test -d /usr/nec ;then
9767     version_type=linux
9768     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9769     soname_spec='$libname${shared_ext}.$major'
9770     shlibpath_var=LD_LIBRARY_PATH
9771   fi
9772   ;;
9773
9774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9775   version_type=freebsd-elf
9776   need_lib_prefix=no
9777   need_version=no
9778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9779   soname_spec='${libname}${release}${shared_ext}$major'
9780   shlibpath_var=LD_LIBRARY_PATH
9781   hardcode_into_libs=yes
9782   if test "$with_gnu_ld" = yes; then
9783     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9784     shlibpath_overrides_runpath=no
9785   else
9786     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9787     shlibpath_overrides_runpath=yes
9788     case $host_os in
9789       sco3.2v5*)
9790         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9791         ;;
9792     esac
9793   fi
9794   sys_lib_dlsearch_path_spec='/usr/lib'
9795   ;;
9796
9797 uts4*)
9798   version_type=linux
9799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800   soname_spec='${libname}${release}${shared_ext}$major'
9801   shlibpath_var=LD_LIBRARY_PATH
9802   ;;
9803
9804 *)
9805   dynamic_linker=no
9806   ;;
9807 esac
9808 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9809 echo "${ECHO_T}$dynamic_linker" >&6; }
9810 test "$dynamic_linker" = no && can_build_shared=no
9811
9812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9813 if test "$GCC" = yes; then
9814   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9815 fi
9816
9817 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9818 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9819 hardcode_action=
9820 if test -n "$hardcode_libdir_flag_spec" || \
9821    test -n "$runpath_var" || \
9822    test "X$hardcode_automatic" = "Xyes" ; then
9823
9824   # We can hardcode non-existant directories.
9825   if test "$hardcode_direct" != no &&
9826      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9827      # have to relink, otherwise we might link with an installed library
9828      # when we should be linking with a yet-to-be-installed one
9829      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9830      test "$hardcode_minus_L" != no; then
9831     # Linking always hardcodes the temporary library directory.
9832     hardcode_action=relink
9833   else
9834     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9835     hardcode_action=immediate
9836   fi
9837 else
9838   # We cannot hardcode anything, or else we can only hardcode existing
9839   # directories.
9840   hardcode_action=unsupported
9841 fi
9842 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9843 echo "${ECHO_T}$hardcode_action" >&6; }
9844
9845 if test "$hardcode_action" = relink; then
9846   # Fast installation is not supported
9847   enable_fast_install=no
9848 elif test "$shlibpath_overrides_runpath" = yes ||
9849      test "$enable_shared" = no; then
9850   # Fast installation is not necessary
9851   enable_fast_install=needless
9852 fi
9853
9854 striplib=
9855 old_striplib=
9856 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9857 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9858 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9859   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9860   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9861   { echo "$as_me:$LINENO: result: yes" >&5
9862 echo "${ECHO_T}yes" >&6; }
9863 else
9864 # FIXME - insert some real tests, host_os isn't really good enough
9865   case $host_os in
9866    darwin*)
9867        if test -n "$STRIP" ; then
9868          striplib="$STRIP -x"
9869          old_striplib="$STRIP -S"
9870          { echo "$as_me:$LINENO: result: yes" >&5
9871 echo "${ECHO_T}yes" >&6; }
9872        else
9873   { echo "$as_me:$LINENO: result: no" >&5
9874 echo "${ECHO_T}no" >&6; }
9875 fi
9876        ;;
9877    *)
9878   { echo "$as_me:$LINENO: result: no" >&5
9879 echo "${ECHO_T}no" >&6; }
9880     ;;
9881   esac
9882 fi
9883
9884 if test "x$enable_dlopen" != xyes; then
9885   enable_dlopen=unknown
9886   enable_dlopen_self=unknown
9887   enable_dlopen_self_static=unknown
9888 else
9889   lt_cv_dlopen=no
9890   lt_cv_dlopen_libs=
9891
9892   case $host_os in
9893   beos*)
9894     lt_cv_dlopen="load_add_on"
9895     lt_cv_dlopen_libs=
9896     lt_cv_dlopen_self=yes
9897     ;;
9898
9899   mingw* | pw32*)
9900     lt_cv_dlopen="LoadLibrary"
9901     lt_cv_dlopen_libs=
9902    ;;
9903
9904   cygwin*)
9905     lt_cv_dlopen="dlopen"
9906     lt_cv_dlopen_libs=
9907    ;;
9908
9909   darwin*)
9910   # if libdl is installed we need to link against it
9911     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   ac_check_lib_save_LIBS=$LIBS
9917 LIBS="-ldl  $LIBS"
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h.  */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h.  */
9924
9925 /* Override any GCC internal prototype to avoid an error.
9926    Use char because int might match the return type of a GCC
9927    builtin and then its argument prototype would still apply.  */
9928 #ifdef __cplusplus
9929 extern "C"
9930 #endif
9931 char dlopen ();
9932 int
9933 main ()
9934 {
9935 return dlopen ();
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9942 case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_link") 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } && {
9954          test -z "$ac_c_werror_flag" ||
9955          test ! -s conftest.err
9956        } && test -s conftest$ac_exeext &&
9957        $as_test_x conftest$ac_exeext; then
9958   ac_cv_lib_dl_dlopen=yes
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963         ac_cv_lib_dl_dlopen=no
9964 fi
9965
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967       conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9971 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9972 if test $ac_cv_lib_dl_dlopen = yes; then
9973   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9974 else
9975
9976     lt_cv_dlopen="dyld"
9977     lt_cv_dlopen_libs=
9978     lt_cv_dlopen_self=yes
9979
9980 fi
9981
9982    ;;
9983
9984   *)
9985     { echo "$as_me:$LINENO: checking for shl_load" >&5
9986 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9987 if test "${ac_cv_func_shl_load+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9998 #define shl_load innocuous_shl_load
9999
10000 /* System header to define __stub macros and hopefully few prototypes,
10001     which can conflict with char shl_load (); below.
10002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10003     <limits.h> exists even on freestanding compilers.  */
10004
10005 #ifdef __STDC__
10006 # include <limits.h>
10007 #else
10008 # include <assert.h>
10009 #endif
10010
10011 #undef shl_load
10012
10013 /* Override any GCC internal prototype to avoid an error.
10014    Use char because int might match the return type of a GCC
10015    builtin and then its argument prototype would still apply.  */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 char shl_load ();
10020 /* The GNU C library defines this for functions which it implements
10021     to always fail with ENOSYS.  Some functions are actually named
10022     something starting with __ and the normal name is an alias.  */
10023 #if defined __stub_shl_load || defined __stub___shl_load
10024 choke me
10025 #endif
10026
10027 int
10028 main ()
10029 {
10030 return shl_load ();
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (ac_try="$ac_link"
10037 case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_link") 2>conftest.er1
10043   ac_status=$?
10044   grep -v '^ *+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } && {
10049          test -z "$ac_c_werror_flag" ||
10050          test ! -s conftest.err
10051        } && test -s conftest$ac_exeext &&
10052        $as_test_x conftest$ac_exeext; then
10053   ac_cv_func_shl_load=yes
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058         ac_cv_func_shl_load=no
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10062       conftest$ac_exeext conftest.$ac_ext
10063 fi
10064 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10065 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10066 if test $ac_cv_func_shl_load = yes; then
10067   lt_cv_dlopen="shl_load"
10068 else
10069   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10070 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10071 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   ac_check_lib_save_LIBS=$LIBS
10075 LIBS="-ldld  $LIBS"
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h.  */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h.  */
10082
10083 /* Override any GCC internal prototype to avoid an error.
10084    Use char because int might match the return type of a GCC
10085    builtin and then its argument prototype would still apply.  */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 char shl_load ();
10090 int
10091 main ()
10092 {
10093 return shl_load ();
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_link") 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } && {
10112          test -z "$ac_c_werror_flag" ||
10113          test ! -s conftest.err
10114        } && test -s conftest$ac_exeext &&
10115        $as_test_x conftest$ac_exeext; then
10116   ac_cv_lib_dld_shl_load=yes
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121         ac_cv_lib_dld_shl_load=no
10122 fi
10123
10124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10125       conftest$ac_exeext conftest.$ac_ext
10126 LIBS=$ac_check_lib_save_LIBS
10127 fi
10128 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10129 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10130 if test $ac_cv_lib_dld_shl_load = yes; then
10131   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10132 else
10133   { echo "$as_me:$LINENO: checking for dlopen" >&5
10134 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10135 if test "${ac_cv_func_dlopen+set}" = set; then
10136   echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138   cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10146 #define dlopen innocuous_dlopen
10147
10148 /* System header to define __stub macros and hopefully few prototypes,
10149     which can conflict with char dlopen (); below.
10150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10151     <limits.h> exists even on freestanding compilers.  */
10152
10153 #ifdef __STDC__
10154 # include <limits.h>
10155 #else
10156 # include <assert.h>
10157 #endif
10158
10159 #undef dlopen
10160
10161 /* Override any GCC internal prototype to avoid an error.
10162    Use char because int might match the return type of a GCC
10163    builtin and then its argument prototype would still apply.  */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 char dlopen ();
10168 /* The GNU C library defines this for functions which it implements
10169     to always fail with ENOSYS.  Some functions are actually named
10170     something starting with __ and the normal name is an alias.  */
10171 #if defined __stub_dlopen || defined __stub___dlopen
10172 choke me
10173 #endif
10174
10175 int
10176 main ()
10177 {
10178 return dlopen ();
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_link") 2>conftest.er1
10191   ac_status=$?
10192   grep -v '^ *+' conftest.er1 >conftest.err
10193   rm -f conftest.er1
10194   cat conftest.err >&5
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); } && {
10197          test -z "$ac_c_werror_flag" ||
10198          test ! -s conftest.err
10199        } && test -s conftest$ac_exeext &&
10200        $as_test_x conftest$ac_exeext; then
10201   ac_cv_func_dlopen=yes
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206         ac_cv_func_dlopen=no
10207 fi
10208
10209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10210       conftest$ac_exeext conftest.$ac_ext
10211 fi
10212 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10213 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10214 if test $ac_cv_func_dlopen = yes; then
10215   lt_cv_dlopen="dlopen"
10216 else
10217   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10218 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   ac_check_lib_save_LIBS=$LIBS
10223 LIBS="-ldl  $LIBS"
10224 cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230
10231 /* Override any GCC internal prototype to avoid an error.
10232    Use char because int might match the return type of a GCC
10233    builtin and then its argument prototype would still apply.  */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char dlopen ();
10238 int
10239 main ()
10240 {
10241 return dlopen ();
10242   ;
10243   return 0;
10244 }
10245 _ACEOF
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (ac_try="$ac_link"
10248 case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253   (eval "$ac_link") 2>conftest.er1
10254   ac_status=$?
10255   grep -v '^ *+' conftest.er1 >conftest.err
10256   rm -f conftest.er1
10257   cat conftest.err >&5
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); } && {
10260          test -z "$ac_c_werror_flag" ||
10261          test ! -s conftest.err
10262        } && test -s conftest$ac_exeext &&
10263        $as_test_x conftest$ac_exeext; then
10264   ac_cv_lib_dl_dlopen=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_cv_lib_dl_dlopen=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10273       conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10278 if test $ac_cv_lib_dl_dlopen = yes; then
10279   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10280 else
10281   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10282 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10283 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10284   echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286   ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lsvld  $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294
10295 /* Override any GCC internal prototype to avoid an error.
10296    Use char because int might match the return type of a GCC
10297    builtin and then its argument prototype would still apply.  */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 char dlopen ();
10302 int
10303 main ()
10304 {
10305 return dlopen ();
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_link") 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } && {
10324          test -z "$ac_c_werror_flag" ||
10325          test ! -s conftest.err
10326        } && test -s conftest$ac_exeext &&
10327        $as_test_x conftest$ac_exeext; then
10328   ac_cv_lib_svld_dlopen=yes
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333         ac_cv_lib_svld_dlopen=no
10334 fi
10335
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337       conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10341 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10342 if test $ac_cv_lib_svld_dlopen = yes; then
10343   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10344 else
10345   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10346 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10348   echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350   ac_check_lib_save_LIBS=$LIBS
10351 LIBS="-ldld  $LIBS"
10352 cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h.  */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h.  */
10358
10359 /* Override any GCC internal prototype to avoid an error.
10360    Use char because int might match the return type of a GCC
10361    builtin and then its argument prototype would still apply.  */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char dld_link ();
10366 int
10367 main ()
10368 {
10369 return dld_link ();
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_link") 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } && {
10388          test -z "$ac_c_werror_flag" ||
10389          test ! -s conftest.err
10390        } && test -s conftest$ac_exeext &&
10391        $as_test_x conftest$ac_exeext; then
10392   ac_cv_lib_dld_dld_link=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397         ac_cv_lib_dld_dld_link=no
10398 fi
10399
10400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10401       conftest$ac_exeext conftest.$ac_ext
10402 LIBS=$ac_check_lib_save_LIBS
10403 fi
10404 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10405 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10406 if test $ac_cv_lib_dld_dld_link = yes; then
10407   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10408 fi
10409
10410
10411 fi
10412
10413
10414 fi
10415
10416
10417 fi
10418
10419
10420 fi
10421
10422
10423 fi
10424
10425     ;;
10426   esac
10427
10428   if test "x$lt_cv_dlopen" != xno; then
10429     enable_dlopen=yes
10430   else
10431     enable_dlopen=no
10432   fi
10433
10434   case $lt_cv_dlopen in
10435   dlopen)
10436     save_CPPFLAGS="$CPPFLAGS"
10437     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10438
10439     save_LDFLAGS="$LDFLAGS"
10440     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10441
10442     save_LIBS="$LIBS"
10443     LIBS="$lt_cv_dlopen_libs $LIBS"
10444
10445     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10446 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10447 if test "${lt_cv_dlopen_self+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450           if test "$cross_compiling" = yes; then :
10451   lt_cv_dlopen_self=cross
10452 else
10453   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10454   lt_status=$lt_dlunknown
10455   cat > conftest.$ac_ext <<EOF
10456 #line 10456 "configure"
10457 #include "confdefs.h"
10458
10459 #if HAVE_DLFCN_H
10460 #include <dlfcn.h>
10461 #endif
10462
10463 #include <stdio.h>
10464
10465 #ifdef RTLD_GLOBAL
10466 #  define LT_DLGLOBAL           RTLD_GLOBAL
10467 #else
10468 #  ifdef DL_GLOBAL
10469 #    define LT_DLGLOBAL         DL_GLOBAL
10470 #  else
10471 #    define LT_DLGLOBAL         0
10472 #  endif
10473 #endif
10474
10475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10476    find out it does not work in some platform. */
10477 #ifndef LT_DLLAZY_OR_NOW
10478 #  ifdef RTLD_LAZY
10479 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10480 #  else
10481 #    ifdef DL_LAZY
10482 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10483 #    else
10484 #      ifdef RTLD_NOW
10485 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10486 #      else
10487 #        ifdef DL_NOW
10488 #          define LT_DLLAZY_OR_NOW      DL_NOW
10489 #        else
10490 #          define LT_DLLAZY_OR_NOW      0
10491 #        endif
10492 #      endif
10493 #    endif
10494 #  endif
10495 #endif
10496
10497 #ifdef __cplusplus
10498 extern "C" void exit (int);
10499 #endif
10500
10501 void fnord() { int i=42;}
10502 int main ()
10503 {
10504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10505   int status = $lt_dlunknown;
10506
10507   if (self)
10508     {
10509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10510       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10511       /* dlclose (self); */
10512     }
10513   else
10514     puts (dlerror ());
10515
10516     exit (status);
10517 }
10518 EOF
10519   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10520   (eval $ac_link) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10524     (./conftest; exit; ) >&5 2>/dev/null
10525     lt_status=$?
10526     case x$lt_status in
10527       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10528       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10529       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10530     esac
10531   else :
10532     # compilation failed
10533     lt_cv_dlopen_self=no
10534   fi
10535 fi
10536 rm -fr conftest*
10537
10538
10539 fi
10540 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10541 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10542
10543     if test "x$lt_cv_dlopen_self" = xyes; then
10544       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10545       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10546 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10547 if test "${lt_cv_dlopen_self_static+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550           if test "$cross_compiling" = yes; then :
10551   lt_cv_dlopen_self_static=cross
10552 else
10553   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10554   lt_status=$lt_dlunknown
10555   cat > conftest.$ac_ext <<EOF
10556 #line 10556 "configure"
10557 #include "confdefs.h"
10558
10559 #if HAVE_DLFCN_H
10560 #include <dlfcn.h>
10561 #endif
10562
10563 #include <stdio.h>
10564
10565 #ifdef RTLD_GLOBAL
10566 #  define LT_DLGLOBAL           RTLD_GLOBAL
10567 #else
10568 #  ifdef DL_GLOBAL
10569 #    define LT_DLGLOBAL         DL_GLOBAL
10570 #  else
10571 #    define LT_DLGLOBAL         0
10572 #  endif
10573 #endif
10574
10575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10576    find out it does not work in some platform. */
10577 #ifndef LT_DLLAZY_OR_NOW
10578 #  ifdef RTLD_LAZY
10579 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10580 #  else
10581 #    ifdef DL_LAZY
10582 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10583 #    else
10584 #      ifdef RTLD_NOW
10585 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10586 #      else
10587 #        ifdef DL_NOW
10588 #          define LT_DLLAZY_OR_NOW      DL_NOW
10589 #        else
10590 #          define LT_DLLAZY_OR_NOW      0
10591 #        endif
10592 #      endif
10593 #    endif
10594 #  endif
10595 #endif
10596
10597 #ifdef __cplusplus
10598 extern "C" void exit (int);
10599 #endif
10600
10601 void fnord() { int i=42;}
10602 int main ()
10603 {
10604   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10605   int status = $lt_dlunknown;
10606
10607   if (self)
10608     {
10609       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10610       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10611       /* dlclose (self); */
10612     }
10613   else
10614     puts (dlerror ());
10615
10616     exit (status);
10617 }
10618 EOF
10619   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620   (eval $ac_link) 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10624     (./conftest; exit; ) >&5 2>/dev/null
10625     lt_status=$?
10626     case x$lt_status in
10627       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10628       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10629       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10630     esac
10631   else :
10632     # compilation failed
10633     lt_cv_dlopen_self_static=no
10634   fi
10635 fi
10636 rm -fr conftest*
10637
10638
10639 fi
10640 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10641 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10642     fi
10643
10644     CPPFLAGS="$save_CPPFLAGS"
10645     LDFLAGS="$save_LDFLAGS"
10646     LIBS="$save_LIBS"
10647     ;;
10648   esac
10649
10650   case $lt_cv_dlopen_self in
10651   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10652   *) enable_dlopen_self=unknown ;;
10653   esac
10654
10655   case $lt_cv_dlopen_self_static in
10656   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10657   *) enable_dlopen_self_static=unknown ;;
10658   esac
10659 fi
10660
10661
10662 # Report which library types will actually be built
10663 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10664 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10665 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10666 echo "${ECHO_T}$can_build_shared" >&6; }
10667
10668 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10669 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10670 test "$can_build_shared" = "no" && enable_shared=no
10671
10672 # On AIX, shared libraries and static libraries use the same namespace, and
10673 # are all built from PIC.
10674 case $host_os in
10675 aix3*)
10676   test "$enable_shared" = yes && enable_static=no
10677   if test -n "$RANLIB"; then
10678     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10679     postinstall_cmds='$RANLIB $lib'
10680   fi
10681   ;;
10682
10683 aix4* | aix5*)
10684   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10685     test "$enable_shared" = yes && enable_static=no
10686   fi
10687     ;;
10688 esac
10689 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10690 echo "${ECHO_T}$enable_shared" >&6; }
10691
10692 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10693 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10694 # Make sure either enable_shared or enable_static is yes.
10695 test "$enable_shared" = yes || enable_static=yes
10696 { echo "$as_me:$LINENO: result: $enable_static" >&5
10697 echo "${ECHO_T}$enable_static" >&6; }
10698
10699 # The else clause should only fire when bootstrapping the
10700 # libtool distribution, otherwise you forgot to ship ltmain.sh
10701 # with your package, and you will get complaints that there are
10702 # no rules to generate ltmain.sh.
10703 if test -f "$ltmain"; then
10704   # See if we are running on zsh, and set the options which allow our commands through
10705   # without removal of \ escapes.
10706   if test -n "${ZSH_VERSION+set}" ; then
10707     setopt NO_GLOB_SUBST
10708   fi
10709   # Now quote all the things that may contain metacharacters while being
10710   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10711   # variables and quote the copies for generation of the libtool script.
10712   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10713     SED SHELL STRIP \
10714     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10715     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10716     deplibs_check_method reload_flag reload_cmds need_locks \
10717     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10718     lt_cv_sys_global_symbol_to_c_name_address \
10719     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10720     old_postinstall_cmds old_postuninstall_cmds \
10721     compiler \
10722     CC \
10723     LD \
10724     lt_prog_compiler_wl \
10725     lt_prog_compiler_pic \
10726     lt_prog_compiler_static \
10727     lt_prog_compiler_no_builtin_flag \
10728     export_dynamic_flag_spec \
10729     thread_safe_flag_spec \
10730     whole_archive_flag_spec \
10731     enable_shared_with_static_runtimes \
10732     old_archive_cmds \
10733     old_archive_from_new_cmds \
10734     predep_objects \
10735     postdep_objects \
10736     predeps \
10737     postdeps \
10738     compiler_lib_search_path \
10739     archive_cmds \
10740     archive_expsym_cmds \
10741     postinstall_cmds \
10742     postuninstall_cmds \
10743     old_archive_from_expsyms_cmds \
10744     allow_undefined_flag \
10745     no_undefined_flag \
10746     export_symbols_cmds \
10747     hardcode_libdir_flag_spec \
10748     hardcode_libdir_flag_spec_ld \
10749     hardcode_libdir_separator \
10750     hardcode_automatic \
10751     module_cmds \
10752     module_expsym_cmds \
10753     lt_cv_prog_compiler_c_o \
10754     fix_srcfile_path \
10755     exclude_expsyms \
10756     include_expsyms; do
10757
10758     case $var in
10759     old_archive_cmds | \
10760     old_archive_from_new_cmds | \
10761     archive_cmds | \
10762     archive_expsym_cmds | \
10763     module_cmds | \
10764     module_expsym_cmds | \
10765     old_archive_from_expsyms_cmds | \
10766     export_symbols_cmds | \
10767     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10768     postinstall_cmds | postuninstall_cmds | \
10769     old_postinstall_cmds | old_postuninstall_cmds | \
10770     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10771       # Double-quote double-evaled strings.
10772       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10773       ;;
10774     *)
10775       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10776       ;;
10777     esac
10778   done
10779
10780   case $lt_echo in
10781   *'\$0 --fallback-echo"')
10782     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10783     ;;
10784   esac
10785
10786 cfgfile="${ofile}T"
10787   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10788   $rm -f "$cfgfile"
10789   { echo "$as_me:$LINENO: creating $ofile" >&5
10790 echo "$as_me: creating $ofile" >&6;}
10791
10792   cat <<__EOF__ >> "$cfgfile"
10793 #! $SHELL
10794
10795 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10796 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10797 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10798 #
10799 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10800 # Free Software Foundation, Inc.
10801 #
10802 # This file is part of GNU Libtool:
10803 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10804 #
10805 # This program is free software; you can redistribute it and/or modify
10806 # it under the terms of the GNU General Public License as published by
10807 # the Free Software Foundation; either version 2 of the License, or
10808 # (at your option) any later version.
10809 #
10810 # This program is distributed in the hope that it will be useful, but
10811 # WITHOUT ANY WARRANTY; without even the implied warranty of
10812 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10813 # General Public License for more details.
10814 #
10815 # You should have received a copy of the GNU General Public License
10816 # along with this program; if not, write to the Free Software
10817 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10818 #
10819 # As a special exception to the GNU General Public License, if you
10820 # distribute this file as part of a program that contains a
10821 # configuration script generated by Autoconf, you may include it under
10822 # the same distribution terms that you use for the rest of that program.
10823
10824 # A sed program that does not truncate output.
10825 SED=$lt_SED
10826
10827 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10828 Xsed="$SED -e 1s/^X//"
10829
10830 # The HP-UX ksh and POSIX shell print the target directory to stdout
10831 # if CDPATH is set.
10832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10833
10834 # The names of the tagged configurations supported by this script.
10835 available_tags=
10836
10837 # ### BEGIN LIBTOOL CONFIG
10838
10839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10840
10841 # Shell to use when invoking shell scripts.
10842 SHELL=$lt_SHELL
10843
10844 # Whether or not to build shared libraries.
10845 build_libtool_libs=$enable_shared
10846
10847 # Whether or not to build static libraries.
10848 build_old_libs=$enable_static
10849
10850 # Whether or not to add -lc for building shared libraries.
10851 build_libtool_need_lc=$archive_cmds_need_lc
10852
10853 # Whether or not to disallow shared libs when runtime libs are static
10854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10855
10856 # Whether or not to optimize for fast installation.
10857 fast_install=$enable_fast_install
10858
10859 # The host system.
10860 host_alias=$host_alias
10861 host=$host
10862 host_os=$host_os
10863
10864 # The build system.
10865 build_alias=$build_alias
10866 build=$build
10867 build_os=$build_os
10868
10869 # An echo program that does not interpret backslashes.
10870 echo=$lt_echo
10871
10872 # The archiver.
10873 AR=$lt_AR
10874 AR_FLAGS=$lt_AR_FLAGS
10875
10876 # A C compiler.
10877 LTCC=$lt_LTCC
10878
10879 # LTCC compiler flags.
10880 LTCFLAGS=$lt_LTCFLAGS
10881
10882 # A language-specific compiler.
10883 CC=$lt_compiler
10884
10885 # Is the compiler the GNU C compiler?
10886 with_gcc=$GCC
10887
10888 # An ERE matcher.
10889 EGREP=$lt_EGREP
10890
10891 # The linker used to build libraries.
10892 LD=$lt_LD
10893
10894 # Whether we need hard or soft links.
10895 LN_S=$lt_LN_S
10896
10897 # A BSD-compatible nm program.
10898 NM=$lt_NM
10899
10900 # A symbol stripping program
10901 STRIP=$lt_STRIP
10902
10903 # Used to examine libraries when file_magic_cmd begins "file"
10904 MAGIC_CMD=$MAGIC_CMD
10905
10906 # Used on cygwin: DLL creation program.
10907 DLLTOOL="$DLLTOOL"
10908
10909 # Used on cygwin: object dumper.
10910 OBJDUMP="$OBJDUMP"
10911
10912 # Used on cygwin: assembler.
10913 AS="$AS"
10914
10915 # The name of the directory that contains temporary libtool files.
10916 objdir=$objdir
10917
10918 # How to create reloadable object files.
10919 reload_flag=$lt_reload_flag
10920 reload_cmds=$lt_reload_cmds
10921
10922 # How to pass a linker flag through the compiler.
10923 wl=$lt_lt_prog_compiler_wl
10924
10925 # Object file suffix (normally "o").
10926 objext="$ac_objext"
10927
10928 # Old archive suffix (normally "a").
10929 libext="$libext"
10930
10931 # Shared library suffix (normally ".so").
10932 shrext_cmds='$shrext_cmds'
10933
10934 # Executable file suffix (normally "").
10935 exeext="$exeext"
10936
10937 # Additional compiler flags for building library objects.
10938 pic_flag=$lt_lt_prog_compiler_pic
10939 pic_mode=$pic_mode
10940
10941 # What is the maximum length of a command?
10942 max_cmd_len=$lt_cv_sys_max_cmd_len
10943
10944 # Does compiler simultaneously support -c and -o options?
10945 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10946
10947 # Must we lock files when doing compilation?
10948 need_locks=$lt_need_locks
10949
10950 # Do we need the lib prefix for modules?
10951 need_lib_prefix=$need_lib_prefix
10952
10953 # Do we need a version for libraries?
10954 need_version=$need_version
10955
10956 # Whether dlopen is supported.
10957 dlopen_support=$enable_dlopen
10958
10959 # Whether dlopen of programs is supported.
10960 dlopen_self=$enable_dlopen_self
10961
10962 # Whether dlopen of statically linked programs is supported.
10963 dlopen_self_static=$enable_dlopen_self_static
10964
10965 # Compiler flag to prevent dynamic linking.
10966 link_static_flag=$lt_lt_prog_compiler_static
10967
10968 # Compiler flag to turn off builtin functions.
10969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10970
10971 # Compiler flag to allow reflexive dlopens.
10972 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10973
10974 # Compiler flag to generate shared objects directly from archives.
10975 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10976
10977 # Compiler flag to generate thread-safe objects.
10978 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10979
10980 # Library versioning type.
10981 version_type=$version_type
10982
10983 # Format of library name prefix.
10984 libname_spec=$lt_libname_spec
10985
10986 # List of archive names.  First name is the real one, the rest are links.
10987 # The last name is the one that the linker finds with -lNAME.
10988 library_names_spec=$lt_library_names_spec
10989
10990 # The coded name of the library, if different from the real name.
10991 soname_spec=$lt_soname_spec
10992
10993 # Commands used to build and install an old-style archive.
10994 RANLIB=$lt_RANLIB
10995 old_archive_cmds=$lt_old_archive_cmds
10996 old_postinstall_cmds=$lt_old_postinstall_cmds
10997 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10998
10999 # Create an old-style archive from a shared archive.
11000 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11001
11002 # Create a temporary old-style archive to link instead of a shared archive.
11003 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11004
11005 # Commands used to build and install a shared archive.
11006 archive_cmds=$lt_archive_cmds
11007 archive_expsym_cmds=$lt_archive_expsym_cmds
11008 postinstall_cmds=$lt_postinstall_cmds
11009 postuninstall_cmds=$lt_postuninstall_cmds
11010
11011 # Commands used to build a loadable module (assumed same as above if empty)
11012 module_cmds=$lt_module_cmds
11013 module_expsym_cmds=$lt_module_expsym_cmds
11014
11015 # Commands to strip libraries.
11016 old_striplib=$lt_old_striplib
11017 striplib=$lt_striplib
11018
11019 # Dependencies to place before the objects being linked to create a
11020 # shared library.
11021 predep_objects=$lt_predep_objects
11022
11023 # Dependencies to place after the objects being linked to create a
11024 # shared library.
11025 postdep_objects=$lt_postdep_objects
11026
11027 # Dependencies to place before the objects being linked to create a
11028 # shared library.
11029 predeps=$lt_predeps
11030
11031 # Dependencies to place after the objects being linked to create a
11032 # shared library.
11033 postdeps=$lt_postdeps
11034
11035 # The library search path used internally by the compiler when linking
11036 # a shared library.
11037 compiler_lib_search_path=$lt_compiler_lib_search_path
11038
11039 # Method to check whether dependent libraries are shared objects.
11040 deplibs_check_method=$lt_deplibs_check_method
11041
11042 # Command to use when deplibs_check_method == file_magic.
11043 file_magic_cmd=$lt_file_magic_cmd
11044
11045 # Flag that allows shared libraries with undefined symbols to be built.
11046 allow_undefined_flag=$lt_allow_undefined_flag
11047
11048 # Flag that forces no undefined symbols.
11049 no_undefined_flag=$lt_no_undefined_flag
11050
11051 # Commands used to finish a libtool library installation in a directory.
11052 finish_cmds=$lt_finish_cmds
11053
11054 # Same as above, but a single script fragment to be evaled but not shown.
11055 finish_eval=$lt_finish_eval
11056
11057 # Take the output of nm and produce a listing of raw symbols and C names.
11058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11059
11060 # Transform the output of nm in a proper C declaration
11061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11062
11063 # Transform the output of nm in a C name address pair
11064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11065
11066 # This is the shared library runtime path variable.
11067 runpath_var=$runpath_var
11068
11069 # This is the shared library path variable.
11070 shlibpath_var=$shlibpath_var
11071
11072 # Is shlibpath searched before the hard-coded library search path?
11073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11074
11075 # How to hardcode a shared library path into an executable.
11076 hardcode_action=$hardcode_action
11077
11078 # Whether we should hardcode library paths into libraries.
11079 hardcode_into_libs=$hardcode_into_libs
11080
11081 # Flag to hardcode \$libdir into a binary during linking.
11082 # This must work even if \$libdir does not exist.
11083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11084
11085 # If ld is used when linking, flag to hardcode \$libdir into
11086 # a binary during linking. This must work even if \$libdir does
11087 # not exist.
11088 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11089
11090 # Whether we need a single -rpath flag with a separated argument.
11091 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11092
11093 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11094 # resulting binary.
11095 hardcode_direct=$hardcode_direct
11096
11097 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11098 # resulting binary.
11099 hardcode_minus_L=$hardcode_minus_L
11100
11101 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11102 # the resulting binary.
11103 hardcode_shlibpath_var=$hardcode_shlibpath_var
11104
11105 # Set to yes if building a shared library automatically hardcodes DIR into the library
11106 # and all subsequent libraries and executables linked against it.
11107 hardcode_automatic=$hardcode_automatic
11108
11109 # Variables whose values should be saved in libtool wrapper scripts and
11110 # restored at relink time.
11111 variables_saved_for_relink="$variables_saved_for_relink"
11112
11113 # Whether libtool must link a program against all its dependency libraries.
11114 link_all_deplibs=$link_all_deplibs
11115
11116 # Compile-time system search path for libraries
11117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11118
11119 # Run-time system search path for libraries
11120 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11121
11122 # Fix the shell variable \$srcfile for the compiler.
11123 fix_srcfile_path=$lt_fix_srcfile_path
11124
11125 # Set to yes if exported symbols are required.
11126 always_export_symbols=$always_export_symbols
11127
11128 # The commands to list exported symbols.
11129 export_symbols_cmds=$lt_export_symbols_cmds
11130
11131 # The commands to extract the exported symbol list from a shared archive.
11132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11133
11134 # Symbols that should not be listed in the preloaded symbols.
11135 exclude_expsyms=$lt_exclude_expsyms
11136
11137 # Symbols that must always be exported.
11138 include_expsyms=$lt_include_expsyms
11139
11140 # ### END LIBTOOL CONFIG
11141
11142 __EOF__
11143
11144
11145   case $host_os in
11146   aix3*)
11147     cat <<\EOF >> "$cfgfile"
11148
11149 # AIX sometimes has problems with the GCC collect2 program.  For some
11150 # reason, if we set the COLLECT_NAMES environment variable, the problems
11151 # vanish in a puff of smoke.
11152 if test "X${COLLECT_NAMES+set}" != Xset; then
11153   COLLECT_NAMES=
11154   export COLLECT_NAMES
11155 fi
11156 EOF
11157     ;;
11158   esac
11159
11160   # We use sed instead of cat because bash on DJGPP gets confused if
11161   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11162   # text mode, it properly converts lines to CR/LF.  This bash problem
11163   # is reportedly fixed, but why not run on old versions too?
11164   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11165
11166   mv -f "$cfgfile" "$ofile" || \
11167     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11168   chmod +x "$ofile"
11169
11170 else
11171   # If there is no Makefile yet, we rely on a make rule to execute
11172   # `config.status --recheck' to rerun these tests and create the
11173   # libtool script then.
11174   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11175   if test -f "$ltmain_in"; then
11176     test -f Makefile && make "$ltmain"
11177   fi
11178 fi
11179
11180
11181 ac_ext=cpp
11182 ac_cpp='$CXXCPP $CPPFLAGS'
11183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11186
11187 CC="$lt_save_CC"
11188
11189
11190 # Check whether --with-tags was given.
11191 if test "${with_tags+set}" = set; then
11192   withval=$with_tags; tagnames="$withval"
11193 fi
11194
11195
11196 if test -f "$ltmain" && test -n "$tagnames"; then
11197   if test ! -f "${ofile}"; then
11198     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11199 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11200   fi
11201
11202   if test -z "$LTCC"; then
11203     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11204     if test -z "$LTCC"; then
11205       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11206 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11207     else
11208       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11209 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11210     fi
11211   fi
11212   if test -z "$LTCFLAGS"; then
11213     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11214   fi
11215
11216   # Extract list of available tagged configurations in $ofile.
11217   # Note that this assumes the entire list is on one line.
11218   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11219
11220   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11221   for tagname in $tagnames; do
11222     IFS="$lt_save_ifs"
11223     # Check whether tagname contains only valid characters
11224     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11225     "") ;;
11226     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11227 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11228    { (exit 1); exit 1; }; }
11229         ;;
11230     esac
11231
11232     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11233     then
11234       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11235 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11236    { (exit 1); exit 1; }; }
11237     fi
11238
11239     # Update the list of available tags.
11240     if test -n "$tagname"; then
11241       echo appending configuration tag \"$tagname\" to $ofile
11242
11243       case $tagname in
11244       CXX)
11245         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11246             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11247             (test "X$CXX" != "Xg++"))) ; then
11248           ac_ext=cpp
11249 ac_cpp='$CXXCPP $CPPFLAGS'
11250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11253
11254
11255
11256
11257 archive_cmds_need_lc_CXX=no
11258 allow_undefined_flag_CXX=
11259 always_export_symbols_CXX=no
11260 archive_expsym_cmds_CXX=
11261 export_dynamic_flag_spec_CXX=
11262 hardcode_direct_CXX=no
11263 hardcode_libdir_flag_spec_CXX=
11264 hardcode_libdir_flag_spec_ld_CXX=
11265 hardcode_libdir_separator_CXX=
11266 hardcode_minus_L_CXX=no
11267 hardcode_shlibpath_var_CXX=unsupported
11268 hardcode_automatic_CXX=no
11269 module_cmds_CXX=
11270 module_expsym_cmds_CXX=
11271 link_all_deplibs_CXX=unknown
11272 old_archive_cmds_CXX=$old_archive_cmds
11273 no_undefined_flag_CXX=
11274 whole_archive_flag_spec_CXX=
11275 enable_shared_with_static_runtimes_CXX=no
11276
11277 # Dependencies to place before and after the object being linked:
11278 predep_objects_CXX=
11279 postdep_objects_CXX=
11280 predeps_CXX=
11281 postdeps_CXX=
11282 compiler_lib_search_path_CXX=
11283
11284 # Source file extension for C++ test sources.
11285 ac_ext=cpp
11286
11287 # Object file extension for compiled C++ test sources.
11288 objext=o
11289 objext_CXX=$objext
11290
11291 # Code to be used in simple compile tests
11292 lt_simple_compile_test_code="int some_variable = 0;"
11293
11294 # Code to be used in simple link tests
11295 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11296
11297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11298
11299 # If no C compiler was specified, use CC.
11300 LTCC=${LTCC-"$CC"}
11301
11302 # If no C compiler flags were specified, use CFLAGS.
11303 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11304
11305 # Allow CC to be a program name with arguments.
11306 compiler=$CC
11307
11308
11309 # save warnings/boilerplate of simple test code
11310 ac_outfile=conftest.$ac_objext
11311 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11312 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11313 _lt_compiler_boilerplate=`cat conftest.err`
11314 $rm conftest*
11315
11316 ac_outfile=conftest.$ac_objext
11317 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11318 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11319 _lt_linker_boilerplate=`cat conftest.err`
11320 $rm conftest*
11321
11322
11323 # Allow CC to be a program name with arguments.
11324 lt_save_CC=$CC
11325 lt_save_LD=$LD
11326 lt_save_GCC=$GCC
11327 GCC=$GXX
11328 lt_save_with_gnu_ld=$with_gnu_ld
11329 lt_save_path_LD=$lt_cv_path_LD
11330 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11331   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11332 else
11333   $as_unset lt_cv_prog_gnu_ld
11334 fi
11335 if test -n "${lt_cv_path_LDCXX+set}"; then
11336   lt_cv_path_LD=$lt_cv_path_LDCXX
11337 else
11338   $as_unset lt_cv_path_LD
11339 fi
11340 test -z "${LDCXX+set}" || LD=$LDCXX
11341 CC=${CXX-"c++"}
11342 compiler=$CC
11343 compiler_CXX=$CC
11344 for cc_temp in $compiler""; do
11345   case $cc_temp in
11346     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11347     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11348     \-*) ;;
11349     *) break;;
11350   esac
11351 done
11352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11353
11354
11355 # We don't want -fno-exception wen compiling C++ code, so set the
11356 # no_builtin_flag separately
11357 if test "$GXX" = yes; then
11358   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11359 else
11360   lt_prog_compiler_no_builtin_flag_CXX=
11361 fi
11362
11363 if test "$GXX" = yes; then
11364   # Set up default GNU C++ configuration
11365
11366
11367 # Check whether --with-gnu-ld was given.
11368 if test "${with_gnu_ld+set}" = set; then
11369   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11370 else
11371   with_gnu_ld=no
11372 fi
11373
11374 ac_prog=ld
11375 if test "$GCC" = yes; then
11376   # Check if gcc -print-prog-name=ld gives a path.
11377   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11378 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11379   case $host in
11380   *-*-mingw*)
11381     # gcc leaves a trailing carriage return which upsets mingw
11382     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11383   *)
11384     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11385   esac
11386   case $ac_prog in
11387     # Accept absolute paths.
11388     [\\/]* | ?:[\\/]*)
11389       re_direlt='/[^/][^/]*/\.\./'
11390       # Canonicalize the pathname of ld
11391       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11392       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11393         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11394       done
11395       test -z "$LD" && LD="$ac_prog"
11396       ;;
11397   "")
11398     # If it fails, then pretend we aren't using GCC.
11399     ac_prog=ld
11400     ;;
11401   *)
11402     # If it is relative, then search for the first ld in PATH.
11403     with_gnu_ld=unknown
11404     ;;
11405   esac
11406 elif test "$with_gnu_ld" = yes; then
11407   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11408 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11409 else
11410   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11411 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11412 fi
11413 if test "${lt_cv_path_LD+set}" = set; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   if test -z "$LD"; then
11417   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11418   for ac_dir in $PATH; do
11419     IFS="$lt_save_ifs"
11420     test -z "$ac_dir" && ac_dir=.
11421     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11422       lt_cv_path_LD="$ac_dir/$ac_prog"
11423       # Check to see if the program is GNU ld.  I'd rather use --version,
11424       # but apparently some variants of GNU ld only accept -v.
11425       # Break only if it was the GNU/non-GNU ld that we prefer.
11426       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11427       *GNU* | *'with BFD'*)
11428         test "$with_gnu_ld" != no && break
11429         ;;
11430       *)
11431         test "$with_gnu_ld" != yes && break
11432         ;;
11433       esac
11434     fi
11435   done
11436   IFS="$lt_save_ifs"
11437 else
11438   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11439 fi
11440 fi
11441
11442 LD="$lt_cv_path_LD"
11443 if test -n "$LD"; then
11444   { echo "$as_me:$LINENO: result: $LD" >&5
11445 echo "${ECHO_T}$LD" >&6; }
11446 else
11447   { echo "$as_me:$LINENO: result: no" >&5
11448 echo "${ECHO_T}no" >&6; }
11449 fi
11450 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11451 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11452    { (exit 1); exit 1; }; }
11453 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11454 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11455 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11459 case `$LD -v 2>&1 </dev/null` in
11460 *GNU* | *'with BFD'*)
11461   lt_cv_prog_gnu_ld=yes
11462   ;;
11463 *)
11464   lt_cv_prog_gnu_ld=no
11465   ;;
11466 esac
11467 fi
11468 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11469 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11470 with_gnu_ld=$lt_cv_prog_gnu_ld
11471
11472
11473
11474   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11475   # archiving commands below assume that GNU ld is being used.
11476   if test "$with_gnu_ld" = yes; then
11477     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11478     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'
11479
11480     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11481     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11482
11483     # If archive_cmds runs LD, not CC, wlarc should be empty
11484     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11485     #     investigate it a little bit more. (MM)
11486     wlarc='${wl}'
11487
11488     # ancient GNU ld didn't support --whole-archive et. al.
11489     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11490         grep 'no-whole-archive' > /dev/null; then
11491       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11492     else
11493       whole_archive_flag_spec_CXX=
11494     fi
11495   else
11496     with_gnu_ld=no
11497     wlarc=
11498
11499     # A generic and very simple default shared library creation
11500     # command for GNU C++ for the case where it uses the native
11501     # linker, instead of GNU ld.  If possible, this setting should
11502     # overridden to take advantage of the native linker features on
11503     # the platform it is being used on.
11504     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11505   fi
11506
11507   # Commands to make compiler produce verbose output that lists
11508   # what "hidden" libraries, object files and flags are used when
11509   # linking a shared library.
11510   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11511
11512 else
11513   GXX=no
11514   with_gnu_ld=no
11515   wlarc=
11516 fi
11517
11518 # PORTME: fill in a description of your system's C++ link characteristics
11519 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11520 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11521 ld_shlibs_CXX=yes
11522 case $host_os in
11523   aix3*)
11524     # FIXME: insert proper C++ library support
11525     ld_shlibs_CXX=no
11526     ;;
11527   aix4* | aix5*)
11528     if test "$host_cpu" = ia64; then
11529       # On IA64, the linker does run time linking by default, so we don't
11530       # have to do anything special.
11531       aix_use_runtimelinking=no
11532       exp_sym_flag='-Bexport'
11533       no_entry_flag=""
11534     else
11535       aix_use_runtimelinking=no
11536
11537       # Test if we are trying to use run time linking or normal
11538       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11539       # need to do runtime linking.
11540       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11541         for ld_flag in $LDFLAGS; do
11542           case $ld_flag in
11543           *-brtl*)
11544             aix_use_runtimelinking=yes
11545             break
11546             ;;
11547           esac
11548         done
11549         ;;
11550       esac
11551
11552       exp_sym_flag='-bexport'
11553       no_entry_flag='-bnoentry'
11554     fi
11555
11556     # When large executables or shared objects are built, AIX ld can
11557     # have problems creating the table of contents.  If linking a library
11558     # or program results in "error TOC overflow" add -mminimal-toc to
11559     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11560     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11561
11562     archive_cmds_CXX=''
11563     hardcode_direct_CXX=yes
11564     hardcode_libdir_separator_CXX=':'
11565     link_all_deplibs_CXX=yes
11566
11567     if test "$GXX" = yes; then
11568       case $host_os in aix4.[012]|aix4.[012].*)
11569       # We only want to do this on AIX 4.2 and lower, the check
11570       # below for broken collect2 doesn't work under 4.3+
11571         collect2name=`${CC} -print-prog-name=collect2`
11572         if test -f "$collect2name" && \
11573            strings "$collect2name" | grep resolve_lib_name >/dev/null
11574         then
11575           # We have reworked collect2
11576           :
11577         else
11578           # We have old collect2
11579           hardcode_direct_CXX=unsupported
11580           # It fails to find uninstalled libraries when the uninstalled
11581           # path is not listed in the libpath.  Setting hardcode_minus_L
11582           # to unsupported forces relinking
11583           hardcode_minus_L_CXX=yes
11584           hardcode_libdir_flag_spec_CXX='-L$libdir'
11585           hardcode_libdir_separator_CXX=
11586         fi
11587         ;;
11588       esac
11589       shared_flag='-shared'
11590       if test "$aix_use_runtimelinking" = yes; then
11591         shared_flag="$shared_flag "'${wl}-G'
11592       fi
11593     else
11594       # not using gcc
11595       if test "$host_cpu" = ia64; then
11596         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11597         # chokes on -Wl,-G. The following line is correct:
11598         shared_flag='-G'
11599       else
11600         if test "$aix_use_runtimelinking" = yes; then
11601           shared_flag='${wl}-G'
11602         else
11603           shared_flag='${wl}-bM:SRE'
11604         fi
11605       fi
11606     fi
11607
11608     # It seems that -bexpall does not export symbols beginning with
11609     # underscore (_), so it is better to generate a list of symbols to export.
11610     always_export_symbols_CXX=yes
11611     if test "$aix_use_runtimelinking" = yes; then
11612       # Warning - without using the other runtime loading flags (-brtl),
11613       # -berok will link without error, but may produce a broken library.
11614       allow_undefined_flag_CXX='-berok'
11615       # Determine the default libpath from the value encoded in an empty executable.
11616       cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h.  */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h.  */
11622
11623 int
11624 main ()
11625 {
11626
11627   ;
11628   return 0;
11629 }
11630 _ACEOF
11631 rm -f conftest.$ac_objext conftest$ac_exeext
11632 if { (ac_try="$ac_link"
11633 case "(($ac_try" in
11634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635   *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638   (eval "$ac_link") 2>conftest.er1
11639   ac_status=$?
11640   grep -v '^ *+' conftest.er1 >conftest.err
11641   rm -f conftest.er1
11642   cat conftest.err >&5
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); } && {
11645          test -z "$ac_cxx_werror_flag" ||
11646          test ! -s conftest.err
11647        } && test -s conftest$ac_exeext &&
11648        $as_test_x conftest$ac_exeext; then
11649
11650 lt_aix_libpath_sed='
11651     /Import File Strings/,/^$/ {
11652         /^0/ {
11653             s/^0  *\(.*\)$/\1/
11654             p
11655         }
11656     }'
11657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11658 # Check for a 64-bit object if we didn't find anything.
11659 if test -z "$aix_libpath"; then
11660   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11661 fi
11662 else
11663   echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11665
11666
11667 fi
11668
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670       conftest$ac_exeext conftest.$ac_ext
11671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11672
11673       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11674
11675       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"
11676      else
11677       if test "$host_cpu" = ia64; then
11678         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11679         allow_undefined_flag_CXX="-z nodefs"
11680         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"
11681       else
11682         # Determine the default libpath from the value encoded in an empty executable.
11683         cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689
11690 int
11691 main ()
11692 {
11693
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_link") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } && {
11712          test -z "$ac_cxx_werror_flag" ||
11713          test ! -s conftest.err
11714        } && test -s conftest$ac_exeext &&
11715        $as_test_x conftest$ac_exeext; then
11716
11717 lt_aix_libpath_sed='
11718     /Import File Strings/,/^$/ {
11719         /^0/ {
11720             s/^0  *\(.*\)$/\1/
11721             p
11722         }
11723     }'
11724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11725 # Check for a 64-bit object if we didn't find anything.
11726 if test -z "$aix_libpath"; then
11727   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11728 fi
11729 else
11730   echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733
11734 fi
11735
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737       conftest$ac_exeext conftest.$ac_ext
11738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11739
11740         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11741         # Warning - without using the other run time loading flags,
11742         # -berok will link without error, but may produce a broken library.
11743         no_undefined_flag_CXX=' ${wl}-bernotok'
11744         allow_undefined_flag_CXX=' ${wl}-berok'
11745         # Exported symbols can be pulled into shared objects from archives
11746         whole_archive_flag_spec_CXX='$convenience'
11747         archive_cmds_need_lc_CXX=yes
11748         # This is similar to how AIX traditionally builds its shared libraries.
11749         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'
11750       fi
11751     fi
11752     ;;
11753
11754   beos*)
11755     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11756       allow_undefined_flag_CXX=unsupported
11757       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11758       # support --undefined.  This deserves some investigation.  FIXME
11759       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11760     else
11761       ld_shlibs_CXX=no
11762     fi
11763     ;;
11764
11765   chorus*)
11766     case $cc_basename in
11767       *)
11768         # FIXME: insert proper C++ library support
11769         ld_shlibs_CXX=no
11770         ;;
11771     esac
11772     ;;
11773
11774   cygwin* | mingw* | pw32*)
11775     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11776     # as there is no search path for DLLs.
11777     hardcode_libdir_flag_spec_CXX='-L$libdir'
11778     allow_undefined_flag_CXX=unsupported
11779     always_export_symbols_CXX=no
11780     enable_shared_with_static_runtimes_CXX=yes
11781
11782     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11783       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'
11784       # If the export-symbols file already is a .def file (1st line
11785       # is EXPORTS), use it as is; otherwise, prepend...
11786       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11787         cp $export_symbols $output_objdir/$soname.def;
11788       else
11789         echo EXPORTS > $output_objdir/$soname.def;
11790         cat $export_symbols >> $output_objdir/$soname.def;
11791       fi~
11792       $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'
11793     else
11794       ld_shlibs_CXX=no
11795     fi
11796   ;;
11797       darwin* | rhapsody*)
11798         case $host_os in
11799         rhapsody* | darwin1.[012])
11800          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11801          ;;
11802        *) # Darwin 1.3 on
11803          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11804            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11805          else
11806            case ${MACOSX_DEPLOYMENT_TARGET} in
11807              10.[012])
11808                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11809                ;;
11810              10.*)
11811                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11812                ;;
11813            esac
11814          fi
11815          ;;
11816         esac
11817       archive_cmds_need_lc_CXX=no
11818       hardcode_direct_CXX=no
11819       hardcode_automatic_CXX=yes
11820       hardcode_shlibpath_var_CXX=unsupported
11821       whole_archive_flag_spec_CXX=''
11822       link_all_deplibs_CXX=yes
11823
11824     if test "$GXX" = yes ; then
11825       lt_int_apple_cc_single_mod=no
11826       output_verbose_link_cmd='echo'
11827       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11828        lt_int_apple_cc_single_mod=yes
11829       fi
11830       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11831        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11832       else
11833           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'
11834         fi
11835         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11836         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11837           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11838             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11839           else
11840             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11841           fi
11842             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}'
11843       else
11844       case $cc_basename in
11845         xlc*)
11846          output_verbose_link_cmd='echo'
11847           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'
11848           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11849           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11850           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}'
11851           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}'
11852           ;;
11853        *)
11854          ld_shlibs_CXX=no
11855           ;;
11856       esac
11857       fi
11858         ;;
11859
11860   dgux*)
11861     case $cc_basename in
11862       ec++*)
11863         # FIXME: insert proper C++ library support
11864         ld_shlibs_CXX=no
11865         ;;
11866       ghcx*)
11867         # Green Hills C++ Compiler
11868         # FIXME: insert proper C++ library support
11869         ld_shlibs_CXX=no
11870         ;;
11871       *)
11872         # FIXME: insert proper C++ library support
11873         ld_shlibs_CXX=no
11874         ;;
11875     esac
11876     ;;
11877   freebsd[12]*)
11878     # C++ shared libraries reported to be fairly broken before switch to ELF
11879     ld_shlibs_CXX=no
11880     ;;
11881   freebsd-elf*)
11882     archive_cmds_need_lc_CXX=no
11883     ;;
11884   freebsd* | dragonfly*)
11885     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11886     # conventions
11887     ld_shlibs_CXX=yes
11888     ;;
11889   gnu*)
11890     ;;
11891   hpux9*)
11892     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11893     hardcode_libdir_separator_CXX=:
11894     export_dynamic_flag_spec_CXX='${wl}-E'
11895     hardcode_direct_CXX=yes
11896     hardcode_minus_L_CXX=yes # Not in the search PATH,
11897                                 # but as the default
11898                                 # location of the library.
11899
11900     case $cc_basename in
11901     CC*)
11902       # FIXME: insert proper C++ library support
11903       ld_shlibs_CXX=no
11904       ;;
11905     aCC*)
11906       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'
11907       # Commands to make compiler produce verbose output that lists
11908       # what "hidden" libraries, object files and flags are used when
11909       # linking a shared library.
11910       #
11911       # There doesn't appear to be a way to prevent this compiler from
11912       # explicitly linking system object files so we need to strip them
11913       # from the output so that they don't get included in the library
11914       # dependencies.
11915       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'
11916       ;;
11917     *)
11918       if test "$GXX" = yes; then
11919         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'
11920       else
11921         # FIXME: insert proper C++ library support
11922         ld_shlibs_CXX=no
11923       fi
11924       ;;
11925     esac
11926     ;;
11927   hpux10*|hpux11*)
11928     if test $with_gnu_ld = no; then
11929       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11930       hardcode_libdir_separator_CXX=:
11931
11932       case $host_cpu in
11933       hppa*64*|ia64*) ;;
11934       *)
11935         export_dynamic_flag_spec_CXX='${wl}-E'
11936         ;;
11937       esac
11938     fi
11939     case $host_cpu in
11940     hppa*64*|ia64*)
11941       hardcode_direct_CXX=no
11942       hardcode_shlibpath_var_CXX=no
11943       ;;
11944     *)
11945       hardcode_direct_CXX=yes
11946       hardcode_minus_L_CXX=yes # Not in the search PATH,
11947                                               # but as the default
11948                                               # location of the library.
11949       ;;
11950     esac
11951
11952     case $cc_basename in
11953       CC*)
11954         # FIXME: insert proper C++ library support
11955         ld_shlibs_CXX=no
11956         ;;
11957       aCC*)
11958         case $host_cpu in
11959         hppa*64*)
11960           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961           ;;
11962         ia64*)
11963           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964           ;;
11965         *)
11966           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11967           ;;
11968         esac
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         #
11973         # There doesn't appear to be a way to prevent this compiler from
11974         # explicitly linking system object files so we need to strip them
11975         # from the output so that they don't get included in the library
11976         # dependencies.
11977         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'
11978         ;;
11979       *)
11980         if test "$GXX" = yes; then
11981           if test $with_gnu_ld = no; then
11982             case $host_cpu in
11983             hppa*64*)
11984               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11985               ;;
11986             ia64*)
11987               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11988               ;;
11989             *)
11990               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'
11991               ;;
11992             esac
11993           fi
11994         else
11995           # FIXME: insert proper C++ library support
11996           ld_shlibs_CXX=no
11997         fi
11998         ;;
11999     esac
12000     ;;
12001   interix[3-9]*)
12002     hardcode_direct_CXX=no
12003     hardcode_shlibpath_var_CXX=no
12004     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12005     export_dynamic_flag_spec_CXX='${wl}-E'
12006     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12007     # Instead, shared libraries are loaded at an image base (0x10000000 by
12008     # default) and relocated if they conflict, which is a slow very memory
12009     # consuming and fragmenting process.  To avoid this, we pick a random,
12010     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12011     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12012     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'
12013     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'
12014     ;;
12015   irix5* | irix6*)
12016     case $cc_basename in
12017       CC*)
12018         # SGI C++
12019         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'
12020
12021         # Archives containing C++ object files must be created using
12022         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12023         # necessary to make sure instantiated templates are included
12024         # in the archive.
12025         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12026         ;;
12027       *)
12028         if test "$GXX" = yes; then
12029           if test "$with_gnu_ld" = no; then
12030             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'
12031           else
12032             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'
12033           fi
12034         fi
12035         link_all_deplibs_CXX=yes
12036         ;;
12037     esac
12038     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12039     hardcode_libdir_separator_CXX=:
12040     ;;
12041   linux* | k*bsd*-gnu)
12042     case $cc_basename in
12043       KCC*)
12044         # Kuck and Associates, Inc. (KAI) C++ Compiler
12045
12046         # KCC will only create a shared library if the output file
12047         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12048         # to its proper name (with version) after linking.
12049         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'
12050         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'
12051         # Commands to make compiler produce verbose output that lists
12052         # what "hidden" libraries, object files and flags are used when
12053         # linking a shared library.
12054         #
12055         # There doesn't appear to be a way to prevent this compiler from
12056         # explicitly linking system object files so we need to strip them
12057         # from the output so that they don't get included in the library
12058         # dependencies.
12059         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'
12060
12061         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12062         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12063
12064         # Archives containing C++ object files must be created using
12065         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12066         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12067         ;;
12068       icpc*)
12069         # Intel C++
12070         with_gnu_ld=yes
12071         # version 8.0 and above of icpc choke on multiply defined symbols
12072         # if we add $predep_objects and $postdep_objects, however 7.1 and
12073         # earlier do not add the objects themselves.
12074         case `$CC -V 2>&1` in
12075         *"Version 7."*)
12076           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12077           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'
12078           ;;
12079         *)  # Version 8.0 or newer
12080           tmp_idyn=
12081           case $host_cpu in
12082             ia64*) tmp_idyn=' -i_dynamic';;
12083           esac
12084           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085           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'
12086           ;;
12087         esac
12088         archive_cmds_need_lc_CXX=no
12089         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12090         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12091         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12092         ;;
12093       pgCC*)
12094         # Portland Group C++ compiler
12095         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12096         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'
12097
12098         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12099         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12100         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'
12101         ;;
12102       cxx*)
12103         # Compaq C++
12104         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12105         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'
12106
12107         runpath_var=LD_RUN_PATH
12108         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12109         hardcode_libdir_separator_CXX=:
12110
12111         # Commands to make compiler produce verbose output that lists
12112         # what "hidden" libraries, object files and flags are used when
12113         # linking a shared library.
12114         #
12115         # There doesn't appear to be a way to prevent this compiler from
12116         # explicitly linking system object files so we need to strip them
12117         # from the output so that they don't get included in the library
12118         # dependencies.
12119         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'
12120         ;;
12121       *)
12122         case `$CC -V 2>&1 | sed 5q` in
12123         *Sun\ C*)
12124           # Sun C++ 5.9
12125           no_undefined_flag_CXX=' -zdefs'
12126           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12127           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'
12128           hardcode_libdir_flag_spec_CXX='-R$libdir'
12129           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'
12130
12131           # Not sure whether something based on
12132           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12133           # would be better.
12134           output_verbose_link_cmd='echo'
12135
12136           # Archives containing C++ object files must be created using
12137           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12138           # necessary to make sure instantiated templates are included
12139           # in the archive.
12140           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12141           ;;
12142         esac
12143         ;;
12144     esac
12145     ;;
12146   lynxos*)
12147     # FIXME: insert proper C++ library support
12148     ld_shlibs_CXX=no
12149     ;;
12150   m88k*)
12151     # FIXME: insert proper C++ library support
12152     ld_shlibs_CXX=no
12153     ;;
12154   mvs*)
12155     case $cc_basename in
12156       cxx*)
12157         # FIXME: insert proper C++ library support
12158         ld_shlibs_CXX=no
12159         ;;
12160       *)
12161         # FIXME: insert proper C++ library support
12162         ld_shlibs_CXX=no
12163         ;;
12164     esac
12165     ;;
12166   netbsd* | netbsdelf*-gnu)
12167     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12168       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12169       wlarc=
12170       hardcode_libdir_flag_spec_CXX='-R$libdir'
12171       hardcode_direct_CXX=yes
12172       hardcode_shlibpath_var_CXX=no
12173     fi
12174     # Workaround some broken pre-1.5 toolchains
12175     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12176     ;;
12177   openbsd2*)
12178     # C++ shared libraries are fairly broken
12179     ld_shlibs_CXX=no
12180     ;;
12181   openbsd*)
12182     if test -f /usr/libexec/ld.so; then
12183       hardcode_direct_CXX=yes
12184       hardcode_shlibpath_var_CXX=no
12185       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12186       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12187       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12188         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12189         export_dynamic_flag_spec_CXX='${wl}-E'
12190         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12191       fi
12192       output_verbose_link_cmd='echo'
12193     else
12194       ld_shlibs_CXX=no
12195     fi
12196     ;;
12197   osf3*)
12198     case $cc_basename in
12199       KCC*)
12200         # Kuck and Associates, Inc. (KAI) C++ Compiler
12201
12202         # KCC will only create a shared library if the output file
12203         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12204         # to its proper name (with version) after linking.
12205         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'
12206
12207         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12208         hardcode_libdir_separator_CXX=:
12209
12210         # Archives containing C++ object files must be created using
12211         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12212         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12213
12214         ;;
12215       RCC*)
12216         # Rational C++ 2.4.1
12217         # FIXME: insert proper C++ library support
12218         ld_shlibs_CXX=no
12219         ;;
12220       cxx*)
12221         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12222         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'
12223
12224         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12225         hardcode_libdir_separator_CXX=:
12226
12227         # Commands to make compiler produce verbose output that lists
12228         # what "hidden" libraries, object files and flags are used when
12229         # linking a shared library.
12230         #
12231         # There doesn't appear to be a way to prevent this compiler from
12232         # explicitly linking system object files so we need to strip them
12233         # from the output so that they don't get included in the library
12234         # dependencies.
12235         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'
12236         ;;
12237       *)
12238         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12239           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12240           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'
12241
12242           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12243           hardcode_libdir_separator_CXX=:
12244
12245           # Commands to make compiler produce verbose output that lists
12246           # what "hidden" libraries, object files and flags are used when
12247           # linking a shared library.
12248           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12249
12250         else
12251           # FIXME: insert proper C++ library support
12252           ld_shlibs_CXX=no
12253         fi
12254         ;;
12255     esac
12256     ;;
12257   osf4* | osf5*)
12258     case $cc_basename in
12259       KCC*)
12260         # Kuck and Associates, Inc. (KAI) C++ Compiler
12261
12262         # KCC will only create a shared library if the output file
12263         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12264         # to its proper name (with version) after linking.
12265         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'
12266
12267         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12268         hardcode_libdir_separator_CXX=:
12269
12270         # Archives containing C++ object files must be created using
12271         # the KAI C++ compiler.
12272         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12273         ;;
12274       RCC*)
12275         # Rational C++ 2.4.1
12276         # FIXME: insert proper C++ library support
12277         ld_shlibs_CXX=no
12278         ;;
12279       cxx*)
12280         allow_undefined_flag_CXX=' -expect_unresolved \*'
12281         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'
12282         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12283           echo "-hidden">> $lib.exp~
12284           $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~
12285           $rm $lib.exp'
12286
12287         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12288         hardcode_libdir_separator_CXX=:
12289
12290         # Commands to make compiler produce verbose output that lists
12291         # what "hidden" libraries, object files and flags are used when
12292         # linking a shared library.
12293         #
12294         # There doesn't appear to be a way to prevent this compiler from
12295         # explicitly linking system object files so we need to strip them
12296         # from the output so that they don't get included in the library
12297         # dependencies.
12298         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'
12299         ;;
12300       *)
12301         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12302           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12303          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'
12304
12305           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12306           hardcode_libdir_separator_CXX=:
12307
12308           # Commands to make compiler produce verbose output that lists
12309           # what "hidden" libraries, object files and flags are used when
12310           # linking a shared library.
12311           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12312
12313         else
12314           # FIXME: insert proper C++ library support
12315           ld_shlibs_CXX=no
12316         fi
12317         ;;
12318     esac
12319     ;;
12320   psos*)
12321     # FIXME: insert proper C++ library support
12322     ld_shlibs_CXX=no
12323     ;;
12324   sunos4*)
12325     case $cc_basename in
12326       CC*)
12327         # Sun C++ 4.x
12328         # FIXME: insert proper C++ library support
12329         ld_shlibs_CXX=no
12330         ;;
12331       lcc*)
12332         # Lucid
12333         # FIXME: insert proper C++ library support
12334         ld_shlibs_CXX=no
12335         ;;
12336       *)
12337         # FIXME: insert proper C++ library support
12338         ld_shlibs_CXX=no
12339         ;;
12340     esac
12341     ;;
12342   solaris*)
12343     case $cc_basename in
12344       CC*)
12345         # Sun C++ 4.2, 5.x and Centerline C++
12346         archive_cmds_need_lc_CXX=yes
12347         no_undefined_flag_CXX=' -zdefs'
12348         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12349         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12350         $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'
12351
12352         hardcode_libdir_flag_spec_CXX='-R$libdir'
12353         hardcode_shlibpath_var_CXX=no
12354         case $host_os in
12355           solaris2.[0-5] | solaris2.[0-5].*) ;;
12356           *)
12357             # The compiler driver will combine and reorder linker options,
12358             # but understands `-z linker_flag'.
12359             # Supported since Solaris 2.6 (maybe 2.5.1?)
12360             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12361             ;;
12362         esac
12363         link_all_deplibs_CXX=yes
12364
12365         output_verbose_link_cmd='echo'
12366
12367         # Archives containing C++ object files must be created using
12368         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12369         # necessary to make sure instantiated templates are included
12370         # in the archive.
12371         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12372         ;;
12373       gcx*)
12374         # Green Hills C++ Compiler
12375         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12376
12377         # The C++ compiler must be used to create the archive.
12378         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12379         ;;
12380       *)
12381         # GNU C++ compiler with Solaris linker
12382         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12383           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12384           if $CC --version | grep -v '^2\.7' > /dev/null; then
12385             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12386             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12387                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12388
12389             # Commands to make compiler produce verbose output that lists
12390             # what "hidden" libraries, object files and flags are used when
12391             # linking a shared library.
12392             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12393           else
12394             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12395             # platform.
12396             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12397             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12398                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12399
12400             # Commands to make compiler produce verbose output that lists
12401             # what "hidden" libraries, object files and flags are used when
12402             # linking a shared library.
12403             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12404           fi
12405
12406           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12407           case $host_os in
12408           solaris2.[0-5] | solaris2.[0-5].*) ;;
12409           *)
12410             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12411             ;;
12412           esac
12413         fi
12414         ;;
12415     esac
12416     ;;
12417   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12418     no_undefined_flag_CXX='${wl}-z,text'
12419     archive_cmds_need_lc_CXX=no
12420     hardcode_shlibpath_var_CXX=no
12421     runpath_var='LD_RUN_PATH'
12422
12423     case $cc_basename in
12424       CC*)
12425         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12427         ;;
12428       *)
12429         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12430         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12431         ;;
12432     esac
12433     ;;
12434   sysv5* | sco3.2v5* | sco5v6*)
12435     # Note: We can NOT use -z defs as we might desire, because we do not
12436     # link with -lc, and that would cause any symbols used from libc to
12437     # always be unresolved, which means just about no library would
12438     # ever link correctly.  If we're not using GNU ld we use -z text
12439     # though, which does catch some bad symbols but isn't as heavy-handed
12440     # as -z defs.
12441     # For security reasons, it is highly recommended that you always
12442     # use absolute paths for naming shared libraries, and exclude the
12443     # DT_RUNPATH tag from executables and libraries.  But doing so
12444     # requires that you compile everything twice, which is a pain.
12445     # So that behaviour is only enabled if SCOABSPATH is set to a
12446     # non-empty value in the environment.  Most likely only useful for
12447     # creating official distributions of packages.
12448     # This is a hack until libtool officially supports absolute path
12449     # names for shared libraries.
12450     no_undefined_flag_CXX='${wl}-z,text'
12451     allow_undefined_flag_CXX='${wl}-z,nodefs'
12452     archive_cmds_need_lc_CXX=no
12453     hardcode_shlibpath_var_CXX=no
12454     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12455     hardcode_libdir_separator_CXX=':'
12456     link_all_deplibs_CXX=yes
12457     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12458     runpath_var='LD_RUN_PATH'
12459
12460     case $cc_basename in
12461       CC*)
12462         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12463         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12464         ;;
12465       *)
12466         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12467         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12468         ;;
12469     esac
12470     ;;
12471   tandem*)
12472     case $cc_basename in
12473       NCC*)
12474         # NonStop-UX NCC 3.20
12475         # FIXME: insert proper C++ library support
12476         ld_shlibs_CXX=no
12477         ;;
12478       *)
12479         # FIXME: insert proper C++ library support
12480         ld_shlibs_CXX=no
12481         ;;
12482     esac
12483     ;;
12484   vxworks*)
12485     # FIXME: insert proper C++ library support
12486     ld_shlibs_CXX=no
12487     ;;
12488   *)
12489     # FIXME: insert proper C++ library support
12490     ld_shlibs_CXX=no
12491     ;;
12492 esac
12493 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12494 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12495 test "$ld_shlibs_CXX" = no && can_build_shared=no
12496
12497 GCC_CXX="$GXX"
12498 LD_CXX="$LD"
12499
12500
12501 cat > conftest.$ac_ext <<EOF
12502 class Foo
12503 {
12504 public:
12505   Foo (void) { a = 0; }
12506 private:
12507   int a;
12508 };
12509 EOF
12510
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512   (eval $ac_compile) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; then
12516   # Parse the compiler output and extract the necessary
12517   # objects, libraries and library flags.
12518
12519   # Sentinel used to keep track of whether or not we are before
12520   # the conftest object file.
12521   pre_test_object_deps_done=no
12522
12523   # The `*' in the case matches for architectures that use `case' in
12524   # $output_verbose_cmd can trigger glob expansion during the loop
12525   # eval without this substitution.
12526   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12527
12528   for p in `eval $output_verbose_link_cmd`; do
12529     case $p in
12530
12531     -L* | -R* | -l*)
12532        # Some compilers place space between "-{L,R}" and the path.
12533        # Remove the space.
12534        if test $p = "-L" \
12535           || test $p = "-R"; then
12536          prev=$p
12537          continue
12538        else
12539          prev=
12540        fi
12541
12542        if test "$pre_test_object_deps_done" = no; then
12543          case $p in
12544          -L* | -R*)
12545            # Internal compiler library paths should come after those
12546            # provided the user.  The postdeps already come after the
12547            # user supplied libs so there is no need to process them.
12548            if test -z "$compiler_lib_search_path_CXX"; then
12549              compiler_lib_search_path_CXX="${prev}${p}"
12550            else
12551              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12552            fi
12553            ;;
12554          # The "-l" case would never come before the object being
12555          # linked, so don't bother handling this case.
12556          esac
12557        else
12558          if test -z "$postdeps_CXX"; then
12559            postdeps_CXX="${prev}${p}"
12560          else
12561            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12562          fi
12563        fi
12564        ;;
12565
12566     *.$objext)
12567        # This assumes that the test object file only shows up
12568        # once in the compiler output.
12569        if test "$p" = "conftest.$objext"; then
12570          pre_test_object_deps_done=yes
12571          continue
12572        fi
12573
12574        if test "$pre_test_object_deps_done" = no; then
12575          if test -z "$predep_objects_CXX"; then
12576            predep_objects_CXX="$p"
12577          else
12578            predep_objects_CXX="$predep_objects_CXX $p"
12579          fi
12580        else
12581          if test -z "$postdep_objects_CXX"; then
12582            postdep_objects_CXX="$p"
12583          else
12584            postdep_objects_CXX="$postdep_objects_CXX $p"
12585          fi
12586        fi
12587        ;;
12588
12589     *) ;; # Ignore the rest.
12590
12591     esac
12592   done
12593
12594   # Clean up.
12595   rm -f a.out a.exe
12596 else
12597   echo "libtool.m4: error: problem compiling CXX test program"
12598 fi
12599
12600 $rm -f confest.$objext
12601
12602 # PORTME: override above test on systems where it is broken
12603 case $host_os in
12604 interix[3-9]*)
12605   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12606   # hack all around it, let's just trust "g++" to DTRT.
12607   predep_objects_CXX=
12608   postdep_objects_CXX=
12609   postdeps_CXX=
12610   ;;
12611
12612 linux*)
12613   case `$CC -V 2>&1 | sed 5q` in
12614   *Sun\ C*)
12615     # Sun C++ 5.9
12616     #
12617     # The more standards-conforming stlport4 library is
12618     # incompatible with the Cstd library. Avoid specifying
12619     # it if it's in CXXFLAGS. Ignore libCrun as
12620     # -library=stlport4 depends on it.
12621     case " $CXX $CXXFLAGS " in
12622     *" -library=stlport4 "*)
12623       solaris_use_stlport4=yes
12624       ;;
12625     esac
12626     if test "$solaris_use_stlport4" != yes; then
12627       postdeps_CXX='-library=Cstd -library=Crun'
12628     fi
12629     ;;
12630   esac
12631   ;;
12632
12633 solaris*)
12634   case $cc_basename in
12635   CC*)
12636     # The more standards-conforming stlport4 library is
12637     # incompatible with the Cstd library. Avoid specifying
12638     # it if it's in CXXFLAGS. Ignore libCrun as
12639     # -library=stlport4 depends on it.
12640     case " $CXX $CXXFLAGS " in
12641     *" -library=stlport4 "*)
12642       solaris_use_stlport4=yes
12643       ;;
12644     esac
12645
12646     # Adding this requires a known-good setup of shared libraries for
12647     # Sun compiler versions before 5.6, else PIC objects from an old
12648     # archive will be linked into the output, leading to subtle bugs.
12649     if test "$solaris_use_stlport4" != yes; then
12650       postdeps_CXX='-library=Cstd -library=Crun'
12651     fi
12652     ;;
12653   esac
12654   ;;
12655 esac
12656
12657
12658 case " $postdeps_CXX " in
12659 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12660 esac
12661
12662 lt_prog_compiler_wl_CXX=
12663 lt_prog_compiler_pic_CXX=
12664 lt_prog_compiler_static_CXX=
12665
12666 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12667 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12668
12669   # C++ specific cases for pic, static, wl, etc.
12670   if test "$GXX" = yes; then
12671     lt_prog_compiler_wl_CXX='-Wl,'
12672     lt_prog_compiler_static_CXX='-static'
12673
12674     case $host_os in
12675     aix*)
12676       # All AIX code is PIC.
12677       if test "$host_cpu" = ia64; then
12678         # AIX 5 now supports IA64 processor
12679         lt_prog_compiler_static_CXX='-Bstatic'
12680       fi
12681       ;;
12682     amigaos*)
12683       # FIXME: we need at least 68020 code to build shared libraries, but
12684       # adding the `-m68020' flag to GCC prevents building anything better,
12685       # like `-m68040'.
12686       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12687       ;;
12688     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12689       # PIC is the default for these OSes.
12690       ;;
12691     mingw* | cygwin* | os2* | pw32*)
12692       # This hack is so that the source file can tell whether it is being
12693       # built for inclusion in a dll (and should export symbols for example).
12694       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12695       # (--disable-auto-import) libraries
12696       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12697       ;;
12698     darwin* | rhapsody*)
12699       # PIC is the default on this platform
12700       # Common symbols not allowed in MH_DYLIB files
12701       lt_prog_compiler_pic_CXX='-fno-common'
12702       ;;
12703     *djgpp*)
12704       # DJGPP does not support shared libraries at all
12705       lt_prog_compiler_pic_CXX=
12706       ;;
12707     interix[3-9]*)
12708       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12709       # Instead, we relocate shared libraries at runtime.
12710       ;;
12711     sysv4*MP*)
12712       if test -d /usr/nec; then
12713         lt_prog_compiler_pic_CXX=-Kconform_pic
12714       fi
12715       ;;
12716     hpux*)
12717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12718       # not for PA HP-UX.
12719       case $host_cpu in
12720       hppa*64*|ia64*)
12721         ;;
12722       *)
12723         lt_prog_compiler_pic_CXX='-fPIC'
12724         ;;
12725       esac
12726       ;;
12727     *)
12728       lt_prog_compiler_pic_CXX='-fPIC'
12729       ;;
12730     esac
12731   else
12732     case $host_os in
12733       aix4* | aix5*)
12734         # All AIX code is PIC.
12735         if test "$host_cpu" = ia64; then
12736           # AIX 5 now supports IA64 processor
12737           lt_prog_compiler_static_CXX='-Bstatic'
12738         else
12739           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12740         fi
12741         ;;
12742       chorus*)
12743         case $cc_basename in
12744         cxch68*)
12745           # Green Hills C++ Compiler
12746           # _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"
12747           ;;
12748         esac
12749         ;;
12750        darwin*)
12751          # PIC is the default on this platform
12752          # Common symbols not allowed in MH_DYLIB files
12753          case $cc_basename in
12754            xlc*)
12755            lt_prog_compiler_pic_CXX='-qnocommon'
12756            lt_prog_compiler_wl_CXX='-Wl,'
12757            ;;
12758          esac
12759        ;;
12760       dgux*)
12761         case $cc_basename in
12762           ec++*)
12763             lt_prog_compiler_pic_CXX='-KPIC'
12764             ;;
12765           ghcx*)
12766             # Green Hills C++ Compiler
12767             lt_prog_compiler_pic_CXX='-pic'
12768             ;;
12769           *)
12770             ;;
12771         esac
12772         ;;
12773       freebsd* | dragonfly*)
12774         # FreeBSD uses GNU C++
12775         ;;
12776       hpux9* | hpux10* | hpux11*)
12777         case $cc_basename in
12778           CC*)
12779             lt_prog_compiler_wl_CXX='-Wl,'
12780             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12781             if test "$host_cpu" != ia64; then
12782               lt_prog_compiler_pic_CXX='+Z'
12783             fi
12784             ;;
12785           aCC*)
12786             lt_prog_compiler_wl_CXX='-Wl,'
12787             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12788             case $host_cpu in
12789             hppa*64*|ia64*)
12790               # +Z the default
12791               ;;
12792             *)
12793               lt_prog_compiler_pic_CXX='+Z'
12794               ;;
12795             esac
12796             ;;
12797           *)
12798             ;;
12799         esac
12800         ;;
12801       interix*)
12802         # This is c89, which is MS Visual C++ (no shared libs)
12803         # Anyone wants to do a port?
12804         ;;
12805       irix5* | irix6* | nonstopux*)
12806         case $cc_basename in
12807           CC*)
12808             lt_prog_compiler_wl_CXX='-Wl,'
12809             lt_prog_compiler_static_CXX='-non_shared'
12810             # CC pic flag -KPIC is the default.
12811             ;;
12812           *)
12813             ;;
12814         esac
12815         ;;
12816       linux* | k*bsd*-gnu)
12817         case $cc_basename in
12818           KCC*)
12819             # KAI C++ Compiler
12820             lt_prog_compiler_wl_CXX='--backend -Wl,'
12821             lt_prog_compiler_pic_CXX='-fPIC'
12822             ;;
12823           icpc* | ecpc*)
12824             # Intel C++
12825             lt_prog_compiler_wl_CXX='-Wl,'
12826             lt_prog_compiler_pic_CXX='-KPIC'
12827             lt_prog_compiler_static_CXX='-static'
12828             ;;
12829           pgCC*)
12830             # Portland Group C++ compiler.
12831             lt_prog_compiler_wl_CXX='-Wl,'
12832             lt_prog_compiler_pic_CXX='-fpic'
12833             lt_prog_compiler_static_CXX='-Bstatic'
12834             ;;
12835           cxx*)
12836             # Compaq C++
12837             # Make sure the PIC flag is empty.  It appears that all Alpha
12838             # Linux and Compaq Tru64 Unix objects are PIC.
12839             lt_prog_compiler_pic_CXX=
12840             lt_prog_compiler_static_CXX='-non_shared'
12841             ;;
12842           *)
12843             case `$CC -V 2>&1 | sed 5q` in
12844             *Sun\ C*)
12845               # Sun C++ 5.9
12846               lt_prog_compiler_pic_CXX='-KPIC'
12847               lt_prog_compiler_static_CXX='-Bstatic'
12848               lt_prog_compiler_wl_CXX='-Qoption ld '
12849               ;;
12850             esac
12851             ;;
12852         esac
12853         ;;
12854       lynxos*)
12855         ;;
12856       m88k*)
12857         ;;
12858       mvs*)
12859         case $cc_basename in
12860           cxx*)
12861             lt_prog_compiler_pic_CXX='-W c,exportall'
12862             ;;
12863           *)
12864             ;;
12865         esac
12866         ;;
12867       netbsd* | netbsdelf*-gnu)
12868         ;;
12869       osf3* | osf4* | osf5*)
12870         case $cc_basename in
12871           KCC*)
12872             lt_prog_compiler_wl_CXX='--backend -Wl,'
12873             ;;
12874           RCC*)
12875             # Rational C++ 2.4.1
12876             lt_prog_compiler_pic_CXX='-pic'
12877             ;;
12878           cxx*)
12879             # Digital/Compaq C++
12880             lt_prog_compiler_wl_CXX='-Wl,'
12881             # Make sure the PIC flag is empty.  It appears that all Alpha
12882             # Linux and Compaq Tru64 Unix objects are PIC.
12883             lt_prog_compiler_pic_CXX=
12884             lt_prog_compiler_static_CXX='-non_shared'
12885             ;;
12886           *)
12887             ;;
12888         esac
12889         ;;
12890       psos*)
12891         ;;
12892       solaris*)
12893         case $cc_basename in
12894           CC*)
12895             # Sun C++ 4.2, 5.x and Centerline C++
12896             lt_prog_compiler_pic_CXX='-KPIC'
12897             lt_prog_compiler_static_CXX='-Bstatic'
12898             lt_prog_compiler_wl_CXX='-Qoption ld '
12899             ;;
12900           gcx*)
12901             # Green Hills C++ Compiler
12902             lt_prog_compiler_pic_CXX='-PIC'
12903             ;;
12904           *)
12905             ;;
12906         esac
12907         ;;
12908       sunos4*)
12909         case $cc_basename in
12910           CC*)
12911             # Sun C++ 4.x
12912             lt_prog_compiler_pic_CXX='-pic'
12913             lt_prog_compiler_static_CXX='-Bstatic'
12914             ;;
12915           lcc*)
12916             # Lucid
12917             lt_prog_compiler_pic_CXX='-pic'
12918             ;;
12919           *)
12920             ;;
12921         esac
12922         ;;
12923       tandem*)
12924         case $cc_basename in
12925           NCC*)
12926             # NonStop-UX NCC 3.20
12927             lt_prog_compiler_pic_CXX='-KPIC'
12928             ;;
12929           *)
12930             ;;
12931         esac
12932         ;;
12933       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12934         case $cc_basename in
12935           CC*)
12936             lt_prog_compiler_wl_CXX='-Wl,'
12937             lt_prog_compiler_pic_CXX='-KPIC'
12938             lt_prog_compiler_static_CXX='-Bstatic'
12939             ;;
12940         esac
12941         ;;
12942       vxworks*)
12943         ;;
12944       *)
12945         lt_prog_compiler_can_build_shared_CXX=no
12946         ;;
12947     esac
12948   fi
12949
12950 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12951 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12952
12953 #
12954 # Check to make sure the PIC flag actually works.
12955 #
12956 if test -n "$lt_prog_compiler_pic_CXX"; then
12957
12958 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12959 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12960 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   lt_prog_compiler_pic_works_CXX=no
12964   ac_outfile=conftest.$ac_objext
12965    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12966    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12967    # Insert the option either (1) after the last *FLAGS variable, or
12968    # (2) before a word containing "conftest.", or (3) at the end.
12969    # Note that $ac_compile itself does not contain backslashes and begins
12970    # with a dollar sign (not a hyphen), so the echo should work correctly.
12971    # The option is referenced via a variable to avoid confusing sed.
12972    lt_compile=`echo "$ac_compile" | $SED \
12973    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12974    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12975    -e 's:$: $lt_compiler_flag:'`
12976    (eval echo "\"\$as_me:12976: $lt_compile\"" >&5)
12977    (eval "$lt_compile" 2>conftest.err)
12978    ac_status=$?
12979    cat conftest.err >&5
12980    echo "$as_me:12980: \$? = $ac_status" >&5
12981    if (exit $ac_status) && test -s "$ac_outfile"; then
12982      # The compiler can only warn and ignore the option if not recognized
12983      # So say no if there are warnings other than the usual output.
12984      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12985      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12986      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12987        lt_prog_compiler_pic_works_CXX=yes
12988      fi
12989    fi
12990    $rm conftest*
12991
12992 fi
12993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12994 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12995
12996 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12997     case $lt_prog_compiler_pic_CXX in
12998      "" | " "*) ;;
12999      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13000      esac
13001 else
13002     lt_prog_compiler_pic_CXX=
13003      lt_prog_compiler_can_build_shared_CXX=no
13004 fi
13005
13006 fi
13007 case $host_os in
13008   # For platforms which do not support PIC, -DPIC is meaningless:
13009   *djgpp*)
13010     lt_prog_compiler_pic_CXX=
13011     ;;
13012   *)
13013     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13014     ;;
13015 esac
13016
13017 #
13018 # Check to make sure the static flag actually works.
13019 #
13020 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13021 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13022 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13023 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   lt_prog_compiler_static_works_CXX=no
13027    save_LDFLAGS="$LDFLAGS"
13028    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13029    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13030    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13031      # The linker can only warn and ignore the option if not recognized
13032      # So say no if there are warnings
13033      if test -s conftest.err; then
13034        # Append any errors to the config.log.
13035        cat conftest.err 1>&5
13036        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13037        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13038        if diff conftest.exp conftest.er2 >/dev/null; then
13039          lt_prog_compiler_static_works_CXX=yes
13040        fi
13041      else
13042        lt_prog_compiler_static_works_CXX=yes
13043      fi
13044    fi
13045    $rm conftest*
13046    LDFLAGS="$save_LDFLAGS"
13047
13048 fi
13049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13050 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13051
13052 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13053     :
13054 else
13055     lt_prog_compiler_static_CXX=
13056 fi
13057
13058
13059 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13060 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13061 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   lt_cv_prog_compiler_c_o_CXX=no
13065    $rm -r conftest 2>/dev/null
13066    mkdir conftest
13067    cd conftest
13068    mkdir out
13069    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13070
13071    lt_compiler_flag="-o out/conftest2.$ac_objext"
13072    # Insert the option either (1) after the last *FLAGS variable, or
13073    # (2) before a word containing "conftest.", or (3) at the end.
13074    # Note that $ac_compile itself does not contain backslashes and begins
13075    # with a dollar sign (not a hyphen), so the echo should work correctly.
13076    lt_compile=`echo "$ac_compile" | $SED \
13077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079    -e 's:$: $lt_compiler_flag:'`
13080    (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
13081    (eval "$lt_compile" 2>out/conftest.err)
13082    ac_status=$?
13083    cat out/conftest.err >&5
13084    echo "$as_me:13084: \$? = $ac_status" >&5
13085    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13086    then
13087      # The compiler can only warn and ignore the option if not recognized
13088      # So say no if there are warnings
13089      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13090      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13091      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13092        lt_cv_prog_compiler_c_o_CXX=yes
13093      fi
13094    fi
13095    chmod u+w . 2>&5
13096    $rm conftest*
13097    # SGI C++ compiler will create directory out/ii_files/ for
13098    # template instantiation
13099    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13100    $rm out/* && rmdir out
13101    cd ..
13102    rmdir conftest
13103    $rm conftest*
13104
13105 fi
13106 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13107 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13108
13109
13110 hard_links="nottested"
13111 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13112   # do not overwrite the value of need_locks provided by the user
13113   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13114 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13115   hard_links=yes
13116   $rm conftest*
13117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118   touch conftest.a
13119   ln conftest.a conftest.b 2>&5 || hard_links=no
13120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13121   { echo "$as_me:$LINENO: result: $hard_links" >&5
13122 echo "${ECHO_T}$hard_links" >&6; }
13123   if test "$hard_links" = no; then
13124     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13125 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13126     need_locks=warn
13127   fi
13128 else
13129   need_locks=no
13130 fi
13131
13132 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13133 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13134
13135   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13136   case $host_os in
13137   aix4* | aix5*)
13138     # If we're using GNU nm, then we don't want the "-C" option.
13139     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13140     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13141       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'
13142     else
13143       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'
13144     fi
13145     ;;
13146   pw32*)
13147     export_symbols_cmds_CXX="$ltdll_cmds"
13148   ;;
13149   cygwin* | mingw*)
13150     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'
13151   ;;
13152   linux* | k*bsd*-gnu)
13153     link_all_deplibs_CXX=no
13154   ;;
13155   *)
13156     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13157   ;;
13158   esac
13159
13160 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13161 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13162 test "$ld_shlibs_CXX" = no && can_build_shared=no
13163
13164 #
13165 # Do we need to explicitly link libc?
13166 #
13167 case "x$archive_cmds_need_lc_CXX" in
13168 x|xyes)
13169   # Assume -lc should be added
13170   archive_cmds_need_lc_CXX=yes
13171
13172   if test "$enable_shared" = yes && test "$GCC" = yes; then
13173     case $archive_cmds_CXX in
13174     *'~'*)
13175       # FIXME: we may have to deal with multi-command sequences.
13176       ;;
13177     '$CC '*)
13178       # Test whether the compiler implicitly links with -lc since on some
13179       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13180       # to ld, don't add -lc before -lgcc.
13181       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13182 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13183       $rm conftest*
13184       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13185
13186       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187   (eval $ac_compile) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } 2>conftest.err; then
13191         soname=conftest
13192         lib=conftest
13193         libobjs=conftest.$ac_objext
13194         deplibs=
13195         wl=$lt_prog_compiler_wl_CXX
13196         pic_flag=$lt_prog_compiler_pic_CXX
13197         compiler_flags=-v
13198         linker_flags=-v
13199         verstring=
13200         output_objdir=.
13201         libname=conftest
13202         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13203         allow_undefined_flag_CXX=
13204         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13205   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }
13209         then
13210           archive_cmds_need_lc_CXX=no
13211         else
13212           archive_cmds_need_lc_CXX=yes
13213         fi
13214         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13215       else
13216         cat conftest.err 1>&5
13217       fi
13218       $rm conftest*
13219       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13220 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13221       ;;
13222     esac
13223   fi
13224   ;;
13225 esac
13226
13227 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13229 library_names_spec=
13230 libname_spec='lib$name'
13231 soname_spec=
13232 shrext_cmds=".so"
13233 postinstall_cmds=
13234 postuninstall_cmds=
13235 finish_cmds=
13236 finish_eval=
13237 shlibpath_var=
13238 shlibpath_overrides_runpath=unknown
13239 version_type=none
13240 dynamic_linker="$host_os ld.so"
13241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13242
13243 need_lib_prefix=unknown
13244 hardcode_into_libs=no
13245
13246 # when you set need_version to no, make sure it does not cause -set_version
13247 # flags to be left without arguments
13248 need_version=unknown
13249
13250 case $host_os in
13251 aix3*)
13252   version_type=linux
13253   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13254   shlibpath_var=LIBPATH
13255
13256   # AIX 3 has no versioning support, so we append a major version to the name.
13257   soname_spec='${libname}${release}${shared_ext}$major'
13258   ;;
13259
13260 aix4* | aix5*)
13261   version_type=linux
13262   need_lib_prefix=no
13263   need_version=no
13264   hardcode_into_libs=yes
13265   if test "$host_cpu" = ia64; then
13266     # AIX 5 supports IA64
13267     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13268     shlibpath_var=LD_LIBRARY_PATH
13269   else
13270     # With GCC up to 2.95.x, collect2 would create an import file
13271     # for dependence libraries.  The import file would start with
13272     # the line `#! .'.  This would cause the generated library to
13273     # depend on `.', always an invalid library.  This was fixed in
13274     # development snapshots of GCC prior to 3.0.
13275     case $host_os in
13276       aix4 | aix4.[01] | aix4.[01].*)
13277       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13278            echo ' yes '
13279            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13280         :
13281       else
13282         can_build_shared=no
13283       fi
13284       ;;
13285     esac
13286     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13287     # soname into executable. Probably we can add versioning support to
13288     # collect2, so additional links can be useful in future.
13289     if test "$aix_use_runtimelinking" = yes; then
13290       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13291       # instead of lib<name>.a to let people know that these are not
13292       # typical AIX shared libraries.
13293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294     else
13295       # We preserve .a as extension for shared libraries through AIX4.2
13296       # and later when we are not doing run time linking.
13297       library_names_spec='${libname}${release}.a $libname.a'
13298       soname_spec='${libname}${release}${shared_ext}$major'
13299     fi
13300     shlibpath_var=LIBPATH
13301   fi
13302   ;;
13303
13304 amigaos*)
13305   library_names_spec='$libname.ixlibrary $libname.a'
13306   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13307   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'
13308   ;;
13309
13310 beos*)
13311   library_names_spec='${libname}${shared_ext}'
13312   dynamic_linker="$host_os ld.so"
13313   shlibpath_var=LIBRARY_PATH
13314   ;;
13315
13316 bsdi[45]*)
13317   version_type=linux
13318   need_version=no
13319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320   soname_spec='${libname}${release}${shared_ext}$major'
13321   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13322   shlibpath_var=LD_LIBRARY_PATH
13323   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13324   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13325   # the default ld.so.conf also contains /usr/contrib/lib and
13326   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13327   # libtool to hard-code these into programs
13328   ;;
13329
13330 cygwin* | mingw* | pw32*)
13331   version_type=windows
13332   shrext_cmds=".dll"
13333   need_version=no
13334   need_lib_prefix=no
13335
13336   case $GCC,$host_os in
13337   yes,cygwin* | yes,mingw* | yes,pw32*)
13338     library_names_spec='$libname.dll.a'
13339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13340     postinstall_cmds='base_file=`basename \${file}`~
13341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13342       dldir=$destdir/`dirname \$dlpath`~
13343       test -d \$dldir || mkdir -p \$dldir~
13344       $install_prog $dir/$dlname \$dldir/$dlname~
13345       chmod a+x \$dldir/$dlname'
13346     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13347       dlpath=$dir/\$dldll~
13348        $rm \$dlpath'
13349     shlibpath_overrides_runpath=yes
13350
13351     case $host_os in
13352     cygwin*)
13353       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13354       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13356       ;;
13357     mingw*)
13358       # MinGW DLLs use traditional 'lib' prefix
13359       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13360       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13361       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13362         # It is most probably a Windows format PATH printed by
13363         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13364         # path with ; separators, and with drive letters. We can handle the
13365         # drive letters (cygwin fileutils understands them), so leave them,
13366         # especially as we might pass files found there to a mingw objdump,
13367         # which wouldn't understand a cygwinified path. Ahh.
13368         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13369       else
13370         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13371       fi
13372       ;;
13373     pw32*)
13374       # pw32 DLLs use 'pw' prefix rather than 'lib'
13375       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13376       ;;
13377     esac
13378     ;;
13379
13380   *)
13381     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13382     ;;
13383   esac
13384   dynamic_linker='Win32 ld.exe'
13385   # FIXME: first we should search . and the directory the executable is in
13386   shlibpath_var=PATH
13387   ;;
13388
13389 darwin* | rhapsody*)
13390   dynamic_linker="$host_os dyld"
13391   version_type=darwin
13392   need_lib_prefix=no
13393   need_version=no
13394   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13395   soname_spec='${libname}${release}${major}$shared_ext'
13396   shlibpath_overrides_runpath=yes
13397   shlibpath_var=DYLD_LIBRARY_PATH
13398   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13399
13400   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13401   ;;
13402
13403 dgux*)
13404   version_type=linux
13405   need_lib_prefix=no
13406   need_version=no
13407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13408   soname_spec='${libname}${release}${shared_ext}$major'
13409   shlibpath_var=LD_LIBRARY_PATH
13410   ;;
13411
13412 freebsd1*)
13413   dynamic_linker=no
13414   ;;
13415
13416 freebsd* | dragonfly*)
13417   # DragonFly does not have aout.  When/if they implement a new
13418   # versioning mechanism, adjust this.
13419   if test -x /usr/bin/objformat; then
13420     objformat=`/usr/bin/objformat`
13421   else
13422     case $host_os in
13423     freebsd[123]*) objformat=aout ;;
13424     *) objformat=elf ;;
13425     esac
13426   fi
13427   version_type=freebsd-$objformat
13428   case $version_type in
13429     freebsd-elf*)
13430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13431       need_version=no
13432       need_lib_prefix=no
13433       ;;
13434     freebsd-*)
13435       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13436       need_version=yes
13437       ;;
13438   esac
13439   shlibpath_var=LD_LIBRARY_PATH
13440   case $host_os in
13441   freebsd2*)
13442     shlibpath_overrides_runpath=yes
13443     ;;
13444   freebsd3.[01]* | freebsdelf3.[01]*)
13445     shlibpath_overrides_runpath=yes
13446     hardcode_into_libs=yes
13447     ;;
13448   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13449   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13450     shlibpath_overrides_runpath=no
13451     hardcode_into_libs=yes
13452     ;;
13453   *) # from 4.6 on, and DragonFly
13454     shlibpath_overrides_runpath=yes
13455     hardcode_into_libs=yes
13456     ;;
13457   esac
13458   ;;
13459
13460 gnu*)
13461   version_type=linux
13462   need_lib_prefix=no
13463   need_version=no
13464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13465   soname_spec='${libname}${release}${shared_ext}$major'
13466   shlibpath_var=LD_LIBRARY_PATH
13467   hardcode_into_libs=yes
13468   ;;
13469
13470 hpux9* | hpux10* | hpux11*)
13471   # Give a soname corresponding to the major version so that dld.sl refuses to
13472   # link against other versions.
13473   version_type=sunos
13474   need_lib_prefix=no
13475   need_version=no
13476   case $host_cpu in
13477   ia64*)
13478     shrext_cmds='.so'
13479     hardcode_into_libs=yes
13480     dynamic_linker="$host_os dld.so"
13481     shlibpath_var=LD_LIBRARY_PATH
13482     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484     soname_spec='${libname}${release}${shared_ext}$major'
13485     if test "X$HPUX_IA64_MODE" = X32; then
13486       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13487     else
13488       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13489     fi
13490     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13491     ;;
13492    hppa*64*)
13493      shrext_cmds='.sl'
13494      hardcode_into_libs=yes
13495      dynamic_linker="$host_os dld.sl"
13496      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13497      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499      soname_spec='${libname}${release}${shared_ext}$major'
13500      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13501      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13502      ;;
13503    *)
13504     shrext_cmds='.sl'
13505     dynamic_linker="$host_os dld.sl"
13506     shlibpath_var=SHLIB_PATH
13507     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
13511   esac
13512   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13513   postinstall_cmds='chmod 555 $lib'
13514   ;;
13515
13516 interix[3-9]*)
13517   version_type=linux
13518   need_lib_prefix=no
13519   need_version=no
13520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13521   soname_spec='${libname}${release}${shared_ext}$major'
13522   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13523   shlibpath_var=LD_LIBRARY_PATH
13524   shlibpath_overrides_runpath=no
13525   hardcode_into_libs=yes
13526   ;;
13527
13528 irix5* | irix6* | nonstopux*)
13529   case $host_os in
13530     nonstopux*) version_type=nonstopux ;;
13531     *)
13532         if test "$lt_cv_prog_gnu_ld" = yes; then
13533                 version_type=linux
13534         else
13535                 version_type=irix
13536         fi ;;
13537   esac
13538   need_lib_prefix=no
13539   need_version=no
13540   soname_spec='${libname}${release}${shared_ext}$major'
13541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13542   case $host_os in
13543   irix5* | nonstopux*)
13544     libsuff= shlibsuff=
13545     ;;
13546   *)
13547     case $LD in # libtool.m4 will add one of these switches to LD
13548     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13549       libsuff= shlibsuff= libmagic=32-bit;;
13550     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13551       libsuff=32 shlibsuff=N32 libmagic=N32;;
13552     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13553       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13554     *) libsuff= shlibsuff= libmagic=never-match;;
13555     esac
13556     ;;
13557   esac
13558   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13559   shlibpath_overrides_runpath=no
13560   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13561   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13562   hardcode_into_libs=yes
13563   ;;
13564
13565 # No shared lib support for Linux oldld, aout, or coff.
13566 linux*oldld* | linux*aout* | linux*coff*)
13567   dynamic_linker=no
13568   ;;
13569
13570 # This must be Linux ELF.
13571 linux* | k*bsd*-gnu)
13572   version_type=linux
13573   need_lib_prefix=no
13574   need_version=no
13575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576   soname_spec='${libname}${release}${shared_ext}$major'
13577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13578   shlibpath_var=LD_LIBRARY_PATH
13579   shlibpath_overrides_runpath=no
13580   # This implies no fast_install, which is unacceptable.
13581   # Some rework will be needed to allow for fast_install
13582   # before this can be enabled.
13583   hardcode_into_libs=yes
13584
13585   # Append ld.so.conf contents to the search path
13586   if test -f /etc/ld.so.conf; then
13587     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' ' '`
13588     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13589   fi
13590
13591   # We used to test for /lib/ld.so.1 and disable shared libraries on
13592   # powerpc, because MkLinux only supported shared libraries with the
13593   # GNU dynamic linker.  Since this was broken with cross compilers,
13594   # most powerpc-linux boxes support dynamic linking these days and
13595   # people can always --disable-shared, the test was removed, and we
13596   # assume the GNU/Linux dynamic linker is in use.
13597   dynamic_linker='GNU/Linux ld.so'
13598   ;;
13599
13600 netbsdelf*-gnu)
13601   version_type=linux
13602   need_lib_prefix=no
13603   need_version=no
13604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13605   soname_spec='${libname}${release}${shared_ext}$major'
13606   shlibpath_var=LD_LIBRARY_PATH
13607   shlibpath_overrides_runpath=no
13608   hardcode_into_libs=yes
13609   dynamic_linker='NetBSD ld.elf_so'
13610   ;;
13611
13612 netbsd*)
13613   version_type=sunos
13614   need_lib_prefix=no
13615   need_version=no
13616   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13618     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13619     dynamic_linker='NetBSD (a.out) ld.so'
13620   else
13621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13622     soname_spec='${libname}${release}${shared_ext}$major'
13623     dynamic_linker='NetBSD ld.elf_so'
13624   fi
13625   shlibpath_var=LD_LIBRARY_PATH
13626   shlibpath_overrides_runpath=yes
13627   hardcode_into_libs=yes
13628   ;;
13629
13630 newsos6)
13631   version_type=linux
13632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633   shlibpath_var=LD_LIBRARY_PATH
13634   shlibpath_overrides_runpath=yes
13635   ;;
13636
13637 nto-qnx*)
13638   version_type=linux
13639   need_lib_prefix=no
13640   need_version=no
13641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13642   soname_spec='${libname}${release}${shared_ext}$major'
13643   shlibpath_var=LD_LIBRARY_PATH
13644   shlibpath_overrides_runpath=yes
13645   ;;
13646
13647 openbsd*)
13648   version_type=sunos
13649   sys_lib_dlsearch_path_spec="/usr/lib"
13650   need_lib_prefix=no
13651   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13652   case $host_os in
13653     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13654     *)                         need_version=no  ;;
13655   esac
13656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13658   shlibpath_var=LD_LIBRARY_PATH
13659   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13660     case $host_os in
13661       openbsd2.[89] | openbsd2.[89].*)
13662         shlibpath_overrides_runpath=no
13663         ;;
13664       *)
13665         shlibpath_overrides_runpath=yes
13666         ;;
13667       esac
13668   else
13669     shlibpath_overrides_runpath=yes
13670   fi
13671   ;;
13672
13673 os2*)
13674   libname_spec='$name'
13675   shrext_cmds=".dll"
13676   need_lib_prefix=no
13677   library_names_spec='$libname${shared_ext} $libname.a'
13678   dynamic_linker='OS/2 ld.exe'
13679   shlibpath_var=LIBPATH
13680   ;;
13681
13682 osf3* | osf4* | osf5*)
13683   version_type=osf
13684   need_lib_prefix=no
13685   need_version=no
13686   soname_spec='${libname}${release}${shared_ext}$major'
13687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688   shlibpath_var=LD_LIBRARY_PATH
13689   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13690   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13691   ;;
13692
13693 rdos*)
13694   dynamic_linker=no
13695   ;;
13696
13697 solaris*)
13698   version_type=linux
13699   need_lib_prefix=no
13700   need_version=no
13701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702   soname_spec='${libname}${release}${shared_ext}$major'
13703   shlibpath_var=LD_LIBRARY_PATH
13704   shlibpath_overrides_runpath=yes
13705   hardcode_into_libs=yes
13706   # ldd complains unless libraries are executable
13707   postinstall_cmds='chmod +x $lib'
13708   ;;
13709
13710 sunos4*)
13711   version_type=sunos
13712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13713   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13714   shlibpath_var=LD_LIBRARY_PATH
13715   shlibpath_overrides_runpath=yes
13716   if test "$with_gnu_ld" = yes; then
13717     need_lib_prefix=no
13718   fi
13719   need_version=yes
13720   ;;
13721
13722 sysv4 | sysv4.3*)
13723   version_type=linux
13724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725   soname_spec='${libname}${release}${shared_ext}$major'
13726   shlibpath_var=LD_LIBRARY_PATH
13727   case $host_vendor in
13728     sni)
13729       shlibpath_overrides_runpath=no
13730       need_lib_prefix=no
13731       export_dynamic_flag_spec='${wl}-Blargedynsym'
13732       runpath_var=LD_RUN_PATH
13733       ;;
13734     siemens)
13735       need_lib_prefix=no
13736       ;;
13737     motorola)
13738       need_lib_prefix=no
13739       need_version=no
13740       shlibpath_overrides_runpath=no
13741       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13742       ;;
13743   esac
13744   ;;
13745
13746 sysv4*MP*)
13747   if test -d /usr/nec ;then
13748     version_type=linux
13749     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13750     soname_spec='$libname${shared_ext}.$major'
13751     shlibpath_var=LD_LIBRARY_PATH
13752   fi
13753   ;;
13754
13755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13756   version_type=freebsd-elf
13757   need_lib_prefix=no
13758   need_version=no
13759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13760   soname_spec='${libname}${release}${shared_ext}$major'
13761   shlibpath_var=LD_LIBRARY_PATH
13762   hardcode_into_libs=yes
13763   if test "$with_gnu_ld" = yes; then
13764     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13765     shlibpath_overrides_runpath=no
13766   else
13767     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13768     shlibpath_overrides_runpath=yes
13769     case $host_os in
13770       sco3.2v5*)
13771         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13772         ;;
13773     esac
13774   fi
13775   sys_lib_dlsearch_path_spec='/usr/lib'
13776   ;;
13777
13778 uts4*)
13779   version_type=linux
13780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13781   soname_spec='${libname}${release}${shared_ext}$major'
13782   shlibpath_var=LD_LIBRARY_PATH
13783   ;;
13784
13785 *)
13786   dynamic_linker=no
13787   ;;
13788 esac
13789 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13790 echo "${ECHO_T}$dynamic_linker" >&6; }
13791 test "$dynamic_linker" = no && can_build_shared=no
13792
13793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13794 if test "$GCC" = yes; then
13795   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13796 fi
13797
13798 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13799 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13800 hardcode_action_CXX=
13801 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13802    test -n "$runpath_var_CXX" || \
13803    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13804
13805   # We can hardcode non-existant directories.
13806   if test "$hardcode_direct_CXX" != no &&
13807      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13808      # have to relink, otherwise we might link with an installed library
13809      # when we should be linking with a yet-to-be-installed one
13810      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13811      test "$hardcode_minus_L_CXX" != no; then
13812     # Linking always hardcodes the temporary library directory.
13813     hardcode_action_CXX=relink
13814   else
13815     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13816     hardcode_action_CXX=immediate
13817   fi
13818 else
13819   # We cannot hardcode anything, or else we can only hardcode existing
13820   # directories.
13821   hardcode_action_CXX=unsupported
13822 fi
13823 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13824 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13825
13826 if test "$hardcode_action_CXX" = relink; then
13827   # Fast installation is not supported
13828   enable_fast_install=no
13829 elif test "$shlibpath_overrides_runpath" = yes ||
13830      test "$enable_shared" = no; then
13831   # Fast installation is not necessary
13832   enable_fast_install=needless
13833 fi
13834
13835
13836 # The else clause should only fire when bootstrapping the
13837 # libtool distribution, otherwise you forgot to ship ltmain.sh
13838 # with your package, and you will get complaints that there are
13839 # no rules to generate ltmain.sh.
13840 if test -f "$ltmain"; then
13841   # See if we are running on zsh, and set the options which allow our commands through
13842   # without removal of \ escapes.
13843   if test -n "${ZSH_VERSION+set}" ; then
13844     setopt NO_GLOB_SUBST
13845   fi
13846   # Now quote all the things that may contain metacharacters while being
13847   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13848   # variables and quote the copies for generation of the libtool script.
13849   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13850     SED SHELL STRIP \
13851     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13852     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13853     deplibs_check_method reload_flag reload_cmds need_locks \
13854     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13855     lt_cv_sys_global_symbol_to_c_name_address \
13856     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13857     old_postinstall_cmds old_postuninstall_cmds \
13858     compiler_CXX \
13859     CC_CXX \
13860     LD_CXX \
13861     lt_prog_compiler_wl_CXX \
13862     lt_prog_compiler_pic_CXX \
13863     lt_prog_compiler_static_CXX \
13864     lt_prog_compiler_no_builtin_flag_CXX \
13865     export_dynamic_flag_spec_CXX \
13866     thread_safe_flag_spec_CXX \
13867     whole_archive_flag_spec_CXX \
13868     enable_shared_with_static_runtimes_CXX \
13869     old_archive_cmds_CXX \
13870     old_archive_from_new_cmds_CXX \
13871     predep_objects_CXX \
13872     postdep_objects_CXX \
13873     predeps_CXX \
13874     postdeps_CXX \
13875     compiler_lib_search_path_CXX \
13876     archive_cmds_CXX \
13877     archive_expsym_cmds_CXX \
13878     postinstall_cmds_CXX \
13879     postuninstall_cmds_CXX \
13880     old_archive_from_expsyms_cmds_CXX \
13881     allow_undefined_flag_CXX \
13882     no_undefined_flag_CXX \
13883     export_symbols_cmds_CXX \
13884     hardcode_libdir_flag_spec_CXX \
13885     hardcode_libdir_flag_spec_ld_CXX \
13886     hardcode_libdir_separator_CXX \
13887     hardcode_automatic_CXX \
13888     module_cmds_CXX \
13889     module_expsym_cmds_CXX \
13890     lt_cv_prog_compiler_c_o_CXX \
13891     fix_srcfile_path_CXX \
13892     exclude_expsyms_CXX \
13893     include_expsyms_CXX; do
13894
13895     case $var in
13896     old_archive_cmds_CXX | \
13897     old_archive_from_new_cmds_CXX | \
13898     archive_cmds_CXX | \
13899     archive_expsym_cmds_CXX | \
13900     module_cmds_CXX | \
13901     module_expsym_cmds_CXX | \
13902     old_archive_from_expsyms_cmds_CXX | \
13903     export_symbols_cmds_CXX | \
13904     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13905     postinstall_cmds | postuninstall_cmds | \
13906     old_postinstall_cmds | old_postuninstall_cmds | \
13907     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13908       # Double-quote double-evaled strings.
13909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13910       ;;
13911     *)
13912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13913       ;;
13914     esac
13915   done
13916
13917   case $lt_echo in
13918   *'\$0 --fallback-echo"')
13919     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13920     ;;
13921   esac
13922
13923 cfgfile="$ofile"
13924
13925   cat <<__EOF__ >> "$cfgfile"
13926 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13927
13928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13929
13930 # Shell to use when invoking shell scripts.
13931 SHELL=$lt_SHELL
13932
13933 # Whether or not to build shared libraries.
13934 build_libtool_libs=$enable_shared
13935
13936 # Whether or not to build static libraries.
13937 build_old_libs=$enable_static
13938
13939 # Whether or not to add -lc for building shared libraries.
13940 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13941
13942 # Whether or not to disallow shared libs when runtime libs are static
13943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13944
13945 # Whether or not to optimize for fast installation.
13946 fast_install=$enable_fast_install
13947
13948 # The host system.
13949 host_alias=$host_alias
13950 host=$host
13951 host_os=$host_os
13952
13953 # The build system.
13954 build_alias=$build_alias
13955 build=$build
13956 build_os=$build_os
13957
13958 # An echo program that does not interpret backslashes.
13959 echo=$lt_echo
13960
13961 # The archiver.
13962 AR=$lt_AR
13963 AR_FLAGS=$lt_AR_FLAGS
13964
13965 # A C compiler.
13966 LTCC=$lt_LTCC
13967
13968 # LTCC compiler flags.
13969 LTCFLAGS=$lt_LTCFLAGS
13970
13971 # A language-specific compiler.
13972 CC=$lt_compiler_CXX
13973
13974 # Is the compiler the GNU C compiler?
13975 with_gcc=$GCC_CXX
13976
13977 # An ERE matcher.
13978 EGREP=$lt_EGREP
13979
13980 # The linker used to build libraries.
13981 LD=$lt_LD_CXX
13982
13983 # Whether we need hard or soft links.
13984 LN_S=$lt_LN_S
13985
13986 # A BSD-compatible nm program.
13987 NM=$lt_NM
13988
13989 # A symbol stripping program
13990 STRIP=$lt_STRIP
13991
13992 # Used to examine libraries when file_magic_cmd begins "file"
13993 MAGIC_CMD=$MAGIC_CMD
13994
13995 # Used on cygwin: DLL creation program.
13996 DLLTOOL="$DLLTOOL"
13997
13998 # Used on cygwin: object dumper.
13999 OBJDUMP="$OBJDUMP"
14000
14001 # Used on cygwin: assembler.
14002 AS="$AS"
14003
14004 # The name of the directory that contains temporary libtool files.
14005 objdir=$objdir
14006
14007 # How to create reloadable object files.
14008 reload_flag=$lt_reload_flag
14009 reload_cmds=$lt_reload_cmds
14010
14011 # How to pass a linker flag through the compiler.
14012 wl=$lt_lt_prog_compiler_wl_CXX
14013
14014 # Object file suffix (normally "o").
14015 objext="$ac_objext"
14016
14017 # Old archive suffix (normally "a").
14018 libext="$libext"
14019
14020 # Shared library suffix (normally ".so").
14021 shrext_cmds='$shrext_cmds'
14022
14023 # Executable file suffix (normally "").
14024 exeext="$exeext"
14025
14026 # Additional compiler flags for building library objects.
14027 pic_flag=$lt_lt_prog_compiler_pic_CXX
14028 pic_mode=$pic_mode
14029
14030 # What is the maximum length of a command?
14031 max_cmd_len=$lt_cv_sys_max_cmd_len
14032
14033 # Does compiler simultaneously support -c and -o options?
14034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14035
14036 # Must we lock files when doing compilation?
14037 need_locks=$lt_need_locks
14038
14039 # Do we need the lib prefix for modules?
14040 need_lib_prefix=$need_lib_prefix
14041
14042 # Do we need a version for libraries?
14043 need_version=$need_version
14044
14045 # Whether dlopen is supported.
14046 dlopen_support=$enable_dlopen
14047
14048 # Whether dlopen of programs is supported.
14049 dlopen_self=$enable_dlopen_self
14050
14051 # Whether dlopen of statically linked programs is supported.
14052 dlopen_self_static=$enable_dlopen_self_static
14053
14054 # Compiler flag to prevent dynamic linking.
14055 link_static_flag=$lt_lt_prog_compiler_static_CXX
14056
14057 # Compiler flag to turn off builtin functions.
14058 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14059
14060 # Compiler flag to allow reflexive dlopens.
14061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14062
14063 # Compiler flag to generate shared objects directly from archives.
14064 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14065
14066 # Compiler flag to generate thread-safe objects.
14067 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14068
14069 # Library versioning type.
14070 version_type=$version_type
14071
14072 # Format of library name prefix.
14073 libname_spec=$lt_libname_spec
14074
14075 # List of archive names.  First name is the real one, the rest are links.
14076 # The last name is the one that the linker finds with -lNAME.
14077 library_names_spec=$lt_library_names_spec
14078
14079 # The coded name of the library, if different from the real name.
14080 soname_spec=$lt_soname_spec
14081
14082 # Commands used to build and install an old-style archive.
14083 RANLIB=$lt_RANLIB
14084 old_archive_cmds=$lt_old_archive_cmds_CXX
14085 old_postinstall_cmds=$lt_old_postinstall_cmds
14086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14087
14088 # Create an old-style archive from a shared archive.
14089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14090
14091 # Create a temporary old-style archive to link instead of a shared archive.
14092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14093
14094 # Commands used to build and install a shared archive.
14095 archive_cmds=$lt_archive_cmds_CXX
14096 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14097 postinstall_cmds=$lt_postinstall_cmds
14098 postuninstall_cmds=$lt_postuninstall_cmds
14099
14100 # Commands used to build a loadable module (assumed same as above if empty)
14101 module_cmds=$lt_module_cmds_CXX
14102 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14103
14104 # Commands to strip libraries.
14105 old_striplib=$lt_old_striplib
14106 striplib=$lt_striplib
14107
14108 # Dependencies to place before the objects being linked to create a
14109 # shared library.
14110 predep_objects=$lt_predep_objects_CXX
14111
14112 # Dependencies to place after the objects being linked to create a
14113 # shared library.
14114 postdep_objects=$lt_postdep_objects_CXX
14115
14116 # Dependencies to place before the objects being linked to create a
14117 # shared library.
14118 predeps=$lt_predeps_CXX
14119
14120 # Dependencies to place after the objects being linked to create a
14121 # shared library.
14122 postdeps=$lt_postdeps_CXX
14123
14124 # The library search path used internally by the compiler when linking
14125 # a shared library.
14126 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14127
14128 # Method to check whether dependent libraries are shared objects.
14129 deplibs_check_method=$lt_deplibs_check_method
14130
14131 # Command to use when deplibs_check_method == file_magic.
14132 file_magic_cmd=$lt_file_magic_cmd
14133
14134 # Flag that allows shared libraries with undefined symbols to be built.
14135 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14136
14137 # Flag that forces no undefined symbols.
14138 no_undefined_flag=$lt_no_undefined_flag_CXX
14139
14140 # Commands used to finish a libtool library installation in a directory.
14141 finish_cmds=$lt_finish_cmds
14142
14143 # Same as above, but a single script fragment to be evaled but not shown.
14144 finish_eval=$lt_finish_eval
14145
14146 # Take the output of nm and produce a listing of raw symbols and C names.
14147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14148
14149 # Transform the output of nm in a proper C declaration
14150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14151
14152 # Transform the output of nm in a C name address pair
14153 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14154
14155 # This is the shared library runtime path variable.
14156 runpath_var=$runpath_var
14157
14158 # This is the shared library path variable.
14159 shlibpath_var=$shlibpath_var
14160
14161 # Is shlibpath searched before the hard-coded library search path?
14162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14163
14164 # How to hardcode a shared library path into an executable.
14165 hardcode_action=$hardcode_action_CXX
14166
14167 # Whether we should hardcode library paths into libraries.
14168 hardcode_into_libs=$hardcode_into_libs
14169
14170 # Flag to hardcode \$libdir into a binary during linking.
14171 # This must work even if \$libdir does not exist.
14172 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14173
14174 # If ld is used when linking, flag to hardcode \$libdir into
14175 # a binary during linking. This must work even if \$libdir does
14176 # not exist.
14177 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14178
14179 # Whether we need a single -rpath flag with a separated argument.
14180 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14181
14182 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14183 # resulting binary.
14184 hardcode_direct=$hardcode_direct_CXX
14185
14186 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14187 # resulting binary.
14188 hardcode_minus_L=$hardcode_minus_L_CXX
14189
14190 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14191 # the resulting binary.
14192 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14193
14194 # Set to yes if building a shared library automatically hardcodes DIR into the library
14195 # and all subsequent libraries and executables linked against it.
14196 hardcode_automatic=$hardcode_automatic_CXX
14197
14198 # Variables whose values should be saved in libtool wrapper scripts and
14199 # restored at relink time.
14200 variables_saved_for_relink="$variables_saved_for_relink"
14201
14202 # Whether libtool must link a program against all its dependency libraries.
14203 link_all_deplibs=$link_all_deplibs_CXX
14204
14205 # Compile-time system search path for libraries
14206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14207
14208 # Run-time system search path for libraries
14209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14210
14211 # Fix the shell variable \$srcfile for the compiler.
14212 fix_srcfile_path=$lt_fix_srcfile_path
14213
14214 # Set to yes if exported symbols are required.
14215 always_export_symbols=$always_export_symbols_CXX
14216
14217 # The commands to list exported symbols.
14218 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14219
14220 # The commands to extract the exported symbol list from a shared archive.
14221 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14222
14223 # Symbols that should not be listed in the preloaded symbols.
14224 exclude_expsyms=$lt_exclude_expsyms_CXX
14225
14226 # Symbols that must always be exported.
14227 include_expsyms=$lt_include_expsyms_CXX
14228
14229 # ### END LIBTOOL TAG CONFIG: $tagname
14230
14231 __EOF__
14232
14233
14234 else
14235   # If there is no Makefile yet, we rely on a make rule to execute
14236   # `config.status --recheck' to rerun these tests and create the
14237   # libtool script then.
14238   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14239   if test -f "$ltmain_in"; then
14240     test -f Makefile && make "$ltmain"
14241   fi
14242 fi
14243
14244
14245 ac_ext=cpp
14246 ac_cpp='$CXXCPP $CPPFLAGS'
14247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14250
14251 CC=$lt_save_CC
14252 LDCXX=$LD
14253 LD=$lt_save_LD
14254 GCC=$lt_save_GCC
14255 with_gnu_ldcxx=$with_gnu_ld
14256 with_gnu_ld=$lt_save_with_gnu_ld
14257 lt_cv_path_LDCXX=$lt_cv_path_LD
14258 lt_cv_path_LD=$lt_save_path_LD
14259 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14260 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14261
14262         else
14263           tagname=""
14264         fi
14265         ;;
14266
14267       F77)
14268         if test -n "$F77" && test "X$F77" != "Xno"; then
14269
14270 ac_ext=f
14271 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14272 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14273 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14274
14275
14276 archive_cmds_need_lc_F77=no
14277 allow_undefined_flag_F77=
14278 always_export_symbols_F77=no
14279 archive_expsym_cmds_F77=
14280 export_dynamic_flag_spec_F77=
14281 hardcode_direct_F77=no
14282 hardcode_libdir_flag_spec_F77=
14283 hardcode_libdir_flag_spec_ld_F77=
14284 hardcode_libdir_separator_F77=
14285 hardcode_minus_L_F77=no
14286 hardcode_automatic_F77=no
14287 module_cmds_F77=
14288 module_expsym_cmds_F77=
14289 link_all_deplibs_F77=unknown
14290 old_archive_cmds_F77=$old_archive_cmds
14291 no_undefined_flag_F77=
14292 whole_archive_flag_spec_F77=
14293 enable_shared_with_static_runtimes_F77=no
14294
14295 # Source file extension for f77 test sources.
14296 ac_ext=f
14297
14298 # Object file extension for compiled f77 test sources.
14299 objext=o
14300 objext_F77=$objext
14301
14302 # Code to be used in simple compile tests
14303 lt_simple_compile_test_code="\
14304       subroutine t
14305       return
14306       end
14307 "
14308
14309 # Code to be used in simple link tests
14310 lt_simple_link_test_code="\
14311       program t
14312       end
14313 "
14314
14315 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14316
14317 # If no C compiler was specified, use CC.
14318 LTCC=${LTCC-"$CC"}
14319
14320 # If no C compiler flags were specified, use CFLAGS.
14321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14322
14323 # Allow CC to be a program name with arguments.
14324 compiler=$CC
14325
14326
14327 # save warnings/boilerplate of simple test code
14328 ac_outfile=conftest.$ac_objext
14329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14331 _lt_compiler_boilerplate=`cat conftest.err`
14332 $rm conftest*
14333
14334 ac_outfile=conftest.$ac_objext
14335 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14337 _lt_linker_boilerplate=`cat conftest.err`
14338 $rm conftest*
14339
14340
14341 # Allow CC to be a program name with arguments.
14342 lt_save_CC="$CC"
14343 CC=${F77-"f77"}
14344 compiler=$CC
14345 compiler_F77=$CC
14346 for cc_temp in $compiler""; do
14347   case $cc_temp in
14348     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14349     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14350     \-*) ;;
14351     *) break;;
14352   esac
14353 done
14354 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14355
14356
14357 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14358 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14359 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14360 echo "${ECHO_T}$can_build_shared" >&6; }
14361
14362 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14363 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14364 test "$can_build_shared" = "no" && enable_shared=no
14365
14366 # On AIX, shared libraries and static libraries use the same namespace, and
14367 # are all built from PIC.
14368 case $host_os in
14369 aix3*)
14370   test "$enable_shared" = yes && enable_static=no
14371   if test -n "$RANLIB"; then
14372     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14373     postinstall_cmds='$RANLIB $lib'
14374   fi
14375   ;;
14376 aix4* | aix5*)
14377   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14378     test "$enable_shared" = yes && enable_static=no
14379   fi
14380   ;;
14381 esac
14382 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14383 echo "${ECHO_T}$enable_shared" >&6; }
14384
14385 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14386 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14387 # Make sure either enable_shared or enable_static is yes.
14388 test "$enable_shared" = yes || enable_static=yes
14389 { echo "$as_me:$LINENO: result: $enable_static" >&5
14390 echo "${ECHO_T}$enable_static" >&6; }
14391
14392 GCC_F77="$G77"
14393 LD_F77="$LD"
14394
14395 lt_prog_compiler_wl_F77=
14396 lt_prog_compiler_pic_F77=
14397 lt_prog_compiler_static_F77=
14398
14399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14401
14402   if test "$GCC" = yes; then
14403     lt_prog_compiler_wl_F77='-Wl,'
14404     lt_prog_compiler_static_F77='-static'
14405
14406     case $host_os in
14407       aix*)
14408       # All AIX code is PIC.
14409       if test "$host_cpu" = ia64; then
14410         # AIX 5 now supports IA64 processor
14411         lt_prog_compiler_static_F77='-Bstatic'
14412       fi
14413       ;;
14414
14415     amigaos*)
14416       # FIXME: we need at least 68020 code to build shared libraries, but
14417       # adding the `-m68020' flag to GCC prevents building anything better,
14418       # like `-m68040'.
14419       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14420       ;;
14421
14422     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14423       # PIC is the default for these OSes.
14424       ;;
14425
14426     mingw* | cygwin* | pw32* | os2*)
14427       # This hack is so that the source file can tell whether it is being
14428       # built for inclusion in a dll (and should export symbols for example).
14429       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14430       # (--disable-auto-import) libraries
14431       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14432       ;;
14433
14434     darwin* | rhapsody*)
14435       # PIC is the default on this platform
14436       # Common symbols not allowed in MH_DYLIB files
14437       lt_prog_compiler_pic_F77='-fno-common'
14438       ;;
14439
14440     interix[3-9]*)
14441       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14442       # Instead, we relocate shared libraries at runtime.
14443       ;;
14444
14445     msdosdjgpp*)
14446       # Just because we use GCC doesn't mean we suddenly get shared libraries
14447       # on systems that don't support them.
14448       lt_prog_compiler_can_build_shared_F77=no
14449       enable_shared=no
14450       ;;
14451
14452     sysv4*MP*)
14453       if test -d /usr/nec; then
14454         lt_prog_compiler_pic_F77=-Kconform_pic
14455       fi
14456       ;;
14457
14458     hpux*)
14459       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14460       # not for PA HP-UX.
14461       case $host_cpu in
14462       hppa*64*|ia64*)
14463         # +Z the default
14464         ;;
14465       *)
14466         lt_prog_compiler_pic_F77='-fPIC'
14467         ;;
14468       esac
14469       ;;
14470
14471     *)
14472       lt_prog_compiler_pic_F77='-fPIC'
14473       ;;
14474     esac
14475   else
14476     # PORTME Check for flag to pass linker flags through the system compiler.
14477     case $host_os in
14478     aix*)
14479       lt_prog_compiler_wl_F77='-Wl,'
14480       if test "$host_cpu" = ia64; then
14481         # AIX 5 now supports IA64 processor
14482         lt_prog_compiler_static_F77='-Bstatic'
14483       else
14484         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14485       fi
14486       ;;
14487       darwin*)
14488         # PIC is the default on this platform
14489         # Common symbols not allowed in MH_DYLIB files
14490        case $cc_basename in
14491          xlc*)
14492          lt_prog_compiler_pic_F77='-qnocommon'
14493          lt_prog_compiler_wl_F77='-Wl,'
14494          ;;
14495        esac
14496        ;;
14497
14498     mingw* | cygwin* | pw32* | os2*)
14499       # This hack is so that the source file can tell whether it is being
14500       # built for inclusion in a dll (and should export symbols for example).
14501       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14502       ;;
14503
14504     hpux9* | hpux10* | hpux11*)
14505       lt_prog_compiler_wl_F77='-Wl,'
14506       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14507       # not for PA HP-UX.
14508       case $host_cpu in
14509       hppa*64*|ia64*)
14510         # +Z the default
14511         ;;
14512       *)
14513         lt_prog_compiler_pic_F77='+Z'
14514         ;;
14515       esac
14516       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14517       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14518       ;;
14519
14520     irix5* | irix6* | nonstopux*)
14521       lt_prog_compiler_wl_F77='-Wl,'
14522       # PIC (with -KPIC) is the default.
14523       lt_prog_compiler_static_F77='-non_shared'
14524       ;;
14525
14526     newsos6)
14527       lt_prog_compiler_pic_F77='-KPIC'
14528       lt_prog_compiler_static_F77='-Bstatic'
14529       ;;
14530
14531     linux* | k*bsd*-gnu)
14532       case $cc_basename in
14533       icc* | ecc*)
14534         lt_prog_compiler_wl_F77='-Wl,'
14535         lt_prog_compiler_pic_F77='-KPIC'
14536         lt_prog_compiler_static_F77='-static'
14537         ;;
14538       pgcc* | pgf77* | pgf90* | pgf95*)
14539         # Portland Group compilers (*not* the Pentium gcc compiler,
14540         # which looks to be a dead project)
14541         lt_prog_compiler_wl_F77='-Wl,'
14542         lt_prog_compiler_pic_F77='-fpic'
14543         lt_prog_compiler_static_F77='-Bstatic'
14544         ;;
14545       ccc*)
14546         lt_prog_compiler_wl_F77='-Wl,'
14547         # All Alpha code is PIC.
14548         lt_prog_compiler_static_F77='-non_shared'
14549         ;;
14550       *)
14551         case `$CC -V 2>&1 | sed 5q` in
14552         *Sun\ C*)
14553           # Sun C 5.9
14554           lt_prog_compiler_pic_F77='-KPIC'
14555           lt_prog_compiler_static_F77='-Bstatic'
14556           lt_prog_compiler_wl_F77='-Wl,'
14557           ;;
14558         *Sun\ F*)
14559           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14560           lt_prog_compiler_pic_F77='-KPIC'
14561           lt_prog_compiler_static_F77='-Bstatic'
14562           lt_prog_compiler_wl_F77=''
14563           ;;
14564         esac
14565         ;;
14566       esac
14567       ;;
14568
14569     osf3* | osf4* | osf5*)
14570       lt_prog_compiler_wl_F77='-Wl,'
14571       # All OSF/1 code is PIC.
14572       lt_prog_compiler_static_F77='-non_shared'
14573       ;;
14574
14575     rdos*)
14576       lt_prog_compiler_static_F77='-non_shared'
14577       ;;
14578
14579     solaris*)
14580       lt_prog_compiler_pic_F77='-KPIC'
14581       lt_prog_compiler_static_F77='-Bstatic'
14582       case $cc_basename in
14583       f77* | f90* | f95*)
14584         lt_prog_compiler_wl_F77='-Qoption ld ';;
14585       *)
14586         lt_prog_compiler_wl_F77='-Wl,';;
14587       esac
14588       ;;
14589
14590     sunos4*)
14591       lt_prog_compiler_wl_F77='-Qoption ld '
14592       lt_prog_compiler_pic_F77='-PIC'
14593       lt_prog_compiler_static_F77='-Bstatic'
14594       ;;
14595
14596     sysv4 | sysv4.2uw2* | sysv4.3*)
14597       lt_prog_compiler_wl_F77='-Wl,'
14598       lt_prog_compiler_pic_F77='-KPIC'
14599       lt_prog_compiler_static_F77='-Bstatic'
14600       ;;
14601
14602     sysv4*MP*)
14603       if test -d /usr/nec ;then
14604         lt_prog_compiler_pic_F77='-Kconform_pic'
14605         lt_prog_compiler_static_F77='-Bstatic'
14606       fi
14607       ;;
14608
14609     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14610       lt_prog_compiler_wl_F77='-Wl,'
14611       lt_prog_compiler_pic_F77='-KPIC'
14612       lt_prog_compiler_static_F77='-Bstatic'
14613       ;;
14614
14615     unicos*)
14616       lt_prog_compiler_wl_F77='-Wl,'
14617       lt_prog_compiler_can_build_shared_F77=no
14618       ;;
14619
14620     uts4*)
14621       lt_prog_compiler_pic_F77='-pic'
14622       lt_prog_compiler_static_F77='-Bstatic'
14623       ;;
14624
14625     *)
14626       lt_prog_compiler_can_build_shared_F77=no
14627       ;;
14628     esac
14629   fi
14630
14631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14632 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14633
14634 #
14635 # Check to make sure the PIC flag actually works.
14636 #
14637 if test -n "$lt_prog_compiler_pic_F77"; then
14638
14639 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14640 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14641 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   lt_prog_compiler_pic_works_F77=no
14645   ac_outfile=conftest.$ac_objext
14646    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14647    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14648    # Insert the option either (1) after the last *FLAGS variable, or
14649    # (2) before a word containing "conftest.", or (3) at the end.
14650    # Note that $ac_compile itself does not contain backslashes and begins
14651    # with a dollar sign (not a hyphen), so the echo should work correctly.
14652    # The option is referenced via a variable to avoid confusing sed.
14653    lt_compile=`echo "$ac_compile" | $SED \
14654    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14655    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14656    -e 's:$: $lt_compiler_flag:'`
14657    (eval echo "\"\$as_me:14657: $lt_compile\"" >&5)
14658    (eval "$lt_compile" 2>conftest.err)
14659    ac_status=$?
14660    cat conftest.err >&5
14661    echo "$as_me:14661: \$? = $ac_status" >&5
14662    if (exit $ac_status) && test -s "$ac_outfile"; then
14663      # The compiler can only warn and ignore the option if not recognized
14664      # So say no if there are warnings other than the usual output.
14665      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14666      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14667      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14668        lt_prog_compiler_pic_works_F77=yes
14669      fi
14670    fi
14671    $rm conftest*
14672
14673 fi
14674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14675 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14676
14677 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14678     case $lt_prog_compiler_pic_F77 in
14679      "" | " "*) ;;
14680      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14681      esac
14682 else
14683     lt_prog_compiler_pic_F77=
14684      lt_prog_compiler_can_build_shared_F77=no
14685 fi
14686
14687 fi
14688 case $host_os in
14689   # For platforms which do not support PIC, -DPIC is meaningless:
14690   *djgpp*)
14691     lt_prog_compiler_pic_F77=
14692     ;;
14693   *)
14694     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14695     ;;
14696 esac
14697
14698 #
14699 # Check to make sure the static flag actually works.
14700 #
14701 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14702 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14703 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14704 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   lt_prog_compiler_static_works_F77=no
14708    save_LDFLAGS="$LDFLAGS"
14709    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14710    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14711    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14712      # The linker can only warn and ignore the option if not recognized
14713      # So say no if there are warnings
14714      if test -s conftest.err; then
14715        # Append any errors to the config.log.
14716        cat conftest.err 1>&5
14717        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14718        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14719        if diff conftest.exp conftest.er2 >/dev/null; then
14720          lt_prog_compiler_static_works_F77=yes
14721        fi
14722      else
14723        lt_prog_compiler_static_works_F77=yes
14724      fi
14725    fi
14726    $rm conftest*
14727    LDFLAGS="$save_LDFLAGS"
14728
14729 fi
14730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14731 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14732
14733 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14734     :
14735 else
14736     lt_prog_compiler_static_F77=
14737 fi
14738
14739
14740 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14741 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14742 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   lt_cv_prog_compiler_c_o_F77=no
14746    $rm -r conftest 2>/dev/null
14747    mkdir conftest
14748    cd conftest
14749    mkdir out
14750    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751
14752    lt_compiler_flag="-o out/conftest2.$ac_objext"
14753    # Insert the option either (1) after the last *FLAGS variable, or
14754    # (2) before a word containing "conftest.", or (3) at the end.
14755    # Note that $ac_compile itself does not contain backslashes and begins
14756    # with a dollar sign (not a hyphen), so the echo should work correctly.
14757    lt_compile=`echo "$ac_compile" | $SED \
14758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760    -e 's:$: $lt_compiler_flag:'`
14761    (eval echo "\"\$as_me:14761: $lt_compile\"" >&5)
14762    (eval "$lt_compile" 2>out/conftest.err)
14763    ac_status=$?
14764    cat out/conftest.err >&5
14765    echo "$as_me:14765: \$? = $ac_status" >&5
14766    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14767    then
14768      # The compiler can only warn and ignore the option if not recognized
14769      # So say no if there are warnings
14770      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14771      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14772      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14773        lt_cv_prog_compiler_c_o_F77=yes
14774      fi
14775    fi
14776    chmod u+w . 2>&5
14777    $rm conftest*
14778    # SGI C++ compiler will create directory out/ii_files/ for
14779    # template instantiation
14780    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14781    $rm out/* && rmdir out
14782    cd ..
14783    rmdir conftest
14784    $rm conftest*
14785
14786 fi
14787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14788 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14789
14790
14791 hard_links="nottested"
14792 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14793   # do not overwrite the value of need_locks provided by the user
14794   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14795 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14796   hard_links=yes
14797   $rm conftest*
14798   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14799   touch conftest.a
14800   ln conftest.a conftest.b 2>&5 || hard_links=no
14801   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14802   { echo "$as_me:$LINENO: result: $hard_links" >&5
14803 echo "${ECHO_T}$hard_links" >&6; }
14804   if test "$hard_links" = no; then
14805     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14806 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14807     need_locks=warn
14808   fi
14809 else
14810   need_locks=no
14811 fi
14812
14813 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14814 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14815
14816   runpath_var=
14817   allow_undefined_flag_F77=
14818   enable_shared_with_static_runtimes_F77=no
14819   archive_cmds_F77=
14820   archive_expsym_cmds_F77=
14821   old_archive_From_new_cmds_F77=
14822   old_archive_from_expsyms_cmds_F77=
14823   export_dynamic_flag_spec_F77=
14824   whole_archive_flag_spec_F77=
14825   thread_safe_flag_spec_F77=
14826   hardcode_libdir_flag_spec_F77=
14827   hardcode_libdir_flag_spec_ld_F77=
14828   hardcode_libdir_separator_F77=
14829   hardcode_direct_F77=no
14830   hardcode_minus_L_F77=no
14831   hardcode_shlibpath_var_F77=unsupported
14832   link_all_deplibs_F77=unknown
14833   hardcode_automatic_F77=no
14834   module_cmds_F77=
14835   module_expsym_cmds_F77=
14836   always_export_symbols_F77=no
14837   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14838   # include_expsyms should be a list of space-separated symbols to be *always*
14839   # included in the symbol list
14840   include_expsyms_F77=
14841   # exclude_expsyms can be an extended regexp of symbols to exclude
14842   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14843   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14844   # as well as any symbol that contains `d'.
14845   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14846   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14847   # platforms (ab)use it in PIC code, but their linkers get confused if
14848   # the symbol is explicitly referenced.  Since portable code cannot
14849   # rely on this symbol name, it's probably fine to never include it in
14850   # preloaded symbol tables.
14851   extract_expsyms_cmds=
14852   # Just being paranoid about ensuring that cc_basename is set.
14853   for cc_temp in $compiler""; do
14854   case $cc_temp in
14855     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14856     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14857     \-*) ;;
14858     *) break;;
14859   esac
14860 done
14861 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14862
14863   case $host_os in
14864   cygwin* | mingw* | pw32*)
14865     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14866     # When not using gcc, we currently assume that we are using
14867     # Microsoft Visual C++.
14868     if test "$GCC" != yes; then
14869       with_gnu_ld=no
14870     fi
14871     ;;
14872   interix*)
14873     # we just hope/assume this is gcc and not c89 (= MSVC++)
14874     with_gnu_ld=yes
14875     ;;
14876   openbsd*)
14877     with_gnu_ld=no
14878     ;;
14879   esac
14880
14881   ld_shlibs_F77=yes
14882   if test "$with_gnu_ld" = yes; then
14883     # If archive_cmds runs LD, not CC, wlarc should be empty
14884     wlarc='${wl}'
14885
14886     # Set some defaults for GNU ld with shared library support. These
14887     # are reset later if shared libraries are not supported. Putting them
14888     # here allows them to be overridden if necessary.
14889     runpath_var=LD_RUN_PATH
14890     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14891     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14892     # ancient GNU ld didn't support --whole-archive et. al.
14893     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14894         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14895       else
14896         whole_archive_flag_spec_F77=
14897     fi
14898     supports_anon_versioning=no
14899     case `$LD -v 2>/dev/null` in
14900       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14901       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14902       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14903       *\ 2.11.*) ;; # other 2.11 versions
14904       *) supports_anon_versioning=yes ;;
14905     esac
14906
14907     # See if GNU ld supports shared libraries.
14908     case $host_os in
14909     aix3* | aix4* | aix5*)
14910       # On AIX/PPC, the GNU linker is very broken
14911       if test "$host_cpu" != ia64; then
14912         ld_shlibs_F77=no
14913         cat <<EOF 1>&2
14914
14915 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14916 *** to be unable to reliably create shared libraries on AIX.
14917 *** Therefore, libtool is disabling shared libraries support.  If you
14918 *** really care for shared libraries, you may want to modify your PATH
14919 *** so that a non-GNU linker is found, and then restart.
14920
14921 EOF
14922       fi
14923       ;;
14924
14925     amigaos*)
14926       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)'
14927       hardcode_libdir_flag_spec_F77='-L$libdir'
14928       hardcode_minus_L_F77=yes
14929
14930       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14931       # that the semantics of dynamic libraries on AmigaOS, at least up
14932       # to version 4, is to share data among multiple programs linked
14933       # with the same dynamic library.  Since this doesn't match the
14934       # behavior of shared libraries on other platforms, we can't use
14935       # them.
14936       ld_shlibs_F77=no
14937       ;;
14938
14939     beos*)
14940       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14941         allow_undefined_flag_F77=unsupported
14942         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14943         # support --undefined.  This deserves some investigation.  FIXME
14944         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14945       else
14946         ld_shlibs_F77=no
14947       fi
14948       ;;
14949
14950     cygwin* | mingw* | pw32*)
14951       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14952       # as there is no search path for DLLs.
14953       hardcode_libdir_flag_spec_F77='-L$libdir'
14954       allow_undefined_flag_F77=unsupported
14955       always_export_symbols_F77=no
14956       enable_shared_with_static_runtimes_F77=yes
14957       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14958
14959       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14960         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14961         # If the export-symbols file already is a .def file (1st line
14962         # is EXPORTS), use it as is; otherwise, prepend...
14963         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14964           cp $export_symbols $output_objdir/$soname.def;
14965         else
14966           echo EXPORTS > $output_objdir/$soname.def;
14967           cat $export_symbols >> $output_objdir/$soname.def;
14968         fi~
14969         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14970       else
14971         ld_shlibs_F77=no
14972       fi
14973       ;;
14974
14975     interix[3-9]*)
14976       hardcode_direct_F77=no
14977       hardcode_shlibpath_var_F77=no
14978       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14979       export_dynamic_flag_spec_F77='${wl}-E'
14980       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14981       # Instead, shared libraries are loaded at an image base (0x10000000 by
14982       # default) and relocated if they conflict, which is a slow very memory
14983       # consuming and fragmenting process.  To avoid this, we pick a random,
14984       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14985       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14986       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'
14987       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'
14988       ;;
14989
14990     gnu* | linux* | k*bsd*-gnu)
14991       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14992         tmp_addflag=
14993         case $cc_basename,$host_cpu in
14994         pgcc*)                          # Portland Group C compiler
14995           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'
14996           tmp_addflag=' $pic_flag'
14997           ;;
14998         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14999           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'
15000           tmp_addflag=' $pic_flag -Mnomain' ;;
15001         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15002           tmp_addflag=' -i_dynamic' ;;
15003         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15004           tmp_addflag=' -i_dynamic -nofor_main' ;;
15005         ifc* | ifort*)                  # Intel Fortran compiler
15006           tmp_addflag=' -nofor_main' ;;
15007         esac
15008         case `$CC -V 2>&1 | sed 5q` in
15009         *Sun\ C*)                       # Sun C 5.9
15010           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'
15011           tmp_sharedflag='-G' ;;
15012         *Sun\ F*)                       # Sun Fortran 8.3
15013           tmp_sharedflag='-G' ;;
15014         *)
15015           tmp_sharedflag='-shared' ;;
15016         esac
15017         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018
15019         if test $supports_anon_versioning = yes; then
15020           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15021   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15022   $echo "local: *; };" >> $output_objdir/$libname.ver~
15023           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15024         fi
15025         link_all_deplibs_F77=no
15026       else
15027         ld_shlibs_F77=no
15028       fi
15029       ;;
15030
15031     netbsd* | netbsdelf*-gnu)
15032       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15033         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15034         wlarc=
15035       else
15036         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15038       fi
15039       ;;
15040
15041     solaris*)
15042       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15043         ld_shlibs_F77=no
15044         cat <<EOF 1>&2
15045
15046 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15047 *** create shared libraries on Solaris systems.  Therefore, libtool
15048 *** is disabling shared libraries support.  We urge you to upgrade GNU
15049 *** binutils to release 2.9.1 or newer.  Another option is to modify
15050 *** your PATH or compiler configuration so that the native linker is
15051 *** used, and then restart.
15052
15053 EOF
15054       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15055         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15057       else
15058         ld_shlibs_F77=no
15059       fi
15060       ;;
15061
15062     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15063       case `$LD -v 2>&1` in
15064         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15065         ld_shlibs_F77=no
15066         cat <<_LT_EOF 1>&2
15067
15068 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15069 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15070 *** is disabling shared libraries support.  We urge you to upgrade GNU
15071 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15072 *** your PATH or compiler configuration so that the native linker is
15073 *** used, and then restart.
15074
15075 _LT_EOF
15076         ;;
15077         *)
15078           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15079             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15080             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15081             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15082           else
15083             ld_shlibs_F77=no
15084           fi
15085         ;;
15086       esac
15087       ;;
15088
15089     sunos4*)
15090       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15091       wlarc=
15092       hardcode_direct_F77=yes
15093       hardcode_shlibpath_var_F77=no
15094       ;;
15095
15096     *)
15097       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15100       else
15101         ld_shlibs_F77=no
15102       fi
15103       ;;
15104     esac
15105
15106     if test "$ld_shlibs_F77" = no; then
15107       runpath_var=
15108       hardcode_libdir_flag_spec_F77=
15109       export_dynamic_flag_spec_F77=
15110       whole_archive_flag_spec_F77=
15111     fi
15112   else
15113     # PORTME fill in a description of your system's linker (not GNU ld)
15114     case $host_os in
15115     aix3*)
15116       allow_undefined_flag_F77=unsupported
15117       always_export_symbols_F77=yes
15118       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'
15119       # Note: this linker hardcodes the directories in LIBPATH if there
15120       # are no directories specified by -L.
15121       hardcode_minus_L_F77=yes
15122       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15123         # Neither direct hardcoding nor static linking is supported with a
15124         # broken collect2.
15125         hardcode_direct_F77=unsupported
15126       fi
15127       ;;
15128
15129     aix4* | aix5*)
15130       if test "$host_cpu" = ia64; then
15131         # On IA64, the linker does run time linking by default, so we don't
15132         # have to do anything special.
15133         aix_use_runtimelinking=no
15134         exp_sym_flag='-Bexport'
15135         no_entry_flag=""
15136       else
15137         # If we're using GNU nm, then we don't want the "-C" option.
15138         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15139         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15140           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'
15141         else
15142           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'
15143         fi
15144         aix_use_runtimelinking=no
15145
15146         # Test if we are trying to use run time linking or normal
15147         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15148         # need to do runtime linking.
15149         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15150           for ld_flag in $LDFLAGS; do
15151           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15152             aix_use_runtimelinking=yes
15153             break
15154           fi
15155           done
15156           ;;
15157         esac
15158
15159         exp_sym_flag='-bexport'
15160         no_entry_flag='-bnoentry'
15161       fi
15162
15163       # When large executables or shared objects are built, AIX ld can
15164       # have problems creating the table of contents.  If linking a library
15165       # or program results in "error TOC overflow" add -mminimal-toc to
15166       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15167       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15168
15169       archive_cmds_F77=''
15170       hardcode_direct_F77=yes
15171       hardcode_libdir_separator_F77=':'
15172       link_all_deplibs_F77=yes
15173
15174       if test "$GCC" = yes; then
15175         case $host_os in aix4.[012]|aix4.[012].*)
15176         # We only want to do this on AIX 4.2 and lower, the check
15177         # below for broken collect2 doesn't work under 4.3+
15178           collect2name=`${CC} -print-prog-name=collect2`
15179           if test -f "$collect2name" && \
15180            strings "$collect2name" | grep resolve_lib_name >/dev/null
15181           then
15182           # We have reworked collect2
15183           :
15184           else
15185           # We have old collect2
15186           hardcode_direct_F77=unsupported
15187           # It fails to find uninstalled libraries when the uninstalled
15188           # path is not listed in the libpath.  Setting hardcode_minus_L
15189           # to unsupported forces relinking
15190           hardcode_minus_L_F77=yes
15191           hardcode_libdir_flag_spec_F77='-L$libdir'
15192           hardcode_libdir_separator_F77=
15193           fi
15194           ;;
15195         esac
15196         shared_flag='-shared'
15197         if test "$aix_use_runtimelinking" = yes; then
15198           shared_flag="$shared_flag "'${wl}-G'
15199         fi
15200       else
15201         # not using gcc
15202         if test "$host_cpu" = ia64; then
15203         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15204         # chokes on -Wl,-G. The following line is correct:
15205           shared_flag='-G'
15206         else
15207           if test "$aix_use_runtimelinking" = yes; then
15208             shared_flag='${wl}-G'
15209           else
15210             shared_flag='${wl}-bM:SRE'
15211           fi
15212         fi
15213       fi
15214
15215       # It seems that -bexpall does not export symbols beginning with
15216       # underscore (_), so it is better to generate a list of symbols to export.
15217       always_export_symbols_F77=yes
15218       if test "$aix_use_runtimelinking" = yes; then
15219         # Warning - without using the other runtime loading flags (-brtl),
15220         # -berok will link without error, but may produce a broken library.
15221         allow_undefined_flag_F77='-berok'
15222        # Determine the default libpath from the value encoded in an empty executable.
15223        cat >conftest.$ac_ext <<_ACEOF
15224       program main
15225
15226       end
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_link") 2>conftest.er1
15236   ac_status=$?
15237   grep -v '^ *+' conftest.er1 >conftest.err
15238   rm -f conftest.er1
15239   cat conftest.err >&5
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } && {
15242          test -z "$ac_f77_werror_flag" ||
15243          test ! -s conftest.err
15244        } && test -s conftest$ac_exeext &&
15245        $as_test_x conftest$ac_exeext; then
15246
15247 lt_aix_libpath_sed='
15248     /Import File Strings/,/^$/ {
15249         /^0/ {
15250             s/^0  *\(.*\)$/\1/
15251             p
15252         }
15253     }'
15254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15255 # Check for a 64-bit object if we didn't find anything.
15256 if test -z "$aix_libpath"; then
15257   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15258 fi
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263
15264 fi
15265
15266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15267       conftest$ac_exeext conftest.$ac_ext
15268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15269
15270        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15271         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"
15272        else
15273         if test "$host_cpu" = ia64; then
15274           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15275           allow_undefined_flag_F77="-z nodefs"
15276           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"
15277         else
15278          # Determine the default libpath from the value encoded in an empty executable.
15279          cat >conftest.$ac_ext <<_ACEOF
15280       program main
15281
15282       end
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (ac_try="$ac_link"
15286 case "(($ac_try" in
15287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288   *) ac_try_echo=$ac_try;;
15289 esac
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291   (eval "$ac_link") 2>conftest.er1
15292   ac_status=$?
15293   grep -v '^ *+' conftest.er1 >conftest.err
15294   rm -f conftest.er1
15295   cat conftest.err >&5
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); } && {
15298          test -z "$ac_f77_werror_flag" ||
15299          test ! -s conftest.err
15300        } && test -s conftest$ac_exeext &&
15301        $as_test_x conftest$ac_exeext; then
15302
15303 lt_aix_libpath_sed='
15304     /Import File Strings/,/^$/ {
15305         /^0/ {
15306             s/^0  *\(.*\)$/\1/
15307             p
15308         }
15309     }'
15310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311 # Check for a 64-bit object if we didn't find anything.
15312 if test -z "$aix_libpath"; then
15313   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15314 fi
15315 else
15316   echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319
15320 fi
15321
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323       conftest$ac_exeext conftest.$ac_ext
15324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15325
15326          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15327           # Warning - without using the other run time loading flags,
15328           # -berok will link without error, but may produce a broken library.
15329           no_undefined_flag_F77=' ${wl}-bernotok'
15330           allow_undefined_flag_F77=' ${wl}-berok'
15331           # Exported symbols can be pulled into shared objects from archives
15332           whole_archive_flag_spec_F77='$convenience'
15333           archive_cmds_need_lc_F77=yes
15334           # This is similar to how AIX traditionally builds its shared libraries.
15335           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'
15336         fi
15337       fi
15338       ;;
15339
15340     amigaos*)
15341       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)'
15342       hardcode_libdir_flag_spec_F77='-L$libdir'
15343       hardcode_minus_L_F77=yes
15344       # see comment about different semantics on the GNU ld section
15345       ld_shlibs_F77=no
15346       ;;
15347
15348     bsdi[45]*)
15349       export_dynamic_flag_spec_F77=-rdynamic
15350       ;;
15351
15352     cygwin* | mingw* | pw32*)
15353       # When not using gcc, we currently assume that we are using
15354       # Microsoft Visual C++.
15355       # hardcode_libdir_flag_spec is actually meaningless, as there is
15356       # no search path for DLLs.
15357       hardcode_libdir_flag_spec_F77=' '
15358       allow_undefined_flag_F77=unsupported
15359       # Tell ltmain to make .lib files, not .a files.
15360       libext=lib
15361       # Tell ltmain to make .dll files, not .so files.
15362       shrext_cmds=".dll"
15363       # FIXME: Setting linknames here is a bad hack.
15364       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15365       # The linker will automatically build a .lib file if we build a DLL.
15366       old_archive_From_new_cmds_F77='true'
15367       # FIXME: Should let the user specify the lib program.
15368       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15369       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15370       enable_shared_with_static_runtimes_F77=yes
15371       ;;
15372
15373     darwin* | rhapsody*)
15374       case $host_os in
15375         rhapsody* | darwin1.[012])
15376          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15377          ;;
15378        *) # Darwin 1.3 on
15379          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15380            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15381          else
15382            case ${MACOSX_DEPLOYMENT_TARGET} in
15383              10.[012])
15384                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15385                ;;
15386              10.*)
15387                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15388                ;;
15389            esac
15390          fi
15391          ;;
15392       esac
15393       archive_cmds_need_lc_F77=no
15394       hardcode_direct_F77=no
15395       hardcode_automatic_F77=yes
15396       hardcode_shlibpath_var_F77=unsupported
15397       whole_archive_flag_spec_F77=''
15398       link_all_deplibs_F77=yes
15399     if test "$GCC" = yes ; then
15400         output_verbose_link_cmd='echo'
15401         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15402       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15403       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15404       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15405       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}'
15406     else
15407       case $cc_basename in
15408         xlc*)
15409          output_verbose_link_cmd='echo'
15410          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15411          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15412           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15413          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}'
15414           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}'
15415           ;;
15416        *)
15417          ld_shlibs_F77=no
15418           ;;
15419       esac
15420     fi
15421       ;;
15422
15423     dgux*)
15424       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425       hardcode_libdir_flag_spec_F77='-L$libdir'
15426       hardcode_shlibpath_var_F77=no
15427       ;;
15428
15429     freebsd1*)
15430       ld_shlibs_F77=no
15431       ;;
15432
15433     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15434     # support.  Future versions do this automatically, but an explicit c++rt0.o
15435     # does not break anything, and helps significantly (at the cost of a little
15436     # extra space).
15437     freebsd2.2*)
15438       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15439       hardcode_libdir_flag_spec_F77='-R$libdir'
15440       hardcode_direct_F77=yes
15441       hardcode_shlibpath_var_F77=no
15442       ;;
15443
15444     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15445     freebsd2*)
15446       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15447       hardcode_direct_F77=yes
15448       hardcode_minus_L_F77=yes
15449       hardcode_shlibpath_var_F77=no
15450       ;;
15451
15452     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15453     freebsd* | dragonfly*)
15454       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15455       hardcode_libdir_flag_spec_F77='-R$libdir'
15456       hardcode_direct_F77=yes
15457       hardcode_shlibpath_var_F77=no
15458       ;;
15459
15460     hpux9*)
15461       if test "$GCC" = yes; then
15462         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'
15463       else
15464         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'
15465       fi
15466       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15467       hardcode_libdir_separator_F77=:
15468       hardcode_direct_F77=yes
15469
15470       # hardcode_minus_L: Not really in the search PATH,
15471       # but as the default location of the library.
15472       hardcode_minus_L_F77=yes
15473       export_dynamic_flag_spec_F77='${wl}-E'
15474       ;;
15475
15476     hpux10*)
15477       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15478         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15479       else
15480         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15481       fi
15482       if test "$with_gnu_ld" = no; then
15483         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15484         hardcode_libdir_separator_F77=:
15485
15486         hardcode_direct_F77=yes
15487         export_dynamic_flag_spec_F77='${wl}-E'
15488
15489         # hardcode_minus_L: Not really in the search PATH,
15490         # but as the default location of the library.
15491         hardcode_minus_L_F77=yes
15492       fi
15493       ;;
15494
15495     hpux11*)
15496       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15497         case $host_cpu in
15498         hppa*64*)
15499           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500           ;;
15501         ia64*)
15502           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15503           ;;
15504         *)
15505           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15506           ;;
15507         esac
15508       else
15509         case $host_cpu in
15510         hppa*64*)
15511           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512           ;;
15513         ia64*)
15514           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15515           ;;
15516         *)
15517           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15518           ;;
15519         esac
15520       fi
15521       if test "$with_gnu_ld" = no; then
15522         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15523         hardcode_libdir_separator_F77=:
15524
15525         case $host_cpu in
15526         hppa*64*|ia64*)
15527           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15528           hardcode_direct_F77=no
15529           hardcode_shlibpath_var_F77=no
15530           ;;
15531         *)
15532           hardcode_direct_F77=yes
15533           export_dynamic_flag_spec_F77='${wl}-E'
15534
15535           # hardcode_minus_L: Not really in the search PATH,
15536           # but as the default location of the library.
15537           hardcode_minus_L_F77=yes
15538           ;;
15539         esac
15540       fi
15541       ;;
15542
15543     irix5* | irix6* | nonstopux*)
15544       if test "$GCC" = yes; then
15545         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'
15546       else
15547         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'
15548         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15549       fi
15550       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15551       hardcode_libdir_separator_F77=:
15552       link_all_deplibs_F77=yes
15553       ;;
15554
15555     netbsd* | netbsdelf*-gnu)
15556       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15557         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15558       else
15559         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15560       fi
15561       hardcode_libdir_flag_spec_F77='-R$libdir'
15562       hardcode_direct_F77=yes
15563       hardcode_shlibpath_var_F77=no
15564       ;;
15565
15566     newsos6)
15567       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568       hardcode_direct_F77=yes
15569       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15570       hardcode_libdir_separator_F77=:
15571       hardcode_shlibpath_var_F77=no
15572       ;;
15573
15574     openbsd*)
15575       if test -f /usr/libexec/ld.so; then
15576         hardcode_direct_F77=yes
15577         hardcode_shlibpath_var_F77=no
15578         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15579           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15581           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15582           export_dynamic_flag_spec_F77='${wl}-E'
15583         else
15584           case $host_os in
15585            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15586              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587              hardcode_libdir_flag_spec_F77='-R$libdir'
15588              ;;
15589            *)
15590              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15591              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15592              ;;
15593           esac
15594         fi
15595       else
15596         ld_shlibs_F77=no
15597       fi
15598       ;;
15599
15600     os2*)
15601       hardcode_libdir_flag_spec_F77='-L$libdir'
15602       hardcode_minus_L_F77=yes
15603       allow_undefined_flag_F77=unsupported
15604       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'
15605       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15606       ;;
15607
15608     osf3*)
15609       if test "$GCC" = yes; then
15610         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15611         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'
15612       else
15613         allow_undefined_flag_F77=' -expect_unresolved \*'
15614         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'
15615       fi
15616       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15617       hardcode_libdir_separator_F77=:
15618       ;;
15619
15620     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15621       if test "$GCC" = yes; then
15622         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15623         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'
15624         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15625       else
15626         allow_undefined_flag_F77=' -expect_unresolved \*'
15627         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'
15628         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~
15629         $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'
15630
15631         # Both c and cxx compiler support -rpath directly
15632         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15633       fi
15634       hardcode_libdir_separator_F77=:
15635       ;;
15636
15637     solaris*)
15638       no_undefined_flag_F77=' -z text'
15639       if test "$GCC" = yes; then
15640         wlarc='${wl}'
15641         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15644       else
15645         wlarc=''
15646         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15648         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15649       fi
15650       hardcode_libdir_flag_spec_F77='-R$libdir'
15651       hardcode_shlibpath_var_F77=no
15652       case $host_os in
15653       solaris2.[0-5] | solaris2.[0-5].*) ;;
15654       *)
15655         # The compiler driver will combine and reorder linker options,
15656         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15657         # but is careful enough not to reorder.
15658         # Supported since Solaris 2.6 (maybe 2.5.1?)
15659         if test "$GCC" = yes; then
15660           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15661         else
15662           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15663         fi
15664         ;;
15665       esac
15666       link_all_deplibs_F77=yes
15667       ;;
15668
15669     sunos4*)
15670       if test "x$host_vendor" = xsequent; then
15671         # Use $CC to link under sequent, because it throws in some extra .o
15672         # files that make .init and .fini sections work.
15673         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15674       else
15675         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15676       fi
15677       hardcode_libdir_flag_spec_F77='-L$libdir'
15678       hardcode_direct_F77=yes
15679       hardcode_minus_L_F77=yes
15680       hardcode_shlibpath_var_F77=no
15681       ;;
15682
15683     sysv4)
15684       case $host_vendor in
15685         sni)
15686           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687           hardcode_direct_F77=yes # is this really true???
15688         ;;
15689         siemens)
15690           ## LD is ld it makes a PLAMLIB
15691           ## CC just makes a GrossModule.
15692           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15693           reload_cmds_F77='$CC -r -o $output$reload_objs'
15694           hardcode_direct_F77=no
15695         ;;
15696         motorola)
15697           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15699         ;;
15700       esac
15701       runpath_var='LD_RUN_PATH'
15702       hardcode_shlibpath_var_F77=no
15703       ;;
15704
15705     sysv4.3*)
15706       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707       hardcode_shlibpath_var_F77=no
15708       export_dynamic_flag_spec_F77='-Bexport'
15709       ;;
15710
15711     sysv4*MP*)
15712       if test -d /usr/nec; then
15713         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714         hardcode_shlibpath_var_F77=no
15715         runpath_var=LD_RUN_PATH
15716         hardcode_runpath_var=yes
15717         ld_shlibs_F77=yes
15718       fi
15719       ;;
15720
15721     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15722       no_undefined_flag_F77='${wl}-z,text'
15723       archive_cmds_need_lc_F77=no
15724       hardcode_shlibpath_var_F77=no
15725       runpath_var='LD_RUN_PATH'
15726
15727       if test "$GCC" = yes; then
15728         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730       else
15731         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733       fi
15734       ;;
15735
15736     sysv5* | sco3.2v5* | sco5v6*)
15737       # Note: We can NOT use -z defs as we might desire, because we do not
15738       # link with -lc, and that would cause any symbols used from libc to
15739       # always be unresolved, which means just about no library would
15740       # ever link correctly.  If we're not using GNU ld we use -z text
15741       # though, which does catch some bad symbols but isn't as heavy-handed
15742       # as -z defs.
15743       no_undefined_flag_F77='${wl}-z,text'
15744       allow_undefined_flag_F77='${wl}-z,nodefs'
15745       archive_cmds_need_lc_F77=no
15746       hardcode_shlibpath_var_F77=no
15747       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15748       hardcode_libdir_separator_F77=':'
15749       link_all_deplibs_F77=yes
15750       export_dynamic_flag_spec_F77='${wl}-Bexport'
15751       runpath_var='LD_RUN_PATH'
15752
15753       if test "$GCC" = yes; then
15754         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756       else
15757         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759       fi
15760       ;;
15761
15762     uts4*)
15763       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764       hardcode_libdir_flag_spec_F77='-L$libdir'
15765       hardcode_shlibpath_var_F77=no
15766       ;;
15767
15768     *)
15769       ld_shlibs_F77=no
15770       ;;
15771     esac
15772   fi
15773
15774 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15775 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15776 test "$ld_shlibs_F77" = no && can_build_shared=no
15777
15778 #
15779 # Do we need to explicitly link libc?
15780 #
15781 case "x$archive_cmds_need_lc_F77" in
15782 x|xyes)
15783   # Assume -lc should be added
15784   archive_cmds_need_lc_F77=yes
15785
15786   if test "$enable_shared" = yes && test "$GCC" = yes; then
15787     case $archive_cmds_F77 in
15788     *'~'*)
15789       # FIXME: we may have to deal with multi-command sequences.
15790       ;;
15791     '$CC '*)
15792       # Test whether the compiler implicitly links with -lc since on some
15793       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15794       # to ld, don't add -lc before -lgcc.
15795       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15797       $rm conftest*
15798       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15799
15800       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801   (eval $ac_compile) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } 2>conftest.err; then
15805         soname=conftest
15806         lib=conftest
15807         libobjs=conftest.$ac_objext
15808         deplibs=
15809         wl=$lt_prog_compiler_wl_F77
15810         pic_flag=$lt_prog_compiler_pic_F77
15811         compiler_flags=-v
15812         linker_flags=-v
15813         verstring=
15814         output_objdir=.
15815         libname=conftest
15816         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15817         allow_undefined_flag_F77=
15818         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15819   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); }
15823         then
15824           archive_cmds_need_lc_F77=no
15825         else
15826           archive_cmds_need_lc_F77=yes
15827         fi
15828         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15829       else
15830         cat conftest.err 1>&5
15831       fi
15832       $rm conftest*
15833       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15834 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15835       ;;
15836     esac
15837   fi
15838   ;;
15839 esac
15840
15841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15843 library_names_spec=
15844 libname_spec='lib$name'
15845 soname_spec=
15846 shrext_cmds=".so"
15847 postinstall_cmds=
15848 postuninstall_cmds=
15849 finish_cmds=
15850 finish_eval=
15851 shlibpath_var=
15852 shlibpath_overrides_runpath=unknown
15853 version_type=none
15854 dynamic_linker="$host_os ld.so"
15855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15856
15857 need_lib_prefix=unknown
15858 hardcode_into_libs=no
15859
15860 # when you set need_version to no, make sure it does not cause -set_version
15861 # flags to be left without arguments
15862 need_version=unknown
15863
15864 case $host_os in
15865 aix3*)
15866   version_type=linux
15867   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15868   shlibpath_var=LIBPATH
15869
15870   # AIX 3 has no versioning support, so we append a major version to the name.
15871   soname_spec='${libname}${release}${shared_ext}$major'
15872   ;;
15873
15874 aix4* | aix5*)
15875   version_type=linux
15876   need_lib_prefix=no
15877   need_version=no
15878   hardcode_into_libs=yes
15879   if test "$host_cpu" = ia64; then
15880     # AIX 5 supports IA64
15881     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15882     shlibpath_var=LD_LIBRARY_PATH
15883   else
15884     # With GCC up to 2.95.x, collect2 would create an import file
15885     # for dependence libraries.  The import file would start with
15886     # the line `#! .'.  This would cause the generated library to
15887     # depend on `.', always an invalid library.  This was fixed in
15888     # development snapshots of GCC prior to 3.0.
15889     case $host_os in
15890       aix4 | aix4.[01] | aix4.[01].*)
15891       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15892            echo ' yes '
15893            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15894         :
15895       else
15896         can_build_shared=no
15897       fi
15898       ;;
15899     esac
15900     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15901     # soname into executable. Probably we can add versioning support to
15902     # collect2, so additional links can be useful in future.
15903     if test "$aix_use_runtimelinking" = yes; then
15904       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15905       # instead of lib<name>.a to let people know that these are not
15906       # typical AIX shared libraries.
15907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908     else
15909       # We preserve .a as extension for shared libraries through AIX4.2
15910       # and later when we are not doing run time linking.
15911       library_names_spec='${libname}${release}.a $libname.a'
15912       soname_spec='${libname}${release}${shared_ext}$major'
15913     fi
15914     shlibpath_var=LIBPATH
15915   fi
15916   ;;
15917
15918 amigaos*)
15919   library_names_spec='$libname.ixlibrary $libname.a'
15920   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15921   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'
15922   ;;
15923
15924 beos*)
15925   library_names_spec='${libname}${shared_ext}'
15926   dynamic_linker="$host_os ld.so"
15927   shlibpath_var=LIBRARY_PATH
15928   ;;
15929
15930 bsdi[45]*)
15931   version_type=linux
15932   need_version=no
15933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934   soname_spec='${libname}${release}${shared_ext}$major'
15935   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15936   shlibpath_var=LD_LIBRARY_PATH
15937   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15938   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15939   # the default ld.so.conf also contains /usr/contrib/lib and
15940   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15941   # libtool to hard-code these into programs
15942   ;;
15943
15944 cygwin* | mingw* | pw32*)
15945   version_type=windows
15946   shrext_cmds=".dll"
15947   need_version=no
15948   need_lib_prefix=no
15949
15950   case $GCC,$host_os in
15951   yes,cygwin* | yes,mingw* | yes,pw32*)
15952     library_names_spec='$libname.dll.a'
15953     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15954     postinstall_cmds='base_file=`basename \${file}`~
15955       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15956       dldir=$destdir/`dirname \$dlpath`~
15957       test -d \$dldir || mkdir -p \$dldir~
15958       $install_prog $dir/$dlname \$dldir/$dlname~
15959       chmod a+x \$dldir/$dlname'
15960     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15961       dlpath=$dir/\$dldll~
15962        $rm \$dlpath'
15963     shlibpath_overrides_runpath=yes
15964
15965     case $host_os in
15966     cygwin*)
15967       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15968       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15970       ;;
15971     mingw*)
15972       # MinGW DLLs use traditional 'lib' prefix
15973       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15974       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15976         # It is most probably a Windows format PATH printed by
15977         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15978         # path with ; separators, and with drive letters. We can handle the
15979         # drive letters (cygwin fileutils understands them), so leave them,
15980         # especially as we might pass files found there to a mingw objdump,
15981         # which wouldn't understand a cygwinified path. Ahh.
15982         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15983       else
15984         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15985       fi
15986       ;;
15987     pw32*)
15988       # pw32 DLLs use 'pw' prefix rather than 'lib'
15989       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15990       ;;
15991     esac
15992     ;;
15993
15994   *)
15995     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15996     ;;
15997   esac
15998   dynamic_linker='Win32 ld.exe'
15999   # FIXME: first we should search . and the directory the executable is in
16000   shlibpath_var=PATH
16001   ;;
16002
16003 darwin* | rhapsody*)
16004   dynamic_linker="$host_os dyld"
16005   version_type=darwin
16006   need_lib_prefix=no
16007   need_version=no
16008   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16009   soname_spec='${libname}${release}${major}$shared_ext'
16010   shlibpath_overrides_runpath=yes
16011   shlibpath_var=DYLD_LIBRARY_PATH
16012   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16013
16014   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16015   ;;
16016
16017 dgux*)
16018   version_type=linux
16019   need_lib_prefix=no
16020   need_version=no
16021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16022   soname_spec='${libname}${release}${shared_ext}$major'
16023   shlibpath_var=LD_LIBRARY_PATH
16024   ;;
16025
16026 freebsd1*)
16027   dynamic_linker=no
16028   ;;
16029
16030 freebsd* | dragonfly*)
16031   # DragonFly does not have aout.  When/if they implement a new
16032   # versioning mechanism, adjust this.
16033   if test -x /usr/bin/objformat; then
16034     objformat=`/usr/bin/objformat`
16035   else
16036     case $host_os in
16037     freebsd[123]*) objformat=aout ;;
16038     *) objformat=elf ;;
16039     esac
16040   fi
16041   version_type=freebsd-$objformat
16042   case $version_type in
16043     freebsd-elf*)
16044       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16045       need_version=no
16046       need_lib_prefix=no
16047       ;;
16048     freebsd-*)
16049       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16050       need_version=yes
16051       ;;
16052   esac
16053   shlibpath_var=LD_LIBRARY_PATH
16054   case $host_os in
16055   freebsd2*)
16056     shlibpath_overrides_runpath=yes
16057     ;;
16058   freebsd3.[01]* | freebsdelf3.[01]*)
16059     shlibpath_overrides_runpath=yes
16060     hardcode_into_libs=yes
16061     ;;
16062   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16063   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16064     shlibpath_overrides_runpath=no
16065     hardcode_into_libs=yes
16066     ;;
16067   *) # from 4.6 on, and DragonFly
16068     shlibpath_overrides_runpath=yes
16069     hardcode_into_libs=yes
16070     ;;
16071   esac
16072   ;;
16073
16074 gnu*)
16075   version_type=linux
16076   need_lib_prefix=no
16077   need_version=no
16078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16079   soname_spec='${libname}${release}${shared_ext}$major'
16080   shlibpath_var=LD_LIBRARY_PATH
16081   hardcode_into_libs=yes
16082   ;;
16083
16084 hpux9* | hpux10* | hpux11*)
16085   # Give a soname corresponding to the major version so that dld.sl refuses to
16086   # link against other versions.
16087   version_type=sunos
16088   need_lib_prefix=no
16089   need_version=no
16090   case $host_cpu in
16091   ia64*)
16092     shrext_cmds='.so'
16093     hardcode_into_libs=yes
16094     dynamic_linker="$host_os dld.so"
16095     shlibpath_var=LD_LIBRARY_PATH
16096     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098     soname_spec='${libname}${release}${shared_ext}$major'
16099     if test "X$HPUX_IA64_MODE" = X32; then
16100       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16101     else
16102       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16103     fi
16104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16105     ;;
16106    hppa*64*)
16107      shrext_cmds='.sl'
16108      hardcode_into_libs=yes
16109      dynamic_linker="$host_os dld.sl"
16110      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16111      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16112      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113      soname_spec='${libname}${release}${shared_ext}$major'
16114      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16115      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16116      ;;
16117    *)
16118     shrext_cmds='.sl'
16119     dynamic_linker="$host_os dld.sl"
16120     shlibpath_var=SHLIB_PATH
16121     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123     soname_spec='${libname}${release}${shared_ext}$major'
16124     ;;
16125   esac
16126   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16127   postinstall_cmds='chmod 555 $lib'
16128   ;;
16129
16130 interix[3-9]*)
16131   version_type=linux
16132   need_lib_prefix=no
16133   need_version=no
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16135   soname_spec='${libname}${release}${shared_ext}$major'
16136   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16137   shlibpath_var=LD_LIBRARY_PATH
16138   shlibpath_overrides_runpath=no
16139   hardcode_into_libs=yes
16140   ;;
16141
16142 irix5* | irix6* | nonstopux*)
16143   case $host_os in
16144     nonstopux*) version_type=nonstopux ;;
16145     *)
16146         if test "$lt_cv_prog_gnu_ld" = yes; then
16147                 version_type=linux
16148         else
16149                 version_type=irix
16150         fi ;;
16151   esac
16152   need_lib_prefix=no
16153   need_version=no
16154   soname_spec='${libname}${release}${shared_ext}$major'
16155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16156   case $host_os in
16157   irix5* | nonstopux*)
16158     libsuff= shlibsuff=
16159     ;;
16160   *)
16161     case $LD in # libtool.m4 will add one of these switches to LD
16162     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16163       libsuff= shlibsuff= libmagic=32-bit;;
16164     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16165       libsuff=32 shlibsuff=N32 libmagic=N32;;
16166     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16167       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16168     *) libsuff= shlibsuff= libmagic=never-match;;
16169     esac
16170     ;;
16171   esac
16172   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16173   shlibpath_overrides_runpath=no
16174   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16175   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16176   hardcode_into_libs=yes
16177   ;;
16178
16179 # No shared lib support for Linux oldld, aout, or coff.
16180 linux*oldld* | linux*aout* | linux*coff*)
16181   dynamic_linker=no
16182   ;;
16183
16184 # This must be Linux ELF.
16185 linux* | k*bsd*-gnu)
16186   version_type=linux
16187   need_lib_prefix=no
16188   need_version=no
16189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190   soname_spec='${libname}${release}${shared_ext}$major'
16191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16192   shlibpath_var=LD_LIBRARY_PATH
16193   shlibpath_overrides_runpath=no
16194   # This implies no fast_install, which is unacceptable.
16195   # Some rework will be needed to allow for fast_install
16196   # before this can be enabled.
16197   hardcode_into_libs=yes
16198
16199   # Append ld.so.conf contents to the search path
16200   if test -f /etc/ld.so.conf; then
16201     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' ' '`
16202     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16203   fi
16204
16205   # We used to test for /lib/ld.so.1 and disable shared libraries on
16206   # powerpc, because MkLinux only supported shared libraries with the
16207   # GNU dynamic linker.  Since this was broken with cross compilers,
16208   # most powerpc-linux boxes support dynamic linking these days and
16209   # people can always --disable-shared, the test was removed, and we
16210   # assume the GNU/Linux dynamic linker is in use.
16211   dynamic_linker='GNU/Linux ld.so'
16212   ;;
16213
16214 netbsdelf*-gnu)
16215   version_type=linux
16216   need_lib_prefix=no
16217   need_version=no
16218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16219   soname_spec='${libname}${release}${shared_ext}$major'
16220   shlibpath_var=LD_LIBRARY_PATH
16221   shlibpath_overrides_runpath=no
16222   hardcode_into_libs=yes
16223   dynamic_linker='NetBSD ld.elf_so'
16224   ;;
16225
16226 netbsd*)
16227   version_type=sunos
16228   need_lib_prefix=no
16229   need_version=no
16230   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16232     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16233     dynamic_linker='NetBSD (a.out) ld.so'
16234   else
16235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236     soname_spec='${libname}${release}${shared_ext}$major'
16237     dynamic_linker='NetBSD ld.elf_so'
16238   fi
16239   shlibpath_var=LD_LIBRARY_PATH
16240   shlibpath_overrides_runpath=yes
16241   hardcode_into_libs=yes
16242   ;;
16243
16244 newsos6)
16245   version_type=linux
16246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247   shlibpath_var=LD_LIBRARY_PATH
16248   shlibpath_overrides_runpath=yes
16249   ;;
16250
16251 nto-qnx*)
16252   version_type=linux
16253   need_lib_prefix=no
16254   need_version=no
16255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256   soname_spec='${libname}${release}${shared_ext}$major'
16257   shlibpath_var=LD_LIBRARY_PATH
16258   shlibpath_overrides_runpath=yes
16259   ;;
16260
16261 openbsd*)
16262   version_type=sunos
16263   sys_lib_dlsearch_path_spec="/usr/lib"
16264   need_lib_prefix=no
16265   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16266   case $host_os in
16267     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16268     *)                         need_version=no  ;;
16269   esac
16270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16272   shlibpath_var=LD_LIBRARY_PATH
16273   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16274     case $host_os in
16275       openbsd2.[89] | openbsd2.[89].*)
16276         shlibpath_overrides_runpath=no
16277         ;;
16278       *)
16279         shlibpath_overrides_runpath=yes
16280         ;;
16281       esac
16282   else
16283     shlibpath_overrides_runpath=yes
16284   fi
16285   ;;
16286
16287 os2*)
16288   libname_spec='$name'
16289   shrext_cmds=".dll"
16290   need_lib_prefix=no
16291   library_names_spec='$libname${shared_ext} $libname.a'
16292   dynamic_linker='OS/2 ld.exe'
16293   shlibpath_var=LIBPATH
16294   ;;
16295
16296 osf3* | osf4* | osf5*)
16297   version_type=osf
16298   need_lib_prefix=no
16299   need_version=no
16300   soname_spec='${libname}${release}${shared_ext}$major'
16301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302   shlibpath_var=LD_LIBRARY_PATH
16303   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16304   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16305   ;;
16306
16307 rdos*)
16308   dynamic_linker=no
16309   ;;
16310
16311 solaris*)
16312   version_type=linux
16313   need_lib_prefix=no
16314   need_version=no
16315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316   soname_spec='${libname}${release}${shared_ext}$major'
16317   shlibpath_var=LD_LIBRARY_PATH
16318   shlibpath_overrides_runpath=yes
16319   hardcode_into_libs=yes
16320   # ldd complains unless libraries are executable
16321   postinstall_cmds='chmod +x $lib'
16322   ;;
16323
16324 sunos4*)
16325   version_type=sunos
16326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16327   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16328   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=yes
16330   if test "$with_gnu_ld" = yes; then
16331     need_lib_prefix=no
16332   fi
16333   need_version=yes
16334   ;;
16335
16336 sysv4 | sysv4.3*)
16337   version_type=linux
16338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339   soname_spec='${libname}${release}${shared_ext}$major'
16340   shlibpath_var=LD_LIBRARY_PATH
16341   case $host_vendor in
16342     sni)
16343       shlibpath_overrides_runpath=no
16344       need_lib_prefix=no
16345       export_dynamic_flag_spec='${wl}-Blargedynsym'
16346       runpath_var=LD_RUN_PATH
16347       ;;
16348     siemens)
16349       need_lib_prefix=no
16350       ;;
16351     motorola)
16352       need_lib_prefix=no
16353       need_version=no
16354       shlibpath_overrides_runpath=no
16355       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16356       ;;
16357   esac
16358   ;;
16359
16360 sysv4*MP*)
16361   if test -d /usr/nec ;then
16362     version_type=linux
16363     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16364     soname_spec='$libname${shared_ext}.$major'
16365     shlibpath_var=LD_LIBRARY_PATH
16366   fi
16367   ;;
16368
16369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16370   version_type=freebsd-elf
16371   need_lib_prefix=no
16372   need_version=no
16373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16374   soname_spec='${libname}${release}${shared_ext}$major'
16375   shlibpath_var=LD_LIBRARY_PATH
16376   hardcode_into_libs=yes
16377   if test "$with_gnu_ld" = yes; then
16378     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16379     shlibpath_overrides_runpath=no
16380   else
16381     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16382     shlibpath_overrides_runpath=yes
16383     case $host_os in
16384       sco3.2v5*)
16385         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16386         ;;
16387     esac
16388   fi
16389   sys_lib_dlsearch_path_spec='/usr/lib'
16390   ;;
16391
16392 uts4*)
16393   version_type=linux
16394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395   soname_spec='${libname}${release}${shared_ext}$major'
16396   shlibpath_var=LD_LIBRARY_PATH
16397   ;;
16398
16399 *)
16400   dynamic_linker=no
16401   ;;
16402 esac
16403 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16404 echo "${ECHO_T}$dynamic_linker" >&6; }
16405 test "$dynamic_linker" = no && can_build_shared=no
16406
16407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16408 if test "$GCC" = yes; then
16409   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16410 fi
16411
16412 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16413 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16414 hardcode_action_F77=
16415 if test -n "$hardcode_libdir_flag_spec_F77" || \
16416    test -n "$runpath_var_F77" || \
16417    test "X$hardcode_automatic_F77" = "Xyes" ; then
16418
16419   # We can hardcode non-existant directories.
16420   if test "$hardcode_direct_F77" != no &&
16421      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16422      # have to relink, otherwise we might link with an installed library
16423      # when we should be linking with a yet-to-be-installed one
16424      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16425      test "$hardcode_minus_L_F77" != no; then
16426     # Linking always hardcodes the temporary library directory.
16427     hardcode_action_F77=relink
16428   else
16429     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16430     hardcode_action_F77=immediate
16431   fi
16432 else
16433   # We cannot hardcode anything, or else we can only hardcode existing
16434   # directories.
16435   hardcode_action_F77=unsupported
16436 fi
16437 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16438 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16439
16440 if test "$hardcode_action_F77" = relink; then
16441   # Fast installation is not supported
16442   enable_fast_install=no
16443 elif test "$shlibpath_overrides_runpath" = yes ||
16444      test "$enable_shared" = no; then
16445   # Fast installation is not necessary
16446   enable_fast_install=needless
16447 fi
16448
16449
16450 # The else clause should only fire when bootstrapping the
16451 # libtool distribution, otherwise you forgot to ship ltmain.sh
16452 # with your package, and you will get complaints that there are
16453 # no rules to generate ltmain.sh.
16454 if test -f "$ltmain"; then
16455   # See if we are running on zsh, and set the options which allow our commands through
16456   # without removal of \ escapes.
16457   if test -n "${ZSH_VERSION+set}" ; then
16458     setopt NO_GLOB_SUBST
16459   fi
16460   # Now quote all the things that may contain metacharacters while being
16461   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16462   # variables and quote the copies for generation of the libtool script.
16463   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16464     SED SHELL STRIP \
16465     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16466     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16467     deplibs_check_method reload_flag reload_cmds need_locks \
16468     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16469     lt_cv_sys_global_symbol_to_c_name_address \
16470     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16471     old_postinstall_cmds old_postuninstall_cmds \
16472     compiler_F77 \
16473     CC_F77 \
16474     LD_F77 \
16475     lt_prog_compiler_wl_F77 \
16476     lt_prog_compiler_pic_F77 \
16477     lt_prog_compiler_static_F77 \
16478     lt_prog_compiler_no_builtin_flag_F77 \
16479     export_dynamic_flag_spec_F77 \
16480     thread_safe_flag_spec_F77 \
16481     whole_archive_flag_spec_F77 \
16482     enable_shared_with_static_runtimes_F77 \
16483     old_archive_cmds_F77 \
16484     old_archive_from_new_cmds_F77 \
16485     predep_objects_F77 \
16486     postdep_objects_F77 \
16487     predeps_F77 \
16488     postdeps_F77 \
16489     compiler_lib_search_path_F77 \
16490     archive_cmds_F77 \
16491     archive_expsym_cmds_F77 \
16492     postinstall_cmds_F77 \
16493     postuninstall_cmds_F77 \
16494     old_archive_from_expsyms_cmds_F77 \
16495     allow_undefined_flag_F77 \
16496     no_undefined_flag_F77 \
16497     export_symbols_cmds_F77 \
16498     hardcode_libdir_flag_spec_F77 \
16499     hardcode_libdir_flag_spec_ld_F77 \
16500     hardcode_libdir_separator_F77 \
16501     hardcode_automatic_F77 \
16502     module_cmds_F77 \
16503     module_expsym_cmds_F77 \
16504     lt_cv_prog_compiler_c_o_F77 \
16505     fix_srcfile_path_F77 \
16506     exclude_expsyms_F77 \
16507     include_expsyms_F77; do
16508
16509     case $var in
16510     old_archive_cmds_F77 | \
16511     old_archive_from_new_cmds_F77 | \
16512     archive_cmds_F77 | \
16513     archive_expsym_cmds_F77 | \
16514     module_cmds_F77 | \
16515     module_expsym_cmds_F77 | \
16516     old_archive_from_expsyms_cmds_F77 | \
16517     export_symbols_cmds_F77 | \
16518     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16519     postinstall_cmds | postuninstall_cmds | \
16520     old_postinstall_cmds | old_postuninstall_cmds | \
16521     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16522       # Double-quote double-evaled strings.
16523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16524       ;;
16525     *)
16526       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16527       ;;
16528     esac
16529   done
16530
16531   case $lt_echo in
16532   *'\$0 --fallback-echo"')
16533     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16534     ;;
16535   esac
16536
16537 cfgfile="$ofile"
16538
16539   cat <<__EOF__ >> "$cfgfile"
16540 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16541
16542 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16543
16544 # Shell to use when invoking shell scripts.
16545 SHELL=$lt_SHELL
16546
16547 # Whether or not to build shared libraries.
16548 build_libtool_libs=$enable_shared
16549
16550 # Whether or not to build static libraries.
16551 build_old_libs=$enable_static
16552
16553 # Whether or not to add -lc for building shared libraries.
16554 build_libtool_need_lc=$archive_cmds_need_lc_F77
16555
16556 # Whether or not to disallow shared libs when runtime libs are static
16557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16558
16559 # Whether or not to optimize for fast installation.
16560 fast_install=$enable_fast_install
16561
16562 # The host system.
16563 host_alias=$host_alias
16564 host=$host
16565 host_os=$host_os
16566
16567 # The build system.
16568 build_alias=$build_alias
16569 build=$build
16570 build_os=$build_os
16571
16572 # An echo program that does not interpret backslashes.
16573 echo=$lt_echo
16574
16575 # The archiver.
16576 AR=$lt_AR
16577 AR_FLAGS=$lt_AR_FLAGS
16578
16579 # A C compiler.
16580 LTCC=$lt_LTCC
16581
16582 # LTCC compiler flags.
16583 LTCFLAGS=$lt_LTCFLAGS
16584
16585 # A language-specific compiler.
16586 CC=$lt_compiler_F77
16587
16588 # Is the compiler the GNU C compiler?
16589 with_gcc=$GCC_F77
16590
16591 # An ERE matcher.
16592 EGREP=$lt_EGREP
16593
16594 # The linker used to build libraries.
16595 LD=$lt_LD_F77
16596
16597 # Whether we need hard or soft links.
16598 LN_S=$lt_LN_S
16599
16600 # A BSD-compatible nm program.
16601 NM=$lt_NM
16602
16603 # A symbol stripping program
16604 STRIP=$lt_STRIP
16605
16606 # Used to examine libraries when file_magic_cmd begins "file"
16607 MAGIC_CMD=$MAGIC_CMD
16608
16609 # Used on cygwin: DLL creation program.
16610 DLLTOOL="$DLLTOOL"
16611
16612 # Used on cygwin: object dumper.
16613 OBJDUMP="$OBJDUMP"
16614
16615 # Used on cygwin: assembler.
16616 AS="$AS"
16617
16618 # The name of the directory that contains temporary libtool files.
16619 objdir=$objdir
16620
16621 # How to create reloadable object files.
16622 reload_flag=$lt_reload_flag
16623 reload_cmds=$lt_reload_cmds
16624
16625 # How to pass a linker flag through the compiler.
16626 wl=$lt_lt_prog_compiler_wl_F77
16627
16628 # Object file suffix (normally "o").
16629 objext="$ac_objext"
16630
16631 # Old archive suffix (normally "a").
16632 libext="$libext"
16633
16634 # Shared library suffix (normally ".so").
16635 shrext_cmds='$shrext_cmds'
16636
16637 # Executable file suffix (normally "").
16638 exeext="$exeext"
16639
16640 # Additional compiler flags for building library objects.
16641 pic_flag=$lt_lt_prog_compiler_pic_F77
16642 pic_mode=$pic_mode
16643
16644 # What is the maximum length of a command?
16645 max_cmd_len=$lt_cv_sys_max_cmd_len
16646
16647 # Does compiler simultaneously support -c and -o options?
16648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16649
16650 # Must we lock files when doing compilation?
16651 need_locks=$lt_need_locks
16652
16653 # Do we need the lib prefix for modules?
16654 need_lib_prefix=$need_lib_prefix
16655
16656 # Do we need a version for libraries?
16657 need_version=$need_version
16658
16659 # Whether dlopen is supported.
16660 dlopen_support=$enable_dlopen
16661
16662 # Whether dlopen of programs is supported.
16663 dlopen_self=$enable_dlopen_self
16664
16665 # Whether dlopen of statically linked programs is supported.
16666 dlopen_self_static=$enable_dlopen_self_static
16667
16668 # Compiler flag to prevent dynamic linking.
16669 link_static_flag=$lt_lt_prog_compiler_static_F77
16670
16671 # Compiler flag to turn off builtin functions.
16672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16673
16674 # Compiler flag to allow reflexive dlopens.
16675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16676
16677 # Compiler flag to generate shared objects directly from archives.
16678 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16679
16680 # Compiler flag to generate thread-safe objects.
16681 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16682
16683 # Library versioning type.
16684 version_type=$version_type
16685
16686 # Format of library name prefix.
16687 libname_spec=$lt_libname_spec
16688
16689 # List of archive names.  First name is the real one, the rest are links.
16690 # The last name is the one that the linker finds with -lNAME.
16691 library_names_spec=$lt_library_names_spec
16692
16693 # The coded name of the library, if different from the real name.
16694 soname_spec=$lt_soname_spec
16695
16696 # Commands used to build and install an old-style archive.
16697 RANLIB=$lt_RANLIB
16698 old_archive_cmds=$lt_old_archive_cmds_F77
16699 old_postinstall_cmds=$lt_old_postinstall_cmds
16700 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16701
16702 # Create an old-style archive from a shared archive.
16703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16704
16705 # Create a temporary old-style archive to link instead of a shared archive.
16706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16707
16708 # Commands used to build and install a shared archive.
16709 archive_cmds=$lt_archive_cmds_F77
16710 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16711 postinstall_cmds=$lt_postinstall_cmds
16712 postuninstall_cmds=$lt_postuninstall_cmds
16713
16714 # Commands used to build a loadable module (assumed same as above if empty)
16715 module_cmds=$lt_module_cmds_F77
16716 module_expsym_cmds=$lt_module_expsym_cmds_F77
16717
16718 # Commands to strip libraries.
16719 old_striplib=$lt_old_striplib
16720 striplib=$lt_striplib
16721
16722 # Dependencies to place before the objects being linked to create a
16723 # shared library.
16724 predep_objects=$lt_predep_objects_F77
16725
16726 # Dependencies to place after the objects being linked to create a
16727 # shared library.
16728 postdep_objects=$lt_postdep_objects_F77
16729
16730 # Dependencies to place before the objects being linked to create a
16731 # shared library.
16732 predeps=$lt_predeps_F77
16733
16734 # Dependencies to place after the objects being linked to create a
16735 # shared library.
16736 postdeps=$lt_postdeps_F77
16737
16738 # The library search path used internally by the compiler when linking
16739 # a shared library.
16740 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16741
16742 # Method to check whether dependent libraries are shared objects.
16743 deplibs_check_method=$lt_deplibs_check_method
16744
16745 # Command to use when deplibs_check_method == file_magic.
16746 file_magic_cmd=$lt_file_magic_cmd
16747
16748 # Flag that allows shared libraries with undefined symbols to be built.
16749 allow_undefined_flag=$lt_allow_undefined_flag_F77
16750
16751 # Flag that forces no undefined symbols.
16752 no_undefined_flag=$lt_no_undefined_flag_F77
16753
16754 # Commands used to finish a libtool library installation in a directory.
16755 finish_cmds=$lt_finish_cmds
16756
16757 # Same as above, but a single script fragment to be evaled but not shown.
16758 finish_eval=$lt_finish_eval
16759
16760 # Take the output of nm and produce a listing of raw symbols and C names.
16761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16762
16763 # Transform the output of nm in a proper C declaration
16764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16765
16766 # Transform the output of nm in a C name address pair
16767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16768
16769 # This is the shared library runtime path variable.
16770 runpath_var=$runpath_var
16771
16772 # This is the shared library path variable.
16773 shlibpath_var=$shlibpath_var
16774
16775 # Is shlibpath searched before the hard-coded library search path?
16776 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16777
16778 # How to hardcode a shared library path into an executable.
16779 hardcode_action=$hardcode_action_F77
16780
16781 # Whether we should hardcode library paths into libraries.
16782 hardcode_into_libs=$hardcode_into_libs
16783
16784 # Flag to hardcode \$libdir into a binary during linking.
16785 # This must work even if \$libdir does not exist.
16786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16787
16788 # If ld is used when linking, flag to hardcode \$libdir into
16789 # a binary during linking. This must work even if \$libdir does
16790 # not exist.
16791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16792
16793 # Whether we need a single -rpath flag with a separated argument.
16794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16795
16796 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16797 # resulting binary.
16798 hardcode_direct=$hardcode_direct_F77
16799
16800 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16801 # resulting binary.
16802 hardcode_minus_L=$hardcode_minus_L_F77
16803
16804 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16805 # the resulting binary.
16806 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16807
16808 # Set to yes if building a shared library automatically hardcodes DIR into the library
16809 # and all subsequent libraries and executables linked against it.
16810 hardcode_automatic=$hardcode_automatic_F77
16811
16812 # Variables whose values should be saved in libtool wrapper scripts and
16813 # restored at relink time.
16814 variables_saved_for_relink="$variables_saved_for_relink"
16815
16816 # Whether libtool must link a program against all its dependency libraries.
16817 link_all_deplibs=$link_all_deplibs_F77
16818
16819 # Compile-time system search path for libraries
16820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16821
16822 # Run-time system search path for libraries
16823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16824
16825 # Fix the shell variable \$srcfile for the compiler.
16826 fix_srcfile_path=$lt_fix_srcfile_path
16827
16828 # Set to yes if exported symbols are required.
16829 always_export_symbols=$always_export_symbols_F77
16830
16831 # The commands to list exported symbols.
16832 export_symbols_cmds=$lt_export_symbols_cmds_F77
16833
16834 # The commands to extract the exported symbol list from a shared archive.
16835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16836
16837 # Symbols that should not be listed in the preloaded symbols.
16838 exclude_expsyms=$lt_exclude_expsyms_F77
16839
16840 # Symbols that must always be exported.
16841 include_expsyms=$lt_include_expsyms_F77
16842
16843 # ### END LIBTOOL TAG CONFIG: $tagname
16844
16845 __EOF__
16846
16847
16848 else
16849   # If there is no Makefile yet, we rely on a make rule to execute
16850   # `config.status --recheck' to rerun these tests and create the
16851   # libtool script then.
16852   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16853   if test -f "$ltmain_in"; then
16854     test -f Makefile && make "$ltmain"
16855   fi
16856 fi
16857
16858
16859 ac_ext=cpp
16860 ac_cpp='$CXXCPP $CPPFLAGS'
16861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16864
16865 CC="$lt_save_CC"
16866
16867         else
16868           tagname=""
16869         fi
16870         ;;
16871
16872       GCJ)
16873         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16874
16875
16876 # Source file extension for Java test sources.
16877 ac_ext=java
16878
16879 # Object file extension for compiled Java test sources.
16880 objext=o
16881 objext_GCJ=$objext
16882
16883 # Code to be used in simple compile tests
16884 lt_simple_compile_test_code="class foo {}"
16885
16886 # Code to be used in simple link tests
16887 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16888
16889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16890
16891 # If no C compiler was specified, use CC.
16892 LTCC=${LTCC-"$CC"}
16893
16894 # If no C compiler flags were specified, use CFLAGS.
16895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16896
16897 # Allow CC to be a program name with arguments.
16898 compiler=$CC
16899
16900
16901 # save warnings/boilerplate of simple test code
16902 ac_outfile=conftest.$ac_objext
16903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16905 _lt_compiler_boilerplate=`cat conftest.err`
16906 $rm conftest*
16907
16908 ac_outfile=conftest.$ac_objext
16909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16911 _lt_linker_boilerplate=`cat conftest.err`
16912 $rm conftest*
16913
16914
16915 # Allow CC to be a program name with arguments.
16916 lt_save_CC="$CC"
16917 CC=${GCJ-"gcj"}
16918 compiler=$CC
16919 compiler_GCJ=$CC
16920 for cc_temp in $compiler""; do
16921   case $cc_temp in
16922     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16923     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16924     \-*) ;;
16925     *) break;;
16926   esac
16927 done
16928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16929
16930
16931 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16932 archive_cmds_need_lc_GCJ=no
16933
16934 old_archive_cmds_GCJ=$old_archive_cmds
16935
16936
16937 lt_prog_compiler_no_builtin_flag_GCJ=
16938
16939 if test "$GCC" = yes; then
16940   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16941
16942
16943 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16944 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16945 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   lt_cv_prog_compiler_rtti_exceptions=no
16949   ac_outfile=conftest.$ac_objext
16950    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16951    lt_compiler_flag="-fno-rtti -fno-exceptions"
16952    # Insert the option either (1) after the last *FLAGS variable, or
16953    # (2) before a word containing "conftest.", or (3) at the end.
16954    # Note that $ac_compile itself does not contain backslashes and begins
16955    # with a dollar sign (not a hyphen), so the echo should work correctly.
16956    # The option is referenced via a variable to avoid confusing sed.
16957    lt_compile=`echo "$ac_compile" | $SED \
16958    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16960    -e 's:$: $lt_compiler_flag:'`
16961    (eval echo "\"\$as_me:16961: $lt_compile\"" >&5)
16962    (eval "$lt_compile" 2>conftest.err)
16963    ac_status=$?
16964    cat conftest.err >&5
16965    echo "$as_me:16965: \$? = $ac_status" >&5
16966    if (exit $ac_status) && test -s "$ac_outfile"; then
16967      # The compiler can only warn and ignore the option if not recognized
16968      # So say no if there are warnings other than the usual output.
16969      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16970      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16971      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16972        lt_cv_prog_compiler_rtti_exceptions=yes
16973      fi
16974    fi
16975    $rm conftest*
16976
16977 fi
16978 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16979 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16980
16981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16982     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16983 else
16984     :
16985 fi
16986
16987 fi
16988
16989 lt_prog_compiler_wl_GCJ=
16990 lt_prog_compiler_pic_GCJ=
16991 lt_prog_compiler_static_GCJ=
16992
16993 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16995
16996   if test "$GCC" = yes; then
16997     lt_prog_compiler_wl_GCJ='-Wl,'
16998     lt_prog_compiler_static_GCJ='-static'
16999
17000     case $host_os in
17001       aix*)
17002       # All AIX code is PIC.
17003       if test "$host_cpu" = ia64; then
17004         # AIX 5 now supports IA64 processor
17005         lt_prog_compiler_static_GCJ='-Bstatic'
17006       fi
17007       ;;
17008
17009     amigaos*)
17010       # FIXME: we need at least 68020 code to build shared libraries, but
17011       # adding the `-m68020' flag to GCC prevents building anything better,
17012       # like `-m68040'.
17013       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17014       ;;
17015
17016     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17017       # PIC is the default for these OSes.
17018       ;;
17019
17020     mingw* | cygwin* | pw32* | os2*)
17021       # This hack is so that the source file can tell whether it is being
17022       # built for inclusion in a dll (and should export symbols for example).
17023       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17024       # (--disable-auto-import) libraries
17025       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17026       ;;
17027
17028     darwin* | rhapsody*)
17029       # PIC is the default on this platform
17030       # Common symbols not allowed in MH_DYLIB files
17031       lt_prog_compiler_pic_GCJ='-fno-common'
17032       ;;
17033
17034     interix[3-9]*)
17035       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17036       # Instead, we relocate shared libraries at runtime.
17037       ;;
17038
17039     msdosdjgpp*)
17040       # Just because we use GCC doesn't mean we suddenly get shared libraries
17041       # on systems that don't support them.
17042       lt_prog_compiler_can_build_shared_GCJ=no
17043       enable_shared=no
17044       ;;
17045
17046     sysv4*MP*)
17047       if test -d /usr/nec; then
17048         lt_prog_compiler_pic_GCJ=-Kconform_pic
17049       fi
17050       ;;
17051
17052     hpux*)
17053       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17054       # not for PA HP-UX.
17055       case $host_cpu in
17056       hppa*64*|ia64*)
17057         # +Z the default
17058         ;;
17059       *)
17060         lt_prog_compiler_pic_GCJ='-fPIC'
17061         ;;
17062       esac
17063       ;;
17064
17065     *)
17066       lt_prog_compiler_pic_GCJ='-fPIC'
17067       ;;
17068     esac
17069   else
17070     # PORTME Check for flag to pass linker flags through the system compiler.
17071     case $host_os in
17072     aix*)
17073       lt_prog_compiler_wl_GCJ='-Wl,'
17074       if test "$host_cpu" = ia64; then
17075         # AIX 5 now supports IA64 processor
17076         lt_prog_compiler_static_GCJ='-Bstatic'
17077       else
17078         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17079       fi
17080       ;;
17081       darwin*)
17082         # PIC is the default on this platform
17083         # Common symbols not allowed in MH_DYLIB files
17084        case $cc_basename in
17085          xlc*)
17086          lt_prog_compiler_pic_GCJ='-qnocommon'
17087          lt_prog_compiler_wl_GCJ='-Wl,'
17088          ;;
17089        esac
17090        ;;
17091
17092     mingw* | cygwin* | pw32* | os2*)
17093       # This hack is so that the source file can tell whether it is being
17094       # built for inclusion in a dll (and should export symbols for example).
17095       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17096       ;;
17097
17098     hpux9* | hpux10* | hpux11*)
17099       lt_prog_compiler_wl_GCJ='-Wl,'
17100       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17101       # not for PA HP-UX.
17102       case $host_cpu in
17103       hppa*64*|ia64*)
17104         # +Z the default
17105         ;;
17106       *)
17107         lt_prog_compiler_pic_GCJ='+Z'
17108         ;;
17109       esac
17110       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17111       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17112       ;;
17113
17114     irix5* | irix6* | nonstopux*)
17115       lt_prog_compiler_wl_GCJ='-Wl,'
17116       # PIC (with -KPIC) is the default.
17117       lt_prog_compiler_static_GCJ='-non_shared'
17118       ;;
17119
17120     newsos6)
17121       lt_prog_compiler_pic_GCJ='-KPIC'
17122       lt_prog_compiler_static_GCJ='-Bstatic'
17123       ;;
17124
17125     linux* | k*bsd*-gnu)
17126       case $cc_basename in
17127       icc* | ecc*)
17128         lt_prog_compiler_wl_GCJ='-Wl,'
17129         lt_prog_compiler_pic_GCJ='-KPIC'
17130         lt_prog_compiler_static_GCJ='-static'
17131         ;;
17132       pgcc* | pgf77* | pgf90* | pgf95*)
17133         # Portland Group compilers (*not* the Pentium gcc compiler,
17134         # which looks to be a dead project)
17135         lt_prog_compiler_wl_GCJ='-Wl,'
17136         lt_prog_compiler_pic_GCJ='-fpic'
17137         lt_prog_compiler_static_GCJ='-Bstatic'
17138         ;;
17139       ccc*)
17140         lt_prog_compiler_wl_GCJ='-Wl,'
17141         # All Alpha code is PIC.
17142         lt_prog_compiler_static_GCJ='-non_shared'
17143         ;;
17144       *)
17145         case `$CC -V 2>&1 | sed 5q` in
17146         *Sun\ C*)
17147           # Sun C 5.9
17148           lt_prog_compiler_pic_GCJ='-KPIC'
17149           lt_prog_compiler_static_GCJ='-Bstatic'
17150           lt_prog_compiler_wl_GCJ='-Wl,'
17151           ;;
17152         *Sun\ F*)
17153           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17154           lt_prog_compiler_pic_GCJ='-KPIC'
17155           lt_prog_compiler_static_GCJ='-Bstatic'
17156           lt_prog_compiler_wl_GCJ=''
17157           ;;
17158         esac
17159         ;;
17160       esac
17161       ;;
17162
17163     osf3* | osf4* | osf5*)
17164       lt_prog_compiler_wl_GCJ='-Wl,'
17165       # All OSF/1 code is PIC.
17166       lt_prog_compiler_static_GCJ='-non_shared'
17167       ;;
17168
17169     rdos*)
17170       lt_prog_compiler_static_GCJ='-non_shared'
17171       ;;
17172
17173     solaris*)
17174       lt_prog_compiler_pic_GCJ='-KPIC'
17175       lt_prog_compiler_static_GCJ='-Bstatic'
17176       case $cc_basename in
17177       f77* | f90* | f95*)
17178         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17179       *)
17180         lt_prog_compiler_wl_GCJ='-Wl,';;
17181       esac
17182       ;;
17183
17184     sunos4*)
17185       lt_prog_compiler_wl_GCJ='-Qoption ld '
17186       lt_prog_compiler_pic_GCJ='-PIC'
17187       lt_prog_compiler_static_GCJ='-Bstatic'
17188       ;;
17189
17190     sysv4 | sysv4.2uw2* | sysv4.3*)
17191       lt_prog_compiler_wl_GCJ='-Wl,'
17192       lt_prog_compiler_pic_GCJ='-KPIC'
17193       lt_prog_compiler_static_GCJ='-Bstatic'
17194       ;;
17195
17196     sysv4*MP*)
17197       if test -d /usr/nec ;then
17198         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17199         lt_prog_compiler_static_GCJ='-Bstatic'
17200       fi
17201       ;;
17202
17203     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17204       lt_prog_compiler_wl_GCJ='-Wl,'
17205       lt_prog_compiler_pic_GCJ='-KPIC'
17206       lt_prog_compiler_static_GCJ='-Bstatic'
17207       ;;
17208
17209     unicos*)
17210       lt_prog_compiler_wl_GCJ='-Wl,'
17211       lt_prog_compiler_can_build_shared_GCJ=no
17212       ;;
17213
17214     uts4*)
17215       lt_prog_compiler_pic_GCJ='-pic'
17216       lt_prog_compiler_static_GCJ='-Bstatic'
17217       ;;
17218
17219     *)
17220       lt_prog_compiler_can_build_shared_GCJ=no
17221       ;;
17222     esac
17223   fi
17224
17225 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17226 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17227
17228 #
17229 # Check to make sure the PIC flag actually works.
17230 #
17231 if test -n "$lt_prog_compiler_pic_GCJ"; then
17232
17233 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17234 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17235 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   lt_prog_compiler_pic_works_GCJ=no
17239   ac_outfile=conftest.$ac_objext
17240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17241    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17242    # Insert the option either (1) after the last *FLAGS variable, or
17243    # (2) before a word containing "conftest.", or (3) at the end.
17244    # Note that $ac_compile itself does not contain backslashes and begins
17245    # with a dollar sign (not a hyphen), so the echo should work correctly.
17246    # The option is referenced via a variable to avoid confusing sed.
17247    lt_compile=`echo "$ac_compile" | $SED \
17248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17250    -e 's:$: $lt_compiler_flag:'`
17251    (eval echo "\"\$as_me:17251: $lt_compile\"" >&5)
17252    (eval "$lt_compile" 2>conftest.err)
17253    ac_status=$?
17254    cat conftest.err >&5
17255    echo "$as_me:17255: \$? = $ac_status" >&5
17256    if (exit $ac_status) && test -s "$ac_outfile"; then
17257      # The compiler can only warn and ignore the option if not recognized
17258      # So say no if there are warnings other than the usual output.
17259      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17260      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17261      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17262        lt_prog_compiler_pic_works_GCJ=yes
17263      fi
17264    fi
17265    $rm conftest*
17266
17267 fi
17268 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17269 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17270
17271 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17272     case $lt_prog_compiler_pic_GCJ in
17273      "" | " "*) ;;
17274      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17275      esac
17276 else
17277     lt_prog_compiler_pic_GCJ=
17278      lt_prog_compiler_can_build_shared_GCJ=no
17279 fi
17280
17281 fi
17282 case $host_os in
17283   # For platforms which do not support PIC, -DPIC is meaningless:
17284   *djgpp*)
17285     lt_prog_compiler_pic_GCJ=
17286     ;;
17287   *)
17288     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17289     ;;
17290 esac
17291
17292 #
17293 # Check to make sure the static flag actually works.
17294 #
17295 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17296 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17297 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17298 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301   lt_prog_compiler_static_works_GCJ=no
17302    save_LDFLAGS="$LDFLAGS"
17303    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17304    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17305    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17306      # The linker can only warn and ignore the option if not recognized
17307      # So say no if there are warnings
17308      if test -s conftest.err; then
17309        # Append any errors to the config.log.
17310        cat conftest.err 1>&5
17311        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17312        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17313        if diff conftest.exp conftest.er2 >/dev/null; then
17314          lt_prog_compiler_static_works_GCJ=yes
17315        fi
17316      else
17317        lt_prog_compiler_static_works_GCJ=yes
17318      fi
17319    fi
17320    $rm conftest*
17321    LDFLAGS="$save_LDFLAGS"
17322
17323 fi
17324 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17325 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17326
17327 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17328     :
17329 else
17330     lt_prog_compiler_static_GCJ=
17331 fi
17332
17333
17334 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17335 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17336 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   lt_cv_prog_compiler_c_o_GCJ=no
17340    $rm -r conftest 2>/dev/null
17341    mkdir conftest
17342    cd conftest
17343    mkdir out
17344    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17345
17346    lt_compiler_flag="-o out/conftest2.$ac_objext"
17347    # Insert the option either (1) after the last *FLAGS variable, or
17348    # (2) before a word containing "conftest.", or (3) at the end.
17349    # Note that $ac_compile itself does not contain backslashes and begins
17350    # with a dollar sign (not a hyphen), so the echo should work correctly.
17351    lt_compile=`echo "$ac_compile" | $SED \
17352    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17353    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17354    -e 's:$: $lt_compiler_flag:'`
17355    (eval echo "\"\$as_me:17355: $lt_compile\"" >&5)
17356    (eval "$lt_compile" 2>out/conftest.err)
17357    ac_status=$?
17358    cat out/conftest.err >&5
17359    echo "$as_me:17359: \$? = $ac_status" >&5
17360    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17361    then
17362      # The compiler can only warn and ignore the option if not recognized
17363      # So say no if there are warnings
17364      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17365      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17366      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17367        lt_cv_prog_compiler_c_o_GCJ=yes
17368      fi
17369    fi
17370    chmod u+w . 2>&5
17371    $rm conftest*
17372    # SGI C++ compiler will create directory out/ii_files/ for
17373    # template instantiation
17374    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17375    $rm out/* && rmdir out
17376    cd ..
17377    rmdir conftest
17378    $rm conftest*
17379
17380 fi
17381 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17382 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17383
17384
17385 hard_links="nottested"
17386 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17387   # do not overwrite the value of need_locks provided by the user
17388   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17389 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17390   hard_links=yes
17391   $rm conftest*
17392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17393   touch conftest.a
17394   ln conftest.a conftest.b 2>&5 || hard_links=no
17395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17396   { echo "$as_me:$LINENO: result: $hard_links" >&5
17397 echo "${ECHO_T}$hard_links" >&6; }
17398   if test "$hard_links" = no; then
17399     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17400 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17401     need_locks=warn
17402   fi
17403 else
17404   need_locks=no
17405 fi
17406
17407 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17408 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17409
17410   runpath_var=
17411   allow_undefined_flag_GCJ=
17412   enable_shared_with_static_runtimes_GCJ=no
17413   archive_cmds_GCJ=
17414   archive_expsym_cmds_GCJ=
17415   old_archive_From_new_cmds_GCJ=
17416   old_archive_from_expsyms_cmds_GCJ=
17417   export_dynamic_flag_spec_GCJ=
17418   whole_archive_flag_spec_GCJ=
17419   thread_safe_flag_spec_GCJ=
17420   hardcode_libdir_flag_spec_GCJ=
17421   hardcode_libdir_flag_spec_ld_GCJ=
17422   hardcode_libdir_separator_GCJ=
17423   hardcode_direct_GCJ=no
17424   hardcode_minus_L_GCJ=no
17425   hardcode_shlibpath_var_GCJ=unsupported
17426   link_all_deplibs_GCJ=unknown
17427   hardcode_automatic_GCJ=no
17428   module_cmds_GCJ=
17429   module_expsym_cmds_GCJ=
17430   always_export_symbols_GCJ=no
17431   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17432   # include_expsyms should be a list of space-separated symbols to be *always*
17433   # included in the symbol list
17434   include_expsyms_GCJ=
17435   # exclude_expsyms can be an extended regexp of symbols to exclude
17436   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17437   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17438   # as well as any symbol that contains `d'.
17439   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17440   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17441   # platforms (ab)use it in PIC code, but their linkers get confused if
17442   # the symbol is explicitly referenced.  Since portable code cannot
17443   # rely on this symbol name, it's probably fine to never include it in
17444   # preloaded symbol tables.
17445   extract_expsyms_cmds=
17446   # Just being paranoid about ensuring that cc_basename is set.
17447   for cc_temp in $compiler""; do
17448   case $cc_temp in
17449     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17450     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17451     \-*) ;;
17452     *) break;;
17453   esac
17454 done
17455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17456
17457   case $host_os in
17458   cygwin* | mingw* | pw32*)
17459     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17460     # When not using gcc, we currently assume that we are using
17461     # Microsoft Visual C++.
17462     if test "$GCC" != yes; then
17463       with_gnu_ld=no
17464     fi
17465     ;;
17466   interix*)
17467     # we just hope/assume this is gcc and not c89 (= MSVC++)
17468     with_gnu_ld=yes
17469     ;;
17470   openbsd*)
17471     with_gnu_ld=no
17472     ;;
17473   esac
17474
17475   ld_shlibs_GCJ=yes
17476   if test "$with_gnu_ld" = yes; then
17477     # If archive_cmds runs LD, not CC, wlarc should be empty
17478     wlarc='${wl}'
17479
17480     # Set some defaults for GNU ld with shared library support. These
17481     # are reset later if shared libraries are not supported. Putting them
17482     # here allows them to be overridden if necessary.
17483     runpath_var=LD_RUN_PATH
17484     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17485     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17486     # ancient GNU ld didn't support --whole-archive et. al.
17487     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17488         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17489       else
17490         whole_archive_flag_spec_GCJ=
17491     fi
17492     supports_anon_versioning=no
17493     case `$LD -v 2>/dev/null` in
17494       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17495       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17496       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17497       *\ 2.11.*) ;; # other 2.11 versions
17498       *) supports_anon_versioning=yes ;;
17499     esac
17500
17501     # See if GNU ld supports shared libraries.
17502     case $host_os in
17503     aix3* | aix4* | aix5*)
17504       # On AIX/PPC, the GNU linker is very broken
17505       if test "$host_cpu" != ia64; then
17506         ld_shlibs_GCJ=no
17507         cat <<EOF 1>&2
17508
17509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17510 *** to be unable to reliably create shared libraries on AIX.
17511 *** Therefore, libtool is disabling shared libraries support.  If you
17512 *** really care for shared libraries, you may want to modify your PATH
17513 *** so that a non-GNU linker is found, and then restart.
17514
17515 EOF
17516       fi
17517       ;;
17518
17519     amigaos*)
17520       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)'
17521       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522       hardcode_minus_L_GCJ=yes
17523
17524       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17525       # that the semantics of dynamic libraries on AmigaOS, at least up
17526       # to version 4, is to share data among multiple programs linked
17527       # with the same dynamic library.  Since this doesn't match the
17528       # behavior of shared libraries on other platforms, we can't use
17529       # them.
17530       ld_shlibs_GCJ=no
17531       ;;
17532
17533     beos*)
17534       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17535         allow_undefined_flag_GCJ=unsupported
17536         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17537         # support --undefined.  This deserves some investigation.  FIXME
17538         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17539       else
17540         ld_shlibs_GCJ=no
17541       fi
17542       ;;
17543
17544     cygwin* | mingw* | pw32*)
17545       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17546       # as there is no search path for DLLs.
17547       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548       allow_undefined_flag_GCJ=unsupported
17549       always_export_symbols_GCJ=no
17550       enable_shared_with_static_runtimes_GCJ=yes
17551       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17552
17553       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17554         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17555         # If the export-symbols file already is a .def file (1st line
17556         # is EXPORTS), use it as is; otherwise, prepend...
17557         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17558           cp $export_symbols $output_objdir/$soname.def;
17559         else
17560           echo EXPORTS > $output_objdir/$soname.def;
17561           cat $export_symbols >> $output_objdir/$soname.def;
17562         fi~
17563         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17564       else
17565         ld_shlibs_GCJ=no
17566       fi
17567       ;;
17568
17569     interix[3-9]*)
17570       hardcode_direct_GCJ=no
17571       hardcode_shlibpath_var_GCJ=no
17572       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17573       export_dynamic_flag_spec_GCJ='${wl}-E'
17574       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17575       # Instead, shared libraries are loaded at an image base (0x10000000 by
17576       # default) and relocated if they conflict, which is a slow very memory
17577       # consuming and fragmenting process.  To avoid this, we pick a random,
17578       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17579       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17580       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'
17581       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'
17582       ;;
17583
17584     gnu* | linux* | k*bsd*-gnu)
17585       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17586         tmp_addflag=
17587         case $cc_basename,$host_cpu in
17588         pgcc*)                          # Portland Group C compiler
17589           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'
17590           tmp_addflag=' $pic_flag'
17591           ;;
17592         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17593           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'
17594           tmp_addflag=' $pic_flag -Mnomain' ;;
17595         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17596           tmp_addflag=' -i_dynamic' ;;
17597         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17598           tmp_addflag=' -i_dynamic -nofor_main' ;;
17599         ifc* | ifort*)                  # Intel Fortran compiler
17600           tmp_addflag=' -nofor_main' ;;
17601         esac
17602         case `$CC -V 2>&1 | sed 5q` in
17603         *Sun\ C*)                       # Sun C 5.9
17604           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'
17605           tmp_sharedflag='-G' ;;
17606         *Sun\ F*)                       # Sun Fortran 8.3
17607           tmp_sharedflag='-G' ;;
17608         *)
17609           tmp_sharedflag='-shared' ;;
17610         esac
17611         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17612
17613         if test $supports_anon_versioning = yes; then
17614           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17615   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17616   $echo "local: *; };" >> $output_objdir/$libname.ver~
17617           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17618         fi
17619         link_all_deplibs_GCJ=no
17620       else
17621         ld_shlibs_GCJ=no
17622       fi
17623       ;;
17624
17625     netbsd* | netbsdelf*-gnu)
17626       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17627         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17628         wlarc=
17629       else
17630         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17631         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17632       fi
17633       ;;
17634
17635     solaris*)
17636       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17637         ld_shlibs_GCJ=no
17638         cat <<EOF 1>&2
17639
17640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17641 *** create shared libraries on Solaris systems.  Therefore, libtool
17642 *** is disabling shared libraries support.  We urge you to upgrade GNU
17643 *** binutils to release 2.9.1 or newer.  Another option is to modify
17644 *** your PATH or compiler configuration so that the native linker is
17645 *** used, and then restart.
17646
17647 EOF
17648       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17649         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17651       else
17652         ld_shlibs_GCJ=no
17653       fi
17654       ;;
17655
17656     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17657       case `$LD -v 2>&1` in
17658         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17659         ld_shlibs_GCJ=no
17660         cat <<_LT_EOF 1>&2
17661
17662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17663 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17664 *** is disabling shared libraries support.  We urge you to upgrade GNU
17665 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17666 *** your PATH or compiler configuration so that the native linker is
17667 *** used, and then restart.
17668
17669 _LT_EOF
17670         ;;
17671         *)
17672           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17673             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17674             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17675             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17676           else
17677             ld_shlibs_GCJ=no
17678           fi
17679         ;;
17680       esac
17681       ;;
17682
17683     sunos4*)
17684       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17685       wlarc=
17686       hardcode_direct_GCJ=yes
17687       hardcode_shlibpath_var_GCJ=no
17688       ;;
17689
17690     *)
17691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17693         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17694       else
17695         ld_shlibs_GCJ=no
17696       fi
17697       ;;
17698     esac
17699
17700     if test "$ld_shlibs_GCJ" = no; then
17701       runpath_var=
17702       hardcode_libdir_flag_spec_GCJ=
17703       export_dynamic_flag_spec_GCJ=
17704       whole_archive_flag_spec_GCJ=
17705     fi
17706   else
17707     # PORTME fill in a description of your system's linker (not GNU ld)
17708     case $host_os in
17709     aix3*)
17710       allow_undefined_flag_GCJ=unsupported
17711       always_export_symbols_GCJ=yes
17712       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'
17713       # Note: this linker hardcodes the directories in LIBPATH if there
17714       # are no directories specified by -L.
17715       hardcode_minus_L_GCJ=yes
17716       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17717         # Neither direct hardcoding nor static linking is supported with a
17718         # broken collect2.
17719         hardcode_direct_GCJ=unsupported
17720       fi
17721       ;;
17722
17723     aix4* | aix5*)
17724       if test "$host_cpu" = ia64; then
17725         # On IA64, the linker does run time linking by default, so we don't
17726         # have to do anything special.
17727         aix_use_runtimelinking=no
17728         exp_sym_flag='-Bexport'
17729         no_entry_flag=""
17730       else
17731         # If we're using GNU nm, then we don't want the "-C" option.
17732         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17733         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17734           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'
17735         else
17736           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'
17737         fi
17738         aix_use_runtimelinking=no
17739
17740         # Test if we are trying to use run time linking or normal
17741         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17742         # need to do runtime linking.
17743         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17744           for ld_flag in $LDFLAGS; do
17745           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17746             aix_use_runtimelinking=yes
17747             break
17748           fi
17749           done
17750           ;;
17751         esac
17752
17753         exp_sym_flag='-bexport'
17754         no_entry_flag='-bnoentry'
17755       fi
17756
17757       # When large executables or shared objects are built, AIX ld can
17758       # have problems creating the table of contents.  If linking a library
17759       # or program results in "error TOC overflow" add -mminimal-toc to
17760       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17761       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17762
17763       archive_cmds_GCJ=''
17764       hardcode_direct_GCJ=yes
17765       hardcode_libdir_separator_GCJ=':'
17766       link_all_deplibs_GCJ=yes
17767
17768       if test "$GCC" = yes; then
17769         case $host_os in aix4.[012]|aix4.[012].*)
17770         # We only want to do this on AIX 4.2 and lower, the check
17771         # below for broken collect2 doesn't work under 4.3+
17772           collect2name=`${CC} -print-prog-name=collect2`
17773           if test -f "$collect2name" && \
17774            strings "$collect2name" | grep resolve_lib_name >/dev/null
17775           then
17776           # We have reworked collect2
17777           :
17778           else
17779           # We have old collect2
17780           hardcode_direct_GCJ=unsupported
17781           # It fails to find uninstalled libraries when the uninstalled
17782           # path is not listed in the libpath.  Setting hardcode_minus_L
17783           # to unsupported forces relinking
17784           hardcode_minus_L_GCJ=yes
17785           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786           hardcode_libdir_separator_GCJ=
17787           fi
17788           ;;
17789         esac
17790         shared_flag='-shared'
17791         if test "$aix_use_runtimelinking" = yes; then
17792           shared_flag="$shared_flag "'${wl}-G'
17793         fi
17794       else
17795         # not using gcc
17796         if test "$host_cpu" = ia64; then
17797         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17798         # chokes on -Wl,-G. The following line is correct:
17799           shared_flag='-G'
17800         else
17801           if test "$aix_use_runtimelinking" = yes; then
17802             shared_flag='${wl}-G'
17803           else
17804             shared_flag='${wl}-bM:SRE'
17805           fi
17806         fi
17807       fi
17808
17809       # It seems that -bexpall does not export symbols beginning with
17810       # underscore (_), so it is better to generate a list of symbols to export.
17811       always_export_symbols_GCJ=yes
17812       if test "$aix_use_runtimelinking" = yes; then
17813         # Warning - without using the other runtime loading flags (-brtl),
17814         # -berok will link without error, but may produce a broken library.
17815         allow_undefined_flag_GCJ='-berok'
17816        # Determine the default libpath from the value encoded in an empty executable.
17817        cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823
17824 int
17825 main ()
17826 {
17827
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_link") 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } && {
17846          test -z "$ac_cxx_werror_flag" ||
17847          test ! -s conftest.err
17848        } && test -s conftest$ac_exeext &&
17849        $as_test_x conftest$ac_exeext; then
17850
17851 lt_aix_libpath_sed='
17852     /Import File Strings/,/^$/ {
17853         /^0/ {
17854             s/^0  *\(.*\)$/\1/
17855             p
17856         }
17857     }'
17858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17862 fi
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867
17868 fi
17869
17870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17871       conftest$ac_exeext conftest.$ac_ext
17872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17873
17874        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17875         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"
17876        else
17877         if test "$host_cpu" = ia64; then
17878           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17879           allow_undefined_flag_GCJ="-z nodefs"
17880           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"
17881         else
17882          # Determine the default libpath from the value encoded in an empty executable.
17883          cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889
17890 int
17891 main ()
17892 {
17893
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (ac_try="$ac_link"
17900 case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905   (eval "$ac_link") 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } && {
17912          test -z "$ac_cxx_werror_flag" ||
17913          test ! -s conftest.err
17914        } && test -s conftest$ac_exeext &&
17915        $as_test_x conftest$ac_exeext; then
17916
17917 lt_aix_libpath_sed='
17918     /Import File Strings/,/^$/ {
17919         /^0/ {
17920             s/^0  *\(.*\)$/\1/
17921             p
17922         }
17923     }'
17924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17925 # Check for a 64-bit object if we didn't find anything.
17926 if test -z "$aix_libpath"; then
17927   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17928 fi
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17937       conftest$ac_exeext conftest.$ac_ext
17938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17939
17940          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17941           # Warning - without using the other run time loading flags,
17942           # -berok will link without error, but may produce a broken library.
17943           no_undefined_flag_GCJ=' ${wl}-bernotok'
17944           allow_undefined_flag_GCJ=' ${wl}-berok'
17945           # Exported symbols can be pulled into shared objects from archives
17946           whole_archive_flag_spec_GCJ='$convenience'
17947           archive_cmds_need_lc_GCJ=yes
17948           # This is similar to how AIX traditionally builds its shared libraries.
17949           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'
17950         fi
17951       fi
17952       ;;
17953
17954     amigaos*)
17955       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)'
17956       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17957       hardcode_minus_L_GCJ=yes
17958       # see comment about different semantics on the GNU ld section
17959       ld_shlibs_GCJ=no
17960       ;;
17961
17962     bsdi[45]*)
17963       export_dynamic_flag_spec_GCJ=-rdynamic
17964       ;;
17965
17966     cygwin* | mingw* | pw32*)
17967       # When not using gcc, we currently assume that we are using
17968       # Microsoft Visual C++.
17969       # hardcode_libdir_flag_spec is actually meaningless, as there is
17970       # no search path for DLLs.
17971       hardcode_libdir_flag_spec_GCJ=' '
17972       allow_undefined_flag_GCJ=unsupported
17973       # Tell ltmain to make .lib files, not .a files.
17974       libext=lib
17975       # Tell ltmain to make .dll files, not .so files.
17976       shrext_cmds=".dll"
17977       # FIXME: Setting linknames here is a bad hack.
17978       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17979       # The linker will automatically build a .lib file if we build a DLL.
17980       old_archive_From_new_cmds_GCJ='true'
17981       # FIXME: Should let the user specify the lib program.
17982       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17983       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17984       enable_shared_with_static_runtimes_GCJ=yes
17985       ;;
17986
17987     darwin* | rhapsody*)
17988       case $host_os in
17989         rhapsody* | darwin1.[012])
17990          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17991          ;;
17992        *) # Darwin 1.3 on
17993          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17994            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17995          else
17996            case ${MACOSX_DEPLOYMENT_TARGET} in
17997              10.[012])
17998                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17999                ;;
18000              10.*)
18001                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18002                ;;
18003            esac
18004          fi
18005          ;;
18006       esac
18007       archive_cmds_need_lc_GCJ=no
18008       hardcode_direct_GCJ=no
18009       hardcode_automatic_GCJ=yes
18010       hardcode_shlibpath_var_GCJ=unsupported
18011       whole_archive_flag_spec_GCJ=''
18012       link_all_deplibs_GCJ=yes
18013     if test "$GCC" = yes ; then
18014         output_verbose_link_cmd='echo'
18015         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18016       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18017       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18018       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18019       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}'
18020     else
18021       case $cc_basename in
18022         xlc*)
18023          output_verbose_link_cmd='echo'
18024          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18025          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18026           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18027          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}'
18028           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}'
18029           ;;
18030        *)
18031          ld_shlibs_GCJ=no
18032           ;;
18033       esac
18034     fi
18035       ;;
18036
18037     dgux*)
18038       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18040       hardcode_shlibpath_var_GCJ=no
18041       ;;
18042
18043     freebsd1*)
18044       ld_shlibs_GCJ=no
18045       ;;
18046
18047     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18048     # support.  Future versions do this automatically, but an explicit c++rt0.o
18049     # does not break anything, and helps significantly (at the cost of a little
18050     # extra space).
18051     freebsd2.2*)
18052       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18053       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18054       hardcode_direct_GCJ=yes
18055       hardcode_shlibpath_var_GCJ=no
18056       ;;
18057
18058     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18059     freebsd2*)
18060       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18061       hardcode_direct_GCJ=yes
18062       hardcode_minus_L_GCJ=yes
18063       hardcode_shlibpath_var_GCJ=no
18064       ;;
18065
18066     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18067     freebsd* | dragonfly*)
18068       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18069       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18070       hardcode_direct_GCJ=yes
18071       hardcode_shlibpath_var_GCJ=no
18072       ;;
18073
18074     hpux9*)
18075       if test "$GCC" = yes; then
18076         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'
18077       else
18078         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'
18079       fi
18080       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18081       hardcode_libdir_separator_GCJ=:
18082       hardcode_direct_GCJ=yes
18083
18084       # hardcode_minus_L: Not really in the search PATH,
18085       # but as the default location of the library.
18086       hardcode_minus_L_GCJ=yes
18087       export_dynamic_flag_spec_GCJ='${wl}-E'
18088       ;;
18089
18090     hpux10*)
18091       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18092         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18093       else
18094         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18095       fi
18096       if test "$with_gnu_ld" = no; then
18097         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18098         hardcode_libdir_separator_GCJ=:
18099
18100         hardcode_direct_GCJ=yes
18101         export_dynamic_flag_spec_GCJ='${wl}-E'
18102
18103         # hardcode_minus_L: Not really in the search PATH,
18104         # but as the default location of the library.
18105         hardcode_minus_L_GCJ=yes
18106       fi
18107       ;;
18108
18109     hpux11*)
18110       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18111         case $host_cpu in
18112         hppa*64*)
18113           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18114           ;;
18115         ia64*)
18116           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18117           ;;
18118         *)
18119           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18120           ;;
18121         esac
18122       else
18123         case $host_cpu in
18124         hppa*64*)
18125           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126           ;;
18127         ia64*)
18128           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18129           ;;
18130         *)
18131           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18132           ;;
18133         esac
18134       fi
18135       if test "$with_gnu_ld" = no; then
18136         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18137         hardcode_libdir_separator_GCJ=:
18138
18139         case $host_cpu in
18140         hppa*64*|ia64*)
18141           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18142           hardcode_direct_GCJ=no
18143           hardcode_shlibpath_var_GCJ=no
18144           ;;
18145         *)
18146           hardcode_direct_GCJ=yes
18147           export_dynamic_flag_spec_GCJ='${wl}-E'
18148
18149           # hardcode_minus_L: Not really in the search PATH,
18150           # but as the default location of the library.
18151           hardcode_minus_L_GCJ=yes
18152           ;;
18153         esac
18154       fi
18155       ;;
18156
18157     irix5* | irix6* | nonstopux*)
18158       if test "$GCC" = yes; then
18159         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'
18160       else
18161         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'
18162         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18163       fi
18164       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18165       hardcode_libdir_separator_GCJ=:
18166       link_all_deplibs_GCJ=yes
18167       ;;
18168
18169     netbsd* | netbsdelf*-gnu)
18170       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18171         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18172       else
18173         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18174       fi
18175       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18176       hardcode_direct_GCJ=yes
18177       hardcode_shlibpath_var_GCJ=no
18178       ;;
18179
18180     newsos6)
18181       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182       hardcode_direct_GCJ=yes
18183       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18184       hardcode_libdir_separator_GCJ=:
18185       hardcode_shlibpath_var_GCJ=no
18186       ;;
18187
18188     openbsd*)
18189       if test -f /usr/libexec/ld.so; then
18190         hardcode_direct_GCJ=yes
18191         hardcode_shlibpath_var_GCJ=no
18192         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18193           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18194           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18195           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18196           export_dynamic_flag_spec_GCJ='${wl}-E'
18197         else
18198           case $host_os in
18199            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18200              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18201              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18202              ;;
18203            *)
18204              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18205              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18206              ;;
18207           esac
18208         fi
18209       else
18210         ld_shlibs_GCJ=no
18211       fi
18212       ;;
18213
18214     os2*)
18215       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18216       hardcode_minus_L_GCJ=yes
18217       allow_undefined_flag_GCJ=unsupported
18218       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'
18219       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18220       ;;
18221
18222     osf3*)
18223       if test "$GCC" = yes; then
18224         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18225         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'
18226       else
18227         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18228         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'
18229       fi
18230       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18231       hardcode_libdir_separator_GCJ=:
18232       ;;
18233
18234     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18235       if test "$GCC" = yes; then
18236         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18237         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'
18238         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18239       else
18240         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18241         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'
18242         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~
18243         $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'
18244
18245         # Both c and cxx compiler support -rpath directly
18246         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18247       fi
18248       hardcode_libdir_separator_GCJ=:
18249       ;;
18250
18251     solaris*)
18252       no_undefined_flag_GCJ=' -z text'
18253       if test "$GCC" = yes; then
18254         wlarc='${wl}'
18255         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18256         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18257           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18258       else
18259         wlarc=''
18260         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18261         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18262         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18263       fi
18264       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18265       hardcode_shlibpath_var_GCJ=no
18266       case $host_os in
18267       solaris2.[0-5] | solaris2.[0-5].*) ;;
18268       *)
18269         # The compiler driver will combine and reorder linker options,
18270         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18271         # but is careful enough not to reorder.
18272         # Supported since Solaris 2.6 (maybe 2.5.1?)
18273         if test "$GCC" = yes; then
18274           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18275         else
18276           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18277         fi
18278         ;;
18279       esac
18280       link_all_deplibs_GCJ=yes
18281       ;;
18282
18283     sunos4*)
18284       if test "x$host_vendor" = xsequent; then
18285         # Use $CC to link under sequent, because it throws in some extra .o
18286         # files that make .init and .fini sections work.
18287         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18288       else
18289         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18290       fi
18291       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18292       hardcode_direct_GCJ=yes
18293       hardcode_minus_L_GCJ=yes
18294       hardcode_shlibpath_var_GCJ=no
18295       ;;
18296
18297     sysv4)
18298       case $host_vendor in
18299         sni)
18300           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18301           hardcode_direct_GCJ=yes # is this really true???
18302         ;;
18303         siemens)
18304           ## LD is ld it makes a PLAMLIB
18305           ## CC just makes a GrossModule.
18306           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18307           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18308           hardcode_direct_GCJ=no
18309         ;;
18310         motorola)
18311           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18312           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18313         ;;
18314       esac
18315       runpath_var='LD_RUN_PATH'
18316       hardcode_shlibpath_var_GCJ=no
18317       ;;
18318
18319     sysv4.3*)
18320       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18321       hardcode_shlibpath_var_GCJ=no
18322       export_dynamic_flag_spec_GCJ='-Bexport'
18323       ;;
18324
18325     sysv4*MP*)
18326       if test -d /usr/nec; then
18327         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18328         hardcode_shlibpath_var_GCJ=no
18329         runpath_var=LD_RUN_PATH
18330         hardcode_runpath_var=yes
18331         ld_shlibs_GCJ=yes
18332       fi
18333       ;;
18334
18335     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18336       no_undefined_flag_GCJ='${wl}-z,text'
18337       archive_cmds_need_lc_GCJ=no
18338       hardcode_shlibpath_var_GCJ=no
18339       runpath_var='LD_RUN_PATH'
18340
18341       if test "$GCC" = yes; then
18342         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18343         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18344       else
18345         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18346         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18347       fi
18348       ;;
18349
18350     sysv5* | sco3.2v5* | sco5v6*)
18351       # Note: We can NOT use -z defs as we might desire, because we do not
18352       # link with -lc, and that would cause any symbols used from libc to
18353       # always be unresolved, which means just about no library would
18354       # ever link correctly.  If we're not using GNU ld we use -z text
18355       # though, which does catch some bad symbols but isn't as heavy-handed
18356       # as -z defs.
18357       no_undefined_flag_GCJ='${wl}-z,text'
18358       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18359       archive_cmds_need_lc_GCJ=no
18360       hardcode_shlibpath_var_GCJ=no
18361       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18362       hardcode_libdir_separator_GCJ=':'
18363       link_all_deplibs_GCJ=yes
18364       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18365       runpath_var='LD_RUN_PATH'
18366
18367       if test "$GCC" = yes; then
18368         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18369         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18370       else
18371         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18372         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18373       fi
18374       ;;
18375
18376     uts4*)
18377       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18378       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18379       hardcode_shlibpath_var_GCJ=no
18380       ;;
18381
18382     *)
18383       ld_shlibs_GCJ=no
18384       ;;
18385     esac
18386   fi
18387
18388 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18389 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18390 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18391
18392 #
18393 # Do we need to explicitly link libc?
18394 #
18395 case "x$archive_cmds_need_lc_GCJ" in
18396 x|xyes)
18397   # Assume -lc should be added
18398   archive_cmds_need_lc_GCJ=yes
18399
18400   if test "$enable_shared" = yes && test "$GCC" = yes; then
18401     case $archive_cmds_GCJ in
18402     *'~'*)
18403       # FIXME: we may have to deal with multi-command sequences.
18404       ;;
18405     '$CC '*)
18406       # Test whether the compiler implicitly links with -lc since on some
18407       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18408       # to ld, don't add -lc before -lgcc.
18409       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18410 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18411       $rm conftest*
18412       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18413
18414       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18415   (eval $ac_compile) 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); } 2>conftest.err; then
18419         soname=conftest
18420         lib=conftest
18421         libobjs=conftest.$ac_objext
18422         deplibs=
18423         wl=$lt_prog_compiler_wl_GCJ
18424         pic_flag=$lt_prog_compiler_pic_GCJ
18425         compiler_flags=-v
18426         linker_flags=-v
18427         verstring=
18428         output_objdir=.
18429         libname=conftest
18430         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18431         allow_undefined_flag_GCJ=
18432         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18433   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }
18437         then
18438           archive_cmds_need_lc_GCJ=no
18439         else
18440           archive_cmds_need_lc_GCJ=yes
18441         fi
18442         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18443       else
18444         cat conftest.err 1>&5
18445       fi
18446       $rm conftest*
18447       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18448 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18449       ;;
18450     esac
18451   fi
18452   ;;
18453 esac
18454
18455 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18457 library_names_spec=
18458 libname_spec='lib$name'
18459 soname_spec=
18460 shrext_cmds=".so"
18461 postinstall_cmds=
18462 postuninstall_cmds=
18463 finish_cmds=
18464 finish_eval=
18465 shlibpath_var=
18466 shlibpath_overrides_runpath=unknown
18467 version_type=none
18468 dynamic_linker="$host_os ld.so"
18469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18470
18471 need_lib_prefix=unknown
18472 hardcode_into_libs=no
18473
18474 # when you set need_version to no, make sure it does not cause -set_version
18475 # flags to be left without arguments
18476 need_version=unknown
18477
18478 case $host_os in
18479 aix3*)
18480   version_type=linux
18481   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18482   shlibpath_var=LIBPATH
18483
18484   # AIX 3 has no versioning support, so we append a major version to the name.
18485   soname_spec='${libname}${release}${shared_ext}$major'
18486   ;;
18487
18488 aix4* | aix5*)
18489   version_type=linux
18490   need_lib_prefix=no
18491   need_version=no
18492   hardcode_into_libs=yes
18493   if test "$host_cpu" = ia64; then
18494     # AIX 5 supports IA64
18495     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18496     shlibpath_var=LD_LIBRARY_PATH
18497   else
18498     # With GCC up to 2.95.x, collect2 would create an import file
18499     # for dependence libraries.  The import file would start with
18500     # the line `#! .'.  This would cause the generated library to
18501     # depend on `.', always an invalid library.  This was fixed in
18502     # development snapshots of GCC prior to 3.0.
18503     case $host_os in
18504       aix4 | aix4.[01] | aix4.[01].*)
18505       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18506            echo ' yes '
18507            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18508         :
18509       else
18510         can_build_shared=no
18511       fi
18512       ;;
18513     esac
18514     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18515     # soname into executable. Probably we can add versioning support to
18516     # collect2, so additional links can be useful in future.
18517     if test "$aix_use_runtimelinking" = yes; then
18518       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18519       # instead of lib<name>.a to let people know that these are not
18520       # typical AIX shared libraries.
18521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18522     else
18523       # We preserve .a as extension for shared libraries through AIX4.2
18524       # and later when we are not doing run time linking.
18525       library_names_spec='${libname}${release}.a $libname.a'
18526       soname_spec='${libname}${release}${shared_ext}$major'
18527     fi
18528     shlibpath_var=LIBPATH
18529   fi
18530   ;;
18531
18532 amigaos*)
18533   library_names_spec='$libname.ixlibrary $libname.a'
18534   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18535   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'
18536   ;;
18537
18538 beos*)
18539   library_names_spec='${libname}${shared_ext}'
18540   dynamic_linker="$host_os ld.so"
18541   shlibpath_var=LIBRARY_PATH
18542   ;;
18543
18544 bsdi[45]*)
18545   version_type=linux
18546   need_version=no
18547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18548   soname_spec='${libname}${release}${shared_ext}$major'
18549   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18550   shlibpath_var=LD_LIBRARY_PATH
18551   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18552   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18553   # the default ld.so.conf also contains /usr/contrib/lib and
18554   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18555   # libtool to hard-code these into programs
18556   ;;
18557
18558 cygwin* | mingw* | pw32*)
18559   version_type=windows
18560   shrext_cmds=".dll"
18561   need_version=no
18562   need_lib_prefix=no
18563
18564   case $GCC,$host_os in
18565   yes,cygwin* | yes,mingw* | yes,pw32*)
18566     library_names_spec='$libname.dll.a'
18567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18568     postinstall_cmds='base_file=`basename \${file}`~
18569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18570       dldir=$destdir/`dirname \$dlpath`~
18571       test -d \$dldir || mkdir -p \$dldir~
18572       $install_prog $dir/$dlname \$dldir/$dlname~
18573       chmod a+x \$dldir/$dlname'
18574     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18575       dlpath=$dir/\$dldll~
18576        $rm \$dlpath'
18577     shlibpath_overrides_runpath=yes
18578
18579     case $host_os in
18580     cygwin*)
18581       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18582       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18583       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18584       ;;
18585     mingw*)
18586       # MinGW DLLs use traditional 'lib' prefix
18587       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18588       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18589       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18590         # It is most probably a Windows format PATH printed by
18591         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18592         # path with ; separators, and with drive letters. We can handle the
18593         # drive letters (cygwin fileutils understands them), so leave them,
18594         # especially as we might pass files found there to a mingw objdump,
18595         # which wouldn't understand a cygwinified path. Ahh.
18596         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18597       else
18598         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18599       fi
18600       ;;
18601     pw32*)
18602       # pw32 DLLs use 'pw' prefix rather than 'lib'
18603       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18604       ;;
18605     esac
18606     ;;
18607
18608   *)
18609     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18610     ;;
18611   esac
18612   dynamic_linker='Win32 ld.exe'
18613   # FIXME: first we should search . and the directory the executable is in
18614   shlibpath_var=PATH
18615   ;;
18616
18617 darwin* | rhapsody*)
18618   dynamic_linker="$host_os dyld"
18619   version_type=darwin
18620   need_lib_prefix=no
18621   need_version=no
18622   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18623   soname_spec='${libname}${release}${major}$shared_ext'
18624   shlibpath_overrides_runpath=yes
18625   shlibpath_var=DYLD_LIBRARY_PATH
18626   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18627
18628   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18629   ;;
18630
18631 dgux*)
18632   version_type=linux
18633   need_lib_prefix=no
18634   need_version=no
18635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18636   soname_spec='${libname}${release}${shared_ext}$major'
18637   shlibpath_var=LD_LIBRARY_PATH
18638   ;;
18639
18640 freebsd1*)
18641   dynamic_linker=no
18642   ;;
18643
18644 freebsd* | dragonfly*)
18645   # DragonFly does not have aout.  When/if they implement a new
18646   # versioning mechanism, adjust this.
18647   if test -x /usr/bin/objformat; then
18648     objformat=`/usr/bin/objformat`
18649   else
18650     case $host_os in
18651     freebsd[123]*) objformat=aout ;;
18652     *) objformat=elf ;;
18653     esac
18654   fi
18655   version_type=freebsd-$objformat
18656   case $version_type in
18657     freebsd-elf*)
18658       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18659       need_version=no
18660       need_lib_prefix=no
18661       ;;
18662     freebsd-*)
18663       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18664       need_version=yes
18665       ;;
18666   esac
18667   shlibpath_var=LD_LIBRARY_PATH
18668   case $host_os in
18669   freebsd2*)
18670     shlibpath_overrides_runpath=yes
18671     ;;
18672   freebsd3.[01]* | freebsdelf3.[01]*)
18673     shlibpath_overrides_runpath=yes
18674     hardcode_into_libs=yes
18675     ;;
18676   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18677   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18678     shlibpath_overrides_runpath=no
18679     hardcode_into_libs=yes
18680     ;;
18681   *) # from 4.6 on, and DragonFly
18682     shlibpath_overrides_runpath=yes
18683     hardcode_into_libs=yes
18684     ;;
18685   esac
18686   ;;
18687
18688 gnu*)
18689   version_type=linux
18690   need_lib_prefix=no
18691   need_version=no
18692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18693   soname_spec='${libname}${release}${shared_ext}$major'
18694   shlibpath_var=LD_LIBRARY_PATH
18695   hardcode_into_libs=yes
18696   ;;
18697
18698 hpux9* | hpux10* | hpux11*)
18699   # Give a soname corresponding to the major version so that dld.sl refuses to
18700   # link against other versions.
18701   version_type=sunos
18702   need_lib_prefix=no
18703   need_version=no
18704   case $host_cpu in
18705   ia64*)
18706     shrext_cmds='.so'
18707     hardcode_into_libs=yes
18708     dynamic_linker="$host_os dld.so"
18709     shlibpath_var=LD_LIBRARY_PATH
18710     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712     soname_spec='${libname}${release}${shared_ext}$major'
18713     if test "X$HPUX_IA64_MODE" = X32; then
18714       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18715     else
18716       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18717     fi
18718     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18719     ;;
18720    hppa*64*)
18721      shrext_cmds='.sl'
18722      hardcode_into_libs=yes
18723      dynamic_linker="$host_os dld.sl"
18724      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18725      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18726      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18727      soname_spec='${libname}${release}${shared_ext}$major'
18728      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18729      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18730      ;;
18731    *)
18732     shrext_cmds='.sl'
18733     dynamic_linker="$host_os dld.sl"
18734     shlibpath_var=SHLIB_PATH
18735     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737     soname_spec='${libname}${release}${shared_ext}$major'
18738     ;;
18739   esac
18740   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18741   postinstall_cmds='chmod 555 $lib'
18742   ;;
18743
18744 interix[3-9]*)
18745   version_type=linux
18746   need_lib_prefix=no
18747   need_version=no
18748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18749   soname_spec='${libname}${release}${shared_ext}$major'
18750   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18751   shlibpath_var=LD_LIBRARY_PATH
18752   shlibpath_overrides_runpath=no
18753   hardcode_into_libs=yes
18754   ;;
18755
18756 irix5* | irix6* | nonstopux*)
18757   case $host_os in
18758     nonstopux*) version_type=nonstopux ;;
18759     *)
18760         if test "$lt_cv_prog_gnu_ld" = yes; then
18761                 version_type=linux
18762         else
18763                 version_type=irix
18764         fi ;;
18765   esac
18766   need_lib_prefix=no
18767   need_version=no
18768   soname_spec='${libname}${release}${shared_ext}$major'
18769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18770   case $host_os in
18771   irix5* | nonstopux*)
18772     libsuff= shlibsuff=
18773     ;;
18774   *)
18775     case $LD in # libtool.m4 will add one of these switches to LD
18776     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18777       libsuff= shlibsuff= libmagic=32-bit;;
18778     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18779       libsuff=32 shlibsuff=N32 libmagic=N32;;
18780     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18781       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18782     *) libsuff= shlibsuff= libmagic=never-match;;
18783     esac
18784     ;;
18785   esac
18786   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18787   shlibpath_overrides_runpath=no
18788   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18789   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18790   hardcode_into_libs=yes
18791   ;;
18792
18793 # No shared lib support for Linux oldld, aout, or coff.
18794 linux*oldld* | linux*aout* | linux*coff*)
18795   dynamic_linker=no
18796   ;;
18797
18798 # This must be Linux ELF.
18799 linux* | k*bsd*-gnu)
18800   version_type=linux
18801   need_lib_prefix=no
18802   need_version=no
18803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18804   soname_spec='${libname}${release}${shared_ext}$major'
18805   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18806   shlibpath_var=LD_LIBRARY_PATH
18807   shlibpath_overrides_runpath=no
18808   # This implies no fast_install, which is unacceptable.
18809   # Some rework will be needed to allow for fast_install
18810   # before this can be enabled.
18811   hardcode_into_libs=yes
18812
18813   # Append ld.so.conf contents to the search path
18814   if test -f /etc/ld.so.conf; then
18815     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' ' '`
18816     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18817   fi
18818
18819   # We used to test for /lib/ld.so.1 and disable shared libraries on
18820   # powerpc, because MkLinux only supported shared libraries with the
18821   # GNU dynamic linker.  Since this was broken with cross compilers,
18822   # most powerpc-linux boxes support dynamic linking these days and
18823   # people can always --disable-shared, the test was removed, and we
18824   # assume the GNU/Linux dynamic linker is in use.
18825   dynamic_linker='GNU/Linux ld.so'
18826   ;;
18827
18828 netbsdelf*-gnu)
18829   version_type=linux
18830   need_lib_prefix=no
18831   need_version=no
18832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18833   soname_spec='${libname}${release}${shared_ext}$major'
18834   shlibpath_var=LD_LIBRARY_PATH
18835   shlibpath_overrides_runpath=no
18836   hardcode_into_libs=yes
18837   dynamic_linker='NetBSD ld.elf_so'
18838   ;;
18839
18840 netbsd*)
18841   version_type=sunos
18842   need_lib_prefix=no
18843   need_version=no
18844   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18846     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18847     dynamic_linker='NetBSD (a.out) ld.so'
18848   else
18849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18850     soname_spec='${libname}${release}${shared_ext}$major'
18851     dynamic_linker='NetBSD ld.elf_so'
18852   fi
18853   shlibpath_var=LD_LIBRARY_PATH
18854   shlibpath_overrides_runpath=yes
18855   hardcode_into_libs=yes
18856   ;;
18857
18858 newsos6)
18859   version_type=linux
18860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18861   shlibpath_var=LD_LIBRARY_PATH
18862   shlibpath_overrides_runpath=yes
18863   ;;
18864
18865 nto-qnx*)
18866   version_type=linux
18867   need_lib_prefix=no
18868   need_version=no
18869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870   soname_spec='${libname}${release}${shared_ext}$major'
18871   shlibpath_var=LD_LIBRARY_PATH
18872   shlibpath_overrides_runpath=yes
18873   ;;
18874
18875 openbsd*)
18876   version_type=sunos
18877   sys_lib_dlsearch_path_spec="/usr/lib"
18878   need_lib_prefix=no
18879   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18880   case $host_os in
18881     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18882     *)                         need_version=no  ;;
18883   esac
18884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18886   shlibpath_var=LD_LIBRARY_PATH
18887   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18888     case $host_os in
18889       openbsd2.[89] | openbsd2.[89].*)
18890         shlibpath_overrides_runpath=no
18891         ;;
18892       *)
18893         shlibpath_overrides_runpath=yes
18894         ;;
18895       esac
18896   else
18897     shlibpath_overrides_runpath=yes
18898   fi
18899   ;;
18900
18901 os2*)
18902   libname_spec='$name'
18903   shrext_cmds=".dll"
18904   need_lib_prefix=no
18905   library_names_spec='$libname${shared_ext} $libname.a'
18906   dynamic_linker='OS/2 ld.exe'
18907   shlibpath_var=LIBPATH
18908   ;;
18909
18910 osf3* | osf4* | osf5*)
18911   version_type=osf
18912   need_lib_prefix=no
18913   need_version=no
18914   soname_spec='${libname}${release}${shared_ext}$major'
18915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916   shlibpath_var=LD_LIBRARY_PATH
18917   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18918   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18919   ;;
18920
18921 rdos*)
18922   dynamic_linker=no
18923   ;;
18924
18925 solaris*)
18926   version_type=linux
18927   need_lib_prefix=no
18928   need_version=no
18929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18930   soname_spec='${libname}${release}${shared_ext}$major'
18931   shlibpath_var=LD_LIBRARY_PATH
18932   shlibpath_overrides_runpath=yes
18933   hardcode_into_libs=yes
18934   # ldd complains unless libraries are executable
18935   postinstall_cmds='chmod +x $lib'
18936   ;;
18937
18938 sunos4*)
18939   version_type=sunos
18940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18941   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18942   shlibpath_var=LD_LIBRARY_PATH
18943   shlibpath_overrides_runpath=yes
18944   if test "$with_gnu_ld" = yes; then
18945     need_lib_prefix=no
18946   fi
18947   need_version=yes
18948   ;;
18949
18950 sysv4 | sysv4.3*)
18951   version_type=linux
18952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18953   soname_spec='${libname}${release}${shared_ext}$major'
18954   shlibpath_var=LD_LIBRARY_PATH
18955   case $host_vendor in
18956     sni)
18957       shlibpath_overrides_runpath=no
18958       need_lib_prefix=no
18959       export_dynamic_flag_spec='${wl}-Blargedynsym'
18960       runpath_var=LD_RUN_PATH
18961       ;;
18962     siemens)
18963       need_lib_prefix=no
18964       ;;
18965     motorola)
18966       need_lib_prefix=no
18967       need_version=no
18968       shlibpath_overrides_runpath=no
18969       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18970       ;;
18971   esac
18972   ;;
18973
18974 sysv4*MP*)
18975   if test -d /usr/nec ;then
18976     version_type=linux
18977     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18978     soname_spec='$libname${shared_ext}.$major'
18979     shlibpath_var=LD_LIBRARY_PATH
18980   fi
18981   ;;
18982
18983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18984   version_type=freebsd-elf
18985   need_lib_prefix=no
18986   need_version=no
18987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18988   soname_spec='${libname}${release}${shared_ext}$major'
18989   shlibpath_var=LD_LIBRARY_PATH
18990   hardcode_into_libs=yes
18991   if test "$with_gnu_ld" = yes; then
18992     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18993     shlibpath_overrides_runpath=no
18994   else
18995     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18996     shlibpath_overrides_runpath=yes
18997     case $host_os in
18998       sco3.2v5*)
18999         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19000         ;;
19001     esac
19002   fi
19003   sys_lib_dlsearch_path_spec='/usr/lib'
19004   ;;
19005
19006 uts4*)
19007   version_type=linux
19008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19009   soname_spec='${libname}${release}${shared_ext}$major'
19010   shlibpath_var=LD_LIBRARY_PATH
19011   ;;
19012
19013 *)
19014   dynamic_linker=no
19015   ;;
19016 esac
19017 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19018 echo "${ECHO_T}$dynamic_linker" >&6; }
19019 test "$dynamic_linker" = no && can_build_shared=no
19020
19021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19022 if test "$GCC" = yes; then
19023   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19024 fi
19025
19026 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19028 hardcode_action_GCJ=
19029 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19030    test -n "$runpath_var_GCJ" || \
19031    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19032
19033   # We can hardcode non-existant directories.
19034   if test "$hardcode_direct_GCJ" != no &&
19035      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19036      # have to relink, otherwise we might link with an installed library
19037      # when we should be linking with a yet-to-be-installed one
19038      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19039      test "$hardcode_minus_L_GCJ" != no; then
19040     # Linking always hardcodes the temporary library directory.
19041     hardcode_action_GCJ=relink
19042   else
19043     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19044     hardcode_action_GCJ=immediate
19045   fi
19046 else
19047   # We cannot hardcode anything, or else we can only hardcode existing
19048   # directories.
19049   hardcode_action_GCJ=unsupported
19050 fi
19051 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19052 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19053
19054 if test "$hardcode_action_GCJ" = relink; then
19055   # Fast installation is not supported
19056   enable_fast_install=no
19057 elif test "$shlibpath_overrides_runpath" = yes ||
19058      test "$enable_shared" = no; then
19059   # Fast installation is not necessary
19060   enable_fast_install=needless
19061 fi
19062
19063
19064 # The else clause should only fire when bootstrapping the
19065 # libtool distribution, otherwise you forgot to ship ltmain.sh
19066 # with your package, and you will get complaints that there are
19067 # no rules to generate ltmain.sh.
19068 if test -f "$ltmain"; then
19069   # See if we are running on zsh, and set the options which allow our commands through
19070   # without removal of \ escapes.
19071   if test -n "${ZSH_VERSION+set}" ; then
19072     setopt NO_GLOB_SUBST
19073   fi
19074   # Now quote all the things that may contain metacharacters while being
19075   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19076   # variables and quote the copies for generation of the libtool script.
19077   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19078     SED SHELL STRIP \
19079     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19080     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19081     deplibs_check_method reload_flag reload_cmds need_locks \
19082     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19083     lt_cv_sys_global_symbol_to_c_name_address \
19084     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19085     old_postinstall_cmds old_postuninstall_cmds \
19086     compiler_GCJ \
19087     CC_GCJ \
19088     LD_GCJ \
19089     lt_prog_compiler_wl_GCJ \
19090     lt_prog_compiler_pic_GCJ \
19091     lt_prog_compiler_static_GCJ \
19092     lt_prog_compiler_no_builtin_flag_GCJ \
19093     export_dynamic_flag_spec_GCJ \
19094     thread_safe_flag_spec_GCJ \
19095     whole_archive_flag_spec_GCJ \
19096     enable_shared_with_static_runtimes_GCJ \
19097     old_archive_cmds_GCJ \
19098     old_archive_from_new_cmds_GCJ \
19099     predep_objects_GCJ \
19100     postdep_objects_GCJ \
19101     predeps_GCJ \
19102     postdeps_GCJ \
19103     compiler_lib_search_path_GCJ \
19104     archive_cmds_GCJ \
19105     archive_expsym_cmds_GCJ \
19106     postinstall_cmds_GCJ \
19107     postuninstall_cmds_GCJ \
19108     old_archive_from_expsyms_cmds_GCJ \
19109     allow_undefined_flag_GCJ \
19110     no_undefined_flag_GCJ \
19111     export_symbols_cmds_GCJ \
19112     hardcode_libdir_flag_spec_GCJ \
19113     hardcode_libdir_flag_spec_ld_GCJ \
19114     hardcode_libdir_separator_GCJ \
19115     hardcode_automatic_GCJ \
19116     module_cmds_GCJ \
19117     module_expsym_cmds_GCJ \
19118     lt_cv_prog_compiler_c_o_GCJ \
19119     fix_srcfile_path_GCJ \
19120     exclude_expsyms_GCJ \
19121     include_expsyms_GCJ; do
19122
19123     case $var in
19124     old_archive_cmds_GCJ | \
19125     old_archive_from_new_cmds_GCJ | \
19126     archive_cmds_GCJ | \
19127     archive_expsym_cmds_GCJ | \
19128     module_cmds_GCJ | \
19129     module_expsym_cmds_GCJ | \
19130     old_archive_from_expsyms_cmds_GCJ | \
19131     export_symbols_cmds_GCJ | \
19132     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19133     postinstall_cmds | postuninstall_cmds | \
19134     old_postinstall_cmds | old_postuninstall_cmds | \
19135     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19136       # Double-quote double-evaled strings.
19137       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19138       ;;
19139     *)
19140       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19141       ;;
19142     esac
19143   done
19144
19145   case $lt_echo in
19146   *'\$0 --fallback-echo"')
19147     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19148     ;;
19149   esac
19150
19151 cfgfile="$ofile"
19152
19153   cat <<__EOF__ >> "$cfgfile"
19154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19155
19156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19157
19158 # Shell to use when invoking shell scripts.
19159 SHELL=$lt_SHELL
19160
19161 # Whether or not to build shared libraries.
19162 build_libtool_libs=$enable_shared
19163
19164 # Whether or not to build static libraries.
19165 build_old_libs=$enable_static
19166
19167 # Whether or not to add -lc for building shared libraries.
19168 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19169
19170 # Whether or not to disallow shared libs when runtime libs are static
19171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19172
19173 # Whether or not to optimize for fast installation.
19174 fast_install=$enable_fast_install
19175
19176 # The host system.
19177 host_alias=$host_alias
19178 host=$host
19179 host_os=$host_os
19180
19181 # The build system.
19182 build_alias=$build_alias
19183 build=$build
19184 build_os=$build_os
19185
19186 # An echo program that does not interpret backslashes.
19187 echo=$lt_echo
19188
19189 # The archiver.
19190 AR=$lt_AR
19191 AR_FLAGS=$lt_AR_FLAGS
19192
19193 # A C compiler.
19194 LTCC=$lt_LTCC
19195
19196 # LTCC compiler flags.
19197 LTCFLAGS=$lt_LTCFLAGS
19198
19199 # A language-specific compiler.
19200 CC=$lt_compiler_GCJ
19201
19202 # Is the compiler the GNU C compiler?
19203 with_gcc=$GCC_GCJ
19204
19205 # An ERE matcher.
19206 EGREP=$lt_EGREP
19207
19208 # The linker used to build libraries.
19209 LD=$lt_LD_GCJ
19210
19211 # Whether we need hard or soft links.
19212 LN_S=$lt_LN_S
19213
19214 # A BSD-compatible nm program.
19215 NM=$lt_NM
19216
19217 # A symbol stripping program
19218 STRIP=$lt_STRIP
19219
19220 # Used to examine libraries when file_magic_cmd begins "file"
19221 MAGIC_CMD=$MAGIC_CMD
19222
19223 # Used on cygwin: DLL creation program.
19224 DLLTOOL="$DLLTOOL"
19225
19226 # Used on cygwin: object dumper.
19227 OBJDUMP="$OBJDUMP"
19228
19229 # Used on cygwin: assembler.
19230 AS="$AS"
19231
19232 # The name of the directory that contains temporary libtool files.
19233 objdir=$objdir
19234
19235 # How to create reloadable object files.
19236 reload_flag=$lt_reload_flag
19237 reload_cmds=$lt_reload_cmds
19238
19239 # How to pass a linker flag through the compiler.
19240 wl=$lt_lt_prog_compiler_wl_GCJ
19241
19242 # Object file suffix (normally "o").
19243 objext="$ac_objext"
19244
19245 # Old archive suffix (normally "a").
19246 libext="$libext"
19247
19248 # Shared library suffix (normally ".so").
19249 shrext_cmds='$shrext_cmds'
19250
19251 # Executable file suffix (normally "").
19252 exeext="$exeext"
19253
19254 # Additional compiler flags for building library objects.
19255 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19256 pic_mode=$pic_mode
19257
19258 # What is the maximum length of a command?
19259 max_cmd_len=$lt_cv_sys_max_cmd_len
19260
19261 # Does compiler simultaneously support -c and -o options?
19262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19263
19264 # Must we lock files when doing compilation?
19265 need_locks=$lt_need_locks
19266
19267 # Do we need the lib prefix for modules?
19268 need_lib_prefix=$need_lib_prefix
19269
19270 # Do we need a version for libraries?
19271 need_version=$need_version
19272
19273 # Whether dlopen is supported.
19274 dlopen_support=$enable_dlopen
19275
19276 # Whether dlopen of programs is supported.
19277 dlopen_self=$enable_dlopen_self
19278
19279 # Whether dlopen of statically linked programs is supported.
19280 dlopen_self_static=$enable_dlopen_self_static
19281
19282 # Compiler flag to prevent dynamic linking.
19283 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19284
19285 # Compiler flag to turn off builtin functions.
19286 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19287
19288 # Compiler flag to allow reflexive dlopens.
19289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19290
19291 # Compiler flag to generate shared objects directly from archives.
19292 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19293
19294 # Compiler flag to generate thread-safe objects.
19295 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19296
19297 # Library versioning type.
19298 version_type=$version_type
19299
19300 # Format of library name prefix.
19301 libname_spec=$lt_libname_spec
19302
19303 # List of archive names.  First name is the real one, the rest are links.
19304 # The last name is the one that the linker finds with -lNAME.
19305 library_names_spec=$lt_library_names_spec
19306
19307 # The coded name of the library, if different from the real name.
19308 soname_spec=$lt_soname_spec
19309
19310 # Commands used to build and install an old-style archive.
19311 RANLIB=$lt_RANLIB
19312 old_archive_cmds=$lt_old_archive_cmds_GCJ
19313 old_postinstall_cmds=$lt_old_postinstall_cmds
19314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19315
19316 # Create an old-style archive from a shared archive.
19317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19318
19319 # Create a temporary old-style archive to link instead of a shared archive.
19320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19321
19322 # Commands used to build and install a shared archive.
19323 archive_cmds=$lt_archive_cmds_GCJ
19324 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19325 postinstall_cmds=$lt_postinstall_cmds
19326 postuninstall_cmds=$lt_postuninstall_cmds
19327
19328 # Commands used to build a loadable module (assumed same as above if empty)
19329 module_cmds=$lt_module_cmds_GCJ
19330 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19331
19332 # Commands to strip libraries.
19333 old_striplib=$lt_old_striplib
19334 striplib=$lt_striplib
19335
19336 # Dependencies to place before the objects being linked to create a
19337 # shared library.
19338 predep_objects=$lt_predep_objects_GCJ
19339
19340 # Dependencies to place after the objects being linked to create a
19341 # shared library.
19342 postdep_objects=$lt_postdep_objects_GCJ
19343
19344 # Dependencies to place before the objects being linked to create a
19345 # shared library.
19346 predeps=$lt_predeps_GCJ
19347
19348 # Dependencies to place after the objects being linked to create a
19349 # shared library.
19350 postdeps=$lt_postdeps_GCJ
19351
19352 # The library search path used internally by the compiler when linking
19353 # a shared library.
19354 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19355
19356 # Method to check whether dependent libraries are shared objects.
19357 deplibs_check_method=$lt_deplibs_check_method
19358
19359 # Command to use when deplibs_check_method == file_magic.
19360 file_magic_cmd=$lt_file_magic_cmd
19361
19362 # Flag that allows shared libraries with undefined symbols to be built.
19363 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19364
19365 # Flag that forces no undefined symbols.
19366 no_undefined_flag=$lt_no_undefined_flag_GCJ
19367
19368 # Commands used to finish a libtool library installation in a directory.
19369 finish_cmds=$lt_finish_cmds
19370
19371 # Same as above, but a single script fragment to be evaled but not shown.
19372 finish_eval=$lt_finish_eval
19373
19374 # Take the output of nm and produce a listing of raw symbols and C names.
19375 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19376
19377 # Transform the output of nm in a proper C declaration
19378 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19379
19380 # Transform the output of nm in a C name address pair
19381 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19382
19383 # This is the shared library runtime path variable.
19384 runpath_var=$runpath_var
19385
19386 # This is the shared library path variable.
19387 shlibpath_var=$shlibpath_var
19388
19389 # Is shlibpath searched before the hard-coded library search path?
19390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19391
19392 # How to hardcode a shared library path into an executable.
19393 hardcode_action=$hardcode_action_GCJ
19394
19395 # Whether we should hardcode library paths into libraries.
19396 hardcode_into_libs=$hardcode_into_libs
19397
19398 # Flag to hardcode \$libdir into a binary during linking.
19399 # This must work even if \$libdir does not exist.
19400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19401
19402 # If ld is used when linking, flag to hardcode \$libdir into
19403 # a binary during linking. This must work even if \$libdir does
19404 # not exist.
19405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19406
19407 # Whether we need a single -rpath flag with a separated argument.
19408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19409
19410 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19411 # resulting binary.
19412 hardcode_direct=$hardcode_direct_GCJ
19413
19414 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19415 # resulting binary.
19416 hardcode_minus_L=$hardcode_minus_L_GCJ
19417
19418 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19419 # the resulting binary.
19420 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19421
19422 # Set to yes if building a shared library automatically hardcodes DIR into the library
19423 # and all subsequent libraries and executables linked against it.
19424 hardcode_automatic=$hardcode_automatic_GCJ
19425
19426 # Variables whose values should be saved in libtool wrapper scripts and
19427 # restored at relink time.
19428 variables_saved_for_relink="$variables_saved_for_relink"
19429
19430 # Whether libtool must link a program against all its dependency libraries.
19431 link_all_deplibs=$link_all_deplibs_GCJ
19432
19433 # Compile-time system search path for libraries
19434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19435
19436 # Run-time system search path for libraries
19437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19438
19439 # Fix the shell variable \$srcfile for the compiler.
19440 fix_srcfile_path=$lt_fix_srcfile_path
19441
19442 # Set to yes if exported symbols are required.
19443 always_export_symbols=$always_export_symbols_GCJ
19444
19445 # The commands to list exported symbols.
19446 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19447
19448 # The commands to extract the exported symbol list from a shared archive.
19449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19450
19451 # Symbols that should not be listed in the preloaded symbols.
19452 exclude_expsyms=$lt_exclude_expsyms_GCJ
19453
19454 # Symbols that must always be exported.
19455 include_expsyms=$lt_include_expsyms_GCJ
19456
19457 # ### END LIBTOOL TAG CONFIG: $tagname
19458
19459 __EOF__
19460
19461
19462 else
19463   # If there is no Makefile yet, we rely on a make rule to execute
19464   # `config.status --recheck' to rerun these tests and create the
19465   # libtool script then.
19466   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19467   if test -f "$ltmain_in"; then
19468     test -f Makefile && make "$ltmain"
19469   fi
19470 fi
19471
19472
19473 ac_ext=cpp
19474 ac_cpp='$CXXCPP $CPPFLAGS'
19475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19478
19479 CC="$lt_save_CC"
19480
19481         else
19482           tagname=""
19483         fi
19484         ;;
19485
19486       RC)
19487
19488
19489 # Source file extension for RC test sources.
19490 ac_ext=rc
19491
19492 # Object file extension for compiled RC test sources.
19493 objext=o
19494 objext_RC=$objext
19495
19496 # Code to be used in simple compile tests
19497 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19498
19499 # Code to be used in simple link tests
19500 lt_simple_link_test_code="$lt_simple_compile_test_code"
19501
19502 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19503
19504 # If no C compiler was specified, use CC.
19505 LTCC=${LTCC-"$CC"}
19506
19507 # If no C compiler flags were specified, use CFLAGS.
19508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19509
19510 # Allow CC to be a program name with arguments.
19511 compiler=$CC
19512
19513
19514 # save warnings/boilerplate of simple test code
19515 ac_outfile=conftest.$ac_objext
19516 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19518 _lt_compiler_boilerplate=`cat conftest.err`
19519 $rm conftest*
19520
19521 ac_outfile=conftest.$ac_objext
19522 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19524 _lt_linker_boilerplate=`cat conftest.err`
19525 $rm conftest*
19526
19527
19528 # Allow CC to be a program name with arguments.
19529 lt_save_CC="$CC"
19530 CC=${RC-"windres"}
19531 compiler=$CC
19532 compiler_RC=$CC
19533 for cc_temp in $compiler""; do
19534   case $cc_temp in
19535     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19536     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19537     \-*) ;;
19538     *) break;;
19539   esac
19540 done
19541 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19542
19543 lt_cv_prog_compiler_c_o_RC=yes
19544
19545 # The else clause should only fire when bootstrapping the
19546 # libtool distribution, otherwise you forgot to ship ltmain.sh
19547 # with your package, and you will get complaints that there are
19548 # no rules to generate ltmain.sh.
19549 if test -f "$ltmain"; then
19550   # See if we are running on zsh, and set the options which allow our commands through
19551   # without removal of \ escapes.
19552   if test -n "${ZSH_VERSION+set}" ; then
19553     setopt NO_GLOB_SUBST
19554   fi
19555   # Now quote all the things that may contain metacharacters while being
19556   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19557   # variables and quote the copies for generation of the libtool script.
19558   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19559     SED SHELL STRIP \
19560     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19561     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19562     deplibs_check_method reload_flag reload_cmds need_locks \
19563     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19564     lt_cv_sys_global_symbol_to_c_name_address \
19565     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19566     old_postinstall_cmds old_postuninstall_cmds \
19567     compiler_RC \
19568     CC_RC \
19569     LD_RC \
19570     lt_prog_compiler_wl_RC \
19571     lt_prog_compiler_pic_RC \
19572     lt_prog_compiler_static_RC \
19573     lt_prog_compiler_no_builtin_flag_RC \
19574     export_dynamic_flag_spec_RC \
19575     thread_safe_flag_spec_RC \
19576     whole_archive_flag_spec_RC \
19577     enable_shared_with_static_runtimes_RC \
19578     old_archive_cmds_RC \
19579     old_archive_from_new_cmds_RC \
19580     predep_objects_RC \
19581     postdep_objects_RC \
19582     predeps_RC \
19583     postdeps_RC \
19584     compiler_lib_search_path_RC \
19585     archive_cmds_RC \
19586     archive_expsym_cmds_RC \
19587     postinstall_cmds_RC \
19588     postuninstall_cmds_RC \
19589     old_archive_from_expsyms_cmds_RC \
19590     allow_undefined_flag_RC \
19591     no_undefined_flag_RC \
19592     export_symbols_cmds_RC \
19593     hardcode_libdir_flag_spec_RC \
19594     hardcode_libdir_flag_spec_ld_RC \
19595     hardcode_libdir_separator_RC \
19596     hardcode_automatic_RC \
19597     module_cmds_RC \
19598     module_expsym_cmds_RC \
19599     lt_cv_prog_compiler_c_o_RC \
19600     fix_srcfile_path_RC \
19601     exclude_expsyms_RC \
19602     include_expsyms_RC; do
19603
19604     case $var in
19605     old_archive_cmds_RC | \
19606     old_archive_from_new_cmds_RC | \
19607     archive_cmds_RC | \
19608     archive_expsym_cmds_RC | \
19609     module_cmds_RC | \
19610     module_expsym_cmds_RC | \
19611     old_archive_from_expsyms_cmds_RC | \
19612     export_symbols_cmds_RC | \
19613     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19614     postinstall_cmds | postuninstall_cmds | \
19615     old_postinstall_cmds | old_postuninstall_cmds | \
19616     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19617       # Double-quote double-evaled strings.
19618       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19619       ;;
19620     *)
19621       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19622       ;;
19623     esac
19624   done
19625
19626   case $lt_echo in
19627   *'\$0 --fallback-echo"')
19628     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19629     ;;
19630   esac
19631
19632 cfgfile="$ofile"
19633
19634   cat <<__EOF__ >> "$cfgfile"
19635 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19636
19637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19638
19639 # Shell to use when invoking shell scripts.
19640 SHELL=$lt_SHELL
19641
19642 # Whether or not to build shared libraries.
19643 build_libtool_libs=$enable_shared
19644
19645 # Whether or not to build static libraries.
19646 build_old_libs=$enable_static
19647
19648 # Whether or not to add -lc for building shared libraries.
19649 build_libtool_need_lc=$archive_cmds_need_lc_RC
19650
19651 # Whether or not to disallow shared libs when runtime libs are static
19652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19653
19654 # Whether or not to optimize for fast installation.
19655 fast_install=$enable_fast_install
19656
19657 # The host system.
19658 host_alias=$host_alias
19659 host=$host
19660 host_os=$host_os
19661
19662 # The build system.
19663 build_alias=$build_alias
19664 build=$build
19665 build_os=$build_os
19666
19667 # An echo program that does not interpret backslashes.
19668 echo=$lt_echo
19669
19670 # The archiver.
19671 AR=$lt_AR
19672 AR_FLAGS=$lt_AR_FLAGS
19673
19674 # A C compiler.
19675 LTCC=$lt_LTCC
19676
19677 # LTCC compiler flags.
19678 LTCFLAGS=$lt_LTCFLAGS
19679
19680 # A language-specific compiler.
19681 CC=$lt_compiler_RC
19682
19683 # Is the compiler the GNU C compiler?
19684 with_gcc=$GCC_RC
19685
19686 # An ERE matcher.
19687 EGREP=$lt_EGREP
19688
19689 # The linker used to build libraries.
19690 LD=$lt_LD_RC
19691
19692 # Whether we need hard or soft links.
19693 LN_S=$lt_LN_S
19694
19695 # A BSD-compatible nm program.
19696 NM=$lt_NM
19697
19698 # A symbol stripping program
19699 STRIP=$lt_STRIP
19700
19701 # Used to examine libraries when file_magic_cmd begins "file"
19702 MAGIC_CMD=$MAGIC_CMD
19703
19704 # Used on cygwin: DLL creation program.
19705 DLLTOOL="$DLLTOOL"
19706
19707 # Used on cygwin: object dumper.
19708 OBJDUMP="$OBJDUMP"
19709
19710 # Used on cygwin: assembler.
19711 AS="$AS"
19712
19713 # The name of the directory that contains temporary libtool files.
19714 objdir=$objdir
19715
19716 # How to create reloadable object files.
19717 reload_flag=$lt_reload_flag
19718 reload_cmds=$lt_reload_cmds
19719
19720 # How to pass a linker flag through the compiler.
19721 wl=$lt_lt_prog_compiler_wl_RC
19722
19723 # Object file suffix (normally "o").
19724 objext="$ac_objext"
19725
19726 # Old archive suffix (normally "a").
19727 libext="$libext"
19728
19729 # Shared library suffix (normally ".so").
19730 shrext_cmds='$shrext_cmds'
19731
19732 # Executable file suffix (normally "").
19733 exeext="$exeext"
19734
19735 # Additional compiler flags for building library objects.
19736 pic_flag=$lt_lt_prog_compiler_pic_RC
19737 pic_mode=$pic_mode
19738
19739 # What is the maximum length of a command?
19740 max_cmd_len=$lt_cv_sys_max_cmd_len
19741
19742 # Does compiler simultaneously support -c and -o options?
19743 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19744
19745 # Must we lock files when doing compilation?
19746 need_locks=$lt_need_locks
19747
19748 # Do we need the lib prefix for modules?
19749 need_lib_prefix=$need_lib_prefix
19750
19751 # Do we need a version for libraries?
19752 need_version=$need_version
19753
19754 # Whether dlopen is supported.
19755 dlopen_support=$enable_dlopen
19756
19757 # Whether dlopen of programs is supported.
19758 dlopen_self=$enable_dlopen_self
19759
19760 # Whether dlopen of statically linked programs is supported.
19761 dlopen_self_static=$enable_dlopen_self_static
19762
19763 # Compiler flag to prevent dynamic linking.
19764 link_static_flag=$lt_lt_prog_compiler_static_RC
19765
19766 # Compiler flag to turn off builtin functions.
19767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19768
19769 # Compiler flag to allow reflexive dlopens.
19770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19771
19772 # Compiler flag to generate shared objects directly from archives.
19773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19774
19775 # Compiler flag to generate thread-safe objects.
19776 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19777
19778 # Library versioning type.
19779 version_type=$version_type
19780
19781 # Format of library name prefix.
19782 libname_spec=$lt_libname_spec
19783
19784 # List of archive names.  First name is the real one, the rest are links.
19785 # The last name is the one that the linker finds with -lNAME.
19786 library_names_spec=$lt_library_names_spec
19787
19788 # The coded name of the library, if different from the real name.
19789 soname_spec=$lt_soname_spec
19790
19791 # Commands used to build and install an old-style archive.
19792 RANLIB=$lt_RANLIB
19793 old_archive_cmds=$lt_old_archive_cmds_RC
19794 old_postinstall_cmds=$lt_old_postinstall_cmds
19795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19796
19797 # Create an old-style archive from a shared archive.
19798 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19799
19800 # Create a temporary old-style archive to link instead of a shared archive.
19801 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19802
19803 # Commands used to build and install a shared archive.
19804 archive_cmds=$lt_archive_cmds_RC
19805 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19806 postinstall_cmds=$lt_postinstall_cmds
19807 postuninstall_cmds=$lt_postuninstall_cmds
19808
19809 # Commands used to build a loadable module (assumed same as above if empty)
19810 module_cmds=$lt_module_cmds_RC
19811 module_expsym_cmds=$lt_module_expsym_cmds_RC
19812
19813 # Commands to strip libraries.
19814 old_striplib=$lt_old_striplib
19815 striplib=$lt_striplib
19816
19817 # Dependencies to place before the objects being linked to create a
19818 # shared library.
19819 predep_objects=$lt_predep_objects_RC
19820
19821 # Dependencies to place after the objects being linked to create a
19822 # shared library.
19823 postdep_objects=$lt_postdep_objects_RC
19824
19825 # Dependencies to place before the objects being linked to create a
19826 # shared library.
19827 predeps=$lt_predeps_RC
19828
19829 # Dependencies to place after the objects being linked to create a
19830 # shared library.
19831 postdeps=$lt_postdeps_RC
19832
19833 # The library search path used internally by the compiler when linking
19834 # a shared library.
19835 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19836
19837 # Method to check whether dependent libraries are shared objects.
19838 deplibs_check_method=$lt_deplibs_check_method
19839
19840 # Command to use when deplibs_check_method == file_magic.
19841 file_magic_cmd=$lt_file_magic_cmd
19842
19843 # Flag that allows shared libraries with undefined symbols to be built.
19844 allow_undefined_flag=$lt_allow_undefined_flag_RC
19845
19846 # Flag that forces no undefined symbols.
19847 no_undefined_flag=$lt_no_undefined_flag_RC
19848
19849 # Commands used to finish a libtool library installation in a directory.
19850 finish_cmds=$lt_finish_cmds
19851
19852 # Same as above, but a single script fragment to be evaled but not shown.
19853 finish_eval=$lt_finish_eval
19854
19855 # Take the output of nm and produce a listing of raw symbols and C names.
19856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19857
19858 # Transform the output of nm in a proper C declaration
19859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19860
19861 # Transform the output of nm in a C name address pair
19862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19863
19864 # This is the shared library runtime path variable.
19865 runpath_var=$runpath_var
19866
19867 # This is the shared library path variable.
19868 shlibpath_var=$shlibpath_var
19869
19870 # Is shlibpath searched before the hard-coded library search path?
19871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19872
19873 # How to hardcode a shared library path into an executable.
19874 hardcode_action=$hardcode_action_RC
19875
19876 # Whether we should hardcode library paths into libraries.
19877 hardcode_into_libs=$hardcode_into_libs
19878
19879 # Flag to hardcode \$libdir into a binary during linking.
19880 # This must work even if \$libdir does not exist.
19881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19882
19883 # If ld is used when linking, flag to hardcode \$libdir into
19884 # a binary during linking. This must work even if \$libdir does
19885 # not exist.
19886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19887
19888 # Whether we need a single -rpath flag with a separated argument.
19889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19890
19891 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19892 # resulting binary.
19893 hardcode_direct=$hardcode_direct_RC
19894
19895 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19896 # resulting binary.
19897 hardcode_minus_L=$hardcode_minus_L_RC
19898
19899 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19900 # the resulting binary.
19901 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19902
19903 # Set to yes if building a shared library automatically hardcodes DIR into the library
19904 # and all subsequent libraries and executables linked against it.
19905 hardcode_automatic=$hardcode_automatic_RC
19906
19907 # Variables whose values should be saved in libtool wrapper scripts and
19908 # restored at relink time.
19909 variables_saved_for_relink="$variables_saved_for_relink"
19910
19911 # Whether libtool must link a program against all its dependency libraries.
19912 link_all_deplibs=$link_all_deplibs_RC
19913
19914 # Compile-time system search path for libraries
19915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19916
19917 # Run-time system search path for libraries
19918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19919
19920 # Fix the shell variable \$srcfile for the compiler.
19921 fix_srcfile_path=$lt_fix_srcfile_path
19922
19923 # Set to yes if exported symbols are required.
19924 always_export_symbols=$always_export_symbols_RC
19925
19926 # The commands to list exported symbols.
19927 export_symbols_cmds=$lt_export_symbols_cmds_RC
19928
19929 # The commands to extract the exported symbol list from a shared archive.
19930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19931
19932 # Symbols that should not be listed in the preloaded symbols.
19933 exclude_expsyms=$lt_exclude_expsyms_RC
19934
19935 # Symbols that must always be exported.
19936 include_expsyms=$lt_include_expsyms_RC
19937
19938 # ### END LIBTOOL TAG CONFIG: $tagname
19939
19940 __EOF__
19941
19942
19943 else
19944   # If there is no Makefile yet, we rely on a make rule to execute
19945   # `config.status --recheck' to rerun these tests and create the
19946   # libtool script then.
19947   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19948   if test -f "$ltmain_in"; then
19949     test -f Makefile && make "$ltmain"
19950   fi
19951 fi
19952
19953
19954 ac_ext=cpp
19955 ac_cpp='$CXXCPP $CPPFLAGS'
19956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19959
19960 CC="$lt_save_CC"
19961
19962         ;;
19963
19964       *)
19965         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19966 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19967    { (exit 1); exit 1; }; }
19968         ;;
19969       esac
19970
19971       # Append the new tag name to the list of available tags.
19972       if test -n "$tagname" ; then
19973       available_tags="$available_tags $tagname"
19974     fi
19975     fi
19976   done
19977   IFS="$lt_save_ifs"
19978
19979   # Now substitute the updated list of available tags.
19980   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19981     mv "${ofile}T" "$ofile"
19982     chmod +x "$ofile"
19983   else
19984     rm -f "${ofile}T"
19985     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19986 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19987    { (exit 1); exit 1; }; }
19988   fi
19989 fi
19990
19991
19992
19993 # This can be used to rebuild libtool when needed
19994 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19995
19996 # Always use our own libtool.
19997 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19998
19999 # Prevent multiple expansion
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021 { echo "$as_me:$LINENO: checking for some Win32 platform" >&5
20022 echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6; }
20023 case "$host" in
20024   *-*-mingw*|*-*-cygwin*)
20025     platform_win32=yes
20026     ;;
20027   *)
20028     platform_win32=no
20029     ;;
20030 esac
20031 { echo "$as_me:$LINENO: result: $platform_win32" >&5
20032 echo "${ECHO_T}$platform_win32" >&6; }
20033
20034
20035 if test "$platform_win32" = "yes"; then
20036   PLATFORM_WIN32_TRUE=
20037   PLATFORM_WIN32_FALSE='#'
20038 else
20039   PLATFORM_WIN32_TRUE='#'
20040   PLATFORM_WIN32_FALSE=
20041 fi
20042
20043
20044 { echo "$as_me:$LINENO: checking for native Win32" >&5
20045 echo $ECHO_N "checking for native Win32... $ECHO_C" >&6; }
20046 case "$host" in
20047   *-*-mingw*)
20048     os_win32=yes
20049     ;;
20050   *)
20051     os_win32=no
20052     ;;
20053 esac
20054 { echo "$as_me:$LINENO: result: $os_win32" >&5
20055 echo "${ECHO_T}$os_win32" >&6; }
20056
20057
20058 if test "$os_win32" = "yes"; then
20059   OS_WIN32_TRUE=
20060   OS_WIN32_FALSE='#'
20061 else
20062   OS_WIN32_TRUE='#'
20063   OS_WIN32_FALSE=
20064 fi
20065
20066
20067 # Ensure MSVC-compatible struct packing convention is used when
20068 # compiling for Win32 with gcc.
20069 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
20070 # gcc2 uses "-fnative-struct".
20071 if test x"$os_win32" = xyes; then
20072   if test x"$GCC" = xyes; then
20073     msnative_struct=''
20074     { echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
20075 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6; }
20076     if test -z "$ac_cv_prog_CC"; then
20077       our_gcc="$CC"
20078     else
20079       our_gcc="$ac_cv_prog_CC"
20080     fi
20081     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
20082       2.)
20083         if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
20084           msnative_struct='-fnative-struct'
20085         fi
20086         ;;
20087       *)
20088         if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
20089           msnative_struct='-mms-bitfields'
20090         fi
20091         ;;
20092     esac
20093     if test x"$msnative_struct" = x ; then
20094       { echo "$as_me:$LINENO: result: no way" >&5
20095 echo "${ECHO_T}no way" >&6; }
20096       { echo "$as_me:$LINENO: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
20097 echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
20098     else
20099       CXXFLAGS="$CXXFLAGS $msnative_struct"
20100       { echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
20101 echo "${ECHO_T}${msnative_struct}" >&6; }
20102     fi
20103   fi
20104 fi
20105
20106
20107
20108
20109
20110 for ac_header in string list map
20111 do
20112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20114   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20117   echo $ECHO_N "(cached) $ECHO_C" >&6
20118 fi
20119 ac_res=`eval echo '${'$as_ac_Header'}'`
20120                { echo "$as_me:$LINENO: result: $ac_res" >&5
20121 echo "${ECHO_T}$ac_res" >&6; }
20122 else
20123   # Is the header compilable?
20124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20126 cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 $ac_includes_default
20133 #include <$ac_header>
20134 _ACEOF
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139   *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142   (eval "$ac_compile") 2>conftest.er1
20143   ac_status=$?
20144   grep -v '^ *+' conftest.er1 >conftest.err
20145   rm -f conftest.er1
20146   cat conftest.err >&5
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } && {
20149          test -z "$ac_cxx_werror_flag" ||
20150          test ! -s conftest.err
20151        } && test -s conftest.$ac_objext; then
20152   ac_header_compiler=yes
20153 else
20154   echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157         ac_header_compiler=no
20158 fi
20159
20160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20162 echo "${ECHO_T}$ac_header_compiler" >&6; }
20163
20164 # Is the header present?
20165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h.  */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h.  */
20173 #include <$ac_header>
20174 _ACEOF
20175 if { (ac_try="$ac_cpp conftest.$ac_ext"
20176 case "(($ac_try" in
20177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178   *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20182   ac_status=$?
20183   grep -v '^ *+' conftest.er1 >conftest.err
20184   rm -f conftest.er1
20185   cat conftest.err >&5
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } >/dev/null && {
20188          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20189          test ! -s conftest.err
20190        }; then
20191   ac_header_preproc=yes
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196   ac_header_preproc=no
20197 fi
20198
20199 rm -f conftest.err conftest.$ac_ext
20200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20201 echo "${ECHO_T}$ac_header_preproc" >&6; }
20202
20203 # So?  What about this header?
20204 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20205   yes:no: )
20206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20210     ac_header_preproc=yes
20211     ;;
20212   no:yes:* )
20213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20225
20226     ;;
20227 esac
20228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20231   echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233   eval "$as_ac_Header=\$ac_header_preproc"
20234 fi
20235 ac_res=`eval echo '${'$as_ac_Header'}'`
20236                { echo "$as_me:$LINENO: result: $ac_res" >&5
20237 echo "${ECHO_T}$ac_res" >&6; }
20238
20239 fi
20240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20241   cat >>confdefs.h <<_ACEOF
20242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20243 _ACEOF
20244
20245 else
20246   exit
20247 fi
20248
20249 done
20250
20251
20252
20253
20254 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20255         if test -n "$ac_tool_prefix"; then
20256   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20260 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263   case $PKG_CONFIG in
20264   [\\/]* | ?:[\\/]*)
20265   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20266   ;;
20267   *)
20268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20269 for as_dir in $PATH
20270 do
20271   IFS=$as_save_IFS
20272   test -z "$as_dir" && as_dir=.
20273   for ac_exec_ext in '' $ac_executable_extensions; do
20274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20275     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20277     break 2
20278   fi
20279 done
20280 done
20281 IFS=$as_save_IFS
20282
20283   ;;
20284 esac
20285 fi
20286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20287 if test -n "$PKG_CONFIG"; then
20288   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20289 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20290 else
20291   { echo "$as_me:$LINENO: result: no" >&5
20292 echo "${ECHO_T}no" >&6; }
20293 fi
20294
20295
20296 fi
20297 if test -z "$ac_cv_path_PKG_CONFIG"; then
20298   ac_pt_PKG_CONFIG=$PKG_CONFIG
20299   # Extract the first word of "pkg-config", so it can be a program name with args.
20300 set dummy pkg-config; ac_word=$2
20301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20303 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306   case $ac_pt_PKG_CONFIG in
20307   [\\/]* | ?:[\\/]*)
20308   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20309   ;;
20310   *)
20311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20312 for as_dir in $PATH
20313 do
20314   IFS=$as_save_IFS
20315   test -z "$as_dir" && as_dir=.
20316   for ac_exec_ext in '' $ac_executable_extensions; do
20317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20318     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320     break 2
20321   fi
20322 done
20323 done
20324 IFS=$as_save_IFS
20325
20326   ;;
20327 esac
20328 fi
20329 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20330 if test -n "$ac_pt_PKG_CONFIG"; then
20331   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20332 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20333 else
20334   { echo "$as_me:$LINENO: result: no" >&5
20335 echo "${ECHO_T}no" >&6; }
20336 fi
20337
20338   if test "x$ac_pt_PKG_CONFIG" = x; then
20339     PKG_CONFIG=""
20340   else
20341     case $cross_compiling:$ac_tool_warned in
20342 yes:)
20343 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20344 whose name does not start with the host triplet.  If you think this
20345 configuration is useful to you, please write to autoconf@gnu.org." >&5
20346 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20347 whose name does not start with the host triplet.  If you think this
20348 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20349 ac_tool_warned=yes ;;
20350 esac
20351     PKG_CONFIG=$ac_pt_PKG_CONFIG
20352   fi
20353 else
20354   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20355 fi
20356
20357 fi
20358 if test -n "$PKG_CONFIG"; then
20359         _pkg_min_version=0.9.0
20360         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20361 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20362         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20363                 { echo "$as_me:$LINENO: result: yes" >&5
20364 echo "${ECHO_T}yes" >&6; }
20365         else
20366                 { echo "$as_me:$LINENO: result: no" >&5
20367 echo "${ECHO_T}no" >&6; }
20368                 PKG_CONFIG=""
20369         fi
20370
20371 fi
20372
20373 pkg_failed=no
20374 { echo "$as_me:$LINENO: checking for CAIROMM" >&5
20375 echo $ECHO_N "checking for CAIROMM... $ECHO_C" >&6; }
20376
20377 if test -n "$PKG_CONFIG"; then
20378     if test -n "$CAIROMM_CFLAGS"; then
20379         pkg_cv_CAIROMM_CFLAGS="$CAIROMM_CFLAGS"
20380     else
20381         if test -n "$PKG_CONFIG" && \
20382     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4\"") >&5
20383   ($PKG_CONFIG --exists --print-errors "cairo >= 1.4") 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; then
20387   pkg_cv_CAIROMM_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.4" 2>/dev/null`
20388 else
20389   pkg_failed=yes
20390 fi
20391     fi
20392 else
20393         pkg_failed=untried
20394 fi
20395 if test -n "$PKG_CONFIG"; then
20396     if test -n "$CAIROMM_LIBS"; then
20397         pkg_cv_CAIROMM_LIBS="$CAIROMM_LIBS"
20398     else
20399         if test -n "$PKG_CONFIG" && \
20400     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4\"") >&5
20401   ($PKG_CONFIG --exists --print-errors "cairo >= 1.4") 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; then
20405   pkg_cv_CAIROMM_LIBS=`$PKG_CONFIG --libs "cairo >= 1.4" 2>/dev/null`
20406 else
20407   pkg_failed=yes
20408 fi
20409     fi
20410 else
20411         pkg_failed=untried
20412 fi
20413
20414
20415
20416 if test $pkg_failed = yes; then
20417
20418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20419         _pkg_short_errors_supported=yes
20420 else
20421         _pkg_short_errors_supported=no
20422 fi
20423         if test $_pkg_short_errors_supported = yes; then
20424                 CAIROMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.4"`
20425         else
20426                 CAIROMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.4"`
20427         fi
20428         # Put the nasty error message in config.log where it belongs
20429         echo "$CAIROMM_PKG_ERRORS" >&5
20430
20431         { { echo "$as_me:$LINENO: error: Package requirements (cairo >= 1.4) were not met:
20432
20433 $CAIROMM_PKG_ERRORS
20434
20435 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20436 installed software in a non-standard prefix.
20437
20438 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20439 and CAIROMM_LIBS to avoid the need to call pkg-config.
20440 See the pkg-config man page for more details.
20441 " >&5
20442 echo "$as_me: error: Package requirements (cairo >= 1.4) were not met:
20443
20444 $CAIROMM_PKG_ERRORS
20445
20446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20447 installed software in a non-standard prefix.
20448
20449 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20450 and CAIROMM_LIBS to avoid the need to call pkg-config.
20451 See the pkg-config man page for more details.
20452 " >&2;}
20453    { (exit 1); exit 1; }; }
20454 elif test $pkg_failed = untried; then
20455         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20456 is in your PATH or set the PKG_CONFIG environment variable to the full
20457 path to pkg-config.
20458
20459 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20460 and CAIROMM_LIBS to avoid the need to call pkg-config.
20461 See the pkg-config man page for more details.
20462
20463 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20464 See \`config.log' for more details." >&5
20465 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20466 is in your PATH or set the PKG_CONFIG environment variable to the full
20467 path to pkg-config.
20468
20469 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20470 and CAIROMM_LIBS to avoid the need to call pkg-config.
20471 See the pkg-config man page for more details.
20472
20473 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20474 See \`config.log' for more details." >&2;}
20475    { (exit 1); exit 1; }; }
20476 else
20477         CAIROMM_CFLAGS=$pkg_cv_CAIROMM_CFLAGS
20478         CAIROMM_LIBS=$pkg_cv_CAIROMM_LIBS
20479         { echo "$as_me:$LINENO: result: yes" >&5
20480 echo "${ECHO_T}yes" >&6; }
20481         :
20482 fi
20483
20484 # Check whether --enable-tests was given.
20485 if test "${enable_tests+set}" = set; then
20486   enableval=$enable_tests; ENABLE_TESTS=$enableval
20487 else
20488   ENABLE_TESTS=no
20489 fi
20490
20491 if test x$CAIROMM_DEVEL = xon ; then
20492     ENABLE_TESTS=yes
20493 fi
20494
20495 if test x$ENABLE_TESTS = xyes ; then
20496
20497
20498 # Check whether --with-boost was given.
20499 if test "${with_boost+set}" = set; then
20500   withval=$with_boost;
20501     if test "$withval" = "no"; then
20502                 want_boost="no"
20503     elif test "$withval" = "yes"; then
20504         want_boost="yes"
20505         ac_boost_path=""
20506     else
20507             want_boost="yes"
20508         ac_boost_path="$withval"
20509         fi
20510
20511 else
20512   want_boost="yes"
20513 fi
20514
20515
20516 if test "x$want_boost" = "xyes"; then
20517         boost_lib_version_req=1.33.1
20518         boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20519         boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20520         boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20521         boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20522         if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20523                 boost_lib_version_req_sub_minor="0"
20524         fi
20525         WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20526         { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
20527 echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
20528         succeeded=no
20529
20530                                 if test "$ac_boost_path" != ""; then
20531                 BOOST_LDFLAGS="-L$ac_boost_path/lib"
20532                 BOOST_CPPFLAGS="-I$ac_boost_path/include"
20533         else
20534                 for ac_boost_path_tmp in /usr /usr/local /opt ; do
20535                         if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20536                                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
20537                                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20538                                 break;
20539                         fi
20540                 done
20541         fi
20542
20543         CPPFLAGS_SAVED="$CPPFLAGS"
20544         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20545         export CPPFLAGS
20546
20547         LDFLAGS_SAVED="$LDFLAGS"
20548         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20549         export LDFLAGS
20550
20551         ac_ext=cpp
20552 ac_cpp='$CXXCPP $CPPFLAGS'
20553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20556
20557         cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563
20564         #include <boost/version.hpp>
20565
20566 int
20567 main ()
20568 {
20569
20570         #if BOOST_VERSION >= $WANT_BOOST_VERSION
20571         // Everything is okay
20572         #else
20573         #  error Boost version is too old
20574         #endif
20575
20576   ;
20577   return 0;
20578 }
20579 _ACEOF
20580 rm -f conftest.$ac_objext
20581 if { (ac_try="$ac_compile"
20582 case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_compile") 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } && {
20594          test -z "$ac_cxx_werror_flag" ||
20595          test ! -s conftest.err
20596        } && test -s conftest.$ac_objext; then
20597
20598         { echo "$as_me:$LINENO: result: yes" >&5
20599 echo "${ECHO_T}yes" >&6; }
20600         succeeded=yes
20601         found_system=yes
20602
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607
20608
20609 fi
20610
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612         ac_ext=cpp
20613 ac_cpp='$CXXCPP $CPPFLAGS'
20614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20617
20618
20619
20620
20621                         if test "x$succeeded" != "xyes"; then
20622                 _version=0
20623                 if test "$ac_boost_path" != ""; then
20624                         BOOST_LDFLAGS="-L$ac_boost_path/lib"
20625                         if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20626                                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20627                                         _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20628                                         V_CHECK=`expr $_version_tmp \> $_version`
20629                                         if test "$V_CHECK" = "1" ; then
20630                                                 _version=$_version_tmp
20631                                         fi
20632                                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20633                                         BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
20634                                 done
20635                         fi
20636                 else
20637                         for ac_boost_path in /usr /usr/local /opt ; do
20638                                 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20639                                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20640                                                 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20641                                                 V_CHECK=`expr $_version_tmp \> $_version`
20642                                                 if test "$V_CHECK" = "1" ; then
20643                                                         _version=$_version_tmp
20644                                                         best_path=$ac_boost_path
20645                                                 fi
20646                                         done
20647                                 fi
20648                         done
20649
20650                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20651                         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20652                         BOOST_LDFLAGS="-L$best_path/lib"
20653
20654                         if test "x$BOOST_ROOT" != "x"; then
20655                                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
20656                                         version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
20657                                         stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
20658                                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
20659                                         V_CHECK=`expr $stage_version_shorten \>\= $_version`
20660                                         if test "$V_CHECK" = "1" ; then
20661                                                 { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
20662 echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
20663                                                 BOOST_CPPFLAGS="-I$BOOST_ROOT"
20664                                                 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
20665                                         fi
20666                                 fi
20667                         fi
20668                 fi
20669
20670                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20671                 export CPPFLAGS
20672                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20673                 export LDFLAGS
20674
20675                 ac_ext=cpp
20676 ac_cpp='$CXXCPP $CPPFLAGS'
20677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20680
20681                 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687
20688                 #include <boost/version.hpp>
20689
20690 int
20691 main ()
20692 {
20693
20694                 #if BOOST_VERSION >= $WANT_BOOST_VERSION
20695                 // Everything is okay
20696                 #else
20697                 #  error Boost version is too old
20698                 #endif
20699
20700   ;
20701   return 0;
20702 }
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_compile") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && {
20718          test -z "$ac_cxx_werror_flag" ||
20719          test ! -s conftest.err
20720        } && test -s conftest.$ac_objext; then
20721
20722                 { echo "$as_me:$LINENO: result: yes" >&5
20723 echo "${ECHO_T}yes" >&6; }
20724                 succeeded=yes
20725                 found_system=yes
20726
20727 else
20728   echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731
20732
20733 fi
20734
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736                 ac_ext=cpp
20737 ac_cpp='$CXXCPP $CPPFLAGS'
20738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
20742         fi
20743
20744         if test "$succeeded" != "yes" ; then
20745                 if test "$_version" = "0" ; then
20746                         { { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
20747 echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
20748    { (exit 1); exit 1; }; }
20749                 else
20750                         { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
20751 echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
20752                 fi
20753         else
20754
20755
20756
20757 cat >>confdefs.h <<\_ACEOF
20758 #define HAVE_BOOST
20759 _ACEOF
20760
20761         fi
20762
20763         CPPFLAGS="$CPPFLAGS_SAVED"
20764         LDFLAGS="$LDFLAGS_SAVED"
20765 fi
20766
20767
20768
20769
20770 # Check whether --with-boost-unit-test-framework was given.
20771 if test "${with_boost_unit_test_framework+set}" = set; then
20772   withval=$with_boost_unit_test_framework;
20773         if test "$withval" = "no"; then
20774                         want_boost="no"
20775         elif test "$withval" = "yes"; then
20776             want_boost="yes"
20777             ax_boost_user_unit_test_framework_lib=""
20778         else
20779                     want_boost="yes"
20780                 ax_boost_user_unit_test_framework_lib="$withval"
20781                 fi
20782
20783 else
20784   want_boost="yes"
20785
20786 fi
20787
20788
20789         if test "x$want_boost" = "xyes"; then
20790
20791                 CPPFLAGS_SAVED="$CPPFLAGS"
20792                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20793                 export CPPFLAGS
20794
20795                 LDFLAGS_SAVED="$LDFLAGS"
20796                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20797                 export LDFLAGS
20798
20799         { echo "$as_me:$LINENO: checking whether the Boost::Unit_Test_Framework library is available" >&5
20800 echo $ECHO_N "checking whether the Boost::Unit_Test_Framework library is available... $ECHO_C" >&6; }
20801 if test "${ax_cv_boost_unit_test_framework+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804   ac_ext=cpp
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809
20810                          cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 #include <boost/test/unit_test.hpp>
20817 int
20818 main ()
20819 {
20820 using boost::unit_test::test_suite;
20821                                                          test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" ); return 0;
20822   ;
20823   return 0;
20824 }
20825 _ACEOF
20826 rm -f conftest.$ac_objext
20827 if { (ac_try="$ac_compile"
20828 case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_compile") 2>conftest.er1
20834   ac_status=$?
20835   grep -v '^ *+' conftest.er1 >conftest.err
20836   rm -f conftest.er1
20837   cat conftest.err >&5
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); } && {
20840          test -z "$ac_cxx_werror_flag" ||
20841          test ! -s conftest.err
20842        } && test -s conftest.$ac_objext; then
20843   ax_cv_boost_unit_test_framework=yes
20844 else
20845   echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848         ax_cv_boost_unit_test_framework=no
20849 fi
20850
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852          ac_ext=cpp
20853 ac_cpp='$CXXCPP $CPPFLAGS'
20854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20857
20858
20859 fi
20860 { echo "$as_me:$LINENO: result: $ax_cv_boost_unit_test_framework" >&5
20861 echo "${ECHO_T}$ax_cv_boost_unit_test_framework" >&6; }
20862                 if test "x$ax_cv_boost_unit_test_framework" = "xyes"; then
20863
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_BOOST_UNIT_TEST_FRAMEWORK
20866 _ACEOF
20867
20868                         BN=boost_unit_test_framework
20869             if test "x$ax_boost_user_unit_test_framework_lib" = "x"; then
20870                         saved_ldflags="${LDFLAGS}"
20871                         for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \
20872                              lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \
20873                              $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do
20874                    LDFLAGS="${LDFLAGS} -l$ax_lib"
20875                            { echo "$as_me:$LINENO: checking Boost::UnitTestFramework library linkage" >&5
20876 echo $ECHO_N "checking Boost::UnitTestFramework library linkage... $ECHO_C" >&6; }
20877 if test "${ax_cv_boost_unit_test_framework_link+set}" = set; then
20878   echo $ECHO_N "(cached) $ECHO_C" >&6
20879 else
20880   ac_ext=cpp
20881 ac_cpp='$CXXCPP $CPPFLAGS'
20882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20885
20886                    cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h.  */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h.  */
20892 #include <boost/test/unit_test.hpp>
20893                                                      using boost::unit_test::test_suite;
20894                                                      test_suite* init_unit_test_suite( int argc, char * argv[] ) {
20895                                                      test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" );
20896                                                      return test;
20897                                                      }
20898
20899 int
20900 main ()
20901 {
20902  return 0;
20903   ;
20904   return 0;
20905 }
20906 _ACEOF
20907 rm -f conftest.$ac_objext conftest$ac_exeext
20908 if { (ac_try="$ac_link"
20909 case "(($ac_try" in
20910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911   *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914   (eval "$ac_link") 2>conftest.er1
20915   ac_status=$?
20916   grep -v '^ *+' conftest.er1 >conftest.err
20917   rm -f conftest.er1
20918   cat conftest.err >&5
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } && {
20921          test -z "$ac_cxx_werror_flag" ||
20922          test ! -s conftest.err
20923        } && test -s conftest$ac_exeext &&
20924        $as_test_x conftest$ac_exeext; then
20925   link_unit_test_framework="yes"
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930         link_unit_test_framework="no"
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20934       conftest$ac_exeext conftest.$ac_ext
20935                               ac_ext=cpp
20936 ac_cpp='$CXXCPP $CPPFLAGS'
20937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20940
20941
20942 fi
20943 { echo "$as_me:$LINENO: result: $ax_cv_boost_unit_test_framework_link" >&5
20944 echo "${ECHO_T}$ax_cv_boost_unit_test_framework_link" >&6; }
20945                   LDFLAGS="${saved_ldflags}"
20946
20947                               if test "x$link_unit_test_framework" = "xyes"; then
20948                       BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
20949
20950                                           break
20951                                   fi
20952                 done
20953             else
20954                         saved_ldflags="${LDFLAGS}"
20955                for ax_lib in $ax_boost_user_unit_test_framework_lib $BN-$ax_boost_user_unit_test_framework_lib; do
20956                    LDFLAGS="${LDFLAGS} -l$ax_lib"
20957                                    { echo "$as_me:$LINENO: checking Boost::UnitTestFramework library linkage" >&5
20958 echo $ECHO_N "checking Boost::UnitTestFramework library linkage... $ECHO_C" >&6; }
20959 if test "${ax_cv_boost_unit_test_framework_link+set}" = set; then
20960   echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962   ac_ext=cpp
20963 ac_cpp='$CXXCPP $CPPFLAGS'
20964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20967
20968                            cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <boost/test/unit_test.hpp>
20975                                                         using boost::unit_test::test_suite;
20976                                                         test_suite* init_unit_test_suite( int argc, char * argv[] ) {
20977                                                         test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" );
20978                                                         return test;
20979                                                         }
20980
20981 int
20982 main ()
20983 {
20984  return 0;
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (ac_try="$ac_link"
20991 case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_link") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && {
21003          test -z "$ac_cxx_werror_flag" ||
21004          test ! -s conftest.err
21005        } && test -s conftest$ac_exeext &&
21006        $as_test_x conftest$ac_exeext; then
21007   link_unit_test_framework="yes"
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012         link_unit_test_framework="no"
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016       conftest$ac_exeext conftest.$ac_ext
21017                               ac_ext=cpp
21018 ac_cpp='$CXXCPP $CPPFLAGS'
21019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21022
21023
21024 fi
21025 { echo "$as_me:$LINENO: result: $ax_cv_boost_unit_test_framework_link" >&5
21026 echo "${ECHO_T}$ax_cv_boost_unit_test_framework_link" >&6; }
21027                   LDFLAGS="${saved_ldflags}"
21028                               if test "x$link_unit_test_framework" = "xyes"; then
21029                       BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
21030
21031                                           break
21032                                   fi
21033                done
21034             fi
21035                         if test "x$link_unit_test_framework" = "xno"; then
21036                                 { { echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
21037 echo "$as_me: error: Could not link against $ax_lib !" >&2;}
21038    { (exit 1); exit 1; }; }
21039                         fi
21040                 fi
21041
21042                 CPPFLAGS="$CPPFLAGS_SAVED"
21043         LDFLAGS="$LDFLAGS_SAVED"
21044         fi
21045
21046 { echo "$as_me:$LINENO: support of automated tests enabled" >&5
21047 echo "$as_me: support of automated tests enabled" >&6;}
21048 else
21049     { echo "$as_me:$LINENO: disabled support of automated tests" >&5
21050 echo "$as_me: disabled support of automated tests" >&6;}
21051 fi
21052
21053
21054 if test x$ENABLE_TESTS = xyes; then
21055   AUTOTESTS_TRUE=
21056   AUTOTESTS_FALSE='#'
21057 else
21058   AUTOTESTS_TRUE='#'
21059   AUTOTESTS_FALSE=
21060 fi
21061
21062
21063 if test  "x$CAIROMM_DEVEL" = "xon" ; then
21064     CXXFLAGS="$CXXFLAGS -Wall -g -Werror -Wextra"
21065 fi
21066
21067
21068   # Check whether --enable-api-exceptions was given.
21069 if test "${enable_api_exceptions+set}" = set; then
21070   enableval=$enable_api_exceptions; cairomm_enable_api_exceptions="$enableval"
21071 else
21072   cairomm_enable_api_exceptions='yes'
21073 fi
21074
21075
21076   if test "x$cairomm_enable_api_exceptions" = "xyes"; then
21077   {
21078
21079 cat >>confdefs.h <<\_ACEOF
21080 #define CAIROMM_EXCEPTIONS_ENABLED 1
21081 _ACEOF
21082
21083   }
21084   fi
21085
21086
21087 DOCS_SUBDIR="" # Check whether --enable-docs was given.
21088 if test "${enable_docs+set}" = set; then
21089   enableval=$enable_docs;
21090 else
21091   enable_docs=yes
21092 fi
21093
21094 if test "x$enable_docs" = "xyes"; then
21095     for ac_prog in doxygen
21096 do
21097   # Extract the first word of "$ac_prog", so it can be a program name with args.
21098 set dummy $ac_prog; ac_word=$2
21099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21101 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
21102   echo $ECHO_N "(cached) $ECHO_C" >&6
21103 else
21104   if test -n "$DOXYGEN"; then
21105   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
21106 else
21107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21108 for as_dir in $PATH
21109 do
21110   IFS=$as_save_IFS
21111   test -z "$as_dir" && as_dir=.
21112   for ac_exec_ext in '' $ac_executable_extensions; do
21113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21114     ac_cv_prog_DOXYGEN="$ac_prog"
21115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21116     break 2
21117   fi
21118 done
21119 done
21120 IFS=$as_save_IFS
21121
21122 fi
21123 fi
21124 DOXYGEN=$ac_cv_prog_DOXYGEN
21125 if test -n "$DOXYGEN"; then
21126   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
21127 echo "${ECHO_T}$DOXYGEN" >&6; }
21128 else
21129   { echo "$as_me:$LINENO: result: no" >&5
21130 echo "${ECHO_T}no" >&6; }
21131 fi
21132
21133
21134   test -n "$DOXYGEN" && break
21135 done
21136 test -n "$DOXYGEN" || DOXYGEN="no"
21137
21138   if test x$DOXYGEN = xno; then
21139     { echo "$as_me:$LINENO: WARNING: Doxygen not found, documentation will not be rebuilt" >&5
21140 echo "$as_me: WARNING: Doxygen not found, documentation will not be rebuilt" >&2;}
21141   else
21142         for ac_prog in dot
21143 do
21144   # Extract the first word of "$ac_prog", so it can be a program name with args.
21145 set dummy $ac_prog; ac_word=$2
21146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21148 if test "${ac_cv_prog_DOT+set}" = set; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   if test -n "$DOT"; then
21152   ac_cv_prog_DOT="$DOT" # Let the user override the test.
21153 else
21154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21155 for as_dir in $PATH
21156 do
21157   IFS=$as_save_IFS
21158   test -z "$as_dir" && as_dir=.
21159   for ac_exec_ext in '' $ac_executable_extensions; do
21160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21161     ac_cv_prog_DOT="$ac_prog"
21162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21163     break 2
21164   fi
21165 done
21166 done
21167 IFS=$as_save_IFS
21168
21169 fi
21170 fi
21171 DOT=$ac_cv_prog_DOT
21172 if test -n "$DOT"; then
21173   { echo "$as_me:$LINENO: result: $DOT" >&5
21174 echo "${ECHO_T}$DOT" >&6; }
21175 else
21176   { echo "$as_me:$LINENO: result: no" >&5
21177 echo "${ECHO_T}no" >&6; }
21178 fi
21179
21180
21181   test -n "$DOT" && break
21182 done
21183 test -n "$DOT" || DOT="no"
21184
21185     if test x$DOT = xno; then
21186       { echo "$as_me:$LINENO: WARNING: graphviz / dot not found, documentation graphs will not be rebuilt" >&5
21187 echo "$as_me: WARNING: graphviz / dot not found, documentation graphs will not be rebuilt" >&2;}
21188     fi
21189   fi
21190
21191   DOCS_SUBDIR="docs"
21192   ac_config_files="$ac_config_files docs/Makefile docs/reference/Makefile docs/reference/Doxyfile"
21193
21194 fi
21195
21196
21197
21198 ac_config_files="$ac_config_files Makefile cairomm/Makefile examples/Makefile examples/png_file/Makefile examples/pdf-surface/Makefile examples/ps-surface/Makefile examples/svg-surface/Makefile examples/text-rotate/Makefile tests/Makefile cairomm-1.0.pc"
21199
21200
21201 ac_config_files="$ac_config_files MSVC/Makefile MSVC/gendef/Makefile MSVC/cairomm/Makefile MSVC/cairomm/cairomm.rc MSVC/examples/Makefile MSVC/examples/pdf-surface/Makefile MSVC/examples/png_file/Makefile MSVC/examples/ps-surface/Makefile MSVC/examples/svg-surface/Makefile MSVC/examples/text-rotate/Makefile"
21202
21203
21204 cat >confcache <<\_ACEOF
21205 # This file is a shell script that caches the results of configure
21206 # tests run on this system so they can be shared between configure
21207 # scripts and configure runs, see configure's option --config-cache.
21208 # It is not useful on other systems.  If it contains results you don't
21209 # want to keep, you may remove or edit it.
21210 #
21211 # config.status only pays attention to the cache file if you give it
21212 # the --recheck option to rerun configure.
21213 #
21214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21216 # following values.
21217
21218 _ACEOF
21219
21220 # The following way of writing the cache mishandles newlines in values,
21221 # but we know of no workaround that is simple, portable, and efficient.
21222 # So, we kill variables containing newlines.
21223 # Ultrix sh set writes to stderr and can't be redirected directly,
21224 # and sets the high bit in the cache file unless we assign to the vars.
21225 (
21226   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21227     eval ac_val=\$$ac_var
21228     case $ac_val in #(
21229     *${as_nl}*)
21230       case $ac_var in #(
21231       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21232 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21233       esac
21234       case $ac_var in #(
21235       _ | IFS | as_nl) ;; #(
21236       *) $as_unset $ac_var ;;
21237       esac ;;
21238     esac
21239   done
21240
21241   (set) 2>&1 |
21242     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21243     *${as_nl}ac_space=\ *)
21244       # `set' does not quote correctly, so add quotes (double-quote
21245       # substitution turns \\\\ into \\, and sed turns \\ into \).
21246       sed -n \
21247         "s/'/'\\\\''/g;
21248           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21249       ;; #(
21250     *)
21251       # `set' quotes correctly as required by POSIX, so do not add quotes.
21252       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21253       ;;
21254     esac |
21255     sort
21256 ) |
21257   sed '
21258      /^ac_cv_env_/b end
21259      t clear
21260      :clear
21261      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21262      t end
21263      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21264      :end' >>confcache
21265 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21266   if test -w "$cache_file"; then
21267     test "x$cache_file" != "x/dev/null" &&
21268       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21269 echo "$as_me: updating cache $cache_file" >&6;}
21270     cat confcache >$cache_file
21271   else
21272     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21273 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21274   fi
21275 fi
21276 rm -f confcache
21277
21278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21279 # Let make expand exec_prefix.
21280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21281
21282 DEFS=-DHAVE_CONFIG_H
21283
21284 ac_libobjs=
21285 ac_ltlibobjs=
21286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21287   # 1. Remove the extension, and $U if already installed.
21288   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21289   ac_i=`echo "$ac_i" | sed "$ac_script"`
21290   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21291   #    will be set to the directory where LIBOBJS objects are built.
21292   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21293   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21294 done
21295 LIBOBJS=$ac_libobjs
21296
21297 LTLIBOBJS=$ac_ltlibobjs
21298
21299
21300 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21301   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21302 Usually this means the macro was only invoked conditionally." >&5
21303 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21304 Usually this means the macro was only invoked conditionally." >&2;}
21305    { (exit 1); exit 1; }; }
21306 fi
21307 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21308   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&5
21310 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21311 Usually this means the macro was only invoked conditionally." >&2;}
21312    { (exit 1); exit 1; }; }
21313 fi
21314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21315   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&5
21317 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21318 Usually this means the macro was only invoked conditionally." >&2;}
21319    { (exit 1); exit 1; }; }
21320 fi
21321 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
21322   { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
21323 Usually this means the macro was only invoked conditionally." >&5
21324 echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
21325 Usually this means the macro was only invoked conditionally." >&2;}
21326    { (exit 1); exit 1; }; }
21327 fi
21328 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21329   { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
21330 Usually this means the macro was only invoked conditionally." >&5
21331 echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
21332 Usually this means the macro was only invoked conditionally." >&2;}
21333    { (exit 1); exit 1; }; }
21334 fi
21335 if test -z "${AUTOTESTS_TRUE}" && test -z "${AUTOTESTS_FALSE}"; then
21336   { { echo "$as_me:$LINENO: error: conditional \"AUTOTESTS\" was never defined.
21337 Usually this means the macro was only invoked conditionally." >&5
21338 echo "$as_me: error: conditional \"AUTOTESTS\" was never defined.
21339 Usually this means the macro was only invoked conditionally." >&2;}
21340    { (exit 1); exit 1; }; }
21341 fi
21342
21343 : ${CONFIG_STATUS=./config.status}
21344 ac_clean_files_save=$ac_clean_files
21345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21346 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21348 cat >$CONFIG_STATUS <<_ACEOF
21349 #! $SHELL
21350 # Generated by $as_me.
21351 # Run this file to recreate the current configuration.
21352 # Compiler output produced by configure, useful for debugging
21353 # configure, is in config.log if it exists.
21354
21355 debug=false
21356 ac_cs_recheck=false
21357 ac_cs_silent=false
21358 SHELL=\${CONFIG_SHELL-$SHELL}
21359 _ACEOF
21360
21361 cat >>$CONFIG_STATUS <<\_ACEOF
21362 ## --------------------- ##
21363 ## M4sh Initialization.  ##
21364 ## --------------------- ##
21365
21366 # Be more Bourne compatible
21367 DUALCASE=1; export DUALCASE # for MKS sh
21368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21369   emulate sh
21370   NULLCMD=:
21371   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21372   # is contrary to our usage.  Disable this feature.
21373   alias -g '${1+"$@"}'='"$@"'
21374   setopt NO_GLOB_SUBST
21375 else
21376   case `(set -o) 2>/dev/null` in
21377   *posix*) set -o posix ;;
21378 esac
21379
21380 fi
21381
21382
21383
21384
21385 # PATH needs CR
21386 # Avoid depending upon Character Ranges.
21387 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21388 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21389 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21390 as_cr_digits='0123456789'
21391 as_cr_alnum=$as_cr_Letters$as_cr_digits
21392
21393 # The user is always right.
21394 if test "${PATH_SEPARATOR+set}" != set; then
21395   echo "#! /bin/sh" >conf$$.sh
21396   echo  "exit 0"   >>conf$$.sh
21397   chmod +x conf$$.sh
21398   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21399     PATH_SEPARATOR=';'
21400   else
21401     PATH_SEPARATOR=:
21402   fi
21403   rm -f conf$$.sh
21404 fi
21405
21406 # Support unset when possible.
21407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21408   as_unset=unset
21409 else
21410   as_unset=false
21411 fi
21412
21413
21414 # IFS
21415 # We need space, tab and new line, in precisely that order.  Quoting is
21416 # there to prevent editors from complaining about space-tab.
21417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21418 # splitting by setting IFS to empty value.)
21419 as_nl='
21420 '
21421 IFS=" ""        $as_nl"
21422
21423 # Find who we are.  Look in the path if we contain no directory separator.
21424 case $0 in
21425   *[\\/]* ) as_myself=$0 ;;
21426   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21427 for as_dir in $PATH
21428 do
21429   IFS=$as_save_IFS
21430   test -z "$as_dir" && as_dir=.
21431   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21432 done
21433 IFS=$as_save_IFS
21434
21435      ;;
21436 esac
21437 # We did not find ourselves, most probably we were run as `sh COMMAND'
21438 # in which case we are not to be found in the path.
21439 if test "x$as_myself" = x; then
21440   as_myself=$0
21441 fi
21442 if test ! -f "$as_myself"; then
21443   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21444   { (exit 1); exit 1; }
21445 fi
21446
21447 # Work around bugs in pre-3.0 UWIN ksh.
21448 for as_var in ENV MAIL MAILPATH
21449 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21450 done
21451 PS1='$ '
21452 PS2='> '
21453 PS4='+ '
21454
21455 # NLS nuisances.
21456 for as_var in \
21457   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21458   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21459   LC_TELEPHONE LC_TIME
21460 do
21461   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21462     eval $as_var=C; export $as_var
21463   else
21464     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21465   fi
21466 done
21467
21468 # Required to use basename.
21469 if expr a : '\(a\)' >/dev/null 2>&1 &&
21470    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21471   as_expr=expr
21472 else
21473   as_expr=false
21474 fi
21475
21476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21477   as_basename=basename
21478 else
21479   as_basename=false
21480 fi
21481
21482
21483 # Name of the executable.
21484 as_me=`$as_basename -- "$0" ||
21485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21486          X"$0" : 'X\(//\)$' \| \
21487          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21488 echo X/"$0" |
21489     sed '/^.*\/\([^/][^/]*\)\/*$/{
21490             s//\1/
21491             q
21492           }
21493           /^X\/\(\/\/\)$/{
21494             s//\1/
21495             q
21496           }
21497           /^X\/\(\/\).*/{
21498             s//\1/
21499             q
21500           }
21501           s/.*/./; q'`
21502
21503 # CDPATH.
21504 $as_unset CDPATH
21505
21506
21507
21508   as_lineno_1=$LINENO
21509   as_lineno_2=$LINENO
21510   test "x$as_lineno_1" != "x$as_lineno_2" &&
21511   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21512
21513   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21514   # uniformly replaced by the line number.  The first 'sed' inserts a
21515   # line-number line after each line using $LINENO; the second 'sed'
21516   # does the real work.  The second script uses 'N' to pair each
21517   # line-number line with the line containing $LINENO, and appends
21518   # trailing '-' during substitution so that $LINENO is not a special
21519   # case at line end.
21520   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21521   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21522   # E. McMahon (1931-1989) for sed's syntax.  :-)
21523   sed -n '
21524     p
21525     /[$]LINENO/=
21526   ' <$as_myself |
21527     sed '
21528       s/[$]LINENO.*/&-/
21529       t lineno
21530       b
21531       :lineno
21532       N
21533       :loop
21534       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21535       t loop
21536       s/-\n.*//
21537     ' >$as_me.lineno &&
21538   chmod +x "$as_me.lineno" ||
21539     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21540    { (exit 1); exit 1; }; }
21541
21542   # Don't try to exec as it changes $[0], causing all sort of problems
21543   # (the dirname of $[0] is not the place where we might find the
21544   # original and so on.  Autoconf is especially sensitive to this).
21545   . "./$as_me.lineno"
21546   # Exit status is that of the last command.
21547   exit
21548 }
21549
21550
21551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21552   as_dirname=dirname
21553 else
21554   as_dirname=false
21555 fi
21556
21557 ECHO_C= ECHO_N= ECHO_T=
21558 case `echo -n x` in
21559 -n*)
21560   case `echo 'x\c'` in
21561   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21562   *)   ECHO_C='\c';;
21563   esac;;
21564 *)
21565   ECHO_N='-n';;
21566 esac
21567
21568 if expr a : '\(a\)' >/dev/null 2>&1 &&
21569    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21570   as_expr=expr
21571 else
21572   as_expr=false
21573 fi
21574
21575 rm -f conf$$ conf$$.exe conf$$.file
21576 if test -d conf$$.dir; then
21577   rm -f conf$$.dir/conf$$.file
21578 else
21579   rm -f conf$$.dir
21580   mkdir conf$$.dir
21581 fi
21582 echo >conf$$.file
21583 if ln -s conf$$.file conf$$ 2>/dev/null; then
21584   as_ln_s='ln -s'
21585   # ... but there are two gotchas:
21586   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21587   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21588   # In both cases, we have to default to `cp -p'.
21589   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21590     as_ln_s='cp -p'
21591 elif ln conf$$.file conf$$ 2>/dev/null; then
21592   as_ln_s=ln
21593 else
21594   as_ln_s='cp -p'
21595 fi
21596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21597 rmdir conf$$.dir 2>/dev/null
21598
21599 if mkdir -p . 2>/dev/null; then
21600   as_mkdir_p=:
21601 else
21602   test -d ./-p && rmdir ./-p
21603   as_mkdir_p=false
21604 fi
21605
21606 if test -x / >/dev/null 2>&1; then
21607   as_test_x='test -x'
21608 else
21609   if ls -dL / >/dev/null 2>&1; then
21610     as_ls_L_option=L
21611   else
21612     as_ls_L_option=
21613   fi
21614   as_test_x='
21615     eval sh -c '\''
21616       if test -d "$1"; then
21617         test -d "$1/.";
21618       else
21619         case $1 in
21620         -*)set "./$1";;
21621         esac;
21622         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21623         ???[sx]*):;;*)false;;esac;fi
21624     '\'' sh
21625   '
21626 fi
21627 as_executable_p=$as_test_x
21628
21629 # Sed expression to map a string onto a valid CPP name.
21630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21631
21632 # Sed expression to map a string onto a valid variable name.
21633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21634
21635
21636 exec 6>&1
21637
21638 # Save the log message, to keep $[0] and so on meaningful, and to
21639 # report actual input values of CONFIG_FILES etc. instead of their
21640 # values after options handling.
21641 ac_log="
21642 This file was extended by $as_me, which was
21643 generated by GNU Autoconf 2.61.  Invocation command line was
21644
21645   CONFIG_FILES    = $CONFIG_FILES
21646   CONFIG_HEADERS  = $CONFIG_HEADERS
21647   CONFIG_LINKS    = $CONFIG_LINKS
21648   CONFIG_COMMANDS = $CONFIG_COMMANDS
21649   $ $0 $@
21650
21651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21652 "
21653
21654 _ACEOF
21655
21656 cat >>$CONFIG_STATUS <<_ACEOF
21657 # Files that config.status was made for.
21658 config_files="$ac_config_files"
21659 config_headers="$ac_config_headers"
21660 config_commands="$ac_config_commands"
21661
21662 _ACEOF
21663
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21665 ac_cs_usage="\
21666 \`$as_me' instantiates files from templates according to the
21667 current configuration.
21668
21669 Usage: $0 [OPTIONS] [FILE]...
21670
21671   -h, --help       print this help, then exit
21672   -V, --version    print version number and configuration settings, then exit
21673   -q, --quiet      do not print progress messages
21674   -d, --debug      don't remove temporary files
21675       --recheck    update $as_me by reconfiguring in the same conditions
21676   --file=FILE[:TEMPLATE]
21677                    instantiate the configuration file FILE
21678   --header=FILE[:TEMPLATE]
21679                    instantiate the configuration header FILE
21680
21681 Configuration files:
21682 $config_files
21683
21684 Configuration headers:
21685 $config_headers
21686
21687 Configuration commands:
21688 $config_commands
21689
21690 Report bugs to <bug-autoconf@gnu.org>."
21691
21692 _ACEOF
21693 cat >>$CONFIG_STATUS <<_ACEOF
21694 ac_cs_version="\\
21695 config.status
21696 configured by $0, generated by GNU Autoconf 2.61,
21697   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21698
21699 Copyright (C) 2006 Free Software Foundation, Inc.
21700 This config.status script is free software; the Free Software Foundation
21701 gives unlimited permission to copy, distribute and modify it."
21702
21703 ac_pwd='$ac_pwd'
21704 srcdir='$srcdir'
21705 INSTALL='$INSTALL'
21706 _ACEOF
21707
21708 cat >>$CONFIG_STATUS <<\_ACEOF
21709 # If no file are specified by the user, then we need to provide default
21710 # value.  By we need to know if files were specified by the user.
21711 ac_need_defaults=:
21712 while test $# != 0
21713 do
21714   case $1 in
21715   --*=*)
21716     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21717     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21718     ac_shift=:
21719     ;;
21720   *)
21721     ac_option=$1
21722     ac_optarg=$2
21723     ac_shift=shift
21724     ;;
21725   esac
21726
21727   case $ac_option in
21728   # Handling of the options.
21729   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21730     ac_cs_recheck=: ;;
21731   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21732     echo "$ac_cs_version"; exit ;;
21733   --debug | --debu | --deb | --de | --d | -d )
21734     debug=: ;;
21735   --file | --fil | --fi | --f )
21736     $ac_shift
21737     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21738     ac_need_defaults=false;;
21739   --header | --heade | --head | --hea )
21740     $ac_shift
21741     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21742     ac_need_defaults=false;;
21743   --he | --h)
21744     # Conflict between --help and --header
21745     { echo "$as_me: error: ambiguous option: $1
21746 Try \`$0 --help' for more information." >&2
21747    { (exit 1); exit 1; }; };;
21748   --help | --hel | -h )
21749     echo "$ac_cs_usage"; exit ;;
21750   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21751   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21752     ac_cs_silent=: ;;
21753
21754   # This is an error.
21755   -*) { echo "$as_me: error: unrecognized option: $1
21756 Try \`$0 --help' for more information." >&2
21757    { (exit 1); exit 1; }; } ;;
21758
21759   *) ac_config_targets="$ac_config_targets $1"
21760      ac_need_defaults=false ;;
21761
21762   esac
21763   shift
21764 done
21765
21766 ac_configure_extra_args=
21767
21768 if $ac_cs_silent; then
21769   exec 6>/dev/null
21770   ac_configure_extra_args="$ac_configure_extra_args --silent"
21771 fi
21772
21773 _ACEOF
21774 cat >>$CONFIG_STATUS <<_ACEOF
21775 if \$ac_cs_recheck; then
21776   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21777   CONFIG_SHELL=$SHELL
21778   export CONFIG_SHELL
21779   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21780 fi
21781
21782 _ACEOF
21783 cat >>$CONFIG_STATUS <<\_ACEOF
21784 exec 5>>config.log
21785 {
21786   echo
21787   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21788 ## Running $as_me. ##
21789 _ASBOX
21790   echo "$ac_log"
21791 } >&5
21792
21793 _ACEOF
21794 cat >>$CONFIG_STATUS <<_ACEOF
21795 #
21796 # INIT-COMMANDS
21797 #
21798 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21799
21800 _ACEOF
21801
21802 cat >>$CONFIG_STATUS <<\_ACEOF
21803
21804 # Handling of arguments.
21805 for ac_config_target in $ac_config_targets
21806 do
21807   case $ac_config_target in
21808     "cairomm/cairommconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cairomm/cairommconfig.h" ;;
21809     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21810     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21811     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
21812     "docs/reference/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/reference/Doxyfile" ;;
21813     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21814     "cairomm/Makefile") CONFIG_FILES="$CONFIG_FILES cairomm/Makefile" ;;
21815     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21816     "examples/png_file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/png_file/Makefile" ;;
21817     "examples/pdf-surface/Makefile") CONFIG_FILES="$CONFIG_FILES examples/pdf-surface/Makefile" ;;
21818     "examples/ps-surface/Makefile") CONFIG_FILES="$CONFIG_FILES examples/ps-surface/Makefile" ;;
21819     "examples/svg-surface/Makefile") CONFIG_FILES="$CONFIG_FILES examples/svg-surface/Makefile" ;;
21820     "examples/text-rotate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/text-rotate/Makefile" ;;
21821     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21822     "cairomm-1.0.pc") CONFIG_FILES="$CONFIG_FILES cairomm-1.0.pc" ;;
21823     "MSVC/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/Makefile" ;;
21824     "MSVC/gendef/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/gendef/Makefile" ;;
21825     "MSVC/cairomm/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/cairomm/Makefile" ;;
21826     "MSVC/cairomm/cairomm.rc") CONFIG_FILES="$CONFIG_FILES MSVC/cairomm/cairomm.rc" ;;
21827     "MSVC/examples/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/Makefile" ;;
21828     "MSVC/examples/pdf-surface/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/pdf-surface/Makefile" ;;
21829     "MSVC/examples/png_file/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/png_file/Makefile" ;;
21830     "MSVC/examples/ps-surface/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/ps-surface/Makefile" ;;
21831     "MSVC/examples/svg-surface/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/svg-surface/Makefile" ;;
21832     "MSVC/examples/text-rotate/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/text-rotate/Makefile" ;;
21833
21834   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21836    { (exit 1); exit 1; }; };;
21837   esac
21838 done
21839
21840
21841 # If the user did not use the arguments to specify the items to instantiate,
21842 # then the envvar interface is used.  Set only those that are not.
21843 # We use the long form for the default assignment because of an extremely
21844 # bizarre bug on SunOS 4.1.3.
21845 if $ac_need_defaults; then
21846   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21847   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21848   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21849 fi
21850
21851 # Have a temporary directory for convenience.  Make it in the build tree
21852 # simply because there is no reason against having it here, and in addition,
21853 # creating and moving files from /tmp can sometimes cause problems.
21854 # Hook for its removal unless debugging.
21855 # Note that there is a small window in which the directory will not be cleaned:
21856 # after its creation but before its name has been assigned to `$tmp'.
21857 $debug ||
21858 {
21859   tmp=
21860   trap 'exit_status=$?
21861   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21862 ' 0
21863   trap '{ (exit 1); exit 1; }' 1 2 13 15
21864 }
21865 # Create a (secure) tmp directory for tmp files.
21866
21867 {
21868   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21869   test -n "$tmp" && test -d "$tmp"
21870 }  ||
21871 {
21872   tmp=./conf$$-$RANDOM
21873   (umask 077 && mkdir "$tmp")
21874 } ||
21875 {
21876    echo "$me: cannot create a temporary directory in ." >&2
21877    { (exit 1); exit 1; }
21878 }
21879
21880 #
21881 # Set up the sed scripts for CONFIG_FILES section.
21882 #
21883
21884 # No need to generate the scripts if there are no CONFIG_FILES.
21885 # This happens for instance when ./config.status config.h
21886 if test -n "$CONFIG_FILES"; then
21887
21888 _ACEOF
21889
21890
21891
21892 ac_delim='%!_!# '
21893 for ac_last_try in false false false false false :; do
21894   cat >conf$$subs.sed <<_ACEOF
21895 SHELL!$SHELL$ac_delim
21896 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21897 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21898 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21899 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21900 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21901 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21902 exec_prefix!$exec_prefix$ac_delim
21903 prefix!$prefix$ac_delim
21904 program_transform_name!$program_transform_name$ac_delim
21905 bindir!$bindir$ac_delim
21906 sbindir!$sbindir$ac_delim
21907 libexecdir!$libexecdir$ac_delim
21908 datarootdir!$datarootdir$ac_delim
21909 datadir!$datadir$ac_delim
21910 sysconfdir!$sysconfdir$ac_delim
21911 sharedstatedir!$sharedstatedir$ac_delim
21912 localstatedir!$localstatedir$ac_delim
21913 includedir!$includedir$ac_delim
21914 oldincludedir!$oldincludedir$ac_delim
21915 docdir!$docdir$ac_delim
21916 infodir!$infodir$ac_delim
21917 htmldir!$htmldir$ac_delim
21918 dvidir!$dvidir$ac_delim
21919 pdfdir!$pdfdir$ac_delim
21920 psdir!$psdir$ac_delim
21921 libdir!$libdir$ac_delim
21922 localedir!$localedir$ac_delim
21923 mandir!$mandir$ac_delim
21924 DEFS!$DEFS$ac_delim
21925 ECHO_C!$ECHO_C$ac_delim
21926 ECHO_N!$ECHO_N$ac_delim
21927 ECHO_T!$ECHO_T$ac_delim
21928 LIBS!$LIBS$ac_delim
21929 build_alias!$build_alias$ac_delim
21930 host_alias!$host_alias$ac_delim
21931 target_alias!$target_alias$ac_delim
21932 GENERIC_MAJOR_VERSION!$GENERIC_MAJOR_VERSION$ac_delim
21933 GENERIC_MINOR_VERSION!$GENERIC_MINOR_VERSION$ac_delim
21934 GENERIC_MICRO_VERSION!$GENERIC_MICRO_VERSION$ac_delim
21935 GENERIC_VERSION!$GENERIC_VERSION$ac_delim
21936 GENERIC_LIBRARY_VERSION!$GENERIC_LIBRARY_VERSION$ac_delim
21937 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21938 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21939 INSTALL_DATA!$INSTALL_DATA$ac_delim
21940 CYGPATH_W!$CYGPATH_W$ac_delim
21941 PACKAGE!$PACKAGE$ac_delim
21942 VERSION!$VERSION$ac_delim
21943 ACLOCAL!$ACLOCAL$ac_delim
21944 AUTOCONF!$AUTOCONF$ac_delim
21945 AUTOMAKE!$AUTOMAKE$ac_delim
21946 AUTOHEADER!$AUTOHEADER$ac_delim
21947 MAKEINFO!$MAKEINFO$ac_delim
21948 install_sh!$install_sh$ac_delim
21949 STRIP!$STRIP$ac_delim
21950 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21951 mkdir_p!$mkdir_p$ac_delim
21952 AWK!$AWK$ac_delim
21953 SET_MAKE!$SET_MAKE$ac_delim
21954 am__leading_dot!$am__leading_dot$ac_delim
21955 AMTAR!$AMTAR$ac_delim
21956 am__tar!$am__tar$ac_delim
21957 am__untar!$am__untar$ac_delim
21958 CXX!$CXX$ac_delim
21959 CXXFLAGS!$CXXFLAGS$ac_delim
21960 LDFLAGS!$LDFLAGS$ac_delim
21961 CPPFLAGS!$CPPFLAGS$ac_delim
21962 ac_ct_CXX!$ac_ct_CXX$ac_delim
21963 EXEEXT!$EXEEXT$ac_delim
21964 OBJEXT!$OBJEXT$ac_delim
21965 DEPDIR!$DEPDIR$ac_delim
21966 am__include!$am__include$ac_delim
21967 am__quote!$am__quote$ac_delim
21968 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21969 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21970 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21971 CXXDEPMODE!$CXXDEPMODE$ac_delim
21972 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21973 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21974 CXXCPP!$CXXCPP$ac_delim
21975 build!$build$ac_delim
21976 build_cpu!$build_cpu$ac_delim
21977 build_vendor!$build_vendor$ac_delim
21978 build_os!$build_os$ac_delim
21979 host!$host$ac_delim
21980 host_cpu!$host_cpu$ac_delim
21981 host_vendor!$host_vendor$ac_delim
21982 host_os!$host_os$ac_delim
21983 CC!$CC$ac_delim
21984 CFLAGS!$CFLAGS$ac_delim
21985 ac_ct_CC!$ac_ct_CC$ac_delim
21986 CCDEPMODE!$CCDEPMODE$ac_delim
21987 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21988 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21989 SED!$SED$ac_delim
21990 GREP!$GREP$ac_delim
21991 EGREP!$EGREP$ac_delim
21992 _ACEOF
21993
21994   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21995     break
21996   elif $ac_last_try; then
21997     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21998 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21999    { (exit 1); exit 1; }; }
22000   else
22001     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22002   fi
22003 done
22004
22005 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22006 if test -n "$ac_eof"; then
22007   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22008   ac_eof=`expr $ac_eof + 1`
22009 fi
22010
22011 cat >>$CONFIG_STATUS <<_ACEOF
22012 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22014 _ACEOF
22015 sed '
22016 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22017 s/^/s,@/; s/!/@,|#_!!_#|/
22018 :n
22019 t n
22020 s/'"$ac_delim"'$/,g/; t
22021 s/$/\\/; p
22022 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22023 ' >>$CONFIG_STATUS <conf$$subs.sed
22024 rm -f conf$$subs.sed
22025 cat >>$CONFIG_STATUS <<_ACEOF
22026 CEOF$ac_eof
22027 _ACEOF
22028
22029
22030 ac_delim='%!_!# '
22031 for ac_last_try in false false false false false :; do
22032   cat >conf$$subs.sed <<_ACEOF
22033 LN_S!$LN_S$ac_delim
22034 ECHO!$ECHO$ac_delim
22035 AR!$AR$ac_delim
22036 RANLIB!$RANLIB$ac_delim
22037 DLLTOOL!$DLLTOOL$ac_delim
22038 AS!$AS$ac_delim
22039 OBJDUMP!$OBJDUMP$ac_delim
22040 CPP!$CPP$ac_delim
22041 F77!$F77$ac_delim
22042 FFLAGS!$FFLAGS$ac_delim
22043 ac_ct_F77!$ac_ct_F77$ac_delim
22044 LIBTOOL!$LIBTOOL$ac_delim
22045 PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
22046 PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
22047 OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
22048 OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
22049 PKG_CONFIG!$PKG_CONFIG$ac_delim
22050 CAIROMM_CFLAGS!$CAIROMM_CFLAGS$ac_delim
22051 CAIROMM_LIBS!$CAIROMM_LIBS$ac_delim
22052 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
22053 BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
22054 BOOST_UNIT_TEST_FRAMEWORK_LIB!$BOOST_UNIT_TEST_FRAMEWORK_LIB$ac_delim
22055 AUTOTESTS_TRUE!$AUTOTESTS_TRUE$ac_delim
22056 AUTOTESTS_FALSE!$AUTOTESTS_FALSE$ac_delim
22057 DOXYGEN!$DOXYGEN$ac_delim
22058 DOT!$DOT$ac_delim
22059 DOCS_SUBDIR!$DOCS_SUBDIR$ac_delim
22060 LIBOBJS!$LIBOBJS$ac_delim
22061 LTLIBOBJS!$LTLIBOBJS$ac_delim
22062 _ACEOF
22063
22064   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
22065     break
22066   elif $ac_last_try; then
22067     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22068 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22069    { (exit 1); exit 1; }; }
22070   else
22071     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22072   fi
22073 done
22074
22075 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22076 if test -n "$ac_eof"; then
22077   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22078   ac_eof=`expr $ac_eof + 1`
22079 fi
22080
22081 cat >>$CONFIG_STATUS <<_ACEOF
22082 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22084 _ACEOF
22085 sed '
22086 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22087 s/^/s,@/; s/!/@,|#_!!_#|/
22088 :n
22089 t n
22090 s/'"$ac_delim"'$/,g/; t
22091 s/$/\\/; p
22092 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22093 ' >>$CONFIG_STATUS <conf$$subs.sed
22094 rm -f conf$$subs.sed
22095 cat >>$CONFIG_STATUS <<_ACEOF
22096 :end
22097 s/|#_!!_#|//g
22098 CEOF$ac_eof
22099 _ACEOF
22100
22101
22102 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22103 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22104 # trailing colons and then remove the whole line if VPATH becomes empty
22105 # (actually we leave an empty line to preserve line numbers).
22106 if test "x$srcdir" = x.; then
22107   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22108 s/:*\$(srcdir):*/:/
22109 s/:*\${srcdir}:*/:/
22110 s/:*@srcdir@:*/:/
22111 s/^\([^=]*=[     ]*\):*/\1/
22112 s/:*$//
22113 s/^[^=]*=[       ]*$//
22114 }'
22115 fi
22116
22117 cat >>$CONFIG_STATUS <<\_ACEOF
22118 fi # test -n "$CONFIG_FILES"
22119
22120
22121 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22122 do
22123   case $ac_tag in
22124   :[FHLC]) ac_mode=$ac_tag; continue;;
22125   esac
22126   case $ac_mode$ac_tag in
22127   :[FHL]*:*);;
22128   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22129 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22130    { (exit 1); exit 1; }; };;
22131   :[FH]-) ac_tag=-:-;;
22132   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22133   esac
22134   ac_save_IFS=$IFS
22135   IFS=:
22136   set x $ac_tag
22137   IFS=$ac_save_IFS
22138   shift
22139   ac_file=$1
22140   shift
22141
22142   case $ac_mode in
22143   :L) ac_source=$1;;
22144   :[FH])
22145     ac_file_inputs=
22146     for ac_f
22147     do
22148       case $ac_f in
22149       -) ac_f="$tmp/stdin";;
22150       *) # Look for the file first in the build tree, then in the source tree
22151          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22152          # because $ac_f cannot contain `:'.
22153          test -f "$ac_f" ||
22154            case $ac_f in
22155            [\\/$]*) false;;
22156            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22157            esac ||
22158            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22159 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22160    { (exit 1); exit 1; }; };;
22161       esac
22162       ac_file_inputs="$ac_file_inputs $ac_f"
22163     done
22164
22165     # Let's still pretend it is `configure' which instantiates (i.e., don't
22166     # use $as_me), people would be surprised to read:
22167     #    /* config.h.  Generated by config.status.  */
22168     configure_input="Generated from "`IFS=:
22169           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22170     if test x"$ac_file" != x-; then
22171       configure_input="$ac_file.  $configure_input"
22172       { echo "$as_me:$LINENO: creating $ac_file" >&5
22173 echo "$as_me: creating $ac_file" >&6;}
22174     fi
22175
22176     case $ac_tag in
22177     *:-:* | *:-) cat >"$tmp/stdin";;
22178     esac
22179     ;;
22180   esac
22181
22182   ac_dir=`$as_dirname -- "$ac_file" ||
22183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22184          X"$ac_file" : 'X\(//\)[^/]' \| \
22185          X"$ac_file" : 'X\(//\)$' \| \
22186          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22187 echo X"$ac_file" |
22188     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22189             s//\1/
22190             q
22191           }
22192           /^X\(\/\/\)[^/].*/{
22193             s//\1/
22194             q
22195           }
22196           /^X\(\/\/\)$/{
22197             s//\1/
22198             q
22199           }
22200           /^X\(\/\).*/{
22201             s//\1/
22202             q
22203           }
22204           s/.*/./; q'`
22205   { as_dir="$ac_dir"
22206   case $as_dir in #(
22207   -*) as_dir=./$as_dir;;
22208   esac
22209   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22210     as_dirs=
22211     while :; do
22212       case $as_dir in #(
22213       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22214       *) as_qdir=$as_dir;;
22215       esac
22216       as_dirs="'$as_qdir' $as_dirs"
22217       as_dir=`$as_dirname -- "$as_dir" ||
22218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22219          X"$as_dir" : 'X\(//\)[^/]' \| \
22220          X"$as_dir" : 'X\(//\)$' \| \
22221          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22222 echo X"$as_dir" |
22223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22224             s//\1/
22225             q
22226           }
22227           /^X\(\/\/\)[^/].*/{
22228             s//\1/
22229             q
22230           }
22231           /^X\(\/\/\)$/{
22232             s//\1/
22233             q
22234           }
22235           /^X\(\/\).*/{
22236             s//\1/
22237             q
22238           }
22239           s/.*/./; q'`
22240       test -d "$as_dir" && break
22241     done
22242     test -z "$as_dirs" || eval "mkdir $as_dirs"
22243   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22244 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22245    { (exit 1); exit 1; }; }; }
22246   ac_builddir=.
22247
22248 case "$ac_dir" in
22249 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22250 *)
22251   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22252   # A ".." for each directory in $ac_dir_suffix.
22253   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22254   case $ac_top_builddir_sub in
22255   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22256   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22257   esac ;;
22258 esac
22259 ac_abs_top_builddir=$ac_pwd
22260 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22261 # for backward compatibility:
22262 ac_top_builddir=$ac_top_build_prefix
22263
22264 case $srcdir in
22265   .)  # We are building in place.
22266     ac_srcdir=.
22267     ac_top_srcdir=$ac_top_builddir_sub
22268     ac_abs_top_srcdir=$ac_pwd ;;
22269   [\\/]* | ?:[\\/]* )  # Absolute name.
22270     ac_srcdir=$srcdir$ac_dir_suffix;
22271     ac_top_srcdir=$srcdir
22272     ac_abs_top_srcdir=$srcdir ;;
22273   *) # Relative name.
22274     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22275     ac_top_srcdir=$ac_top_build_prefix$srcdir
22276     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22277 esac
22278 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22279
22280
22281   case $ac_mode in
22282   :F)
22283   #
22284   # CONFIG_FILE
22285   #
22286
22287   case $INSTALL in
22288   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22289   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22290   esac
22291 _ACEOF
22292
22293 cat >>$CONFIG_STATUS <<\_ACEOF
22294 # If the template does not know about datarootdir, expand it.
22295 # FIXME: This hack should be removed a few years after 2.60.
22296 ac_datarootdir_hack=; ac_datarootdir_seen=
22297
22298 case `sed -n '/datarootdir/ {
22299   p
22300   q
22301 }
22302 /@datadir@/p
22303 /@docdir@/p
22304 /@infodir@/p
22305 /@localedir@/p
22306 /@mandir@/p
22307 ' $ac_file_inputs` in
22308 *datarootdir*) ac_datarootdir_seen=yes;;
22309 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22310   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22311 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22312 _ACEOF
22313 cat >>$CONFIG_STATUS <<_ACEOF
22314   ac_datarootdir_hack='
22315   s&@datadir@&$datadir&g
22316   s&@docdir@&$docdir&g
22317   s&@infodir@&$infodir&g
22318   s&@localedir@&$localedir&g
22319   s&@mandir@&$mandir&g
22320     s&\\\${datarootdir}&$datarootdir&g' ;;
22321 esac
22322 _ACEOF
22323
22324 # Neutralize VPATH when `$srcdir' = `.'.
22325 # Shell code in configure.ac might set extrasub.
22326 # FIXME: do we really want to maintain this feature?
22327 cat >>$CONFIG_STATUS <<_ACEOF
22328   sed "$ac_vpsub
22329 $extrasub
22330 _ACEOF
22331 cat >>$CONFIG_STATUS <<\_ACEOF
22332 :t
22333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22334 s&@configure_input@&$configure_input&;t t
22335 s&@top_builddir@&$ac_top_builddir_sub&;t t
22336 s&@srcdir@&$ac_srcdir&;t t
22337 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22338 s&@top_srcdir@&$ac_top_srcdir&;t t
22339 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22340 s&@builddir@&$ac_builddir&;t t
22341 s&@abs_builddir@&$ac_abs_builddir&;t t
22342 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22343 s&@INSTALL@&$ac_INSTALL&;t t
22344 $ac_datarootdir_hack
22345 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22346
22347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22348   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22349   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22350   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22351 which seems to be undefined.  Please make sure it is defined." >&5
22352 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22353 which seems to be undefined.  Please make sure it is defined." >&2;}
22354
22355   rm -f "$tmp/stdin"
22356   case $ac_file in
22357   -) cat "$tmp/out"; rm -f "$tmp/out";;
22358   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22359   esac
22360  ;;
22361   :H)
22362   #
22363   # CONFIG_HEADER
22364   #
22365 _ACEOF
22366
22367 # Transform confdefs.h into a sed script `conftest.defines', that
22368 # substitutes the proper values into config.h.in to produce config.h.
22369 rm -f conftest.defines conftest.tail
22370 # First, append a space to every undef/define line, to ease matching.
22371 echo 's/$/ /' >conftest.defines
22372 # Then, protect against being on the right side of a sed subst, or in
22373 # an unquoted here document, in config.status.  If some macros were
22374 # called several times there might be several #defines for the same
22375 # symbol, which is useless.  But do not sort them, since the last
22376 # AC_DEFINE must be honored.
22377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22378 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22379 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22380 # PARAMS is the parameter list in the macro definition--in most cases, it's
22381 # just an empty string.
22382 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22383 ac_dB='\\)[      (].*,\\1define\\2'
22384 ac_dC=' '
22385 ac_dD=' ,'
22386
22387 uniq confdefs.h |
22388   sed -n '
22389         t rset
22390         :rset
22391         s/^[     ]*#[    ]*define[       ][      ]*//
22392         t ok
22393         d
22394         :ok
22395         s/[\\&,]/\\&/g
22396         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22397         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22398   ' >>conftest.defines
22399
22400 # Remove the space that was appended to ease matching.
22401 # Then replace #undef with comments.  This is necessary, for
22402 # example, in the case of _POSIX_SOURCE, which is predefined and required
22403 # on some systems where configure will not decide to define it.
22404 # (The regexp can be short, since the line contains either #define or #undef.)
22405 echo 's/ $//
22406 s,^[     #]*u.*,/* & */,' >>conftest.defines
22407
22408 # Break up conftest.defines:
22409 ac_max_sed_lines=50
22410
22411 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22412 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22413 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22414 # et cetera.
22415 ac_in='$ac_file_inputs'
22416 ac_out='"$tmp/out1"'
22417 ac_nxt='"$tmp/out2"'
22418
22419 while :
22420 do
22421   # Write a here document:
22422     cat >>$CONFIG_STATUS <<_ACEOF
22423     # First, check the format of the line:
22424     cat >"\$tmp/defines.sed" <<\\CEOF
22425 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22426 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22427 b
22428 :def
22429 _ACEOF
22430   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22431   echo 'CEOF
22432     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22433   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22434   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22435   grep . conftest.tail >/dev/null || break
22436   rm -f conftest.defines
22437   mv conftest.tail conftest.defines
22438 done
22439 rm -f conftest.defines conftest.tail
22440
22441 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22442 cat >>$CONFIG_STATUS <<\_ACEOF
22443   if test x"$ac_file" != x-; then
22444     echo "/* $configure_input  */" >"$tmp/config.h"
22445     cat "$ac_result" >>"$tmp/config.h"
22446     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22447       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22448 echo "$as_me: $ac_file is unchanged" >&6;}
22449     else
22450       rm -f $ac_file
22451       mv "$tmp/config.h" $ac_file
22452     fi
22453   else
22454     echo "/* $configure_input  */"
22455     cat "$ac_result"
22456   fi
22457   rm -f "$tmp/out12"
22458 # Compute $ac_file's index in $config_headers.
22459 _am_stamp_count=1
22460 for _am_header in $config_headers :; do
22461   case $_am_header in
22462     $ac_file | $ac_file:* )
22463       break ;;
22464     * )
22465       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22466   esac
22467 done
22468 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22469 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470          X$ac_file : 'X\(//\)[^/]' \| \
22471          X$ac_file : 'X\(//\)$' \| \
22472          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22473 echo X$ac_file |
22474     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22475             s//\1/
22476             q
22477           }
22478           /^X\(\/\/\)[^/].*/{
22479             s//\1/
22480             q
22481           }
22482           /^X\(\/\/\)$/{
22483             s//\1/
22484             q
22485           }
22486           /^X\(\/\).*/{
22487             s//\1/
22488             q
22489           }
22490           s/.*/./; q'`/stamp-h$_am_stamp_count
22491  ;;
22492
22493   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22494 echo "$as_me: executing $ac_file commands" >&6;}
22495  ;;
22496   esac
22497
22498
22499   case $ac_file$ac_mode in
22500     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22501   # Strip MF so we end up with the name of the file.
22502   mf=`echo "$mf" | sed -e 's/:.*$//'`
22503   # Check whether this is an Automake generated Makefile or not.
22504   # We used to match only the files named `Makefile.in', but
22505   # some people rename them; so instead we look at the file content.
22506   # Grep'ing the first line is not enough: some people post-process
22507   # each Makefile.in and add a new line on top of each file to say so.
22508   # So let's grep whole file.
22509   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22510     dirpart=`$as_dirname -- "$mf" ||
22511 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22512          X"$mf" : 'X\(//\)[^/]' \| \
22513          X"$mf" : 'X\(//\)$' \| \
22514          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22515 echo X"$mf" |
22516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22517             s//\1/
22518             q
22519           }
22520           /^X\(\/\/\)[^/].*/{
22521             s//\1/
22522             q
22523           }
22524           /^X\(\/\/\)$/{
22525             s//\1/
22526             q
22527           }
22528           /^X\(\/\).*/{
22529             s//\1/
22530             q
22531           }
22532           s/.*/./; q'`
22533   else
22534     continue
22535   fi
22536   # Extract the definition of DEPDIR, am__include, and am__quote
22537   # from the Makefile without running `make'.
22538   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22539   test -z "$DEPDIR" && continue
22540   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22541   test -z "am__include" && continue
22542   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22543   # When using ansi2knr, U may be empty or an underscore; expand it
22544   U=`sed -n 's/^U = //p' < "$mf"`
22545   # Find all dependency output files, they are included files with
22546   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22547   # simplest approach to changing $(DEPDIR) to its actual value in the
22548   # expansion.
22549   for file in `sed -n "
22550     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22551        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22552     # Make sure the directory exists.
22553     test -f "$dirpart/$file" && continue
22554     fdir=`$as_dirname -- "$file" ||
22555 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22556          X"$file" : 'X\(//\)[^/]' \| \
22557          X"$file" : 'X\(//\)$' \| \
22558          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22559 echo X"$file" |
22560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22561             s//\1/
22562             q
22563           }
22564           /^X\(\/\/\)[^/].*/{
22565             s//\1/
22566             q
22567           }
22568           /^X\(\/\/\)$/{
22569             s//\1/
22570             q
22571           }
22572           /^X\(\/\).*/{
22573             s//\1/
22574             q
22575           }
22576           s/.*/./; q'`
22577     { as_dir=$dirpart/$fdir
22578   case $as_dir in #(
22579   -*) as_dir=./$as_dir;;
22580   esac
22581   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22582     as_dirs=
22583     while :; do
22584       case $as_dir in #(
22585       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22586       *) as_qdir=$as_dir;;
22587       esac
22588       as_dirs="'$as_qdir' $as_dirs"
22589       as_dir=`$as_dirname -- "$as_dir" ||
22590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22591          X"$as_dir" : 'X\(//\)[^/]' \| \
22592          X"$as_dir" : 'X\(//\)$' \| \
22593          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22594 echo X"$as_dir" |
22595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22596             s//\1/
22597             q
22598           }
22599           /^X\(\/\/\)[^/].*/{
22600             s//\1/
22601             q
22602           }
22603           /^X\(\/\/\)$/{
22604             s//\1/
22605             q
22606           }
22607           /^X\(\/\).*/{
22608             s//\1/
22609             q
22610           }
22611           s/.*/./; q'`
22612       test -d "$as_dir" && break
22613     done
22614     test -z "$as_dirs" || eval "mkdir $as_dirs"
22615   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22616 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22617    { (exit 1); exit 1; }; }; }
22618     # echo "creating $dirpart/$file"
22619     echo '# dummy' > "$dirpart/$file"
22620   done
22621 done
22622  ;;
22623
22624   esac
22625 done # for ac_tag
22626
22627
22628 { (exit 0); exit 0; }
22629 _ACEOF
22630 chmod +x $CONFIG_STATUS
22631 ac_clean_files=$ac_clean_files_save
22632
22633
22634 # configure is writing to config.log, and then calls config.status.
22635 # config.status does its own redirection, appending to config.log.
22636 # Unfortunately, on DOS this fails, as config.log is still kept open
22637 # by configure, so config.status won't be able to write to it; its
22638 # output is simply discarded.  So we exec the FD to /dev/null,
22639 # effectively closing config.log, so it can be properly (re)opened and
22640 # appended to by config.status.  When coming back to configure, we
22641 # need to make the FD available again.
22642 if test "$no_create" != yes; then
22643   ac_cs_success=:
22644   ac_config_status_args=
22645   test "$silent" = yes &&
22646     ac_config_status_args="$ac_config_status_args --quiet"
22647   exec 5>/dev/null
22648   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22649   exec 5>>config.log
22650   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22651   # would make configure fail if this is the last instruction.
22652   $ac_cs_success || { (exit 1); exit 1; }
22653 fi
22654