OSDN Git Service

6c050990bc18a076be0d8807745965fe323b4e98
[modchxj/mod_chxj.git] / src / css / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for scss 1.0.0.
4 #
5 # Report bugs to <konn@users.sourceforge.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='scss'
730 PACKAGE_TARNAME='scss'
731 PACKAGE_VERSION='1.0.0'
732 PACKAGE_STRING='scss 1.0.0'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
734
735 ac_unique_file="src/main.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 SED
860 GREP
861 EGREP
862 LN_S
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBTOOL_DEPS
881 APR_CONFIG
882 APR_1_CONFIG
883 APU_CONFIG
884 APU_1_CONFIG
885 LIBOBJS
886 LTLIBOBJS'
887 ac_subst_files=''
888       ac_precious_vars='build_alias
889 host_alias
890 target_alias
891 CC
892 CFLAGS
893 LDFLAGS
894 LIBS
895 CPPFLAGS
896 CPP
897 CXX
898 CXXFLAGS
899 CCC
900 CXXCPP
901 F77
902 FFLAGS'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955   # If the previous option needs an argument, assign it.
956   if test -n "$ac_prev"; then
957     eval $ac_prev=\$ac_option
958     ac_prev=
959     continue
960   fi
961
962   case $ac_option in
963   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964   *)    ac_optarg=yes ;;
965   esac
966
967   # Accept the important Cygnus configure options, so we can diagnose typos.
968
969   case $ac_dashdash$ac_option in
970   --)
971     ac_dashdash=yes ;;
972
973   -bindir | --bindir | --bindi | --bind | --bin | --bi)
974     ac_prev=bindir ;;
975   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976     bindir=$ac_optarg ;;
977
978   -build | --build | --buil | --bui | --bu)
979     ac_prev=build_alias ;;
980   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981     build_alias=$ac_optarg ;;
982
983   -cache-file | --cache-file | --cache-fil | --cache-fi \
984   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985     ac_prev=cache_file ;;
986   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988     cache_file=$ac_optarg ;;
989
990   --config-cache | -C)
991     cache_file=config.cache ;;
992
993   -datadir | --datadir | --datadi | --datad)
994     ac_prev=datadir ;;
995   -datadir=* | --datadir=* | --datadi=* | --datad=*)
996     datadir=$ac_optarg ;;
997
998   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999   | --dataroo | --dataro | --datar)
1000     ac_prev=datarootdir ;;
1001   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003     datarootdir=$ac_optarg ;;
1004
1005   -disable-* | --disable-*)
1006     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010    { (exit 1); exit 1; }; }
1011     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012     eval enable_$ac_feature=no ;;
1013
1014   -docdir | --docdir | --docdi | --doc | --do)
1015     ac_prev=docdir ;;
1016   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017     docdir=$ac_optarg ;;
1018
1019   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020     ac_prev=dvidir ;;
1021   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022     dvidir=$ac_optarg ;;
1023
1024   -enable-* | --enable-*)
1025     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029    { (exit 1); exit 1; }; }
1030     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031     eval enable_$ac_feature=\$ac_optarg ;;
1032
1033   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035   | --exec | --exe | --ex)
1036     ac_prev=exec_prefix ;;
1037   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039   | --exec=* | --exe=* | --ex=*)
1040     exec_prefix=$ac_optarg ;;
1041
1042   -gas | --gas | --ga | --g)
1043     # Obsolete; use --with-gas.
1044     with_gas=yes ;;
1045
1046   -help | --help | --hel | --he | -h)
1047     ac_init_help=long ;;
1048   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049     ac_init_help=recursive ;;
1050   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051     ac_init_help=short ;;
1052
1053   -host | --host | --hos | --ho)
1054     ac_prev=host_alias ;;
1055   -host=* | --host=* | --hos=* | --ho=*)
1056     host_alias=$ac_optarg ;;
1057
1058   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059     ac_prev=htmldir ;;
1060   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061   | --ht=*)
1062     htmldir=$ac_optarg ;;
1063
1064   -includedir | --includedir | --includedi | --included | --include \
1065   | --includ | --inclu | --incl | --inc)
1066     ac_prev=includedir ;;
1067   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068   | --includ=* | --inclu=* | --incl=* | --inc=*)
1069     includedir=$ac_optarg ;;
1070
1071   -infodir | --infodir | --infodi | --infod | --info | --inf)
1072     ac_prev=infodir ;;
1073   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074     infodir=$ac_optarg ;;
1075
1076   -libdir | --libdir | --libdi | --libd)
1077     ac_prev=libdir ;;
1078   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079     libdir=$ac_optarg ;;
1080
1081   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082   | --libexe | --libex | --libe)
1083     ac_prev=libexecdir ;;
1084   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085   | --libexe=* | --libex=* | --libe=*)
1086     libexecdir=$ac_optarg ;;
1087
1088   -localedir | --localedir | --localedi | --localed | --locale)
1089     ac_prev=localedir ;;
1090   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091     localedir=$ac_optarg ;;
1092
1093   -localstatedir | --localstatedir | --localstatedi | --localstated \
1094   | --localstate | --localstat | --localsta | --localst | --locals)
1095     ac_prev=localstatedir ;;
1096   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098     localstatedir=$ac_optarg ;;
1099
1100   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101     ac_prev=mandir ;;
1102   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103     mandir=$ac_optarg ;;
1104
1105   -nfp | --nfp | --nf)
1106     # Obsolete; use --without-fp.
1107     with_fp=no ;;
1108
1109   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110   | --no-cr | --no-c | -n)
1111     no_create=yes ;;
1112
1113   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115     no_recursion=yes ;;
1116
1117   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119   | --oldin | --oldi | --old | --ol | --o)
1120     ac_prev=oldincludedir ;;
1121   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124     oldincludedir=$ac_optarg ;;
1125
1126   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127     ac_prev=prefix ;;
1128   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129     prefix=$ac_optarg ;;
1130
1131   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132   | --program-pre | --program-pr | --program-p)
1133     ac_prev=program_prefix ;;
1134   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136     program_prefix=$ac_optarg ;;
1137
1138   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139   | --program-suf | --program-su | --program-s)
1140     ac_prev=program_suffix ;;
1141   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143     program_suffix=$ac_optarg ;;
1144
1145   -program-transform-name | --program-transform-name \
1146   | --program-transform-nam | --program-transform-na \
1147   | --program-transform-n | --program-transform- \
1148   | --program-transform | --program-transfor \
1149   | --program-transfo | --program-transf \
1150   | --program-trans | --program-tran \
1151   | --progr-tra | --program-tr | --program-t)
1152     ac_prev=program_transform_name ;;
1153   -program-transform-name=* | --program-transform-name=* \
1154   | --program-transform-nam=* | --program-transform-na=* \
1155   | --program-transform-n=* | --program-transform-=* \
1156   | --program-transform=* | --program-transfor=* \
1157   | --program-transfo=* | --program-transf=* \
1158   | --program-trans=* | --program-tran=* \
1159   | --progr-tra=* | --program-tr=* | --program-t=*)
1160     program_transform_name=$ac_optarg ;;
1161
1162   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163     ac_prev=pdfdir ;;
1164   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165     pdfdir=$ac_optarg ;;
1166
1167   -psdir | --psdir | --psdi | --psd | --ps)
1168     ac_prev=psdir ;;
1169   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170     psdir=$ac_optarg ;;
1171
1172   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173   | -silent | --silent | --silen | --sile | --sil)
1174     silent=yes ;;
1175
1176   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177     ac_prev=sbindir ;;
1178   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179   | --sbi=* | --sb=*)
1180     sbindir=$ac_optarg ;;
1181
1182   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184   | --sharedst | --shareds | --shared | --share | --shar \
1185   | --sha | --sh)
1186     ac_prev=sharedstatedir ;;
1187   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190   | --sha=* | --sh=*)
1191     sharedstatedir=$ac_optarg ;;
1192
1193   -site | --site | --sit)
1194     ac_prev=site ;;
1195   -site=* | --site=* | --sit=*)
1196     site=$ac_optarg ;;
1197
1198   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199     ac_prev=srcdir ;;
1200   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201     srcdir=$ac_optarg ;;
1202
1203   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204   | --syscon | --sysco | --sysc | --sys | --sy)
1205     ac_prev=sysconfdir ;;
1206   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208     sysconfdir=$ac_optarg ;;
1209
1210   -target | --target | --targe | --targ | --tar | --ta | --t)
1211     ac_prev=target_alias ;;
1212   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213     target_alias=$ac_optarg ;;
1214
1215   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216     verbose=yes ;;
1217
1218   -version | --version | --versio | --versi | --vers | -V)
1219     ac_init_version=: ;;
1220
1221   -with-* | --with-*)
1222     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid package name: $ac_package" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228     eval with_$ac_package=\$ac_optarg ;;
1229
1230   -without-* | --without-*)
1231     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234       { echo "$as_me: error: invalid package name: $ac_package" >&2
1235    { (exit 1); exit 1; }; }
1236     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237     eval with_$ac_package=no ;;
1238
1239   --x)
1240     # Obsolete; use --with-x.
1241     with_x=yes ;;
1242
1243   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244   | --x-incl | --x-inc | --x-in | --x-i)
1245     ac_prev=x_includes ;;
1246   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248     x_includes=$ac_optarg ;;
1249
1250   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252     ac_prev=x_libraries ;;
1253   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255     x_libraries=$ac_optarg ;;
1256
1257   -*) { echo "$as_me: error: unrecognized option: $ac_option
1258 Try \`$0 --help' for more information." >&2
1259    { (exit 1); exit 1; }; }
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267    { (exit 1); exit 1; }; }
1268     eval $ac_envvar=\$ac_optarg
1269     export $ac_envvar ;;
1270
1271   *)
1272     # FIXME: should be removed in autoconf 3.0.
1273     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277     ;;
1278
1279   esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284   { echo "$as_me: error: missing argument to $ac_option" >&2
1285    { (exit 1); exit 1; }; }
1286 fi
1287
1288 # Be sure to have absolute directory names.
1289 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290                 datadir sysconfdir sharedstatedir localstatedir includedir \
1291                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292                 libdir localedir mandir
1293 do
1294   eval ac_val=\$$ac_var
1295   case $ac_val in
1296     [\\/$]* | ?:[\\/]* )  continue;;
1297     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298   esac
1299   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300    { (exit 1); exit 1; }; }
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312   if test "x$build_alias" = x; then
1313     cross_compiling=maybe
1314     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315     If a cross compiler is detected then cross compile mode will be used." >&2
1316   elif test "x$build_alias" != "x$host_alias"; then
1317     cross_compiling=yes
1318   fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330   { echo "$as_me: error: Working directory cannot be determined" >&2
1331    { (exit 1); exit 1; }; }
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333   { echo "$as_me: error: pwd does not report name of working directory" >&2
1334    { (exit 1); exit 1; }; }
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339   ac_srcdir_defaulted=yes
1340   # Try the directory containing this script, then the parent directory.
1341   ac_confdir=`$as_dirname -- "$0" ||
1342 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343          X"$0" : 'X\(//\)[^/]' \| \
1344          X"$0" : 'X\(//\)$' \| \
1345          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1346 echo X"$0" |
1347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)[^/].*/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\/\)$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\).*/{
1360             s//\1/
1361             q
1362           }
1363           s/.*/./; q'`
1364   srcdir=$ac_confdir
1365   if test ! -r "$srcdir/$ac_unique_file"; then
1366     srcdir=..
1367   fi
1368 else
1369   ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374    { (exit 1); exit 1; }; }
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379    { (exit 1); exit 1; }; }
1380         pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383   srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_env_${ac_var}_value=\$${ac_var}
1394   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402   # Omit some internal or obsolete options to make the list less imposing.
1403   # This message is too long to be a string in the A/UX 3.1 sh.
1404   cat <<_ACEOF
1405 \`configure' configures scss 1.0.0 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE.  See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415   -h, --help              display this help and exit
1416       --help=short        display options specific to this package
1417       --help=recursive    display the short help of all the included packages
1418   -V, --version           display version information and exit
1419   -q, --quiet, --silent   do not print \`checking...' messages
1420       --cache-file=FILE   cache test results in FILE [disabled]
1421   -C, --config-cache      alias for \`--cache-file=config.cache'
1422   -n, --no-create         do not create output files
1423       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426   --prefix=PREFIX         install architecture-independent files in PREFIX
1427                           [$ac_default_prefix]
1428   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1429                           [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439   --bindir=DIR           user executables [EPREFIX/bin]
1440   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1441   --libexecdir=DIR       program executables [EPREFIX/libexec]
1442   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1443   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1444   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1445   --libdir=DIR           object code libraries [EPREFIX/lib]
1446   --includedir=DIR       C header files [PREFIX/include]
1447   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1448   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1449   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1450   --infodir=DIR          info documentation [DATAROOTDIR/info]
1451   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1452   --mandir=DIR           man documentation [DATAROOTDIR/man]
1453   --docdir=DIR           documentation root [DATAROOTDIR/doc/scss]
1454   --htmldir=DIR          html documentation [DOCDIR]
1455   --dvidir=DIR           dvi documentation [DOCDIR]
1456   --pdfdir=DIR           pdf documentation [DOCDIR]
1457   --psdir=DIR            ps documentation [DOCDIR]
1458 _ACEOF
1459
1460   cat <<\_ACEOF
1461
1462 Program names:
1463   --program-prefix=PREFIX            prepend PREFIX to installed program names
1464   --program-suffix=SUFFIX            append SUFFIX to installed program names
1465   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1466
1467 System types:
1468   --build=BUILD     configure for building on BUILD [guessed]
1469   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470   --target=TARGET   configure for building compilers for TARGET [HOST]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475   case $ac_init_help in
1476      short | recursive ) echo "Configuration of scss 1.0.0:";;
1477    esac
1478   cat <<\_ACEOF
1479
1480 Optional Features:
1481   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483   --enable-shared[=PKGS]  build shared libraries [default=yes]
1484   --enable-static[=PKGS]  build static libraries [default=yes]
1485   --enable-fast-install[=PKGS]
1486                           optimize for fast installation [default=yes]
1487   --disable-dependency-tracking  speeds up one-time build
1488   --enable-dependency-tracking   do not reject slow dependency extractors
1489   --disable-libtool-lock  avoid locking (might break parallel builds)
1490
1491 Optional Packages:
1492   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1495   --with-pic              try to use only PIC/non-PIC objects [default=use
1496                           both]
1497   --with-tags[=TAGS]      include additional configurations [automatic]
1498   --with-apr-config=ARG  Path of apr-config program file.
1499   --with-apu-config=ARG  Path of apu-config program file.
1500
1501 Some influential environment variables:
1502   CC          C compiler command
1503   CFLAGS      C compiler flags
1504   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505               nonstandard directory <lib dir>
1506   LIBS        libraries to pass to the linker, e.g. -l<library>
1507   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508               you have headers in a nonstandard directory <include dir>
1509   CPP         C preprocessor
1510   CXX         C++ compiler command
1511   CXXFLAGS    C++ compiler flags
1512   CXXCPP      C++ preprocessor
1513   F77         Fortran 77 compiler command
1514   FFLAGS      Fortran 77 compiler flags
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <konn@users.sourceforge.jp>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" || continue
1528     ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534   # A ".." for each directory in $ac_dir_suffix.
1535   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536   case $ac_top_builddir_sub in
1537   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539   esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547   .)  # We are building in place.
1548     ac_srcdir=.
1549     ac_top_srcdir=$ac_top_builddir_sub
1550     ac_abs_top_srcdir=$ac_pwd ;;
1551   [\\/]* | ?:[\\/]* )  # Absolute name.
1552     ac_srcdir=$srcdir$ac_dir_suffix;
1553     ac_top_srcdir=$srcdir
1554     ac_abs_top_srcdir=$srcdir ;;
1555   *) # Relative name.
1556     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557     ac_top_srcdir=$ac_top_build_prefix$srcdir
1558     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562     cd "$ac_dir" || { ac_status=$?; continue; }
1563     # Check for guested configure.
1564     if test -f "$ac_srcdir/configure.gnu"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567     elif test -f "$ac_srcdir/configure"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure" --help=recursive
1570     else
1571       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572     fi || ac_status=$?
1573     cd "$ac_pwd" || { ac_status=$?; break; }
1574   done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579   cat <<\_ACEOF
1580 scss configure 1.0.0
1581 generated by GNU Autoconf 2.61
1582
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588   exit
1589 fi
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1593
1594 It was created by scss $as_me 1.0.0, which was
1595 generated by GNU Autoconf 2.61.  Invocation command line was
1596
1597   $ $0 $@
1598
1599 _ACEOF
1600 exec 5>>config.log
1601 {
1602 cat <<_ASUNAME
1603 ## --------- ##
1604 ## Platform. ##
1605 ## --------- ##
1606
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1615
1616 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1617 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1620 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1621 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1622 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1623
1624 _ASUNAME
1625
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   echo "PATH: $as_dir"
1632 done
1633 IFS=$as_save_IFS
1634
1635 } >&5
1636
1637 cat >&5 <<_ACEOF
1638
1639
1640 ## ----------- ##
1641 ## Core tests. ##
1642 ## ----------- ##
1643
1644 _ACEOF
1645
1646
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_configure_args=
1653 ac_configure_args0=
1654 ac_configure_args1=
1655 ac_must_keep_next=false
1656 for ac_pass in 1 2
1657 do
1658   for ac_arg
1659   do
1660     case $ac_arg in
1661     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663     | -silent | --silent | --silen | --sile | --sil)
1664       continue ;;
1665     *\'*)
1666       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667     esac
1668     case $ac_pass in
1669     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670     2)
1671       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672       if test $ac_must_keep_next = true; then
1673         ac_must_keep_next=false # Got value, back to normal.
1674       else
1675         case $ac_arg in
1676           *=* | --config-cache | -C | -disable-* | --disable-* \
1677           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679           | -with-* | --with-* | -without-* | --without-* | --x)
1680             case "$ac_configure_args0 " in
1681               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682             esac
1683             ;;
1684           -* ) ac_must_keep_next=true ;;
1685         esac
1686       fi
1687       ac_configure_args="$ac_configure_args '$ac_arg'"
1688       ;;
1689     esac
1690   done
1691 done
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log.  We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701   # Save into config.log some information that might help in debugging.
1702   {
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1709 _ASBOX
1710     echo
1711     # The following way of writing the cache mishandles newlines in values,
1712 (
1713   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714     eval ac_val=\$$ac_var
1715     case $ac_val in #(
1716     *${as_nl}*)
1717       case $ac_var in #(
1718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720       esac
1721       case $ac_var in #(
1722       _ | IFS | as_nl) ;; #(
1723       *) $as_unset $ac_var ;;
1724       esac ;;
1725     esac
1726   done
1727   (set) 2>&1 |
1728     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729     *${as_nl}ac_space=\ *)
1730       sed -n \
1731         "s/'\''/'\''\\\\'\'''\''/g;
1732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733       ;; #(
1734     *)
1735       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736       ;;
1737     esac |
1738     sort
1739 )
1740     echo
1741
1742     cat <<\_ASBOX
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1746 _ASBOX
1747     echo
1748     for ac_var in $ac_subst_vars
1749     do
1750       eval ac_val=\$$ac_var
1751       case $ac_val in
1752       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753       esac
1754       echo "$ac_var='\''$ac_val'\''"
1755     done | sort
1756     echo
1757
1758     if test -n "$ac_subst_files"; then
1759       cat <<\_ASBOX
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1763 _ASBOX
1764       echo
1765       for ac_var in $ac_subst_files
1766       do
1767         eval ac_val=\$$ac_var
1768         case $ac_val in
1769         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770         esac
1771         echo "$ac_var='\''$ac_val'\''"
1772       done | sort
1773       echo
1774     fi
1775
1776     if test -s confdefs.h; then
1777       cat <<\_ASBOX
1778 ## ----------- ##
1779 ## confdefs.h. ##
1780 ## ----------- ##
1781 _ASBOX
1782       echo
1783       cat confdefs.h
1784       echo
1785     fi
1786     test "$ac_signal" != 0 &&
1787       echo "$as_me: caught signal $ac_signal"
1788     echo "$as_me: exit $exit_status"
1789   } >&5
1790   rm -f core *.core core.conftest.* &&
1791     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792     exit $exit_status
1793 ' 0
1794 for ac_signal in 1 2 13 15; do
1795   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 done
1797 ac_signal=0
1798
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1801
1802 # Predefined preprocessor variables.
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 _ACEOF
1827
1828
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832   set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 else
1836   set x "$ac_default_prefix/share/config.site" \
1837         "$ac_default_prefix/etc/config.site"
1838 fi
1839 shift
1840 for ac_site_file
1841 do
1842   if test -r "$ac_site_file"; then
1843     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845     sed 's/^/| /' "$ac_site_file" >&5
1846     . "$ac_site_file"
1847   fi
1848 done
1849
1850 if test -r "$cache_file"; then
1851   # Some versions of bash will fail to source /dev/null (special
1852   # files actually), so we avoid doing that.
1853   if test -f "$cache_file"; then
1854     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1856     case $cache_file in
1857       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858       *)                      . "./$cache_file";;
1859     esac
1860   fi
1861 else
1862   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1864   >$cache_file
1865 fi
1866
1867 # Check that the precious variables saved in the cache have kept the same
1868 # value.
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872   eval ac_new_set=\$ac_env_${ac_var}_set
1873   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874   eval ac_new_val=\$ac_env_${ac_var}_value
1875   case $ac_old_set,$ac_new_set in
1876     set,)
1877       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,set)
1881       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883       ac_cache_corrupted=: ;;
1884     ,);;
1885     *)
1886       if test "x$ac_old_val" != "x$ac_new_val"; then
1887         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1890 echo "$as_me:   former value:  $ac_old_val" >&2;}
1891         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1892 echo "$as_me:   current value: $ac_new_val" >&2;}
1893         ac_cache_corrupted=:
1894       fi;;
1895   esac
1896   # Pass precious variables to config.status.
1897   if test "$ac_new_set" = set; then
1898     case $ac_new_val in
1899     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900     *) ac_arg=$ac_var=$ac_new_val ;;
1901     esac
1902     case " $ac_configure_args " in
1903       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1904       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905     esac
1906   fi
1907 done
1908 if $ac_cache_corrupted; then
1909   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913    { (exit 1); exit 1; }; }
1914 fi
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940 ac_ext=c
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945
1946
1947 ac_aux_dir=
1948 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1949   if test -f "$ac_dir/install-sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install-sh -c"
1952     break
1953   elif test -f "$ac_dir/install.sh"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/install.sh -c"
1956     break
1957   elif test -f "$ac_dir/shtool"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/shtool install -c"
1960     break
1961   fi
1962 done
1963 if test -z "$ac_aux_dir"; then
1964   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1965 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1976
1977
1978 # Make sure we can run config.sub.
1979 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1980   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1981 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1982    { (exit 1); exit 1; }; }
1983
1984 { echo "$as_me:$LINENO: checking build system type" >&5
1985 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1986 if test "${ac_cv_build+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   ac_build_alias=$build_alias
1990 test "x$ac_build_alias" = x &&
1991   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1992 test "x$ac_build_alias" = x &&
1993   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1994 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1995    { (exit 1); exit 1; }; }
1996 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1997   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1998 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1999    { (exit 1); exit 1; }; }
2000
2001 fi
2002 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2003 echo "${ECHO_T}$ac_cv_build" >&6; }
2004 case $ac_cv_build in
2005 *-*-*) ;;
2006 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2007 echo "$as_me: error: invalid value of canonical build" >&2;}
2008    { (exit 1); exit 1; }; };;
2009 esac
2010 build=$ac_cv_build
2011 ac_save_IFS=$IFS; IFS='-'
2012 set x $ac_cv_build
2013 shift
2014 build_cpu=$1
2015 build_vendor=$2
2016 shift; shift
2017 # Remember, the first character of IFS is used to create $*,
2018 # except with old shells:
2019 build_os=$*
2020 IFS=$ac_save_IFS
2021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2022
2023
2024 { echo "$as_me:$LINENO: checking host system type" >&5
2025 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2026 if test "${ac_cv_host+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test "x$host_alias" = x; then
2030   ac_cv_host=$ac_cv_build
2031 else
2032   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2033     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2034 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2035    { (exit 1); exit 1; }; }
2036 fi
2037
2038 fi
2039 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2040 echo "${ECHO_T}$ac_cv_host" >&6; }
2041 case $ac_cv_host in
2042 *-*-*) ;;
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2044 echo "$as_me: error: invalid value of canonical host" >&2;}
2045    { (exit 1); exit 1; }; };;
2046 esac
2047 host=$ac_cv_host
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_host
2050 shift
2051 host_cpu=$1
2052 host_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 host_os=$*
2057 IFS=$ac_save_IFS
2058 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2059
2060
2061 { echo "$as_me:$LINENO: checking target system type" >&5
2062 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_target+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test "x$target_alias" = x; then
2067   ac_cv_target=$ac_cv_host
2068 else
2069   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2070     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2072    { (exit 1); exit 1; }; }
2073 fi
2074
2075 fi
2076 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2077 echo "${ECHO_T}$ac_cv_target" >&6; }
2078 case $ac_cv_target in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2081 echo "$as_me: error: invalid value of canonical target" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 target=$ac_cv_target
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_target
2087 shift
2088 target_cpu=$1
2089 target_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 target_os=$*
2094 IFS=$ac_save_IFS
2095 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 # The aliases save the names the user supplied, while $host etc.
2099 # will get canonicalized.
2100 test -n "$target_alias" &&
2101   test "$program_prefix$program_suffix$program_transform_name" = \
2102     NONENONEs,x,x, &&
2103   program_prefix=${target_alias}-
2104 am__api_version='1.10'
2105
2106 # Find a good install program.  We prefer a C program (faster),
2107 # so one script is as good as another.  But avoid the broken or
2108 # incompatible versions:
2109 # SysV /etc/install, /usr/sbin/install
2110 # SunOS /usr/etc/install
2111 # IRIX /sbin/install
2112 # AIX /bin/install
2113 # AmigaOS /C/install, which installs bootblocks on floppy discs
2114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117 # OS/2's system install, which has a completely different semantic
2118 # ./install, which can be erroneously created by make from ./install.sh.
2119 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2121 if test -z "$INSTALL"; then
2122 if test "${ac_cv_path_install+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130   # Account for people who put trailing slashes in PATH elements.
2131 case $as_dir/ in
2132   ./ | .// | /cC/* | \
2133   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2134   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2135   /usr/ucb/* ) ;;
2136   *)
2137     # OSF1 and SCO ODT 3.0 have their own names for install.
2138     # Don't use installbsd from OSF since it installs stuff as root
2139     # by default.
2140     for ac_prog in ginstall scoinst install; do
2141       for ac_exec_ext in '' $ac_executable_extensions; do
2142         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2143           if test $ac_prog = install &&
2144             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145             # AIX install.  It has an incompatible calling convention.
2146             :
2147           elif test $ac_prog = install &&
2148             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149             # program-specific install script used by HP pwplus--don't use.
2150             :
2151           else
2152             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2153             break 3
2154           fi
2155         fi
2156       done
2157     done
2158     ;;
2159 esac
2160 done
2161 IFS=$as_save_IFS
2162
2163
2164 fi
2165   if test "${ac_cv_path_install+set}" = set; then
2166     INSTALL=$ac_cv_path_install
2167   else
2168     # As a last resort, use the slow shell script.  Don't cache a
2169     # value for INSTALL within a source directory, because that will
2170     # break other packages using the cache if that directory is
2171     # removed, or if the value is a relative name.
2172     INSTALL=$ac_install_sh
2173   fi
2174 fi
2175 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2176 echo "${ECHO_T}$INSTALL" >&6; }
2177
2178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2179 # It thinks the first close brace ends the variable substitution.
2180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2181
2182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2183
2184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2185
2186 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2187 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2188 # Just in case
2189 sleep 1
2190 echo timestamp > conftest.file
2191 # Do `set' in a subshell so we don't clobber the current shell's
2192 # arguments.  Must try -L first in case configure is actually a
2193 # symlink; some systems play weird games with the mod time of symlinks
2194 # (eg FreeBSD returns the mod time of the symlink's containing
2195 # directory).
2196 if (
2197    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2198    if test "$*" = "X"; then
2199       # -L didn't work.
2200       set X `ls -t $srcdir/configure conftest.file`
2201    fi
2202    rm -f conftest.file
2203    if test "$*" != "X $srcdir/configure conftest.file" \
2204       && test "$*" != "X conftest.file $srcdir/configure"; then
2205
2206       # If neither matched, then we have a broken ls.  This can happen
2207       # if, for instance, CONFIG_SHELL is bash and it inherits a
2208       # broken ls alias from the environment.  This has actually
2209       # happened.  Such a system could not be considered "sane".
2210       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2211 alias in your environment" >&5
2212 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2213 alias in your environment" >&2;}
2214    { (exit 1); exit 1; }; }
2215    fi
2216
2217    test "$2" = conftest.file
2218    )
2219 then
2220    # Ok.
2221    :
2222 else
2223    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2224 Check your system clock" >&5
2225 echo "$as_me: error: newly created file is older than distributed files!
2226 Check your system clock" >&2;}
2227    { (exit 1); exit 1; }; }
2228 fi
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2231 test "$program_prefix" != NONE &&
2232   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2233 # Use a double $ so make ignores it.
2234 test "$program_suffix" != NONE &&
2235   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2236 # Double any \ or $.  echo might interpret backslashes.
2237 # By default was `s,x,x', remove it if useless.
2238 cat <<\_ACEOF >conftest.sed
2239 s/[\\$]/&&/g;s/;s,x,x,$//
2240 _ACEOF
2241 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2242 rm -f conftest.sed
2243
2244 # expand $ac_aux_dir to an absolute path
2245 am_aux_dir=`cd $ac_aux_dir && pwd`
2246
2247 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2248 # Use eval to expand $SHELL
2249 if eval "$MISSING --run true"; then
2250   am_missing_run="$MISSING --run "
2251 else
2252   am_missing_run=
2253   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2254 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2255 fi
2256
2257 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2258 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2259 if test -z "$MKDIR_P"; then
2260   if test "${ac_cv_path_mkdir+set}" = set; then
2261   echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2265 do
2266   IFS=$as_save_IFS
2267   test -z "$as_dir" && as_dir=.
2268   for ac_prog in mkdir gmkdir; do
2269          for ac_exec_ext in '' $ac_executable_extensions; do
2270            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2271            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2272              'mkdir (GNU coreutils) '* | \
2273              'mkdir (coreutils) '* | \
2274              'mkdir (fileutils) '4.1*)
2275                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2276                break 3;;
2277            esac
2278          done
2279        done
2280 done
2281 IFS=$as_save_IFS
2282
2283 fi
2284
2285   if test "${ac_cv_path_mkdir+set}" = set; then
2286     MKDIR_P="$ac_cv_path_mkdir -p"
2287   else
2288     # As a last resort, use the slow shell script.  Don't cache a
2289     # value for MKDIR_P within a source directory, because that will
2290     # break other packages using the cache if that directory is
2291     # removed, or if the value is a relative name.
2292     test -d ./--version && rmdir ./--version
2293     MKDIR_P="$ac_install_sh -d"
2294   fi
2295 fi
2296 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2297 echo "${ECHO_T}$MKDIR_P" >&6; }
2298
2299 mkdir_p="$MKDIR_P"
2300 case $mkdir_p in
2301   [\\/$]* | ?:[\\/]*) ;;
2302   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2303 esac
2304
2305 for ac_prog in gawk mawk nawk awk
2306 do
2307   # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_AWK+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   if test -n "$AWK"; then
2315   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324     ac_cv_prog_AWK="$ac_prog"
2325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 AWK=$ac_cv_prog_AWK
2335 if test -n "$AWK"; then
2336   { echo "$as_me:$LINENO: result: $AWK" >&5
2337 echo "${ECHO_T}$AWK" >&6; }
2338 else
2339   { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344   test -n "$AWK" && break
2345 done
2346
2347 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2348 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2349 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2350 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.make <<\_ACEOF
2354 SHELL = /bin/sh
2355 all:
2356         @echo '@@@%%%=$(MAKE)=@@@%%%'
2357 _ACEOF
2358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2360   *@@@%%%=?*=@@@%%%*)
2361     eval ac_cv_prog_make_${ac_make}_set=yes;;
2362   *)
2363     eval ac_cv_prog_make_${ac_make}_set=no;;
2364 esac
2365 rm -f conftest.make
2366 fi
2367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2368   { echo "$as_me:$LINENO: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6; }
2370   SET_MAKE=
2371 else
2372   { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2374   SET_MAKE="MAKE=${MAKE-make}"
2375 fi
2376
2377 rm -rf .tst 2>/dev/null
2378 mkdir .tst 2>/dev/null
2379 if test -d .tst; then
2380   am__leading_dot=.
2381 else
2382   am__leading_dot=_
2383 fi
2384 rmdir .tst 2>/dev/null
2385
2386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2387   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2388   # is not polluted with repeated "-I."
2389   am__isrc=' -I$(srcdir)'
2390   # test to see if srcdir already configured
2391   if test -f $srcdir/config.status; then
2392     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394    { (exit 1); exit 1; }; }
2395   fi
2396 fi
2397
2398 # test whether we have cygpath
2399 if test -z "$CYGPATH_W"; then
2400   if (cygpath --version) >/dev/null 2>/dev/null; then
2401     CYGPATH_W='cygpath -w'
2402   else
2403     CYGPATH_W=echo
2404   fi
2405 fi
2406
2407
2408 # Define the identity of the package.
2409  PACKAGE=scss
2410  VERSION=1.0.0
2411
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE "$PACKAGE"
2415 _ACEOF
2416
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define VERSION "$VERSION"
2420 _ACEOF
2421
2422 # Some tools Automake needs.
2423
2424 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2425
2426
2427 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2428
2429
2430 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2431
2432
2433 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2434
2435
2436 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2437
2438 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2439
2440 # Installed binaries are usually stripped using `strip' when the user
2441 # run `make install-strip'.  However `strip' might not be the right
2442 # tool to use in cross-compilation environments, therefore Automake
2443 # will honor the `STRIP' environment variable to overrule this program.
2444 if test "$cross_compiling" != no; then
2445   if test -n "$ac_tool_prefix"; then
2446   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2447 set dummy ${ac_tool_prefix}strip; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_STRIP+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -n "$STRIP"; then
2454   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461   for ac_exec_ext in '' $ac_executable_extensions; do
2462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465     break 2
2466   fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2470
2471 fi
2472 fi
2473 STRIP=$ac_cv_prog_STRIP
2474 if test -n "$STRIP"; then
2475   { echo "$as_me:$LINENO: result: $STRIP" >&5
2476 echo "${ECHO_T}$STRIP" >&6; }
2477 else
2478   { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2480 fi
2481
2482
2483 fi
2484 if test -z "$ac_cv_prog_STRIP"; then
2485   ac_ct_STRIP=$STRIP
2486   # Extract the first word of "strip", so it can be a program name with args.
2487 set dummy strip; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   if test -n "$ac_ct_STRIP"; then
2494   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501   for ac_exec_ext in '' $ac_executable_extensions; do
2502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503     ac_cv_prog_ac_ct_STRIP="strip"
2504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505     break 2
2506   fi
2507 done
2508 done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2514 if test -n "$ac_ct_STRIP"; then
2515   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2516 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2517 else
2518   { echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6; }
2520 fi
2521
2522   if test "x$ac_ct_STRIP" = x; then
2523     STRIP=":"
2524   else
2525     case $cross_compiling:$ac_tool_warned in
2526 yes:)
2527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet.  If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&5
2530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2531 whose name does not start with the host triplet.  If you think this
2532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2533 ac_tool_warned=yes ;;
2534 esac
2535     STRIP=$ac_ct_STRIP
2536   fi
2537 else
2538   STRIP="$ac_cv_prog_STRIP"
2539 fi
2540
2541 fi
2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544 # We need awk for the "check" target.  The system "awk" is bad on
2545 # some platforms.
2546 # Always define AMTAR for backward compatibility.
2547
2548 AMTAR=${AMTAR-"${am_missing_run}tar"}
2549
2550 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2551
2552
2553
2554
2555
2556
2557 ac_config_headers="$ac_config_headers include/config.h"
2558
2559
2560 # Checks for programs.
2561 # Check whether --enable-shared was given.
2562 if test "${enable_shared+set}" = set; then
2563   enableval=$enable_shared; p=${PACKAGE-default}
2564     case $enableval in
2565     yes) enable_shared=yes ;;
2566     no) enable_shared=no ;;
2567     *)
2568       enable_shared=no
2569       # Look at the argument we got.  We use all the common list separators.
2570       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2571       for pkg in $enableval; do
2572         IFS="$lt_save_ifs"
2573         if test "X$pkg" = "X$p"; then
2574           enable_shared=yes
2575         fi
2576       done
2577       IFS="$lt_save_ifs"
2578       ;;
2579     esac
2580 else
2581   enable_shared=yes
2582 fi
2583
2584
2585 # Check whether --enable-static was given.
2586 if test "${enable_static+set}" = set; then
2587   enableval=$enable_static; p=${PACKAGE-default}
2588     case $enableval in
2589     yes) enable_static=yes ;;
2590     no) enable_static=no ;;
2591     *)
2592      enable_static=no
2593       # Look at the argument we got.  We use all the common list separators.
2594       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2595       for pkg in $enableval; do
2596         IFS="$lt_save_ifs"
2597         if test "X$pkg" = "X$p"; then
2598           enable_static=yes
2599         fi
2600       done
2601       IFS="$lt_save_ifs"
2602       ;;
2603     esac
2604 else
2605   enable_static=yes
2606 fi
2607
2608
2609 # Check whether --enable-fast-install was given.
2610 if test "${enable_fast_install+set}" = set; then
2611   enableval=$enable_fast_install; p=${PACKAGE-default}
2612     case $enableval in
2613     yes) enable_fast_install=yes ;;
2614     no) enable_fast_install=no ;;
2615     *)
2616       enable_fast_install=no
2617       # Look at the argument we got.  We use all the common list separators.
2618       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2619       for pkg in $enableval; do
2620         IFS="$lt_save_ifs"
2621         if test "X$pkg" = "X$p"; then
2622           enable_fast_install=yes
2623         fi
2624       done
2625       IFS="$lt_save_ifs"
2626       ;;
2627     esac
2628 else
2629   enable_fast_install=yes
2630 fi
2631
2632
2633 DEPDIR="${am__leading_dot}deps"
2634
2635 ac_config_commands="$ac_config_commands depfiles"
2636
2637
2638 am_make=${MAKE-make}
2639 cat > confinc << 'END'
2640 am__doit:
2641         @echo done
2642 .PHONY: am__doit
2643 END
2644 # If we don't find an include directive, just comment out the code.
2645 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2646 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2647 am__include="#"
2648 am__quote=
2649 _am_result=none
2650 # First try GNU make style include.
2651 echo "include confinc" > confmf
2652 # We grep out `Entering directory' and `Leaving directory'
2653 # messages which can occur if `w' ends up in MAKEFLAGS.
2654 # In particular we don't look at `^make:' because GNU make might
2655 # be invoked under some other name (usually "gmake"), in which
2656 # case it prints its new name instead of `make'.
2657 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2658    am__include=include
2659    am__quote=
2660    _am_result=GNU
2661 fi
2662 # Now try BSD make style include.
2663 if test "$am__include" = "#"; then
2664    echo '.include "confinc"' > confmf
2665    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2666       am__include=.include
2667       am__quote="\""
2668       _am_result=BSD
2669    fi
2670 fi
2671
2672
2673 { echo "$as_me:$LINENO: result: $_am_result" >&5
2674 echo "${ECHO_T}$_am_result" >&6; }
2675 rm -f confinc confmf
2676
2677 # Check whether --enable-dependency-tracking was given.
2678 if test "${enable_dependency_tracking+set}" = set; then
2679   enableval=$enable_dependency_tracking;
2680 fi
2681
2682 if test "x$enable_dependency_tracking" != xno; then
2683   am_depcomp="$ac_aux_dir/depcomp"
2684   AMDEPBACKSLASH='\'
2685 fi
2686  if test "x$enable_dependency_tracking" != xno; then
2687   AMDEP_TRUE=
2688   AMDEP_FALSE='#'
2689 else
2690   AMDEP_TRUE='#'
2691   AMDEP_FALSE=
2692 fi
2693
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test -n "$ac_tool_prefix"; then
2701   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_CC+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   if test -n "$CC"; then
2709   ac_cv_prog_CC="$CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716   for ac_exec_ext in '' $ac_executable_extensions; do
2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720     break 2
2721   fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730   { echo "$as_me:$LINENO: result: $CC" >&5
2731 echo "${ECHO_T}$CC" >&6; }
2732 else
2733   { echo "$as_me:$LINENO: result: no" >&5
2734 echo "${ECHO_T}no" >&6; }
2735 fi
2736
2737
2738 fi
2739 if test -z "$ac_cv_prog_CC"; then
2740   ac_ct_CC=$CC
2741   # Extract the first word of "gcc", so it can be a program name with args.
2742 set dummy gcc; ac_word=$2
2743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   if test -n "$ac_ct_CC"; then
2749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_ac_ct_CC="gcc"
2759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2771 echo "${ECHO_T}$ac_ct_CC" >&6; }
2772 else
2773   { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2775 fi
2776
2777   if test "x$ac_ct_CC" = x; then
2778     CC=""
2779   else
2780     case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2783 whose name does not start with the host triplet.  If you think this
2784 configuration is useful to you, please write to autoconf@gnu.org." >&5
2785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2786 whose name does not start with the host triplet.  If you think this
2787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2788 ac_tool_warned=yes ;;
2789 esac
2790     CC=$ac_ct_CC
2791   fi
2792 else
2793   CC="$ac_cv_prog_CC"
2794 fi
2795
2796 if test -z "$CC"; then
2797           if test -n "$ac_tool_prefix"; then
2798     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}cc; ac_word=$2
2800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2802 if test "${ac_cv_prog_CC+set}" = set; then
2803   echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805   if test -n "$CC"; then
2806   ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813   for ac_exec_ext in '' $ac_executable_extensions; do
2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_CC="${ac_tool_prefix}cc"
2816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827   { echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6; }
2829 else
2830   { echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6; }
2832 fi
2833
2834
2835   fi
2836 fi
2837 if test -z "$CC"; then
2838   # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   if test -n "$CC"; then
2846   ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848   ac_prog_rejected=no
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857        ac_prog_rejected=yes
2858        continue
2859      fi
2860     ac_cv_prog_CC="cc"
2861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862     break 2
2863   fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 if test $ac_prog_rejected = yes; then
2869   # We found a bogon in the path, so make sure we never use it.
2870   set dummy $ac_cv_prog_CC
2871   shift
2872   if test $# != 0; then
2873     # We chose a different compiler from the bogus one.
2874     # However, it has the same basename, so the bogon will be chosen
2875     # first if we set CC to just the basename; use the full file name.
2876     shift
2877     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878   fi
2879 fi
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884   { echo "$as_me:$LINENO: result: $CC" >&5
2885 echo "${ECHO_T}$CC" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2890
2891
2892 fi
2893 if test -z "$CC"; then
2894   if test -n "$ac_tool_prefix"; then
2895   for ac_prog in cl.exe
2896   do
2897     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   if test -n "$CC"; then
2905   ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912   for ac_exec_ext in '' $ac_executable_extensions; do
2913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926   { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2928 else
2929   { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2931 fi
2932
2933
2934     test -n "$CC" && break
2935   done
2936 fi
2937 if test -z "$CC"; then
2938   ac_ct_CC=$CC
2939   for ac_prog in cl.exe
2940 do
2941   # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   if test -n "$ac_ct_CC"; then
2949   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
2955   test -z "$as_dir" && as_dir=.
2956   for ac_exec_ext in '' $ac_executable_extensions; do
2957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958     ac_cv_prog_ac_ct_CC="$ac_prog"
2959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2971 echo "${ECHO_T}$ac_ct_CC" >&6; }
2972 else
2973   { echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6; }
2975 fi
2976
2977
2978   test -n "$ac_ct_CC" && break
2979 done
2980
2981   if test "x$ac_ct_CC" = x; then
2982     CC=""
2983   else
2984     case $cross_compiling:$ac_tool_warned in
2985 yes:)
2986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2987 whose name does not start with the host triplet.  If you think this
2988 configuration is useful to you, please write to autoconf@gnu.org." >&5
2989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2990 whose name does not start with the host triplet.  If you think this
2991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994     CC=$ac_ct_CC
2995   fi
2996 fi
2997
2998 fi
2999
3000
3001 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&2;}
3005    { (exit 1); exit 1; }; }
3006
3007 # Provide some information about the compiler.
3008 echo "$as_me:$LINENO: checking for C compiler version" >&5
3009 ac_compiler=`set X $ac_compile; echo $2`
3010 { (ac_try="$ac_compiler --version >&5"
3011 case "(($ac_try" in
3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013   *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016   (eval "$ac_compiler --version >&5") 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }
3020 { (ac_try="$ac_compiler -v >&5"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_compiler -v >&5") 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }
3030 { (ac_try="$ac_compiler -V >&5"
3031 case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_compiler -V >&5") 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }
3040
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 ac_clean_files_save=$ac_clean_files
3057 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3058 # Try to create an executable without -o first, disregard a.out.
3059 # It will help us diagnose broken compilers, and finding out an intuition
3060 # of exeext.
3061 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3062 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3063 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3064 #
3065 # List of possible output files, starting from the most likely.
3066 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3067 # only as a last resort.  b.out is created by i960 compilers.
3068 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3069 #
3070 # The IRIX 6 linker writes into existing files which may not be
3071 # executable, retaining their permissions.  Remove them first so a
3072 # subsequent execution test works.
3073 ac_rmfiles=
3074 for ac_file in $ac_files
3075 do
3076   case $ac_file in
3077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3078     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3079   esac
3080 done
3081 rm -f $ac_rmfiles
3082
3083 if { (ac_try="$ac_link_default"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_link_default") 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); }; then
3093   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3094 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3095 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3096 # so that the user can short-circuit this test for compilers unknown to
3097 # Autoconf.
3098 for ac_file in $ac_files ''
3099 do
3100   test -f "$ac_file" || continue
3101   case $ac_file in
3102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3103         ;;
3104     [ab].out )
3105         # We found the default executable, but exeext='' is most
3106         # certainly right.
3107         break;;
3108     *.* )
3109         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3110         then :; else
3111            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3112         fi
3113         # We set ac_cv_exeext here because the later test for it is not
3114         # safe: cross compilers may not add the suffix if given an `-o'
3115         # argument, so we may need to know it at that point already.
3116         # Even if this section looks crufty: it has the advantage of
3117         # actually working.
3118         break;;
3119     * )
3120         break;;
3121   esac
3122 done
3123 test "$ac_cv_exeext" = no && ac_cv_exeext=
3124
3125 else
3126   ac_file=''
3127 fi
3128
3129 { echo "$as_me:$LINENO: result: $ac_file" >&5
3130 echo "${ECHO_T}$ac_file" >&6; }
3131 if test -z "$ac_file"; then
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: C compiler cannot create executables
3138 See \`config.log' for more details." >&2;}
3139    { (exit 77); exit 77; }; }
3140 fi
3141
3142 ac_exeext=$ac_cv_exeext
3143
3144 # Check that the compiler produces executables we can run.  If not, either
3145 # the compiler is broken, or we cross compile.
3146 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3147 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3148 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3149 # If not cross compiling, check that we can run a simple program.
3150 if test "$cross_compiling" != yes; then
3151   if { ac_try='./$ac_file'
3152   { (case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_try") 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; }; then
3161     cross_compiling=no
3162   else
3163     if test "$cross_compiling" = maybe; then
3164         cross_compiling=yes
3165     else
3166         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3167 If you meant to cross compile, use \`--host'.
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details." >&2;}
3172    { (exit 1); exit 1; }; }
3173     fi
3174   fi
3175 fi
3176 { echo "$as_me:$LINENO: result: yes" >&5
3177 echo "${ECHO_T}yes" >&6; }
3178
3179 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3180 ac_clean_files=$ac_clean_files_save
3181 # Check that the compiler produces executables we can run.  If not, either
3182 # the compiler is broken, or we cross compile.
3183 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3184 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3185 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3186 echo "${ECHO_T}$cross_compiling" >&6; }
3187
3188 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3189 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3190 if { (ac_try="$ac_link"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_link") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; then
3200   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3201 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3202 # work properly (i.e., refer to `conftest.exe'), while it won't with
3203 # `rm'.
3204 for ac_file in conftest.exe conftest conftest.*; do
3205   test -f "$ac_file" || continue
3206   case $ac_file in
3207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3208     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209           break;;
3210     * ) break;;
3211   esac
3212 done
3213 else
3214   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." >&5
3216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details." >&2;}
3218    { (exit 1); exit 1; }; }
3219 fi
3220
3221 rm -f conftest$ac_cv_exeext
3222 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3223 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3224
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3227 ac_exeext=$EXEEXT
3228 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3230 if test "${ac_cv_objext+set}" = set; then
3231   echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239
3240 int
3241 main ()
3242 {
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.o conftest.obj
3249 if { (ac_try="$ac_compile"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_compile") 2>&5
3256   ac_status=$?
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); }; then
3259   for ac_file in conftest.o conftest.obj conftest.*; do
3260   test -f "$ac_file" || continue;
3261   case $ac_file in
3262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3263     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3264        break;;
3265   esac
3266 done
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3274 See \`config.log' for more details." >&2;}
3275    { (exit 1); exit 1; }; }
3276 fi
3277
3278 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3279 fi
3280 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3281 echo "${ECHO_T}$ac_cv_objext" >&6; }
3282 OBJEXT=$ac_cv_objext
3283 ac_objext=$OBJEXT
3284 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3285 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3286 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299 #ifndef __GNUC__
3300        choke me
3301 #endif
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_compile") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && {
3321          test -z "$ac_c_werror_flag" ||
3322          test ! -s conftest.err
3323        } && test -s conftest.$ac_objext; then
3324   ac_compiler_gnu=yes
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329         ac_compiler_gnu=no
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3334
3335 fi
3336 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3338 GCC=`test $ac_compiler_gnu = yes && echo yes`
3339 ac_test_CFLAGS=${CFLAGS+set}
3340 ac_save_CFLAGS=$CFLAGS
3341 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3343 if test "${ac_cv_prog_cc_g+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   ac_save_c_werror_flag=$ac_c_werror_flag
3347    ac_c_werror_flag=yes
3348    ac_cv_prog_cc_g=no
3349    CFLAGS="-g"
3350    cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h.  */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h.  */
3356
3357 int
3358 main ()
3359 {
3360
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 rm -f conftest.$ac_objext
3366 if { (ac_try="$ac_compile"
3367 case "(($ac_try" in
3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369   *) ac_try_echo=$ac_try;;
3370 esac
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372   (eval "$ac_compile") 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
3376   cat conftest.err >&5
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } && {
3379          test -z "$ac_c_werror_flag" ||
3380          test ! -s conftest.err
3381        } && test -s conftest.$ac_objext; then
3382   ac_cv_prog_cc_g=yes
3383 else
3384   echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387         CFLAGS=""
3388       cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394
3395 int
3396 main ()
3397 {
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_compile") 2>conftest.er1
3411   ac_status=$?
3412   grep -v '^ *+' conftest.er1 >conftest.err
3413   rm -f conftest.er1
3414   cat conftest.err >&5
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } && {
3417          test -z "$ac_c_werror_flag" ||
3418          test ! -s conftest.err
3419        } && test -s conftest.$ac_objext; then
3420   :
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425         ac_c_werror_flag=$ac_save_c_werror_flag
3426          CFLAGS="-g"
3427          cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_compile") 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } && {
3456          test -z "$ac_c_werror_flag" ||
3457          test ! -s conftest.err
3458        } && test -s conftest.$ac_objext; then
3459   ac_cv_prog_cc_g=yes
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464
3465 fi
3466
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 fi
3472
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474    ac_c_werror_flag=$ac_save_c_werror_flag
3475 fi
3476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3477 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479   CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481   if test "$GCC" = yes; then
3482     CFLAGS="-g -O2"
3483   else
3484     CFLAGS="-g"
3485   fi
3486 else
3487   if test "$GCC" = yes; then
3488     CFLAGS="-O2"
3489   else
3490     CFLAGS=
3491   fi
3492 fi
3493 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3494 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3495 if test "${ac_cv_prog_cc_c89+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   ac_cv_prog_cc_c89=no
3499 ac_save_CC=$CC
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <stdarg.h>
3507 #include <stdio.h>
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3514      char **p;
3515      int i;
3516 {
3517   return p[i];
3518 }
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3520 {
3521   char *s;
3522   va_list v;
3523   va_start (v,p);
3524   s = g (p, va_arg (v,int));
3525   va_end (v);
3526   return s;
3527 }
3528
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3530    function prototypes and stuff, but not '\xHH' hex character constants.
3531    These don't provoke an error unfortunately, instead are silently treated
3532    as 'x'.  The following induces an error, until -std is added to get
3533    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3534    array size at least.  It's necessary to write '\x00'==0 to get something
3535    that's true only with -std.  */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539    inside strings and character constants.  */
3540 #define FOO(x) 'x'
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547 int argc;
3548 char **argv;
3549 int
3550 main ()
3551 {
3552 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 do
3560   CC="$ac_save_CC $ac_arg"
3561   rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_compile") 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
3572   cat conftest.err >&5
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); } && {
3575          test -z "$ac_c_werror_flag" ||
3576          test ! -s conftest.err
3577        } && test -s conftest.$ac_objext; then
3578   ac_cv_prog_cc_c89=$ac_arg
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext
3587   test "x$ac_cv_prog_cc_c89" != "xno" && break
3588 done
3589 rm -f conftest.$ac_ext
3590 CC=$ac_save_CC
3591
3592 fi
3593 # AC_CACHE_VAL
3594 case "x$ac_cv_prog_cc_c89" in
3595   x)
3596     { echo "$as_me:$LINENO: result: none needed" >&5
3597 echo "${ECHO_T}none needed" >&6; } ;;
3598   xno)
3599     { echo "$as_me:$LINENO: result: unsupported" >&5
3600 echo "${ECHO_T}unsupported" >&6; } ;;
3601   *)
3602     CC="$CC $ac_cv_prog_cc_c89"
3603     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3604 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3605 esac
3606
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 depcc="$CC"   am_compiler_list=
3615
3616 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3617 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3618 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3622   # We make a subdir and do the tests there.  Otherwise we can end up
3623   # making bogus files that we don't know about and never remove.  For
3624   # instance it was reported that on HP-UX the gcc test will end up
3625   # making a dummy file named `D' -- because `-MD' means `put the output
3626   # in D'.
3627   mkdir conftest.dir
3628   # Copy depcomp to subdir because otherwise we won't find it if we're
3629   # using a relative directory.
3630   cp "$am_depcomp" conftest.dir
3631   cd conftest.dir
3632   # We will build objects and dependencies in a subdirectory because
3633   # it helps to detect inapplicable dependency modes.  For instance
3634   # both Tru64's cc and ICC support -MD to output dependencies as a
3635   # side effect of compilation, but ICC will put the dependencies in
3636   # the current directory while Tru64 will put them in the object
3637   # directory.
3638   mkdir sub
3639
3640   am_cv_CC_dependencies_compiler_type=none
3641   if test "$am_compiler_list" = ""; then
3642      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3643   fi
3644   for depmode in $am_compiler_list; do
3645     # Setup a source with many dependencies, because some compilers
3646     # like to wrap large dependency lists on column 80 (with \), and
3647     # we should not choose a depcomp mode which is confused by this.
3648     #
3649     # We need to recreate these files for each test, as the compiler may
3650     # overwrite some of them when testing with obscure command lines.
3651     # This happens at least with the AIX C compiler.
3652     : > sub/conftest.c
3653     for i in 1 2 3 4 5 6; do
3654       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3655       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3656       # Solaris 8's {/usr,}/bin/sh.
3657       touch sub/conftst$i.h
3658     done
3659     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3660
3661     case $depmode in
3662     nosideeffect)
3663       # after this tag, mechanisms are not by side-effect, so they'll
3664       # only be used when explicitly requested
3665       if test "x$enable_dependency_tracking" = xyes; then
3666         continue
3667       else
3668         break
3669       fi
3670       ;;
3671     none) break ;;
3672     esac
3673     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3674     # mode.  It turns out that the SunPro C++ compiler does not properly
3675     # handle `-M -o', and we need to detect this.
3676     if depmode=$depmode \
3677        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3678        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3679        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3680          >/dev/null 2>conftest.err &&
3681        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3682        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3683        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3684        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3685       # icc doesn't choke on unknown options, it will just issue warnings
3686       # or remarks (even with -Werror).  So we grep stderr for any message
3687       # that says an option was ignored or not supported.
3688       # When given -MP, icc 7.0 and 7.1 complain thusly:
3689       #   icc: Command line warning: ignoring option '-M'; no argument required
3690       # The diagnosis changed in icc 8.0:
3691       #   icc: Command line remark: option '-MP' not supported
3692       if (grep 'ignoring option' conftest.err ||
3693           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3694         am_cv_CC_dependencies_compiler_type=$depmode
3695         break
3696       fi
3697     fi
3698   done
3699
3700   cd ..
3701   rm -rf conftest.dir
3702 else
3703   am_cv_CC_dependencies_compiler_type=none
3704 fi
3705
3706 fi
3707 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3708 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3709 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3710
3711  if
3712   test "x$enable_dependency_tracking" != xno \
3713   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3714   am__fastdepCC_TRUE=
3715   am__fastdepCC_FALSE='#'
3716 else
3717   am__fastdepCC_TRUE='#'
3718   am__fastdepCC_FALSE=
3719 fi
3720
3721
3722 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3723 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3724 if test "${lt_cv_path_SED+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   # Loop through the user's path and test for sed and gsed.
3728 # Then use that list of sed's as ones to test for truncation.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   for lt_ac_prog in sed gsed; do
3735     for ac_exec_ext in '' $ac_executable_extensions; do
3736       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3737         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3738       fi
3739     done
3740   done
3741 done
3742 IFS=$as_save_IFS
3743 lt_ac_max=0
3744 lt_ac_count=0
3745 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3746 # along with /bin/sed that truncates output.
3747 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3748   test ! -f $lt_ac_sed && continue
3749   cat /dev/null > conftest.in
3750   lt_ac_count=0
3751   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3752   # Check for GNU sed and select it if it is found.
3753   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3754     lt_cv_path_SED=$lt_ac_sed
3755     break
3756   fi
3757   while true; do
3758     cat conftest.in conftest.in >conftest.tmp
3759     mv conftest.tmp conftest.in
3760     cp conftest.in conftest.nl
3761     echo >>conftest.nl
3762     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3763     cmp -s conftest.out conftest.nl || break
3764     # 10000 chars as input seems more than enough
3765     test $lt_ac_count -gt 10 && break
3766     lt_ac_count=`expr $lt_ac_count + 1`
3767     if test $lt_ac_count -gt $lt_ac_max; then
3768       lt_ac_max=$lt_ac_count
3769       lt_cv_path_SED=$lt_ac_sed
3770     fi
3771   done
3772 done
3773
3774 fi
3775
3776 SED=$lt_cv_path_SED
3777
3778 { echo "$as_me:$LINENO: result: $SED" >&5
3779 echo "${ECHO_T}$SED" >&6; }
3780
3781 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3782 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   # Extract the first word of "grep ggrep" to use in msg output
3787 if test -z "$GREP"; then
3788 set dummy grep ggrep; ac_prog_name=$2
3789 if test "${ac_cv_path_GREP+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   ac_path_GREP_found=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799   for ac_prog in grep ggrep; do
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3802     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3803     # Check for GNU ac_path_GREP and select it if it is found.
3804   # Check for GNU $ac_path_GREP
3805 case `"$ac_path_GREP" --version 2>&1` in
3806 *GNU*)
3807   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3808 *)
3809   ac_count=0
3810   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3811   while :
3812   do
3813     cat "conftest.in" "conftest.in" >"conftest.tmp"
3814     mv "conftest.tmp" "conftest.in"
3815     cp "conftest.in" "conftest.nl"
3816     echo 'GREP' >> "conftest.nl"
3817     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819     ac_count=`expr $ac_count + 1`
3820     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3821       # Best one so far, save it but keep looking for a better one
3822       ac_cv_path_GREP="$ac_path_GREP"
3823       ac_path_GREP_max=$ac_count
3824     fi
3825     # 10*(2^10) chars as input seems more than enough
3826     test $ac_count -gt 10 && break
3827   done
3828   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 esac
3830
3831
3832     $ac_path_GREP_found && break 3
3833   done
3834 done
3835
3836 done
3837 IFS=$as_save_IFS
3838
3839
3840 fi
3841
3842 GREP="$ac_cv_path_GREP"
3843 if test -z "$GREP"; then
3844   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3845 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3846    { (exit 1); exit 1; }; }
3847 fi
3848
3849 else
3850   ac_cv_path_GREP=$GREP
3851 fi
3852
3853
3854 fi
3855 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3856 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3857  GREP="$ac_cv_path_GREP"
3858
3859
3860 { echo "$as_me:$LINENO: checking for egrep" >&5
3861 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3862 if test "${ac_cv_path_EGREP+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3866    then ac_cv_path_EGREP="$GREP -E"
3867    else
3868      # Extract the first word of "egrep" to use in msg output
3869 if test -z "$EGREP"; then
3870 set dummy egrep; ac_prog_name=$2
3871 if test "${ac_cv_path_EGREP+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   ac_path_EGREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881   for ac_prog in egrep; do
3882   for ac_exec_ext in '' $ac_executable_extensions; do
3883     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3885     # Check for GNU ac_path_EGREP and select it if it is found.
3886   # Check for GNU $ac_path_EGREP
3887 case `"$ac_path_EGREP" --version 2>&1` in
3888 *GNU*)
3889   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3890 *)
3891   ac_count=0
3892   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3893   while :
3894   do
3895     cat "conftest.in" "conftest.in" >"conftest.tmp"
3896     mv "conftest.tmp" "conftest.in"
3897     cp "conftest.in" "conftest.nl"
3898     echo 'EGREP' >> "conftest.nl"
3899     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901     ac_count=`expr $ac_count + 1`
3902     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903       # Best one so far, save it but keep looking for a better one
3904       ac_cv_path_EGREP="$ac_path_EGREP"
3905       ac_path_EGREP_max=$ac_count
3906     fi
3907     # 10*(2^10) chars as input seems more than enough
3908     test $ac_count -gt 10 && break
3909   done
3910   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911 esac
3912
3913
3914     $ac_path_EGREP_found && break 3
3915   done
3916 done
3917
3918 done
3919 IFS=$as_save_IFS
3920
3921
3922 fi
3923
3924 EGREP="$ac_cv_path_EGREP"
3925 if test -z "$EGREP"; then
3926   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928    { (exit 1); exit 1; }; }
3929 fi
3930
3931 else
3932   ac_cv_path_EGREP=$EGREP
3933 fi
3934
3935
3936    fi
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3939 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3940  EGREP="$ac_cv_path_EGREP"
3941
3942
3943
3944 # Check whether --with-gnu-ld was given.
3945 if test "${with_gnu_ld+set}" = set; then
3946   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3947 else
3948   with_gnu_ld=no
3949 fi
3950
3951 ac_prog=ld
3952 if test "$GCC" = yes; then
3953   # Check if gcc -print-prog-name=ld gives a path.
3954   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3955 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3956   case $host in
3957   *-*-mingw*)
3958     # gcc leaves a trailing carriage return which upsets mingw
3959     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3960   *)
3961     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3962   esac
3963   case $ac_prog in
3964     # Accept absolute paths.
3965     [\\/]* | ?:[\\/]*)
3966       re_direlt='/[^/][^/]*/\.\./'
3967       # Canonicalize the pathname of ld
3968       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3969       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3970         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3971       done
3972       test -z "$LD" && LD="$ac_prog"
3973       ;;
3974   "")
3975     # If it fails, then pretend we aren't using GCC.
3976     ac_prog=ld
3977     ;;
3978   *)
3979     # If it is relative, then search for the first ld in PATH.
3980     with_gnu_ld=unknown
3981     ;;
3982   esac
3983 elif test "$with_gnu_ld" = yes; then
3984   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3986 else
3987   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3988 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3989 fi
3990 if test "${lt_cv_path_LD+set}" = set; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   if test -z "$LD"; then
3994   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3995   for ac_dir in $PATH; do
3996     IFS="$lt_save_ifs"
3997     test -z "$ac_dir" && ac_dir=.
3998     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3999       lt_cv_path_LD="$ac_dir/$ac_prog"
4000       # Check to see if the program is GNU ld.  I'd rather use --version,
4001       # but apparently some variants of GNU ld only accept -v.
4002       # Break only if it was the GNU/non-GNU ld that we prefer.
4003       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4004       *GNU* | *'with BFD'*)
4005         test "$with_gnu_ld" != no && break
4006         ;;
4007       *)
4008         test "$with_gnu_ld" != yes && break
4009         ;;
4010       esac
4011     fi
4012   done
4013   IFS="$lt_save_ifs"
4014 else
4015   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4016 fi
4017 fi
4018
4019 LD="$lt_cv_path_LD"
4020 if test -n "$LD"; then
4021   { echo "$as_me:$LINENO: result: $LD" >&5
4022 echo "${ECHO_T}$LD" >&6; }
4023 else
4024   { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4026 fi
4027 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4028 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4029    { (exit 1); exit 1; }; }
4030 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4031 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4032 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4036 case `$LD -v 2>&1 </dev/null` in
4037 *GNU* | *'with BFD'*)
4038   lt_cv_prog_gnu_ld=yes
4039   ;;
4040 *)
4041   lt_cv_prog_gnu_ld=no
4042   ;;
4043 esac
4044 fi
4045 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4046 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4047 with_gnu_ld=$lt_cv_prog_gnu_ld
4048
4049
4050 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4051 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4052 if test "${lt_cv_ld_reload_flag+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   lt_cv_ld_reload_flag='-r'
4056 fi
4057 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4058 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4059 reload_flag=$lt_cv_ld_reload_flag
4060 case $reload_flag in
4061 "" | " "*) ;;
4062 *) reload_flag=" $reload_flag" ;;
4063 esac
4064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065 case $host_os in
4066   darwin*)
4067     if test "$GCC" = yes; then
4068       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4069     else
4070       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4071     fi
4072     ;;
4073 esac
4074
4075 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4076 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4077 if test "${lt_cv_path_NM+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   if test -n "$NM"; then
4081   # Let the user override the test.
4082   lt_cv_path_NM="$NM"
4083 else
4084   lt_nm_to_check="${ac_tool_prefix}nm"
4085   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4086     lt_nm_to_check="$lt_nm_to_check nm"
4087   fi
4088   for lt_tmp_nm in $lt_nm_to_check; do
4089     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4090     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4091       IFS="$lt_save_ifs"
4092       test -z "$ac_dir" && ac_dir=.
4093       tmp_nm="$ac_dir/$lt_tmp_nm"
4094       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4095         # Check to see if the nm accepts a BSD-compat flag.
4096         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4097         #   nm: unknown option "B" ignored
4098         # Tru64's nm complains that /dev/null is an invalid object file
4099         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4100         */dev/null* | *'Invalid file or object type'*)
4101           lt_cv_path_NM="$tmp_nm -B"
4102           break
4103           ;;
4104         *)
4105           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4106           */dev/null*)
4107             lt_cv_path_NM="$tmp_nm -p"
4108             break
4109             ;;
4110           *)
4111             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4112             continue # so that we can try to find one that supports BSD flags
4113             ;;
4114           esac
4115           ;;
4116         esac
4117       fi
4118     done
4119     IFS="$lt_save_ifs"
4120   done
4121   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4122 fi
4123 fi
4124 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4125 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4126 NM="$lt_cv_path_NM"
4127
4128 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4129 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4130 LN_S=$as_ln_s
4131 if test "$LN_S" = "ln -s"; then
4132   { echo "$as_me:$LINENO: result: yes" >&5
4133 echo "${ECHO_T}yes" >&6; }
4134 else
4135   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4136 echo "${ECHO_T}no, using $LN_S" >&6; }
4137 fi
4138
4139 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4140 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4141 if test "${lt_cv_deplibs_check_method+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   lt_cv_file_magic_cmd='$MAGIC_CMD'
4145 lt_cv_file_magic_test_file=
4146 lt_cv_deplibs_check_method='unknown'
4147 # Need to set the preceding variable on all platforms that support
4148 # interlibrary dependencies.
4149 # 'none' -- dependencies not supported.
4150 # `unknown' -- same as none, but documents that we really don't know.
4151 # 'pass_all' -- all dependencies passed with no checks.
4152 # 'test_compile' -- check by making test program.
4153 # 'file_magic [[regex]]' -- check by looking for files in library path
4154 # which responds to the $file_magic_cmd with a given extended regex.
4155 # If you have `file' or equivalent on your system and you're not sure
4156 # whether `pass_all' will *always* work, you probably want this one.
4157
4158 case $host_os in
4159 aix[4-9]*)
4160   lt_cv_deplibs_check_method=pass_all
4161   ;;
4162
4163 beos*)
4164   lt_cv_deplibs_check_method=pass_all
4165   ;;
4166
4167 bsdi[45]*)
4168   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4169   lt_cv_file_magic_cmd='/usr/bin/file -L'
4170   lt_cv_file_magic_test_file=/shlib/libc.so
4171   ;;
4172
4173 cygwin*)
4174   # func_win32_libid is a shell function defined in ltmain.sh
4175   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4176   lt_cv_file_magic_cmd='func_win32_libid'
4177   ;;
4178
4179 mingw* | pw32*)
4180   # Base MSYS/MinGW do not provide the 'file' command needed by
4181   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4182   # unless we find 'file', for example because we are cross-compiling.
4183   if ( file / ) >/dev/null 2>&1; then
4184     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4185     lt_cv_file_magic_cmd='func_win32_libid'
4186   else
4187     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4188     lt_cv_file_magic_cmd='$OBJDUMP -f'
4189   fi
4190   ;;
4191
4192 darwin* | rhapsody*)
4193   lt_cv_deplibs_check_method=pass_all
4194   ;;
4195
4196 freebsd* | dragonfly*)
4197   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4198     case $host_cpu in
4199     i*86 )
4200       # Not sure whether the presence of OpenBSD here was a mistake.
4201       # Let's accept both of them until this is cleared up.
4202       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4203       lt_cv_file_magic_cmd=/usr/bin/file
4204       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4205       ;;
4206     esac
4207   else
4208     lt_cv_deplibs_check_method=pass_all
4209   fi
4210   ;;
4211
4212 gnu*)
4213   lt_cv_deplibs_check_method=pass_all
4214   ;;
4215
4216 hpux10.20* | hpux11*)
4217   lt_cv_file_magic_cmd=/usr/bin/file
4218   case $host_cpu in
4219   ia64*)
4220     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4221     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4222     ;;
4223   hppa*64*)
4224     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]'
4225     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4226     ;;
4227   *)
4228     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4229     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4230     ;;
4231   esac
4232   ;;
4233
4234 interix[3-9]*)
4235   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4236   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4237   ;;
4238
4239 irix5* | irix6* | nonstopux*)
4240   case $LD in
4241   *-32|*"-32 ") libmagic=32-bit;;
4242   *-n32|*"-n32 ") libmagic=N32;;
4243   *-64|*"-64 ") libmagic=64-bit;;
4244   *) libmagic=never-match;;
4245   esac
4246   lt_cv_deplibs_check_method=pass_all
4247   ;;
4248
4249 # This must be Linux ELF.
4250 linux* | k*bsd*-gnu)
4251   lt_cv_deplibs_check_method=pass_all
4252   ;;
4253
4254 netbsd* | netbsdelf*-gnu)
4255   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4257   else
4258     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4259   fi
4260   ;;
4261
4262 newos6*)
4263   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4264   lt_cv_file_magic_cmd=/usr/bin/file
4265   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4266   ;;
4267
4268 nto-qnx*)
4269   lt_cv_deplibs_check_method=unknown
4270   ;;
4271
4272 openbsd*)
4273   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4274     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4275   else
4276     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4277   fi
4278   ;;
4279
4280 osf3* | osf4* | osf5*)
4281   lt_cv_deplibs_check_method=pass_all
4282   ;;
4283
4284 rdos*)
4285   lt_cv_deplibs_check_method=pass_all
4286   ;;
4287
4288 solaris*)
4289   lt_cv_deplibs_check_method=pass_all
4290   ;;
4291
4292 sysv4 | sysv4.3*)
4293   case $host_vendor in
4294   motorola)
4295     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]'
4296     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4297     ;;
4298   ncr)
4299     lt_cv_deplibs_check_method=pass_all
4300     ;;
4301   sequent)
4302     lt_cv_file_magic_cmd='/bin/file'
4303     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4304     ;;
4305   sni)
4306     lt_cv_file_magic_cmd='/bin/file'
4307     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4308     lt_cv_file_magic_test_file=/lib/libc.so
4309     ;;
4310   siemens)
4311     lt_cv_deplibs_check_method=pass_all
4312     ;;
4313   pc)
4314     lt_cv_deplibs_check_method=pass_all
4315     ;;
4316   esac
4317   ;;
4318
4319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4320   lt_cv_deplibs_check_method=pass_all
4321   ;;
4322 esac
4323
4324 fi
4325 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4326 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4327 file_magic_cmd=$lt_cv_file_magic_cmd
4328 deplibs_check_method=$lt_cv_deplibs_check_method
4329 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4330
4331
4332
4333
4334 # If no C compiler was specified, use CC.
4335 LTCC=${LTCC-"$CC"}
4336
4337 # If no C compiler flags were specified, use CFLAGS.
4338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4339
4340 # Allow CC to be a program name with arguments.
4341 compiler=$CC
4342
4343
4344 # Check whether --enable-libtool-lock was given.
4345 if test "${enable_libtool_lock+set}" = set; then
4346   enableval=$enable_libtool_lock;
4347 fi
4348
4349 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4350
4351 # Some flags need to be propagated to the compiler or linker for good
4352 # libtool support.
4353 case $host in
4354 ia64-*-hpux*)
4355   # Find out which ABI we are using.
4356   echo 'int i;' > conftest.$ac_ext
4357   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358   (eval $ac_compile) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; then
4362     case `/usr/bin/file conftest.$ac_objext` in
4363     *ELF-32*)
4364       HPUX_IA64_MODE="32"
4365       ;;
4366     *ELF-64*)
4367       HPUX_IA64_MODE="64"
4368       ;;
4369     esac
4370   fi
4371   rm -rf conftest*
4372   ;;
4373 *-*-irix6*)
4374   # Find out which ABI we are using.
4375   echo '#line 4375 "configure"' > conftest.$ac_ext
4376   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377   (eval $ac_compile) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; then
4381    if test "$lt_cv_prog_gnu_ld" = yes; then
4382     case `/usr/bin/file conftest.$ac_objext` in
4383     *32-bit*)
4384       LD="${LD-ld} -melf32bsmip"
4385       ;;
4386     *N32*)
4387       LD="${LD-ld} -melf32bmipn32"
4388       ;;
4389     *64-bit*)
4390       LD="${LD-ld} -melf64bmip"
4391       ;;
4392     esac
4393    else
4394     case `/usr/bin/file conftest.$ac_objext` in
4395     *32-bit*)
4396       LD="${LD-ld} -32"
4397       ;;
4398     *N32*)
4399       LD="${LD-ld} -n32"
4400       ;;
4401     *64-bit*)
4402       LD="${LD-ld} -64"
4403       ;;
4404     esac
4405    fi
4406   fi
4407   rm -rf conftest*
4408   ;;
4409
4410 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4411 s390*-*linux*|sparc*-*linux*)
4412   # Find out which ABI we are using.
4413   echo 'int i;' > conftest.$ac_ext
4414   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415   (eval $ac_compile) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; then
4419     case `/usr/bin/file conftest.o` in
4420     *32-bit*)
4421       case $host in
4422         x86_64-*kfreebsd*-gnu)
4423           LD="${LD-ld} -m elf_i386_fbsd"
4424           ;;
4425         x86_64-*linux*)
4426           LD="${LD-ld} -m elf_i386"
4427           ;;
4428         ppc64-*linux*|powerpc64-*linux*)
4429           LD="${LD-ld} -m elf32ppclinux"
4430           ;;
4431         s390x-*linux*)
4432           LD="${LD-ld} -m elf_s390"
4433           ;;
4434         sparc64-*linux*)
4435           LD="${LD-ld} -m elf32_sparc"
4436           ;;
4437       esac
4438       ;;
4439     *64-bit*)
4440       case $host in
4441         x86_64-*kfreebsd*-gnu)
4442           LD="${LD-ld} -m elf_x86_64_fbsd"
4443           ;;
4444         x86_64-*linux*)
4445           LD="${LD-ld} -m elf_x86_64"
4446           ;;
4447         ppc*-*linux*|powerpc*-*linux*)
4448           LD="${LD-ld} -m elf64ppc"
4449           ;;
4450         s390*-*linux*)
4451           LD="${LD-ld} -m elf64_s390"
4452           ;;
4453         sparc*-*linux*)
4454           LD="${LD-ld} -m elf64_sparc"
4455           ;;
4456       esac
4457       ;;
4458     esac
4459   fi
4460   rm -rf conftest*
4461   ;;
4462
4463 *-*-sco3.2v5*)
4464   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4465   SAVE_CFLAGS="$CFLAGS"
4466   CFLAGS="$CFLAGS -belf"
4467   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4468 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4469 if test "${lt_cv_cc_needs_belf+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477
4478      cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h.  */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h.  */
4484
4485 int
4486 main ()
4487 {
4488
4489   ;
4490   return 0;
4491 }
4492 _ACEOF
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4495 case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500   (eval "$ac_link") 2>conftest.er1
4501   ac_status=$?
4502   grep -v '^ *+' conftest.er1 >conftest.err
4503   rm -f conftest.er1
4504   cat conftest.err >&5
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); } && {
4507          test -z "$ac_c_werror_flag" ||
4508          test ! -s conftest.err
4509        } && test -s conftest$ac_exeext &&
4510        $as_test_x conftest$ac_exeext; then
4511   lt_cv_cc_needs_belf=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516         lt_cv_cc_needs_belf=no
4517 fi
4518
4519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4520       conftest$ac_exeext conftest.$ac_ext
4521      ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
4527 fi
4528 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4529 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4530   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4531     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4532     CFLAGS="$SAVE_CFLAGS"
4533   fi
4534   ;;
4535 sparc*-*solaris*)
4536   # Find out which ABI we are using.
4537   echo 'int i;' > conftest.$ac_ext
4538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; then
4543     case `/usr/bin/file conftest.o` in
4544     *64-bit*)
4545       case $lt_cv_prog_gnu_ld in
4546       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4547       *)
4548         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4549           LD="${LD-ld} -64"
4550         fi
4551         ;;
4552       esac
4553       ;;
4554     esac
4555   fi
4556   rm -rf conftest*
4557   ;;
4558
4559
4560 esac
4561
4562 need_locks="$enable_libtool_lock"
4563
4564
4565 ac_ext=c
4566 ac_cpp='$CPP $CPPFLAGS'
4567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4572 # On Suns, sometimes $CPP names a directory.
4573 if test -n "$CPP" && test -d "$CPP"; then
4574   CPP=
4575 fi
4576 if test -z "$CPP"; then
4577   if test "${ac_cv_prog_CPP+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580       # Double quotes because CPP needs to be expanded
4581     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4582     do
4583       ac_preproc_ok=false
4584 for ac_c_preproc_warn_flag in '' yes
4585 do
4586   # Use a header file that comes with gcc, so configuring glibc
4587   # with a fresh cross-compiler works.
4588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589   # <limits.h> exists even on freestanding compilers.
4590   # On the NeXT, cc -E runs the code through the compiler's parser,
4591   # not just through cpp. "Syntax error" is here to catch this case.
4592   cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 #ifdef __STDC__
4599 # include <limits.h>
4600 #else
4601 # include <assert.h>
4602 #endif
4603                      Syntax error
4604 _ACEOF
4605 if { (ac_try="$ac_cpp conftest.$ac_ext"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } >/dev/null && {
4618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4619          test ! -s conftest.err
4620        }; then
4621   :
4622 else
4623   echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626   # Broken: fails on valid input.
4627 continue
4628 fi
4629
4630 rm -f conftest.err conftest.$ac_ext
4631
4632   # OK, works on sane cases.  Now check whether nonexistent headers
4633   # can be detected and how.
4634   cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 #include <ac_nonexistent.h>
4641 _ACEOF
4642 if { (ac_try="$ac_cpp conftest.$ac_ext"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4649   ac_status=$?
4650   grep -v '^ *+' conftest.er1 >conftest.err
4651   rm -f conftest.er1
4652   cat conftest.err >&5
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } >/dev/null && {
4655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4656          test ! -s conftest.err
4657        }; then
4658   # Broken: success on invalid input.
4659 continue
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664   # Passes both tests.
4665 ac_preproc_ok=:
4666 break
4667 fi
4668
4669 rm -f conftest.err conftest.$ac_ext
4670
4671 done
4672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4673 rm -f conftest.err conftest.$ac_ext
4674 if $ac_preproc_ok; then
4675   break
4676 fi
4677
4678     done
4679     ac_cv_prog_CPP=$CPP
4680
4681 fi
4682   CPP=$ac_cv_prog_CPP
4683 else
4684   ac_cv_prog_CPP=$CPP
4685 fi
4686 { echo "$as_me:$LINENO: result: $CPP" >&5
4687 echo "${ECHO_T}$CPP" >&6; }
4688 ac_preproc_ok=false
4689 for ac_c_preproc_warn_flag in '' yes
4690 do
4691   # Use a header file that comes with gcc, so configuring glibc
4692   # with a fresh cross-compiler works.
4693   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4694   # <limits.h> exists even on freestanding compilers.
4695   # On the NeXT, cc -E runs the code through the compiler's parser,
4696   # not just through cpp. "Syntax error" is here to catch this case.
4697   cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703 #ifdef __STDC__
4704 # include <limits.h>
4705 #else
4706 # include <assert.h>
4707 #endif
4708                      Syntax error
4709 _ACEOF
4710 if { (ac_try="$ac_cpp conftest.$ac_ext"
4711 case "(($ac_try" in
4712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713   *) ac_try_echo=$ac_try;;
4714 esac
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4717   ac_status=$?
4718   grep -v '^ *+' conftest.er1 >conftest.err
4719   rm -f conftest.er1
4720   cat conftest.err >&5
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } >/dev/null && {
4723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4724          test ! -s conftest.err
4725        }; then
4726   :
4727 else
4728   echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731   # Broken: fails on valid input.
4732 continue
4733 fi
4734
4735 rm -f conftest.err conftest.$ac_ext
4736
4737   # OK, works on sane cases.  Now check whether nonexistent headers
4738   # can be detected and how.
4739   cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745 #include <ac_nonexistent.h>
4746 _ACEOF
4747 if { (ac_try="$ac_cpp conftest.$ac_ext"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } >/dev/null && {
4760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4761          test ! -s conftest.err
4762        }; then
4763   # Broken: success on invalid input.
4764 continue
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769   # Passes both tests.
4770 ac_preproc_ok=:
4771 break
4772 fi
4773
4774 rm -f conftest.err conftest.$ac_ext
4775
4776 done
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then
4780   :
4781 else
4782   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4783 See \`config.log' for more details." >&5
4784 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4785 See \`config.log' for more details." >&2;}
4786    { (exit 1); exit 1; }; }
4787 fi
4788
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794
4795
4796 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4798 if test "${ac_cv_header_stdc+set}" = set; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807 #include <stdlib.h>
4808 #include <stdarg.h>
4809 #include <string.h>
4810 #include <float.h>
4811
4812 int
4813 main ()
4814 {
4815
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (ac_try="$ac_compile"
4822 case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827   (eval "$ac_compile") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } && {
4834          test -z "$ac_c_werror_flag" ||
4835          test ! -s conftest.err
4836        } && test -s conftest.$ac_objext; then
4837   ac_cv_header_stdc=yes
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842         ac_cv_header_stdc=no
4843 fi
4844
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846
4847 if test $ac_cv_header_stdc = yes; then
4848   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4849   cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855 #include <string.h>
4856
4857 _ACEOF
4858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859   $EGREP "memchr" >/dev/null 2>&1; then
4860   :
4861 else
4862   ac_cv_header_stdc=no
4863 fi
4864 rm -f conftest*
4865
4866 fi
4867
4868 if test $ac_cv_header_stdc = yes; then
4869   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4870   cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876 #include <stdlib.h>
4877
4878 _ACEOF
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880   $EGREP "free" >/dev/null 2>&1; then
4881   :
4882 else
4883   ac_cv_header_stdc=no
4884 fi
4885 rm -f conftest*
4886
4887 fi
4888
4889 if test $ac_cv_header_stdc = yes; then
4890   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4891   if test "$cross_compiling" = yes; then
4892   :
4893 else
4894   cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900 #include <ctype.h>
4901 #include <stdlib.h>
4902 #if ((' ' & 0x0FF) == 0x020)
4903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4905 #else
4906 # define ISLOWER(c) \
4907                    (('a' <= (c) && (c) <= 'i') \
4908                      || ('j' <= (c) && (c) <= 'r') \
4909                      || ('s' <= (c) && (c) <= 'z'))
4910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4911 #endif
4912
4913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4914 int
4915 main ()
4916 {
4917   int i;
4918   for (i = 0; i < 256; i++)
4919     if (XOR (islower (i), ISLOWER (i))
4920         || toupper (i) != TOUPPER (i))
4921       return 2;
4922   return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest$ac_exeext
4926 if { (ac_try="$ac_link"
4927 case "(($ac_try" in
4928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929   *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932   (eval "$ac_link") 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4936   { (case "(($ac_try" in
4937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938   *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941   (eval "$ac_try") 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; }; then
4945   :
4946 else
4947   echo "$as_me: program exited with status $ac_status" >&5
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 ( exit $ac_status )
4952 ac_cv_header_stdc=no
4953 fi
4954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4955 fi
4956
4957
4958 fi
4959 fi
4960 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4961 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4962 if test $ac_cv_header_stdc = yes; then
4963
4964 cat >>confdefs.h <<\_ACEOF
4965 #define STDC_HEADERS 1
4966 _ACEOF
4967
4968 fi
4969
4970 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4981                   inttypes.h stdint.h unistd.h
4982 do
4983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 $ac_includes_default
4996
4997 #include <$ac_header>
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5001 case "(($ac_try" in
5002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003   *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006   (eval "$ac_compile") 2>conftest.er1
5007   ac_status=$?
5008   grep -v '^ *+' conftest.er1 >conftest.err
5009   rm -f conftest.er1
5010   cat conftest.err >&5
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); } && {
5013          test -z "$ac_c_werror_flag" ||
5014          test ! -s conftest.err
5015        } && test -s conftest.$ac_objext; then
5016   eval "$as_ac_Header=yes"
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021         eval "$as_ac_Header=no"
5022 fi
5023
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 fi
5026 ac_res=`eval echo '${'$as_ac_Header'}'`
5027                { echo "$as_me:$LINENO: result: $ac_res" >&5
5028 echo "${ECHO_T}$ac_res" >&6; }
5029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5030   cat >>confdefs.h <<_ACEOF
5031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5032 _ACEOF
5033
5034 fi
5035
5036 done
5037
5038
5039
5040 for ac_header in dlfcn.h
5041 do
5042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5044   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 fi
5049 ac_res=`eval echo '${'$as_ac_Header'}'`
5050                { echo "$as_me:$LINENO: result: $ac_res" >&5
5051 echo "${ECHO_T}$ac_res" >&6; }
5052 else
5053   # Is the header compilable?
5054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h.  */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h.  */
5062 $ac_includes_default
5063 #include <$ac_header>
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (ac_try="$ac_compile"
5067 case "(($ac_try" in
5068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069   *) ac_try_echo=$ac_try;;
5070 esac
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072   (eval "$ac_compile") 2>conftest.er1
5073   ac_status=$?
5074   grep -v '^ *+' conftest.er1 >conftest.err
5075   rm -f conftest.er1
5076   cat conftest.err >&5
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } && {
5079          test -z "$ac_c_werror_flag" ||
5080          test ! -s conftest.err
5081        } && test -s conftest.$ac_objext; then
5082   ac_header_compiler=yes
5083 else
5084   echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087         ac_header_compiler=no
5088 fi
5089
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092 echo "${ECHO_T}$ac_header_compiler" >&6; }
5093
5094 # Is the header present?
5095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 #include <$ac_header>
5104 _ACEOF
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5106 case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null && {
5118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119          test ! -s conftest.err
5120        }; then
5121   ac_header_preproc=yes
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126   ac_header_preproc=no
5127 fi
5128
5129 rm -f conftest.err conftest.$ac_ext
5130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5131 echo "${ECHO_T}$ac_header_preproc" >&6; }
5132
5133 # So?  What about this header?
5134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5135   yes:no: )
5136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5140     ac_header_preproc=yes
5141     ;;
5142   no:yes:* )
5143     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5145     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5146 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5147     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5149     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5150 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5153     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5155     ( cat <<\_ASBOX
5156 ## ---------------------------------------- ##
5157 ## Report this to konn@users.sourceforge.jp ##
5158 ## ---------------------------------------- ##
5159 _ASBOX
5160      ) | sed "s/^/$as_me: WARNING:     /" >&2
5161     ;;
5162 esac
5163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   eval "$as_ac_Header=\$ac_header_preproc"
5169 fi
5170 ac_res=`eval echo '${'$as_ac_Header'}'`
5171                { echo "$as_me:$LINENO: result: $ac_res" >&5
5172 echo "${ECHO_T}$ac_res" >&6; }
5173
5174 fi
5175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176   cat >>confdefs.h <<_ACEOF
5177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5178 _ACEOF
5179
5180 fi
5181
5182 done
5183
5184 ac_ext=cpp
5185 ac_cpp='$CXXCPP $CPPFLAGS'
5186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5189 if test -z "$CXX"; then
5190   if test -n "$CCC"; then
5191     CXX=$CCC
5192   else
5193     if test -n "$ac_tool_prefix"; then
5194   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5195   do
5196     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200 if test "${ac_cv_prog_CXX+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   if test -n "$CXX"; then
5204   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211   for ac_exec_ext in '' $ac_executable_extensions; do
5212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 CXX=$ac_cv_prog_CXX
5224 if test -n "$CXX"; then
5225   { echo "$as_me:$LINENO: result: $CXX" >&5
5226 echo "${ECHO_T}$CXX" >&6; }
5227 else
5228   { echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6; }
5230 fi
5231
5232
5233     test -n "$CXX" && break
5234   done
5235 fi
5236 if test -z "$CXX"; then
5237   ac_ct_CXX=$CXX
5238   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5239 do
5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if test -n "$ac_ct_CXX"; then
5248   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255   for ac_exec_ext in '' $ac_executable_extensions; do
5256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257     ac_cv_prog_ac_ct_CXX="$ac_prog"
5258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5268 if test -n "$ac_ct_CXX"; then
5269   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5270 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5271 else
5272   { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5274 fi
5275
5276
5277   test -n "$ac_ct_CXX" && break
5278 done
5279
5280   if test "x$ac_ct_CXX" = x; then
5281     CXX="g++"
5282   else
5283     case $cross_compiling:$ac_tool_warned in
5284 yes:)
5285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet.  If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&5
5288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5289 whose name does not start with the host triplet.  If you think this
5290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293     CXX=$ac_ct_CXX
5294   fi
5295 fi
5296
5297   fi
5298 fi
5299 # Provide some information about the compiler.
5300 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5301 ac_compiler=`set X $ac_compile; echo $2`
5302 { (ac_try="$ac_compiler --version >&5"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308   (eval "$ac_compiler --version >&5") 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }
5312 { (ac_try="$ac_compiler -v >&5"
5313 case "(($ac_try" in
5314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315   *) ac_try_echo=$ac_try;;
5316 esac
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318   (eval "$ac_compiler -v >&5") 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }
5322 { (ac_try="$ac_compiler -V >&5"
5323 case "(($ac_try" in
5324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325   *) ac_try_echo=$ac_try;;
5326 esac
5327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328   (eval "$ac_compiler -V >&5") 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }
5332
5333 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5334 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5335 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h.  */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h.  */
5344
5345 int
5346 main ()
5347 {
5348 #ifndef __GNUC__
5349        choke me
5350 #endif
5351
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5358 case "(($ac_try" in
5359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360   *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363   (eval "$ac_compile") 2>conftest.er1
5364   ac_status=$?
5365   grep -v '^ *+' conftest.er1 >conftest.err
5366   rm -f conftest.er1
5367   cat conftest.err >&5
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } && {
5370          test -z "$ac_cxx_werror_flag" ||
5371          test ! -s conftest.err
5372        } && test -s conftest.$ac_objext; then
5373   ac_compiler_gnu=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378         ac_compiler_gnu=no
5379 fi
5380
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5383
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5386 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5387 GXX=`test $ac_compiler_gnu = yes && echo yes`
5388 ac_test_CXXFLAGS=${CXXFLAGS+set}
5389 ac_save_CXXFLAGS=$CXXFLAGS
5390 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5391 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5392 if test "${ac_cv_prog_cxx_g+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5396    ac_cxx_werror_flag=yes
5397    ac_cv_prog_cxx_g=no
5398    CXXFLAGS="-g"
5399    cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405
5406 int
5407 main ()
5408 {
5409
5410   ;
5411   return 0;
5412 }
5413 _ACEOF
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5416 case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421   (eval "$ac_compile") 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } && {
5428          test -z "$ac_cxx_werror_flag" ||
5429          test ! -s conftest.err
5430        } && test -s conftest.$ac_objext; then
5431   ac_cv_prog_cxx_g=yes
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436         CXXFLAGS=""
5437       cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443
5444 int
5445 main ()
5446 {
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5454 case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459   (eval "$ac_compile") 2>conftest.er1
5460   ac_status=$?
5461   grep -v '^ *+' conftest.er1 >conftest.err
5462   rm -f conftest.er1
5463   cat conftest.err >&5
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } && {
5466          test -z "$ac_cxx_werror_flag" ||
5467          test ! -s conftest.err
5468        } && test -s conftest.$ac_objext; then
5469   :
5470 else
5471   echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5475          CXXFLAGS="-g"
5476          cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482
5483 int
5484 main ()
5485 {
5486
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_compile") 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } && {
5505          test -z "$ac_cxx_werror_flag" ||
5506          test ! -s conftest.err
5507        } && test -s conftest.$ac_objext; then
5508   ac_cv_prog_cxx_g=yes
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513
5514 fi
5515
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 fi
5518
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 fi
5521
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5524 fi
5525 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5526 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5527 if test "$ac_test_CXXFLAGS" = set; then
5528   CXXFLAGS=$ac_save_CXXFLAGS
5529 elif test $ac_cv_prog_cxx_g = yes; then
5530   if test "$GXX" = yes; then
5531     CXXFLAGS="-g -O2"
5532   else
5533     CXXFLAGS="-g"
5534   fi
5535 else
5536   if test "$GXX" = yes; then
5537     CXXFLAGS="-O2"
5538   else
5539     CXXFLAGS=
5540   fi
5541 fi
5542 ac_ext=cpp
5543 ac_cpp='$CXXCPP $CPPFLAGS'
5544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5547
5548 depcc="$CXX"  am_compiler_list=
5549
5550 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5551 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5552 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5556   # We make a subdir and do the tests there.  Otherwise we can end up
5557   # making bogus files that we don't know about and never remove.  For
5558   # instance it was reported that on HP-UX the gcc test will end up
5559   # making a dummy file named `D' -- because `-MD' means `put the output
5560   # in D'.
5561   mkdir conftest.dir
5562   # Copy depcomp to subdir because otherwise we won't find it if we're
5563   # using a relative directory.
5564   cp "$am_depcomp" conftest.dir
5565   cd conftest.dir
5566   # We will build objects and dependencies in a subdirectory because
5567   # it helps to detect inapplicable dependency modes.  For instance
5568   # both Tru64's cc and ICC support -MD to output dependencies as a
5569   # side effect of compilation, but ICC will put the dependencies in
5570   # the current directory while Tru64 will put them in the object
5571   # directory.
5572   mkdir sub
5573
5574   am_cv_CXX_dependencies_compiler_type=none
5575   if test "$am_compiler_list" = ""; then
5576      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5577   fi
5578   for depmode in $am_compiler_list; do
5579     # Setup a source with many dependencies, because some compilers
5580     # like to wrap large dependency lists on column 80 (with \), and
5581     # we should not choose a depcomp mode which is confused by this.
5582     #
5583     # We need to recreate these files for each test, as the compiler may
5584     # overwrite some of them when testing with obscure command lines.
5585     # This happens at least with the AIX C compiler.
5586     : > sub/conftest.c
5587     for i in 1 2 3 4 5 6; do
5588       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5589       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5590       # Solaris 8's {/usr,}/bin/sh.
5591       touch sub/conftst$i.h
5592     done
5593     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5594
5595     case $depmode in
5596     nosideeffect)
5597       # after this tag, mechanisms are not by side-effect, so they'll
5598       # only be used when explicitly requested
5599       if test "x$enable_dependency_tracking" = xyes; then
5600         continue
5601       else
5602         break
5603       fi
5604       ;;
5605     none) break ;;
5606     esac
5607     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5608     # mode.  It turns out that the SunPro C++ compiler does not properly
5609     # handle `-M -o', and we need to detect this.
5610     if depmode=$depmode \
5611        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5612        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5613        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5614          >/dev/null 2>conftest.err &&
5615        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5616        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5617        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5618        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5619       # icc doesn't choke on unknown options, it will just issue warnings
5620       # or remarks (even with -Werror).  So we grep stderr for any message
5621       # that says an option was ignored or not supported.
5622       # When given -MP, icc 7.0 and 7.1 complain thusly:
5623       #   icc: Command line warning: ignoring option '-M'; no argument required
5624       # The diagnosis changed in icc 8.0:
5625       #   icc: Command line remark: option '-MP' not supported
5626       if (grep 'ignoring option' conftest.err ||
5627           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5628         am_cv_CXX_dependencies_compiler_type=$depmode
5629         break
5630       fi
5631     fi
5632   done
5633
5634   cd ..
5635   rm -rf conftest.dir
5636 else
5637   am_cv_CXX_dependencies_compiler_type=none
5638 fi
5639
5640 fi
5641 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5642 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5643 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5644
5645  if
5646   test "x$enable_dependency_tracking" != xno \
5647   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5648   am__fastdepCXX_TRUE=
5649   am__fastdepCXX_FALSE='#'
5650 else
5651   am__fastdepCXX_TRUE='#'
5652   am__fastdepCXX_FALSE=
5653 fi
5654
5655
5656
5657
5658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5659     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5660     (test "X$CXX" != "Xg++"))) ; then
5661   ac_ext=cpp
5662 ac_cpp='$CXXCPP $CPPFLAGS'
5663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5666 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5667 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5668 if test -z "$CXXCPP"; then
5669   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672       # Double quotes because CXXCPP needs to be expanded
5673     for CXXCPP in "$CXX -E" "/lib/cpp"
5674     do
5675       ac_preproc_ok=false
5676 for ac_cxx_preproc_warn_flag in '' yes
5677 do
5678   # Use a header file that comes with gcc, so configuring glibc
5679   # with a fresh cross-compiler works.
5680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681   # <limits.h> exists even on freestanding compilers.
5682   # On the NeXT, cc -E runs the code through the compiler's parser,
5683   # not just through cpp. "Syntax error" is here to catch this case.
5684   cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 #ifdef __STDC__
5691 # include <limits.h>
5692 #else
5693 # include <assert.h>
5694 #endif
5695                      Syntax error
5696 _ACEOF
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } >/dev/null && {
5710          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5711          test ! -s conftest.err
5712        }; then
5713   :
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718   # Broken: fails on valid input.
5719 continue
5720 fi
5721
5722 rm -f conftest.err conftest.$ac_ext
5723
5724   # OK, works on sane cases.  Now check whether nonexistent headers
5725   # can be detected and how.
5726   cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #include <ac_nonexistent.h>
5733 _ACEOF
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5735 case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5741   ac_status=$?
5742   grep -v '^ *+' conftest.er1 >conftest.err
5743   rm -f conftest.er1
5744   cat conftest.err >&5
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } >/dev/null && {
5747          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5748          test ! -s conftest.err
5749        }; then
5750   # Broken: success on invalid input.
5751 continue
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756   # Passes both tests.
5757 ac_preproc_ok=:
5758 break
5759 fi
5760
5761 rm -f conftest.err conftest.$ac_ext
5762
5763 done
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5767   break
5768 fi
5769
5770     done
5771     ac_cv_prog_CXXCPP=$CXXCPP
5772
5773 fi
5774   CXXCPP=$ac_cv_prog_CXXCPP
5775 else
5776   ac_cv_prog_CXXCPP=$CXXCPP
5777 fi
5778 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5779 echo "${ECHO_T}$CXXCPP" >&6; }
5780 ac_preproc_ok=false
5781 for ac_cxx_preproc_warn_flag in '' yes
5782 do
5783   # Use a header file that comes with gcc, so configuring glibc
5784   # with a fresh cross-compiler works.
5785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786   # <limits.h> exists even on freestanding compilers.
5787   # On the NeXT, cc -E runs the code through the compiler's parser,
5788   # not just through cpp. "Syntax error" is here to catch this case.
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #ifdef __STDC__
5796 # include <limits.h>
5797 #else
5798 # include <assert.h>
5799 #endif
5800                      Syntax error
5801 _ACEOF
5802 if { (ac_try="$ac_cpp conftest.$ac_ext"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } >/dev/null && {
5815          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5816          test ! -s conftest.err
5817        }; then
5818   :
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823   # Broken: fails on valid input.
5824 continue
5825 fi
5826
5827 rm -f conftest.err conftest.$ac_ext
5828
5829   # OK, works on sane cases.  Now check whether nonexistent headers
5830   # can be detected and how.
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837 #include <ac_nonexistent.h>
5838 _ACEOF
5839 if { (ac_try="$ac_cpp conftest.$ac_ext"
5840 case "(($ac_try" in
5841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842   *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } >/dev/null && {
5852          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5853          test ! -s conftest.err
5854        }; then
5855   # Broken: success on invalid input.
5856 continue
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861   # Passes both tests.
5862 ac_preproc_ok=:
5863 break
5864 fi
5865
5866 rm -f conftest.err conftest.$ac_ext
5867
5868 done
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then
5872   :
5873 else
5874   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&5
5876 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5877 See \`config.log' for more details." >&2;}
5878    { (exit 1); exit 1; }; }
5879 fi
5880
5881 ac_ext=cpp
5882 ac_cpp='$CXXCPP $CPPFLAGS'
5883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5886
5887 fi
5888
5889
5890 ac_ext=f
5891 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5892 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5894 if test -n "$ac_tool_prefix"; then
5895   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
5896   do
5897     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_prog_F77+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   if test -n "$F77"; then
5905   ac_cv_prog_F77="$F77" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912   for ac_exec_ext in '' $ac_executable_extensions; do
5913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 F77=$ac_cv_prog_F77
5925 if test -n "$F77"; then
5926   { echo "$as_me:$LINENO: result: $F77" >&5
5927 echo "${ECHO_T}$F77" >&6; }
5928 else
5929   { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5931 fi
5932
5933
5934     test -n "$F77" && break
5935   done
5936 fi
5937 if test -z "$F77"; then
5938   ac_ct_F77=$F77
5939   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
5940 do
5941   # Extract the first word of "$ac_prog", so it can be a program name with args.
5942 set dummy $ac_prog; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$ac_ct_F77"; then
5949   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_prog_ac_ct_F77="$ac_prog"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5969 if test -n "$ac_ct_F77"; then
5970   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5971 echo "${ECHO_T}$ac_ct_F77" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975 fi
5976
5977
5978   test -n "$ac_ct_F77" && break
5979 done
5980
5981   if test "x$ac_ct_F77" = x; then
5982     F77=""
5983   else
5984     case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet.  If you think this
5988 configuration is useful to you, please write to autoconf@gnu.org." >&5
5989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5990 whose name does not start with the host triplet.  If you think this
5991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5992 ac_tool_warned=yes ;;
5993 esac
5994     F77=$ac_ct_F77
5995   fi
5996 fi
5997
5998
5999 # Provide some information about the compiler.
6000 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6001 ac_compiler=`set X $ac_compile; echo $2`
6002 { (ac_try="$ac_compiler --version >&5"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compiler --version >&5") 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }
6012 { (ac_try="$ac_compiler -v >&5"
6013 case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_compiler -v >&5") 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }
6022 { (ac_try="$ac_compiler -V >&5"
6023 case "(($ac_try" in
6024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025   *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028   (eval "$ac_compiler -V >&5") 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }
6032 rm -f a.out
6033
6034 # If we don't use `.F' as extension, the preprocessor is not run on the
6035 # input file.  (Note that this only needs to work for GNU compilers.)
6036 ac_save_ext=$ac_ext
6037 ac_ext=F
6038 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6039 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6040 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   cat >conftest.$ac_ext <<_ACEOF
6044       program main
6045 #ifndef __GNUC__
6046        choke me
6047 #endif
6048
6049       end
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6053 case "(($ac_try" in
6054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055   *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058   (eval "$ac_compile") 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } && {
6065          test -z "$ac_f77_werror_flag" ||
6066          test ! -s conftest.err
6067        } && test -s conftest.$ac_objext; then
6068   ac_compiler_gnu=yes
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073         ac_compiler_gnu=no
6074 fi
6075
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6078
6079 fi
6080 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6081 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6082 ac_ext=$ac_save_ext
6083 ac_test_FFLAGS=${FFLAGS+set}
6084 ac_save_FFLAGS=$FFLAGS
6085 FFLAGS=
6086 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6087 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_f77_g+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   FFLAGS=-g
6092 cat >conftest.$ac_ext <<_ACEOF
6093       program main
6094
6095       end
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101   *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104   (eval "$ac_compile") 2>conftest.er1
6105   ac_status=$?
6106   grep -v '^ *+' conftest.er1 >conftest.err
6107   rm -f conftest.er1
6108   cat conftest.err >&5
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } && {
6111          test -z "$ac_f77_werror_flag" ||
6112          test ! -s conftest.err
6113        } && test -s conftest.$ac_objext; then
6114   ac_cv_prog_f77_g=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119         ac_cv_prog_f77_g=no
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123
6124 fi
6125 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6126 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6127 if test "$ac_test_FFLAGS" = set; then
6128   FFLAGS=$ac_save_FFLAGS
6129 elif test $ac_cv_prog_f77_g = yes; then
6130   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6131     FFLAGS="-g -O2"
6132   else
6133     FFLAGS="-g"
6134   fi
6135 else
6136   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6137     FFLAGS="-O2"
6138   else
6139     FFLAGS=
6140   fi
6141 fi
6142
6143 G77=`test $ac_compiler_gnu = yes && echo yes`
6144 ac_ext=c
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149
6150
6151
6152 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6153 # find the maximum length of command line arguments
6154 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6155 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6156 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159     i=0
6160   teststring="ABCD"
6161
6162   case $build_os in
6163   msdosdjgpp*)
6164     # On DJGPP, this test can blow up pretty badly due to problems in libc
6165     # (any single argument exceeding 2000 bytes causes a buffer overrun
6166     # during glob expansion).  Even if it were fixed, the result of this
6167     # check would be larger than it should be.
6168     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6169     ;;
6170
6171   gnu*)
6172     # Under GNU Hurd, this test is not required because there is
6173     # no limit to the length of command line arguments.
6174     # Libtool will interpret -1 as no limit whatsoever
6175     lt_cv_sys_max_cmd_len=-1;
6176     ;;
6177
6178   cygwin* | mingw*)
6179     # On Win9x/ME, this test blows up -- it succeeds, but takes
6180     # about 5 minutes as the teststring grows exponentially.
6181     # Worse, since 9x/ME are not pre-emptively multitasking,
6182     # you end up with a "frozen" computer, even though with patience
6183     # the test eventually succeeds (with a max line length of 256k).
6184     # Instead, let's just punt: use the minimum linelength reported by
6185     # all of the supported platforms: 8192 (on NT/2K/XP).
6186     lt_cv_sys_max_cmd_len=8192;
6187     ;;
6188
6189   amigaos*)
6190     # On AmigaOS with pdksh, this test takes hours, literally.
6191     # So we just punt and use a minimum line length of 8192.
6192     lt_cv_sys_max_cmd_len=8192;
6193     ;;
6194
6195   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6196     # This has been around since 386BSD, at least.  Likely further.
6197     if test -x /sbin/sysctl; then
6198       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6199     elif test -x /usr/sbin/sysctl; then
6200       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6201     else
6202       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6203     fi
6204     # And add a safety zone
6205     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207     ;;
6208
6209   interix*)
6210     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6211     lt_cv_sys_max_cmd_len=196608
6212     ;;
6213
6214   osf*)
6215     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6216     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6217     # nice to cause kernel panics so lets avoid the loop below.
6218     # First set a reasonable default.
6219     lt_cv_sys_max_cmd_len=16384
6220     #
6221     if test -x /sbin/sysconfig; then
6222       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6223         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6224       esac
6225     fi
6226     ;;
6227   sco3.2v5*)
6228     lt_cv_sys_max_cmd_len=102400
6229     ;;
6230   sysv5* | sco5v6* | sysv4.2uw2*)
6231     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6232     if test -n "$kargmax"; then
6233       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6234     else
6235       lt_cv_sys_max_cmd_len=32768
6236     fi
6237     ;;
6238   *)
6239     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6240     if test -n "$lt_cv_sys_max_cmd_len"; then
6241       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6242       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6243     else
6244       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6245       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6246                = "XX$teststring") >/dev/null 2>&1 &&
6247               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6248               lt_cv_sys_max_cmd_len=$new_result &&
6249               test $i != 17 # 1/2 MB should be enough
6250       do
6251         i=`expr $i + 1`
6252         teststring=$teststring$teststring
6253       done
6254       teststring=
6255       # Add a significant safety factor because C++ compilers can tack on massive
6256       # amounts of additional arguments before passing them to the linker.
6257       # It appears as though 1/2 is a usable value.
6258       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6259     fi
6260     ;;
6261   esac
6262
6263 fi
6264
6265 if test -n $lt_cv_sys_max_cmd_len ; then
6266   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6267 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: none" >&5
6270 echo "${ECHO_T}none" >&6; }
6271 fi
6272
6273
6274
6275
6276
6277 # Check for command to grab the raw symbol name followed by C symbol from nm.
6278 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6279 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6280 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283
6284 # These are sane defaults that work on at least a few old systems.
6285 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6286
6287 # Character class describing NM global symbol codes.
6288 symcode='[BCDEGRST]'
6289
6290 # Regexp to match symbols that can be accessed directly from C.
6291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6292
6293 # Transform an extracted symbol line into a proper C declaration
6294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6295
6296 # Transform an extracted symbol line into symbol name and symbol address
6297 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'"
6298
6299 # Define system-specific variables.
6300 case $host_os in
6301 aix*)
6302   symcode='[BCDT]'
6303   ;;
6304 cygwin* | mingw* | pw32*)
6305   symcode='[ABCDGISTW]'
6306   ;;
6307 hpux*) # Its linker distinguishes data from code symbols
6308   if test "$host_cpu" = ia64; then
6309     symcode='[ABCDEGRST]'
6310   fi
6311   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6312   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'"
6313   ;;
6314 linux* | k*bsd*-gnu)
6315   if test "$host_cpu" = ia64; then
6316     symcode='[ABCDGIRSTW]'
6317     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318     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'"
6319   fi
6320   ;;
6321 irix* | nonstopux*)
6322   symcode='[BCDEGRST]'
6323   ;;
6324 osf*)
6325   symcode='[BCDEGQRST]'
6326   ;;
6327 solaris*)
6328   symcode='[BDRT]'
6329   ;;
6330 sco3.2v5*)
6331   symcode='[DT]'
6332   ;;
6333 sysv4.2uw2*)
6334   symcode='[DT]'
6335   ;;
6336 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6337   symcode='[ABDT]'
6338   ;;
6339 sysv4)
6340   symcode='[DFNSTU]'
6341   ;;
6342 esac
6343
6344 # Handle CRLF in mingw tool chain
6345 opt_cr=
6346 case $build_os in
6347 mingw*)
6348   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6349   ;;
6350 esac
6351
6352 # If we're using GNU nm, then use its standard symbol codes.
6353 case `$NM -V 2>&1` in
6354 *GNU* | *'with BFD'*)
6355   symcode='[ABCDGIRSTW]' ;;
6356 esac
6357
6358 # Try without a prefix undercore, then with it.
6359 for ac_symprfx in "" "_"; do
6360
6361   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6362   symxfrm="\\1 $ac_symprfx\\2 \\2"
6363
6364   # Write the raw and C identifiers.
6365   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6366
6367   # Check to see that the pipe works correctly.
6368   pipe_works=no
6369
6370   rm -f conftest*
6371   cat > conftest.$ac_ext <<EOF
6372 #ifdef __cplusplus
6373 extern "C" {
6374 #endif
6375 char nm_test_var;
6376 void nm_test_func(){}
6377 #ifdef __cplusplus
6378 }
6379 #endif
6380 int main(){nm_test_var='a';nm_test_func();return(0);}
6381 EOF
6382
6383   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384   (eval $ac_compile) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; then
6388     # Now try to grab the symbols.
6389     nlist=conftest.nm
6390     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6391   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); } && test -s "$nlist"; then
6395       # Try sorting and uniquifying the output.
6396       if sort "$nlist" | uniq > "$nlist"T; then
6397         mv -f "$nlist"T "$nlist"
6398       else
6399         rm -f "$nlist"T
6400       fi
6401
6402       # Make sure that we snagged all the symbols we need.
6403       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6404         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6405           cat <<EOF > conftest.$ac_ext
6406 #ifdef __cplusplus
6407 extern "C" {
6408 #endif
6409
6410 EOF
6411           # Now generate the symbol file.
6412           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6413
6414           cat <<EOF >> conftest.$ac_ext
6415 #if defined (__STDC__) && __STDC__
6416 # define lt_ptr_t void *
6417 #else
6418 # define lt_ptr_t char *
6419 # define const
6420 #endif
6421
6422 /* The mapping between symbol names and symbols. */
6423 const struct {
6424   const char *name;
6425   lt_ptr_t address;
6426 }
6427 lt_preloaded_symbols[] =
6428 {
6429 EOF
6430           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6431           cat <<\EOF >> conftest.$ac_ext
6432   {0, (lt_ptr_t) 0}
6433 };
6434
6435 #ifdef __cplusplus
6436 }
6437 #endif
6438 EOF
6439           # Now try linking the two files.
6440           mv conftest.$ac_objext conftstm.$ac_objext
6441           lt_save_LIBS="$LIBS"
6442           lt_save_CFLAGS="$CFLAGS"
6443           LIBS="conftstm.$ac_objext"
6444           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6445           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446   (eval $ac_link) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6450             pipe_works=yes
6451           fi
6452           LIBS="$lt_save_LIBS"
6453           CFLAGS="$lt_save_CFLAGS"
6454         else
6455           echo "cannot find nm_test_func in $nlist" >&5
6456         fi
6457       else
6458         echo "cannot find nm_test_var in $nlist" >&5
6459       fi
6460     else
6461       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6462     fi
6463   else
6464     echo "$progname: failed program was:" >&5
6465     cat conftest.$ac_ext >&5
6466   fi
6467   rm -rf conftest* conftst*
6468
6469   # Do not use the global_symbol_pipe unless it works.
6470   if test "$pipe_works" = yes; then
6471     break
6472   else
6473     lt_cv_sys_global_symbol_pipe=
6474   fi
6475 done
6476
6477 fi
6478
6479 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6480   lt_cv_sys_global_symbol_to_cdecl=
6481 fi
6482 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6483   { echo "$as_me:$LINENO: result: failed" >&5
6484 echo "${ECHO_T}failed" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: ok" >&5
6487 echo "${ECHO_T}ok" >&6; }
6488 fi
6489
6490 { echo "$as_me:$LINENO: checking for objdir" >&5
6491 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6492 if test "${lt_cv_objdir+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   rm -f .libs 2>/dev/null
6496 mkdir .libs 2>/dev/null
6497 if test -d .libs; then
6498   lt_cv_objdir=.libs
6499 else
6500   # MS-DOS does not allow filenames that begin with a dot.
6501   lt_cv_objdir=_libs
6502 fi
6503 rmdir .libs 2>/dev/null
6504 fi
6505 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6506 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6507 objdir=$lt_cv_objdir
6508
6509
6510
6511
6512
6513 case $host_os in
6514 aix3*)
6515   # AIX sometimes has problems with the GCC collect2 program.  For some
6516   # reason, if we set the COLLECT_NAMES environment variable, the problems
6517   # vanish in a puff of smoke.
6518   if test "X${COLLECT_NAMES+set}" != Xset; then
6519     COLLECT_NAMES=
6520     export COLLECT_NAMES
6521   fi
6522   ;;
6523 esac
6524
6525 # Sed substitution that helps us do robust quoting.  It backslashifies
6526 # metacharacters that are still active within double-quoted strings.
6527 Xsed='sed -e 1s/^X//'
6528 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6529
6530 # Same as above, but do not quote variable references.
6531 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6532
6533 # Sed substitution to delay expansion of an escaped shell variable in a
6534 # double_quote_subst'ed string.
6535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6536
6537 # Sed substitution to avoid accidental globbing in evaled expressions
6538 no_glob_subst='s/\*/\\\*/g'
6539
6540 # Constants:
6541 rm="rm -f"
6542
6543 # Global variables:
6544 default_ofile=libtool
6545 can_build_shared=yes
6546
6547 # All known linkers require a `.a' archive for static linking (except MSVC,
6548 # which needs '.lib').
6549 libext=a
6550 ltmain="$ac_aux_dir/ltmain.sh"
6551 ofile="$default_ofile"
6552 with_gnu_ld="$lt_cv_prog_gnu_ld"
6553
6554 if test -n "$ac_tool_prefix"; then
6555   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_AR+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   if test -n "$AR"; then
6563   ac_cv_prog_AR="$AR" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_AR="${ac_tool_prefix}ar"
6573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 AR=$ac_cv_prog_AR
6583 if test -n "$AR"; then
6584   { echo "$as_me:$LINENO: result: $AR" >&5
6585 echo "${ECHO_T}$AR" >&6; }
6586 else
6587   { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_AR"; then
6594   ac_ct_AR=$AR
6595   # Extract the first word of "ar", so it can be a program name with args.
6596 set dummy ar; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   if test -n "$ac_ct_AR"; then
6603   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_prog_ac_ct_AR="ar"
6613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6623 if test -n "$ac_ct_AR"; then
6624   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6625 echo "${ECHO_T}$ac_ct_AR" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631   if test "x$ac_ct_AR" = x; then
6632     AR="false"
6633   else
6634     case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6637 whose name does not start with the host triplet.  If you think this
6638 configuration is useful to you, please write to autoconf@gnu.org." >&5
6639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6640 whose name does not start with the host triplet.  If you think this
6641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644     AR=$ac_ct_AR
6645   fi
6646 else
6647   AR="$ac_cv_prog_AR"
6648 fi
6649
6650 if test -n "$ac_tool_prefix"; then
6651   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_prog_RANLIB+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   if test -n "$RANLIB"; then
6659   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666   for ac_exec_ext in '' $ac_executable_extensions; do
6667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 RANLIB=$ac_cv_prog_RANLIB
6679 if test -n "$RANLIB"; then
6680   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6681 echo "${ECHO_T}$RANLIB" >&6; }
6682 else
6683   { echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6; }
6685 fi
6686
6687
6688 fi
6689 if test -z "$ac_cv_prog_RANLIB"; then
6690   ac_ct_RANLIB=$RANLIB
6691   # Extract the first word of "ranlib", so it can be a program name with args.
6692 set dummy ranlib; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   if test -n "$ac_ct_RANLIB"; then
6699   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706   for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_prog_ac_ct_RANLIB="ranlib"
6709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6719 if test -n "$ac_ct_RANLIB"; then
6720   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6721 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6722 else
6723   { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6725 fi
6726
6727   if test "x$ac_ct_RANLIB" = x; then
6728     RANLIB=":"
6729   else
6730     case $cross_compiling:$ac_tool_warned in
6731 yes:)
6732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6733 whose name does not start with the host triplet.  If you think this
6734 configuration is useful to you, please write to autoconf@gnu.org." >&5
6735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6736 whose name does not start with the host triplet.  If you think this
6737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740     RANLIB=$ac_ct_RANLIB
6741   fi
6742 else
6743   RANLIB="$ac_cv_prog_RANLIB"
6744 fi
6745
6746 if test -n "$ac_tool_prefix"; then
6747   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}strip; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_prog_STRIP+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   if test -n "$STRIP"; then
6755   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 STRIP=$ac_cv_prog_STRIP
6775 if test -n "$STRIP"; then
6776   { echo "$as_me:$LINENO: result: $STRIP" >&5
6777 echo "${ECHO_T}$STRIP" >&6; }
6778 else
6779   { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6781 fi
6782
6783
6784 fi
6785 if test -z "$ac_cv_prog_STRIP"; then
6786   ac_ct_STRIP=$STRIP
6787   # Extract the first word of "strip", so it can be a program name with args.
6788 set dummy strip; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   if test -n "$ac_ct_STRIP"; then
6795   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_ac_ct_STRIP="strip"
6805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6815 if test -n "$ac_ct_STRIP"; then
6816   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6817 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823   if test "x$ac_ct_STRIP" = x; then
6824     STRIP=":"
6825   else
6826     case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6829 whose name does not start with the host triplet.  If you think this
6830 configuration is useful to you, please write to autoconf@gnu.org." >&5
6831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6832 whose name does not start with the host triplet.  If you think this
6833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836     STRIP=$ac_ct_STRIP
6837   fi
6838 else
6839   STRIP="$ac_cv_prog_STRIP"
6840 fi
6841
6842
6843 old_CC="$CC"
6844 old_CFLAGS="$CFLAGS"
6845
6846 # Set sane defaults for various variables
6847 test -z "$AR" && AR=ar
6848 test -z "$AR_FLAGS" && AR_FLAGS=cru
6849 test -z "$AS" && AS=as
6850 test -z "$CC" && CC=cc
6851 test -z "$LTCC" && LTCC=$CC
6852 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6853 test -z "$DLLTOOL" && DLLTOOL=dlltool
6854 test -z "$LD" && LD=ld
6855 test -z "$LN_S" && LN_S="ln -s"
6856 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6857 test -z "$NM" && NM=nm
6858 test -z "$SED" && SED=sed
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6860 test -z "$RANLIB" && RANLIB=:
6861 test -z "$STRIP" && STRIP=:
6862 test -z "$ac_objext" && ac_objext=o
6863
6864 # Determine commands to create old-style static archives.
6865 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6866 old_postinstall_cmds='chmod 644 $oldlib'
6867 old_postuninstall_cmds=
6868
6869 if test -n "$RANLIB"; then
6870   case $host_os in
6871   openbsd*)
6872     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6873     ;;
6874   *)
6875     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6876     ;;
6877   esac
6878   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6879 fi
6880
6881 for cc_temp in $compiler""; do
6882   case $cc_temp in
6883     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6885     \-*) ;;
6886     *) break;;
6887   esac
6888 done
6889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6890
6891
6892 # Only perform the check for file, if the check method requires it
6893 case $deplibs_check_method in
6894 file_magic*)
6895   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6896     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6897 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   case $MAGIC_CMD in
6902 [\\/*] |  ?:[\\/]*)
6903   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6904   ;;
6905 *)
6906   lt_save_MAGIC_CMD="$MAGIC_CMD"
6907   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6909   for ac_dir in $ac_dummy; do
6910     IFS="$lt_save_ifs"
6911     test -z "$ac_dir" && ac_dir=.
6912     if test -f $ac_dir/${ac_tool_prefix}file; then
6913       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6914       if test -n "$file_magic_test_file"; then
6915         case $deplibs_check_method in
6916         "file_magic "*)
6917           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6918           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6920             $EGREP "$file_magic_regex" > /dev/null; then
6921             :
6922           else
6923             cat <<EOF 1>&2
6924
6925 *** Warning: the command libtool uses to detect shared libraries,
6926 *** $file_magic_cmd, produces output that libtool cannot recognize.
6927 *** The result is that libtool may fail to recognize shared libraries
6928 *** as such.  This will affect the creation of libtool libraries that
6929 *** depend on shared libraries, but programs linked with such libtool
6930 *** libraries will work regardless of this problem.  Nevertheless, you
6931 *** may want to report the problem to your system manager and/or to
6932 *** bug-libtool@gnu.org
6933
6934 EOF
6935           fi ;;
6936         esac
6937       fi
6938       break
6939     fi
6940   done
6941   IFS="$lt_save_ifs"
6942   MAGIC_CMD="$lt_save_MAGIC_CMD"
6943   ;;
6944 esac
6945 fi
6946
6947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6948 if test -n "$MAGIC_CMD"; then
6949   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6950 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6951 else
6952   { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6954 fi
6955
6956 if test -z "$lt_cv_path_MAGIC_CMD"; then
6957   if test -n "$ac_tool_prefix"; then
6958     { echo "$as_me:$LINENO: checking for file" >&5
6959 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   case $MAGIC_CMD in
6964 [\\/*] |  ?:[\\/]*)
6965   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6966   ;;
6967 *)
6968   lt_save_MAGIC_CMD="$MAGIC_CMD"
6969   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971   for ac_dir in $ac_dummy; do
6972     IFS="$lt_save_ifs"
6973     test -z "$ac_dir" && ac_dir=.
6974     if test -f $ac_dir/file; then
6975       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976       if test -n "$file_magic_test_file"; then
6977         case $deplibs_check_method in
6978         "file_magic "*)
6979           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982             $EGREP "$file_magic_regex" > /dev/null; then
6983             :
6984           else
6985             cat <<EOF 1>&2
6986
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such.  This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem.  Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
6995
6996 EOF
6997           fi ;;
6998         esac
6999       fi
7000       break
7001     fi
7002   done
7003   IFS="$lt_save_ifs"
7004   MAGIC_CMD="$lt_save_MAGIC_CMD"
7005   ;;
7006 esac
7007 fi
7008
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018   else
7019     MAGIC_CMD=:
7020   fi
7021 fi
7022
7023   fi
7024   ;;
7025 esac
7026
7027
7028   case $host_os in
7029     rhapsody* | darwin*)
7030     if test -n "$ac_tool_prefix"; then
7031   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   if test -n "$DSYMUTIL"; then
7039   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7059 if test -n "$DSYMUTIL"; then
7060   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7061 echo "${ECHO_T}$DSYMUTIL" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067
7068 fi
7069 if test -z "$ac_cv_prog_DSYMUTIL"; then
7070   ac_ct_DSYMUTIL=$DSYMUTIL
7071   # Extract the first word of "dsymutil", so it can be a program name with args.
7072 set dummy dsymutil; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7076   echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078   if test -n "$ac_ct_DSYMUTIL"; then
7079   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7099 if test -n "$ac_ct_DSYMUTIL"; then
7100   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7101 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7102 else
7103   { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7105 fi
7106
7107   if test "x$ac_ct_DSYMUTIL" = x; then
7108     DSYMUTIL=":"
7109   else
7110     case $cross_compiling:$ac_tool_warned in
7111 yes:)
7112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet.  If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&5
7115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7116 whose name does not start with the host triplet.  If you think this
7117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7118 ac_tool_warned=yes ;;
7119 esac
7120     DSYMUTIL=$ac_ct_DSYMUTIL
7121   fi
7122 else
7123   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7124 fi
7125
7126     if test -n "$ac_tool_prefix"; then
7127   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7131 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134   if test -n "$NMEDIT"; then
7135   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142   for ac_exec_ext in '' $ac_executable_extensions; do
7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 NMEDIT=$ac_cv_prog_NMEDIT
7155 if test -n "$NMEDIT"; then
7156   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7157 echo "${ECHO_T}$NMEDIT" >&6; }
7158 else
7159   { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7161 fi
7162
7163
7164 fi
7165 if test -z "$ac_cv_prog_NMEDIT"; then
7166   ac_ct_NMEDIT=$NMEDIT
7167   # Extract the first word of "nmedit", so it can be a program name with args.
7168 set dummy nmedit; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   if test -n "$ac_ct_NMEDIT"; then
7175   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7195 if test -n "$ac_ct_NMEDIT"; then
7196   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7197 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7198 else
7199   { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7201 fi
7202
7203   if test "x$ac_ct_NMEDIT" = x; then
7204     NMEDIT=":"
7205   else
7206     case $cross_compiling:$ac_tool_warned in
7207 yes:)
7208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet.  If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&5
7211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet.  If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216     NMEDIT=$ac_ct_NMEDIT
7217   fi
7218 else
7219   NMEDIT="$ac_cv_prog_NMEDIT"
7220 fi
7221
7222
7223     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7224 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7225 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   lt_cv_apple_cc_single_mod=no
7229       if test -z "${LT_MULTI_MODULE}"; then
7230    # By default we will add the -single_module flag. You can override
7231    # by either setting the environment variable LT_MULTI_MODULE
7232    # non-empty at configure time, or by adding -multi_module to the
7233    # link flags.
7234    echo "int foo(void){return 1;}" > conftest.c
7235    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7236      -dynamiclib ${wl}-single_module conftest.c
7237    if test -f libconftest.dylib; then
7238      lt_cv_apple_cc_single_mod=yes
7239      rm -rf libconftest.dylib*
7240    fi
7241    rm conftest.c
7242       fi
7243 fi
7244 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7245 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7246     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7247 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7248 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   lt_cv_ld_exported_symbols_list=no
7252       save_LDFLAGS=$LDFLAGS
7253       echo "_main" > conftest.sym
7254       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7255       cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261
7262 int
7263 main ()
7264 {
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7272 case "(($ac_try" in
7273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274   *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277   (eval "$ac_link") 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } && {
7284          test -z "$ac_c_werror_flag" ||
7285          test ! -s conftest.err
7286        } && test -s conftest$ac_exeext &&
7287        $as_test_x conftest$ac_exeext; then
7288   lt_cv_ld_exported_symbols_list=yes
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293         lt_cv_ld_exported_symbols_list=no
7294 fi
7295
7296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7297       conftest$ac_exeext conftest.$ac_ext
7298    LDFLAGS="$save_LDFLAGS"
7299
7300 fi
7301 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7302 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7303     case $host_os in
7304     rhapsody* | darwin1.[0123])
7305       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7306     darwin1.*)
7307      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308     darwin*)
7309       # if running on 10.5 or later, the deployment target defaults
7310       # to the OS version, if on x86, and 10.4, the deployment
7311       # target defaults to 10.4. Don't you love it?
7312       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7313    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7314      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7315    10.[012]*)
7316      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7317    10.*)
7318      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7319       esac
7320     ;;
7321   esac
7322     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7323       _lt_dar_single_mod='$single_module'
7324     fi
7325     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7326       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7327     else
7328       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7329     fi
7330     if test "$DSYMUTIL" != ":"; then
7331       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7332     else
7333       _lt_dsymutil=
7334     fi
7335     ;;
7336   esac
7337
7338
7339 enable_dlopen=no
7340 enable_win32_dll=no
7341
7342 # Check whether --enable-libtool-lock was given.
7343 if test "${enable_libtool_lock+set}" = set; then
7344   enableval=$enable_libtool_lock;
7345 fi
7346
7347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7348
7349
7350 # Check whether --with-pic was given.
7351 if test "${with_pic+set}" = set; then
7352   withval=$with_pic; pic_mode="$withval"
7353 else
7354   pic_mode=default
7355 fi
7356
7357 test -z "$pic_mode" && pic_mode=default
7358
7359 # Use C for the default configuration in the libtool script
7360 tagname=
7361 lt_save_CC="$CC"
7362 ac_ext=c
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367
7368
7369 # Source file extension for C test sources.
7370 ac_ext=c
7371
7372 # Object file extension for compiled C test sources.
7373 objext=o
7374 objext=$objext
7375
7376 # Code to be used in simple compile tests
7377 lt_simple_compile_test_code="int some_variable = 0;"
7378
7379 # Code to be used in simple link tests
7380 lt_simple_link_test_code='int main(){return(0);}'
7381
7382
7383 # If no C compiler was specified, use CC.
7384 LTCC=${LTCC-"$CC"}
7385
7386 # If no C compiler flags were specified, use CFLAGS.
7387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7388
7389 # Allow CC to be a program name with arguments.
7390 compiler=$CC
7391
7392
7393 # save warnings/boilerplate of simple test code
7394 ac_outfile=conftest.$ac_objext
7395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7397 _lt_compiler_boilerplate=`cat conftest.err`
7398 $rm conftest*
7399
7400 ac_outfile=conftest.$ac_objext
7401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7403 _lt_linker_boilerplate=`cat conftest.err`
7404 $rm -r conftest*
7405
7406
7407
7408 lt_prog_compiler_no_builtin_flag=
7409
7410 if test "$GCC" = yes; then
7411   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7412
7413
7414 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7415 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7416 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   lt_cv_prog_compiler_rtti_exceptions=no
7420   ac_outfile=conftest.$ac_objext
7421    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422    lt_compiler_flag="-fno-rtti -fno-exceptions"
7423    # Insert the option either (1) after the last *FLAGS variable, or
7424    # (2) before a word containing "conftest.", or (3) at the end.
7425    # Note that $ac_compile itself does not contain backslashes and begins
7426    # with a dollar sign (not a hyphen), so the echo should work correctly.
7427    # The option is referenced via a variable to avoid confusing sed.
7428    lt_compile=`echo "$ac_compile" | $SED \
7429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431    -e 's:$: $lt_compiler_flag:'`
7432    (eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
7433    (eval "$lt_compile" 2>conftest.err)
7434    ac_status=$?
7435    cat conftest.err >&5
7436    echo "$as_me:7436: \$? = $ac_status" >&5
7437    if (exit $ac_status) && test -s "$ac_outfile"; then
7438      # The compiler can only warn and ignore the option if not recognized
7439      # So say no if there are warnings other than the usual output.
7440      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7443        lt_cv_prog_compiler_rtti_exceptions=yes
7444      fi
7445    fi
7446    $rm conftest*
7447
7448 fi
7449 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7450 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7451
7452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7453     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7454 else
7455     :
7456 fi
7457
7458 fi
7459
7460 lt_prog_compiler_wl=
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_static=
7463
7464 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7465 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7466
7467   if test "$GCC" = yes; then
7468     lt_prog_compiler_wl='-Wl,'
7469     lt_prog_compiler_static='-static'
7470
7471     case $host_os in
7472       aix*)
7473       # All AIX code is PIC.
7474       if test "$host_cpu" = ia64; then
7475         # AIX 5 now supports IA64 processor
7476         lt_prog_compiler_static='-Bstatic'
7477       fi
7478       ;;
7479
7480     amigaos*)
7481       # FIXME: we need at least 68020 code to build shared libraries, but
7482       # adding the `-m68020' flag to GCC prevents building anything better,
7483       # like `-m68040'.
7484       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7485       ;;
7486
7487     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7488       # PIC is the default for these OSes.
7489       ;;
7490
7491     mingw* | cygwin* | pw32* | os2*)
7492       # This hack is so that the source file can tell whether it is being
7493       # built for inclusion in a dll (and should export symbols for example).
7494       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7495       # (--disable-auto-import) libraries
7496       lt_prog_compiler_pic='-DDLL_EXPORT'
7497       ;;
7498
7499     darwin* | rhapsody*)
7500       # PIC is the default on this platform
7501       # Common symbols not allowed in MH_DYLIB files
7502       lt_prog_compiler_pic='-fno-common'
7503       ;;
7504
7505     interix[3-9]*)
7506       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7507       # Instead, we relocate shared libraries at runtime.
7508       ;;
7509
7510     msdosdjgpp*)
7511       # Just because we use GCC doesn't mean we suddenly get shared libraries
7512       # on systems that don't support them.
7513       lt_prog_compiler_can_build_shared=no
7514       enable_shared=no
7515       ;;
7516
7517     sysv4*MP*)
7518       if test -d /usr/nec; then
7519         lt_prog_compiler_pic=-Kconform_pic
7520       fi
7521       ;;
7522
7523     hpux*)
7524       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7525       # not for PA HP-UX.
7526       case $host_cpu in
7527       hppa*64*|ia64*)
7528         # +Z the default
7529         ;;
7530       *)
7531         lt_prog_compiler_pic='-fPIC'
7532         ;;
7533       esac
7534       ;;
7535
7536     *)
7537       lt_prog_compiler_pic='-fPIC'
7538       ;;
7539     esac
7540   else
7541     # PORTME Check for flag to pass linker flags through the system compiler.
7542     case $host_os in
7543     aix*)
7544       lt_prog_compiler_wl='-Wl,'
7545       if test "$host_cpu" = ia64; then
7546         # AIX 5 now supports IA64 processor
7547         lt_prog_compiler_static='-Bstatic'
7548       else
7549         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7550       fi
7551       ;;
7552       darwin*)
7553         # PIC is the default on this platform
7554         # Common symbols not allowed in MH_DYLIB files
7555        case $cc_basename in
7556          xlc*)
7557          lt_prog_compiler_pic='-qnocommon'
7558          lt_prog_compiler_wl='-Wl,'
7559          ;;
7560        esac
7561        ;;
7562
7563     mingw* | cygwin* | pw32* | os2*)
7564       # This hack is so that the source file can tell whether it is being
7565       # built for inclusion in a dll (and should export symbols for example).
7566       lt_prog_compiler_pic='-DDLL_EXPORT'
7567       ;;
7568
7569     hpux9* | hpux10* | hpux11*)
7570       lt_prog_compiler_wl='-Wl,'
7571       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7572       # not for PA HP-UX.
7573       case $host_cpu in
7574       hppa*64*|ia64*)
7575         # +Z the default
7576         ;;
7577       *)
7578         lt_prog_compiler_pic='+Z'
7579         ;;
7580       esac
7581       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7582       lt_prog_compiler_static='${wl}-a ${wl}archive'
7583       ;;
7584
7585     irix5* | irix6* | nonstopux*)
7586       lt_prog_compiler_wl='-Wl,'
7587       # PIC (with -KPIC) is the default.
7588       lt_prog_compiler_static='-non_shared'
7589       ;;
7590
7591     newsos6)
7592       lt_prog_compiler_pic='-KPIC'
7593       lt_prog_compiler_static='-Bstatic'
7594       ;;
7595
7596     linux* | k*bsd*-gnu)
7597       case $cc_basename in
7598       icc* | ecc*)
7599         lt_prog_compiler_wl='-Wl,'
7600         lt_prog_compiler_pic='-KPIC'
7601         lt_prog_compiler_static='-static'
7602         ;;
7603       pgcc* | pgf77* | pgf90* | pgf95*)
7604         # Portland Group compilers (*not* the Pentium gcc compiler,
7605         # which looks to be a dead project)
7606         lt_prog_compiler_wl='-Wl,'
7607         lt_prog_compiler_pic='-fpic'
7608         lt_prog_compiler_static='-Bstatic'
7609         ;;
7610       ccc*)
7611         lt_prog_compiler_wl='-Wl,'
7612         # All Alpha code is PIC.
7613         lt_prog_compiler_static='-non_shared'
7614         ;;
7615       *)
7616         case `$CC -V 2>&1 | sed 5q` in
7617         *Sun\ C*)
7618           # Sun C 5.9
7619           lt_prog_compiler_pic='-KPIC'
7620           lt_prog_compiler_static='-Bstatic'
7621           lt_prog_compiler_wl='-Wl,'
7622           ;;
7623         *Sun\ F*)
7624           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7625           lt_prog_compiler_pic='-KPIC'
7626           lt_prog_compiler_static='-Bstatic'
7627           lt_prog_compiler_wl=''
7628           ;;
7629         esac
7630         ;;
7631       esac
7632       ;;
7633
7634     osf3* | osf4* | osf5*)
7635       lt_prog_compiler_wl='-Wl,'
7636       # All OSF/1 code is PIC.
7637       lt_prog_compiler_static='-non_shared'
7638       ;;
7639
7640     rdos*)
7641       lt_prog_compiler_static='-non_shared'
7642       ;;
7643
7644     solaris*)
7645       lt_prog_compiler_pic='-KPIC'
7646       lt_prog_compiler_static='-Bstatic'
7647       case $cc_basename in
7648       f77* | f90* | f95*)
7649         lt_prog_compiler_wl='-Qoption ld ';;
7650       *)
7651         lt_prog_compiler_wl='-Wl,';;
7652       esac
7653       ;;
7654
7655     sunos4*)
7656       lt_prog_compiler_wl='-Qoption ld '
7657       lt_prog_compiler_pic='-PIC'
7658       lt_prog_compiler_static='-Bstatic'
7659       ;;
7660
7661     sysv4 | sysv4.2uw2* | sysv4.3*)
7662       lt_prog_compiler_wl='-Wl,'
7663       lt_prog_compiler_pic='-KPIC'
7664       lt_prog_compiler_static='-Bstatic'
7665       ;;
7666
7667     sysv4*MP*)
7668       if test -d /usr/nec ;then
7669         lt_prog_compiler_pic='-Kconform_pic'
7670         lt_prog_compiler_static='-Bstatic'
7671       fi
7672       ;;
7673
7674     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7675       lt_prog_compiler_wl='-Wl,'
7676       lt_prog_compiler_pic='-KPIC'
7677       lt_prog_compiler_static='-Bstatic'
7678       ;;
7679
7680     unicos*)
7681       lt_prog_compiler_wl='-Wl,'
7682       lt_prog_compiler_can_build_shared=no
7683       ;;
7684
7685     uts4*)
7686       lt_prog_compiler_pic='-pic'
7687       lt_prog_compiler_static='-Bstatic'
7688       ;;
7689
7690     *)
7691       lt_prog_compiler_can_build_shared=no
7692       ;;
7693     esac
7694   fi
7695
7696 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7697 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7698
7699 #
7700 # Check to make sure the PIC flag actually works.
7701 #
7702 if test -n "$lt_prog_compiler_pic"; then
7703
7704 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7705 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7706 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   lt_cv_prog_compiler_pic_works=no
7710   ac_outfile=conftest.$ac_objext
7711    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7712    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7713    # Insert the option either (1) after the last *FLAGS variable, or
7714    # (2) before a word containing "conftest.", or (3) at the end.
7715    # Note that $ac_compile itself does not contain backslashes and begins
7716    # with a dollar sign (not a hyphen), so the echo should work correctly.
7717    # The option is referenced via a variable to avoid confusing sed.
7718    lt_compile=`echo "$ac_compile" | $SED \
7719    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721    -e 's:$: $lt_compiler_flag:'`
7722    (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
7723    (eval "$lt_compile" 2>conftest.err)
7724    ac_status=$?
7725    cat conftest.err >&5
7726    echo "$as_me:7726: \$? = $ac_status" >&5
7727    if (exit $ac_status) && test -s "$ac_outfile"; then
7728      # The compiler can only warn and ignore the option if not recognized
7729      # So say no if there are warnings other than the usual output.
7730      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7731      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7732      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7733        lt_cv_prog_compiler_pic_works=yes
7734      fi
7735    fi
7736    $rm conftest*
7737
7738 fi
7739 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7740 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7741
7742 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7743     case $lt_prog_compiler_pic in
7744      "" | " "*) ;;
7745      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7746      esac
7747 else
7748     lt_prog_compiler_pic=
7749      lt_prog_compiler_can_build_shared=no
7750 fi
7751
7752 fi
7753 case $host_os in
7754   # For platforms which do not support PIC, -DPIC is meaningless:
7755   *djgpp*)
7756     lt_prog_compiler_pic=
7757     ;;
7758   *)
7759     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7760     ;;
7761 esac
7762
7763 #
7764 # Check to make sure the static flag actually works.
7765 #
7766 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7767 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7768 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7769 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   lt_cv_prog_compiler_static_works=no
7773    save_LDFLAGS="$LDFLAGS"
7774    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7775    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7776    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7777      # The linker can only warn and ignore the option if not recognized
7778      # So say no if there are warnings
7779      if test -s conftest.err; then
7780        # Append any errors to the config.log.
7781        cat conftest.err 1>&5
7782        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7783        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784        if diff conftest.exp conftest.er2 >/dev/null; then
7785          lt_cv_prog_compiler_static_works=yes
7786        fi
7787      else
7788        lt_cv_prog_compiler_static_works=yes
7789      fi
7790    fi
7791    $rm -r conftest*
7792    LDFLAGS="$save_LDFLAGS"
7793
7794 fi
7795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7796 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7797
7798 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7799     :
7800 else
7801     lt_prog_compiler_static=
7802 fi
7803
7804
7805 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7807 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   lt_cv_prog_compiler_c_o=no
7811    $rm -r conftest 2>/dev/null
7812    mkdir conftest
7813    cd conftest
7814    mkdir out
7815    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7816
7817    lt_compiler_flag="-o out/conftest2.$ac_objext"
7818    # Insert the option either (1) after the last *FLAGS variable, or
7819    # (2) before a word containing "conftest.", or (3) at the end.
7820    # Note that $ac_compile itself does not contain backslashes and begins
7821    # with a dollar sign (not a hyphen), so the echo should work correctly.
7822    lt_compile=`echo "$ac_compile" | $SED \
7823    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7824    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7825    -e 's:$: $lt_compiler_flag:'`
7826    (eval echo "\"\$as_me:7826: $lt_compile\"" >&5)
7827    (eval "$lt_compile" 2>out/conftest.err)
7828    ac_status=$?
7829    cat out/conftest.err >&5
7830    echo "$as_me:7830: \$? = $ac_status" >&5
7831    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7832    then
7833      # The compiler can only warn and ignore the option if not recognized
7834      # So say no if there are warnings
7835      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7836      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7837      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7838        lt_cv_prog_compiler_c_o=yes
7839      fi
7840    fi
7841    chmod u+w . 2>&5
7842    $rm conftest*
7843    # SGI C++ compiler will create directory out/ii_files/ for
7844    # template instantiation
7845    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7846    $rm out/* && rmdir out
7847    cd ..
7848    rmdir conftest
7849    $rm conftest*
7850
7851 fi
7852 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7853 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7854
7855
7856 hard_links="nottested"
7857 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7858   # do not overwrite the value of need_locks provided by the user
7859   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7860 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7861   hard_links=yes
7862   $rm conftest*
7863   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7864   touch conftest.a
7865   ln conftest.a conftest.b 2>&5 || hard_links=no
7866   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867   { echo "$as_me:$LINENO: result: $hard_links" >&5
7868 echo "${ECHO_T}$hard_links" >&6; }
7869   if test "$hard_links" = no; then
7870     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7871 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7872     need_locks=warn
7873   fi
7874 else
7875   need_locks=no
7876 fi
7877
7878 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7880
7881   runpath_var=
7882   allow_undefined_flag=
7883   enable_shared_with_static_runtimes=no
7884   archive_cmds=
7885   archive_expsym_cmds=
7886   old_archive_From_new_cmds=
7887   old_archive_from_expsyms_cmds=
7888   export_dynamic_flag_spec=
7889   whole_archive_flag_spec=
7890   thread_safe_flag_spec=
7891   hardcode_libdir_flag_spec=
7892   hardcode_libdir_flag_spec_ld=
7893   hardcode_libdir_separator=
7894   hardcode_direct=no
7895   hardcode_minus_L=no
7896   hardcode_shlibpath_var=unsupported
7897   link_all_deplibs=unknown
7898   hardcode_automatic=no
7899   module_cmds=
7900   module_expsym_cmds=
7901   always_export_symbols=no
7902   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7903   # include_expsyms should be a list of space-separated symbols to be *always*
7904   # included in the symbol list
7905   include_expsyms=
7906   # exclude_expsyms can be an extended regexp of symbols to exclude
7907   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7908   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7909   # as well as any symbol that contains `d'.
7910   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7911   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7912   # platforms (ab)use it in PIC code, but their linkers get confused if
7913   # the symbol is explicitly referenced.  Since portable code cannot
7914   # rely on this symbol name, it's probably fine to never include it in
7915   # preloaded symbol tables.
7916   # Exclude shared library initialization/finalization symbols.
7917   extract_expsyms_cmds=
7918   # Just being paranoid about ensuring that cc_basename is set.
7919   for cc_temp in $compiler""; do
7920   case $cc_temp in
7921     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7922     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7923     \-*) ;;
7924     *) break;;
7925   esac
7926 done
7927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7928
7929   case $host_os in
7930   cygwin* | mingw* | pw32*)
7931     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7932     # When not using gcc, we currently assume that we are using
7933     # Microsoft Visual C++.
7934     if test "$GCC" != yes; then
7935       with_gnu_ld=no
7936     fi
7937     ;;
7938   interix*)
7939     # we just hope/assume this is gcc and not c89 (= MSVC++)
7940     with_gnu_ld=yes
7941     ;;
7942   openbsd*)
7943     with_gnu_ld=no
7944     ;;
7945   esac
7946
7947   ld_shlibs=yes
7948   if test "$with_gnu_ld" = yes; then
7949     # If archive_cmds runs LD, not CC, wlarc should be empty
7950     wlarc='${wl}'
7951
7952     # Set some defaults for GNU ld with shared library support. These
7953     # are reset later if shared libraries are not supported. Putting them
7954     # here allows them to be overridden if necessary.
7955     runpath_var=LD_RUN_PATH
7956     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7957     export_dynamic_flag_spec='${wl}--export-dynamic'
7958     # ancient GNU ld didn't support --whole-archive et. al.
7959     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7960         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7961       else
7962         whole_archive_flag_spec=
7963     fi
7964     supports_anon_versioning=no
7965     case `$LD -v 2>/dev/null` in
7966       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7967       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7968       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7969       *\ 2.11.*) ;; # other 2.11 versions
7970       *) supports_anon_versioning=yes ;;
7971     esac
7972
7973     # See if GNU ld supports shared libraries.
7974     case $host_os in
7975     aix[3-9]*)
7976       # On AIX/PPC, the GNU linker is very broken
7977       if test "$host_cpu" != ia64; then
7978         ld_shlibs=no
7979         cat <<EOF 1>&2
7980
7981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7982 *** to be unable to reliably create shared libraries on AIX.
7983 *** Therefore, libtool is disabling shared libraries support.  If you
7984 *** really care for shared libraries, you may want to modify your PATH
7985 *** so that a non-GNU linker is found, and then restart.
7986
7987 EOF
7988       fi
7989       ;;
7990
7991     amigaos*)
7992       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)'
7993       hardcode_libdir_flag_spec='-L$libdir'
7994       hardcode_minus_L=yes
7995
7996       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7997       # that the semantics of dynamic libraries on AmigaOS, at least up
7998       # to version 4, is to share data among multiple programs linked
7999       # with the same dynamic library.  Since this doesn't match the
8000       # behavior of shared libraries on other platforms, we can't use
8001       # them.
8002       ld_shlibs=no
8003       ;;
8004
8005     beos*)
8006       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007         allow_undefined_flag=unsupported
8008         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8009         # support --undefined.  This deserves some investigation.  FIXME
8010         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011       else
8012         ld_shlibs=no
8013       fi
8014       ;;
8015
8016     cygwin* | mingw* | pw32*)
8017       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8018       # as there is no search path for DLLs.
8019       hardcode_libdir_flag_spec='-L$libdir'
8020       allow_undefined_flag=unsupported
8021       always_export_symbols=no
8022       enable_shared_with_static_runtimes=yes
8023       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8024
8025       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8026         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8027         # If the export-symbols file already is a .def file (1st line
8028         # is EXPORTS), use it as is; otherwise, prepend...
8029         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8030           cp $export_symbols $output_objdir/$soname.def;
8031         else
8032           echo EXPORTS > $output_objdir/$soname.def;
8033           cat $export_symbols >> $output_objdir/$soname.def;
8034         fi~
8035         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8036       else
8037         ld_shlibs=no
8038       fi
8039       ;;
8040
8041     interix[3-9]*)
8042       hardcode_direct=no
8043       hardcode_shlibpath_var=no
8044       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8045       export_dynamic_flag_spec='${wl}-E'
8046       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8047       # Instead, shared libraries are loaded at an image base (0x10000000 by
8048       # default) and relocated if they conflict, which is a slow very memory
8049       # consuming and fragmenting process.  To avoid this, we pick a random,
8050       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8051       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8052       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8053       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'
8054       ;;
8055
8056     gnu* | linux* | k*bsd*-gnu)
8057       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8058         tmp_addflag=
8059         case $cc_basename,$host_cpu in
8060         pgcc*)                          # Portland Group C compiler
8061           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'
8062           tmp_addflag=' $pic_flag'
8063           ;;
8064         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8065           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'
8066           tmp_addflag=' $pic_flag -Mnomain' ;;
8067         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8068           tmp_addflag=' -i_dynamic' ;;
8069         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8070           tmp_addflag=' -i_dynamic -nofor_main' ;;
8071         ifc* | ifort*)                  # Intel Fortran compiler
8072           tmp_addflag=' -nofor_main' ;;
8073         esac
8074         case `$CC -V 2>&1 | sed 5q` in
8075         *Sun\ C*)                       # Sun C 5.9
8076           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'
8077           tmp_sharedflag='-G' ;;
8078         *Sun\ F*)                       # Sun Fortran 8.3
8079           tmp_sharedflag='-G' ;;
8080         *)
8081           tmp_sharedflag='-shared' ;;
8082         esac
8083         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8084
8085         if test $supports_anon_versioning = yes; then
8086           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8087   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8088   $echo "local: *; };" >> $output_objdir/$libname.ver~
8089           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8090         fi
8091         link_all_deplibs=no
8092       else
8093         ld_shlibs=no
8094       fi
8095       ;;
8096
8097     netbsd* | netbsdelf*-gnu)
8098       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8099         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8100         wlarc=
8101       else
8102         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8104       fi
8105       ;;
8106
8107     solaris*)
8108       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8109         ld_shlibs=no
8110         cat <<EOF 1>&2
8111
8112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8113 *** create shared libraries on Solaris systems.  Therefore, libtool
8114 *** is disabling shared libraries support.  We urge you to upgrade GNU
8115 *** binutils to release 2.9.1 or newer.  Another option is to modify
8116 *** your PATH or compiler configuration so that the native linker is
8117 *** used, and then restart.
8118
8119 EOF
8120       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8121         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8123       else
8124         ld_shlibs=no
8125       fi
8126       ;;
8127
8128     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8129       case `$LD -v 2>&1` in
8130         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8131         ld_shlibs=no
8132         cat <<_LT_EOF 1>&2
8133
8134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8135 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8136 *** is disabling shared libraries support.  We urge you to upgrade GNU
8137 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8138 *** your PATH or compiler configuration so that the native linker is
8139 *** used, and then restart.
8140
8141 _LT_EOF
8142         ;;
8143         *)
8144           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8146             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8147             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8148           else
8149             ld_shlibs=no
8150           fi
8151         ;;
8152       esac
8153       ;;
8154
8155     sunos4*)
8156       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8157       wlarc=
8158       hardcode_direct=yes
8159       hardcode_shlibpath_var=no
8160       ;;
8161
8162     *)
8163       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8164         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8166       else
8167         ld_shlibs=no
8168       fi
8169       ;;
8170     esac
8171
8172     if test "$ld_shlibs" = no; then
8173       runpath_var=
8174       hardcode_libdir_flag_spec=
8175       export_dynamic_flag_spec=
8176       whole_archive_flag_spec=
8177     fi
8178   else
8179     # PORTME fill in a description of your system's linker (not GNU ld)
8180     case $host_os in
8181     aix3*)
8182       allow_undefined_flag=unsupported
8183       always_export_symbols=yes
8184       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'
8185       # Note: this linker hardcodes the directories in LIBPATH if there
8186       # are no directories specified by -L.
8187       hardcode_minus_L=yes
8188       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8189         # Neither direct hardcoding nor static linking is supported with a
8190         # broken collect2.
8191         hardcode_direct=unsupported
8192       fi
8193       ;;
8194
8195     aix[4-9]*)
8196       if test "$host_cpu" = ia64; then
8197         # On IA64, the linker does run time linking by default, so we don't
8198         # have to do anything special.
8199         aix_use_runtimelinking=no
8200         exp_sym_flag='-Bexport'
8201         no_entry_flag=""
8202       else
8203         # If we're using GNU nm, then we don't want the "-C" option.
8204         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8205         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8206           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'
8207         else
8208           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'
8209         fi
8210         aix_use_runtimelinking=no
8211
8212         # Test if we are trying to use run time linking or normal
8213         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8214         # need to do runtime linking.
8215         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8216           for ld_flag in $LDFLAGS; do
8217           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8218             aix_use_runtimelinking=yes
8219             break
8220           fi
8221           done
8222           ;;
8223         esac
8224
8225         exp_sym_flag='-bexport'
8226         no_entry_flag='-bnoentry'
8227       fi
8228
8229       # When large executables or shared objects are built, AIX ld can
8230       # have problems creating the table of contents.  If linking a library
8231       # or program results in "error TOC overflow" add -mminimal-toc to
8232       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8233       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8234
8235       archive_cmds=''
8236       hardcode_direct=yes
8237       hardcode_libdir_separator=':'
8238       link_all_deplibs=yes
8239
8240       if test "$GCC" = yes; then
8241         case $host_os in aix4.[012]|aix4.[012].*)
8242         # We only want to do this on AIX 4.2 and lower, the check
8243         # below for broken collect2 doesn't work under 4.3+
8244           collect2name=`${CC} -print-prog-name=collect2`
8245           if test -f "$collect2name" && \
8246            strings "$collect2name" | grep resolve_lib_name >/dev/null
8247           then
8248           # We have reworked collect2
8249           :
8250           else
8251           # We have old collect2
8252           hardcode_direct=unsupported
8253           # It fails to find uninstalled libraries when the uninstalled
8254           # path is not listed in the libpath.  Setting hardcode_minus_L
8255           # to unsupported forces relinking
8256           hardcode_minus_L=yes
8257           hardcode_libdir_flag_spec='-L$libdir'
8258           hardcode_libdir_separator=
8259           fi
8260           ;;
8261         esac
8262         shared_flag='-shared'
8263         if test "$aix_use_runtimelinking" = yes; then
8264           shared_flag="$shared_flag "'${wl}-G'
8265         fi
8266       else
8267         # not using gcc
8268         if test "$host_cpu" = ia64; then
8269         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8270         # chokes on -Wl,-G. The following line is correct:
8271           shared_flag='-G'
8272         else
8273           if test "$aix_use_runtimelinking" = yes; then
8274             shared_flag='${wl}-G'
8275           else
8276             shared_flag='${wl}-bM:SRE'
8277           fi
8278         fi
8279       fi
8280
8281       # It seems that -bexpall does not export symbols beginning with
8282       # underscore (_), so it is better to generate a list of symbols to export.
8283       always_export_symbols=yes
8284       if test "$aix_use_runtimelinking" = yes; then
8285         # Warning - without using the other runtime loading flags (-brtl),
8286         # -berok will link without error, but may produce a broken library.
8287         allow_undefined_flag='-berok'
8288        # Determine the default libpath from the value encoded in an empty executable.
8289        cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295
8296 int
8297 main ()
8298 {
8299
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_link") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest$ac_exeext &&
8321        $as_test_x conftest$ac_exeext; then
8322
8323 lt_aix_libpath_sed='
8324     /Import File Strings/,/^$/ {
8325         /^0/ {
8326             s/^0  *\(.*\)$/\1/
8327             p
8328         }
8329     }'
8330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8331 # Check for a 64-bit object if we didn't find anything.
8332 if test -z "$aix_libpath"; then
8333   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8334 fi
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339
8340 fi
8341
8342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8343       conftest$ac_exeext conftest.$ac_ext
8344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8345
8346        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8347         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"
8348        else
8349         if test "$host_cpu" = ia64; then
8350           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8351           allow_undefined_flag="-z nodefs"
8352           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"
8353         else
8354          # Determine the default libpath from the value encoded in an empty executable.
8355          cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361
8362 int
8363 main ()
8364 {
8365
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8372 case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_link") 2>conftest.er1
8378   ac_status=$?
8379   grep -v '^ *+' conftest.er1 >conftest.err
8380   rm -f conftest.er1
8381   cat conftest.err >&5
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } && {
8384          test -z "$ac_c_werror_flag" ||
8385          test ! -s conftest.err
8386        } && test -s conftest$ac_exeext &&
8387        $as_test_x conftest$ac_exeext; then
8388
8389 lt_aix_libpath_sed='
8390     /Import File Strings/,/^$/ {
8391         /^0/ {
8392             s/^0  *\(.*\)$/\1/
8393             p
8394         }
8395     }'
8396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 # Check for a 64-bit object if we didn't find anything.
8398 if test -z "$aix_libpath"; then
8399   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8400 fi
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405
8406 fi
8407
8408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8409       conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8411
8412          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413           # Warning - without using the other run time loading flags,
8414           # -berok will link without error, but may produce a broken library.
8415           no_undefined_flag=' ${wl}-bernotok'
8416           allow_undefined_flag=' ${wl}-berok'
8417           # Exported symbols can be pulled into shared objects from archives
8418           whole_archive_flag_spec='$convenience'
8419           archive_cmds_need_lc=yes
8420           # This is similar to how AIX traditionally builds its shared libraries.
8421           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'
8422         fi
8423       fi
8424       ;;
8425
8426     amigaos*)
8427       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)'
8428       hardcode_libdir_flag_spec='-L$libdir'
8429       hardcode_minus_L=yes
8430       # see comment about different semantics on the GNU ld section
8431       ld_shlibs=no
8432       ;;
8433
8434     bsdi[45]*)
8435       export_dynamic_flag_spec=-rdynamic
8436       ;;
8437
8438     cygwin* | mingw* | pw32*)
8439       # When not using gcc, we currently assume that we are using
8440       # Microsoft Visual C++.
8441       # hardcode_libdir_flag_spec is actually meaningless, as there is
8442       # no search path for DLLs.
8443       hardcode_libdir_flag_spec=' '
8444       allow_undefined_flag=unsupported
8445       # Tell ltmain to make .lib files, not .a files.
8446       libext=lib
8447       # Tell ltmain to make .dll files, not .so files.
8448       shrext_cmds=".dll"
8449       # FIXME: Setting linknames here is a bad hack.
8450       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8451       # The linker will automatically build a .lib file if we build a DLL.
8452       old_archive_From_new_cmds='true'
8453       # FIXME: Should let the user specify the lib program.
8454       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8455       fix_srcfile_path='`cygpath -w "$srcfile"`'
8456       enable_shared_with_static_runtimes=yes
8457       ;;
8458
8459     darwin* | rhapsody*)
8460       case $host_os in
8461         rhapsody* | darwin1.[012])
8462          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8463          ;;
8464        *) # Darwin 1.3 on
8465          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8466            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8467          else
8468            case ${MACOSX_DEPLOYMENT_TARGET} in
8469              10.[012])
8470                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8471                ;;
8472              10.*)
8473                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8474                ;;
8475            esac
8476          fi
8477          ;;
8478       esac
8479       archive_cmds_need_lc=no
8480       hardcode_direct=no
8481       hardcode_automatic=yes
8482       hardcode_shlibpath_var=unsupported
8483       whole_archive_flag_spec=''
8484       link_all_deplibs=yes
8485     if test "$GCC" = yes ; then
8486         output_verbose_link_cmd='echo'
8487         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8488         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8489         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8490         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8491     else
8492       case $cc_basename in
8493         xlc*)
8494          output_verbose_link_cmd='echo'
8495          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8496          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8497           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8498          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}'
8499           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}'
8500           ;;
8501        *)
8502          ld_shlibs=no
8503           ;;
8504       esac
8505     fi
8506       ;;
8507
8508     dgux*)
8509       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8510       hardcode_libdir_flag_spec='-L$libdir'
8511       hardcode_shlibpath_var=no
8512       ;;
8513
8514     freebsd1*)
8515       ld_shlibs=no
8516       ;;
8517
8518     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8519     # support.  Future versions do this automatically, but an explicit c++rt0.o
8520     # does not break anything, and helps significantly (at the cost of a little
8521     # extra space).
8522     freebsd2.2*)
8523       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8524       hardcode_libdir_flag_spec='-R$libdir'
8525       hardcode_direct=yes
8526       hardcode_shlibpath_var=no
8527       ;;
8528
8529     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8530     freebsd2*)
8531       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8532       hardcode_direct=yes
8533       hardcode_minus_L=yes
8534       hardcode_shlibpath_var=no
8535       ;;
8536
8537     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8538     freebsd* | dragonfly*)
8539       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8540       hardcode_libdir_flag_spec='-R$libdir'
8541       hardcode_direct=yes
8542       hardcode_shlibpath_var=no
8543       ;;
8544
8545     hpux9*)
8546       if test "$GCC" = yes; then
8547         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'
8548       else
8549         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'
8550       fi
8551       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8552       hardcode_libdir_separator=:
8553       hardcode_direct=yes
8554
8555       # hardcode_minus_L: Not really in the search PATH,
8556       # but as the default location of the library.
8557       hardcode_minus_L=yes
8558       export_dynamic_flag_spec='${wl}-E'
8559       ;;
8560
8561     hpux10*)
8562       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8563         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8564       else
8565         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8566       fi
8567       if test "$with_gnu_ld" = no; then
8568         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8569         hardcode_libdir_separator=:
8570
8571         hardcode_direct=yes
8572         export_dynamic_flag_spec='${wl}-E'
8573
8574         # hardcode_minus_L: Not really in the search PATH,
8575         # but as the default location of the library.
8576         hardcode_minus_L=yes
8577       fi
8578       ;;
8579
8580     hpux11*)
8581       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8582         case $host_cpu in
8583         hppa*64*)
8584           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8585           ;;
8586         ia64*)
8587           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8588           ;;
8589         *)
8590           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8591           ;;
8592         esac
8593       else
8594         case $host_cpu in
8595         hppa*64*)
8596           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597           ;;
8598         ia64*)
8599           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8600           ;;
8601         *)
8602           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8603           ;;
8604         esac
8605       fi
8606       if test "$with_gnu_ld" = no; then
8607         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8608         hardcode_libdir_separator=:
8609
8610         case $host_cpu in
8611         hppa*64*|ia64*)
8612           hardcode_libdir_flag_spec_ld='+b $libdir'
8613           hardcode_direct=no
8614           hardcode_shlibpath_var=no
8615           ;;
8616         *)
8617           hardcode_direct=yes
8618           export_dynamic_flag_spec='${wl}-E'
8619
8620           # hardcode_minus_L: Not really in the search PATH,
8621           # but as the default location of the library.
8622           hardcode_minus_L=yes
8623           ;;
8624         esac
8625       fi
8626       ;;
8627
8628     irix5* | irix6* | nonstopux*)
8629       if test "$GCC" = yes; then
8630         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'
8631       else
8632         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'
8633         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8634       fi
8635       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636       hardcode_libdir_separator=:
8637       link_all_deplibs=yes
8638       ;;
8639
8640     netbsd* | netbsdelf*-gnu)
8641       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8642         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8643       else
8644         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8645       fi
8646       hardcode_libdir_flag_spec='-R$libdir'
8647       hardcode_direct=yes
8648       hardcode_shlibpath_var=no
8649       ;;
8650
8651     newsos6)
8652       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653       hardcode_direct=yes
8654       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655       hardcode_libdir_separator=:
8656       hardcode_shlibpath_var=no
8657       ;;
8658
8659     openbsd*)
8660       if test -f /usr/libexec/ld.so; then
8661         hardcode_direct=yes
8662         hardcode_shlibpath_var=no
8663         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8664           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8666           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667           export_dynamic_flag_spec='${wl}-E'
8668         else
8669           case $host_os in
8670            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8671              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8672              hardcode_libdir_flag_spec='-R$libdir'
8673              ;;
8674            *)
8675              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8676              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8677              ;;
8678           esac
8679         fi
8680       else
8681         ld_shlibs=no
8682       fi
8683       ;;
8684
8685     os2*)
8686       hardcode_libdir_flag_spec='-L$libdir'
8687       hardcode_minus_L=yes
8688       allow_undefined_flag=unsupported
8689       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'
8690       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8691       ;;
8692
8693     osf3*)
8694       if test "$GCC" = yes; then
8695         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696         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'
8697       else
8698         allow_undefined_flag=' -expect_unresolved \*'
8699         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'
8700       fi
8701       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702       hardcode_libdir_separator=:
8703       ;;
8704
8705     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8706       if test "$GCC" = yes; then
8707         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8708         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'
8709         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710       else
8711         allow_undefined_flag=' -expect_unresolved \*'
8712         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'
8713         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8714         $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'
8715
8716         # Both c and cxx compiler support -rpath directly
8717         hardcode_libdir_flag_spec='-rpath $libdir'
8718       fi
8719       hardcode_libdir_separator=:
8720       ;;
8721
8722     solaris*)
8723       no_undefined_flag=' -z text'
8724       if test "$GCC" = yes; then
8725         wlarc='${wl}'
8726         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8728           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8729       else
8730         wlarc=''
8731         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8733         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8734       fi
8735       hardcode_libdir_flag_spec='-R$libdir'
8736       hardcode_shlibpath_var=no
8737       case $host_os in
8738       solaris2.[0-5] | solaris2.[0-5].*) ;;
8739       *)
8740         # The compiler driver will combine and reorder linker options,
8741         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8742         # but is careful enough not to reorder.
8743         # Supported since Solaris 2.6 (maybe 2.5.1?)
8744         if test "$GCC" = yes; then
8745           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8746         else
8747           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8748         fi
8749         ;;
8750       esac
8751       link_all_deplibs=yes
8752       ;;
8753
8754     sunos4*)
8755       if test "x$host_vendor" = xsequent; then
8756         # Use $CC to link under sequent, because it throws in some extra .o
8757         # files that make .init and .fini sections work.
8758         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8759       else
8760         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8761       fi
8762       hardcode_libdir_flag_spec='-L$libdir'
8763       hardcode_direct=yes
8764       hardcode_minus_L=yes
8765       hardcode_shlibpath_var=no
8766       ;;
8767
8768     sysv4)
8769       case $host_vendor in
8770         sni)
8771           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772           hardcode_direct=yes # is this really true???
8773         ;;
8774         siemens)
8775           ## LD is ld it makes a PLAMLIB
8776           ## CC just makes a GrossModule.
8777           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8778           reload_cmds='$CC -r -o $output$reload_objs'
8779           hardcode_direct=no
8780         ;;
8781         motorola)
8782           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8784         ;;
8785       esac
8786       runpath_var='LD_RUN_PATH'
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     sysv4.3*)
8791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792       hardcode_shlibpath_var=no
8793       export_dynamic_flag_spec='-Bexport'
8794       ;;
8795
8796     sysv4*MP*)
8797       if test -d /usr/nec; then
8798         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799         hardcode_shlibpath_var=no
8800         runpath_var=LD_RUN_PATH
8801         hardcode_runpath_var=yes
8802         ld_shlibs=yes
8803       fi
8804       ;;
8805
8806     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8807       no_undefined_flag='${wl}-z,text'
8808       archive_cmds_need_lc=no
8809       hardcode_shlibpath_var=no
8810       runpath_var='LD_RUN_PATH'
8811
8812       if test "$GCC" = yes; then
8813         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815       else
8816         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818       fi
8819       ;;
8820
8821     sysv5* | sco3.2v5* | sco5v6*)
8822       # Note: We can NOT use -z defs as we might desire, because we do not
8823       # link with -lc, and that would cause any symbols used from libc to
8824       # always be unresolved, which means just about no library would
8825       # ever link correctly.  If we're not using GNU ld we use -z text
8826       # though, which does catch some bad symbols but isn't as heavy-handed
8827       # as -z defs.
8828       no_undefined_flag='${wl}-z,text'
8829       allow_undefined_flag='${wl}-z,nodefs'
8830       archive_cmds_need_lc=no
8831       hardcode_shlibpath_var=no
8832       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8833       hardcode_libdir_separator=':'
8834       link_all_deplibs=yes
8835       export_dynamic_flag_spec='${wl}-Bexport'
8836       runpath_var='LD_RUN_PATH'
8837
8838       if test "$GCC" = yes; then
8839         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841       else
8842         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844       fi
8845       ;;
8846
8847     uts4*)
8848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849       hardcode_libdir_flag_spec='-L$libdir'
8850       hardcode_shlibpath_var=no
8851       ;;
8852
8853     *)
8854       ld_shlibs=no
8855       ;;
8856     esac
8857   fi
8858
8859 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8860 echo "${ECHO_T}$ld_shlibs" >&6; }
8861 test "$ld_shlibs" = no && can_build_shared=no
8862
8863 #
8864 # Do we need to explicitly link libc?
8865 #
8866 case "x$archive_cmds_need_lc" in
8867 x|xyes)
8868   # Assume -lc should be added
8869   archive_cmds_need_lc=yes
8870
8871   if test "$enable_shared" = yes && test "$GCC" = yes; then
8872     case $archive_cmds in
8873     *'~'*)
8874       # FIXME: we may have to deal with multi-command sequences.
8875       ;;
8876     '$CC '*)
8877       # Test whether the compiler implicitly links with -lc since on some
8878       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8879       # to ld, don't add -lc before -lgcc.
8880       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8881 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8882       $rm conftest*
8883       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884
8885       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886   (eval $ac_compile) 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } 2>conftest.err; then
8890         soname=conftest
8891         lib=conftest
8892         libobjs=conftest.$ac_objext
8893         deplibs=
8894         wl=$lt_prog_compiler_wl
8895         pic_flag=$lt_prog_compiler_pic
8896         compiler_flags=-v
8897         linker_flags=-v
8898         verstring=
8899         output_objdir=.
8900         libname=conftest
8901         lt_save_allow_undefined_flag=$allow_undefined_flag
8902         allow_undefined_flag=
8903         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8904   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }
8908         then
8909           archive_cmds_need_lc=no
8910         else
8911           archive_cmds_need_lc=yes
8912         fi
8913         allow_undefined_flag=$lt_save_allow_undefined_flag
8914       else
8915         cat conftest.err 1>&5
8916       fi
8917       $rm conftest*
8918       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8919 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8920       ;;
8921     esac
8922   fi
8923   ;;
8924 esac
8925
8926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8928 library_names_spec=
8929 libname_spec='lib$name'
8930 soname_spec=
8931 shrext_cmds=".so"
8932 postinstall_cmds=
8933 postuninstall_cmds=
8934 finish_cmds=
8935 finish_eval=
8936 shlibpath_var=
8937 shlibpath_overrides_runpath=unknown
8938 version_type=none
8939 dynamic_linker="$host_os ld.so"
8940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8941
8942 if test "$GCC" = yes; then
8943   case $host_os in
8944     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8945     *) lt_awk_arg="/^libraries:/" ;;
8946   esac
8947   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8949     # if the path contains ";" then we assume it to be the separator
8950     # otherwise default to the standard path separator (i.e. ":") - it is
8951     # assumed that no part of a normal pathname contains ";" but that should
8952     # okay in the real world where ";" in dirpaths is itself problematic.
8953     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8954   else
8955     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8956   fi
8957   # Ok, now we have the path, separated by spaces, we can step through it
8958   # and add multilib dir if necessary.
8959   lt_tmp_lt_search_path_spec=
8960   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8961   for lt_sys_path in $lt_search_path_spec; do
8962     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8963       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8964     else
8965       test -d "$lt_sys_path" && \
8966         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8967     fi
8968   done
8969   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8970 BEGIN {RS=" "; FS="/|\n";} {
8971   lt_foo="";
8972   lt_count=0;
8973   for (lt_i = NF; lt_i > 0; lt_i--) {
8974     if ($lt_i != "" && $lt_i != ".") {
8975       if ($lt_i == "..") {
8976         lt_count++;
8977       } else {
8978         if (lt_count == 0) {
8979           lt_foo="/" $lt_i lt_foo;
8980         } else {
8981           lt_count--;
8982         }
8983       }
8984     }
8985   }
8986   if (lt_foo != "") { lt_freq[lt_foo]++; }
8987   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8988 }'`
8989   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8990 else
8991   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8992 fi
8993 need_lib_prefix=unknown
8994 hardcode_into_libs=no
8995
8996 # when you set need_version to no, make sure it does not cause -set_version
8997 # flags to be left without arguments
8998 need_version=unknown
8999
9000 case $host_os in
9001 aix3*)
9002   version_type=linux
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9004   shlibpath_var=LIBPATH
9005
9006   # AIX 3 has no versioning support, so we append a major version to the name.
9007   soname_spec='${libname}${release}${shared_ext}$major'
9008   ;;
9009
9010 aix[4-9]*)
9011   version_type=linux
9012   need_lib_prefix=no
9013   need_version=no
9014   hardcode_into_libs=yes
9015   if test "$host_cpu" = ia64; then
9016     # AIX 5 supports IA64
9017     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9018     shlibpath_var=LD_LIBRARY_PATH
9019   else
9020     # With GCC up to 2.95.x, collect2 would create an import file
9021     # for dependence libraries.  The import file would start with
9022     # the line `#! .'.  This would cause the generated library to
9023     # depend on `.', always an invalid library.  This was fixed in
9024     # development snapshots of GCC prior to 3.0.
9025     case $host_os in
9026       aix4 | aix4.[01] | aix4.[01].*)
9027       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9028            echo ' yes '
9029            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9030         :
9031       else
9032         can_build_shared=no
9033       fi
9034       ;;
9035     esac
9036     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9037     # soname into executable. Probably we can add versioning support to
9038     # collect2, so additional links can be useful in future.
9039     if test "$aix_use_runtimelinking" = yes; then
9040       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9041       # instead of lib<name>.a to let people know that these are not
9042       # typical AIX shared libraries.
9043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044     else
9045       # We preserve .a as extension for shared libraries through AIX4.2
9046       # and later when we are not doing run time linking.
9047       library_names_spec='${libname}${release}.a $libname.a'
9048       soname_spec='${libname}${release}${shared_ext}$major'
9049     fi
9050     shlibpath_var=LIBPATH
9051   fi
9052   ;;
9053
9054 amigaos*)
9055   library_names_spec='$libname.ixlibrary $libname.a'
9056   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9057   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'
9058   ;;
9059
9060 beos*)
9061   library_names_spec='${libname}${shared_ext}'
9062   dynamic_linker="$host_os ld.so"
9063   shlibpath_var=LIBRARY_PATH
9064   ;;
9065
9066 bsdi[45]*)
9067   version_type=linux
9068   need_version=no
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9074   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9075   # the default ld.so.conf also contains /usr/contrib/lib and
9076   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9077   # libtool to hard-code these into programs
9078   ;;
9079
9080 cygwin* | mingw* | pw32*)
9081   version_type=windows
9082   shrext_cmds=".dll"
9083   need_version=no
9084   need_lib_prefix=no
9085
9086   case $GCC,$host_os in
9087   yes,cygwin* | yes,mingw* | yes,pw32*)
9088     library_names_spec='$libname.dll.a'
9089     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9090     postinstall_cmds='base_file=`basename \${file}`~
9091       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9092       dldir=$destdir/`dirname \$dlpath`~
9093       test -d \$dldir || mkdir -p \$dldir~
9094       $install_prog $dir/$dlname \$dldir/$dlname~
9095       chmod a+x \$dldir/$dlname'
9096     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9097       dlpath=$dir/\$dldll~
9098        $rm \$dlpath'
9099     shlibpath_overrides_runpath=yes
9100
9101     case $host_os in
9102     cygwin*)
9103       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9104       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9105       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9106       ;;
9107     mingw*)
9108       # MinGW DLLs use traditional 'lib' prefix
9109       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9110       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9111       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9112         # It is most probably a Windows format PATH printed by
9113         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9114         # path with ; separators, and with drive letters. We can handle the
9115         # drive letters (cygwin fileutils understands them), so leave them,
9116         # especially as we might pass files found there to a mingw objdump,
9117         # which wouldn't understand a cygwinified path. Ahh.
9118         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9119       else
9120         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9121       fi
9122       ;;
9123     pw32*)
9124       # pw32 DLLs use 'pw' prefix rather than 'lib'
9125       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9126       ;;
9127     esac
9128     ;;
9129
9130   *)
9131     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9132     ;;
9133   esac
9134   dynamic_linker='Win32 ld.exe'
9135   # FIXME: first we should search . and the directory the executable is in
9136   shlibpath_var=PATH
9137   ;;
9138
9139 darwin* | rhapsody*)
9140   dynamic_linker="$host_os dyld"
9141   version_type=darwin
9142   need_lib_prefix=no
9143   need_version=no
9144   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9145   soname_spec='${libname}${release}${major}$shared_ext'
9146   shlibpath_overrides_runpath=yes
9147   shlibpath_var=DYLD_LIBRARY_PATH
9148   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9149
9150   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9152   ;;
9153
9154 dgux*)
9155   version_type=linux
9156   need_lib_prefix=no
9157   need_version=no
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9159   soname_spec='${libname}${release}${shared_ext}$major'
9160   shlibpath_var=LD_LIBRARY_PATH
9161   ;;
9162
9163 freebsd1*)
9164   dynamic_linker=no
9165   ;;
9166
9167 freebsd* | dragonfly*)
9168   # DragonFly does not have aout.  When/if they implement a new
9169   # versioning mechanism, adjust this.
9170   if test -x /usr/bin/objformat; then
9171     objformat=`/usr/bin/objformat`
9172   else
9173     case $host_os in
9174     freebsd[123]*) objformat=aout ;;
9175     *) objformat=elf ;;
9176     esac
9177   fi
9178   version_type=freebsd-$objformat
9179   case $version_type in
9180     freebsd-elf*)
9181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9182       need_version=no
9183       need_lib_prefix=no
9184       ;;
9185     freebsd-*)
9186       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9187       need_version=yes
9188       ;;
9189   esac
9190   shlibpath_var=LD_LIBRARY_PATH
9191   case $host_os in
9192   freebsd2*)
9193     shlibpath_overrides_runpath=yes
9194     ;;
9195   freebsd3.[01]* | freebsdelf3.[01]*)
9196     shlibpath_overrides_runpath=yes
9197     hardcode_into_libs=yes
9198     ;;
9199   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9200   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9201     shlibpath_overrides_runpath=no
9202     hardcode_into_libs=yes
9203     ;;
9204   *) # from 4.6 on, and DragonFly
9205     shlibpath_overrides_runpath=yes
9206     hardcode_into_libs=yes
9207     ;;
9208   esac
9209   ;;
9210
9211 gnu*)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   hardcode_into_libs=yes
9219   ;;
9220
9221 hpux9* | hpux10* | hpux11*)
9222   # Give a soname corresponding to the major version so that dld.sl refuses to
9223   # link against other versions.
9224   version_type=sunos
9225   need_lib_prefix=no
9226   need_version=no
9227   case $host_cpu in
9228   ia64*)
9229     shrext_cmds='.so'
9230     hardcode_into_libs=yes
9231     dynamic_linker="$host_os dld.so"
9232     shlibpath_var=LD_LIBRARY_PATH
9233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235     soname_spec='${libname}${release}${shared_ext}$major'
9236     if test "X$HPUX_IA64_MODE" = X32; then
9237       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9238     else
9239       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9240     fi
9241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9242     ;;
9243    hppa*64*)
9244      shrext_cmds='.sl'
9245      hardcode_into_libs=yes
9246      dynamic_linker="$host_os dld.sl"
9247      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9248      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250      soname_spec='${libname}${release}${shared_ext}$major'
9251      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9252      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9253      ;;
9254    *)
9255     shrext_cmds='.sl'
9256     dynamic_linker="$host_os dld.sl"
9257     shlibpath_var=SHLIB_PATH
9258     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260     soname_spec='${libname}${release}${shared_ext}$major'
9261     ;;
9262   esac
9263   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9264   postinstall_cmds='chmod 555 $lib'
9265   ;;
9266
9267 interix[3-9]*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9274   shlibpath_var=LD_LIBRARY_PATH
9275   shlibpath_overrides_runpath=no
9276   hardcode_into_libs=yes
9277   ;;
9278
9279 irix5* | irix6* | nonstopux*)
9280   case $host_os in
9281     nonstopux*) version_type=nonstopux ;;
9282     *)
9283         if test "$lt_cv_prog_gnu_ld" = yes; then
9284                 version_type=linux
9285         else
9286                 version_type=irix
9287         fi ;;
9288   esac
9289   need_lib_prefix=no
9290   need_version=no
9291   soname_spec='${libname}${release}${shared_ext}$major'
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9293   case $host_os in
9294   irix5* | nonstopux*)
9295     libsuff= shlibsuff=
9296     ;;
9297   *)
9298     case $LD in # libtool.m4 will add one of these switches to LD
9299     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9300       libsuff= shlibsuff= libmagic=32-bit;;
9301     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9302       libsuff=32 shlibsuff=N32 libmagic=N32;;
9303     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9304       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9305     *) libsuff= shlibsuff= libmagic=never-match;;
9306     esac
9307     ;;
9308   esac
9309   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9310   shlibpath_overrides_runpath=no
9311   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9312   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9313   hardcode_into_libs=yes
9314   ;;
9315
9316 # No shared lib support for Linux oldld, aout, or coff.
9317 linux*oldld* | linux*aout* | linux*coff*)
9318   dynamic_linker=no
9319   ;;
9320
9321 # This must be Linux ELF.
9322 linux* | k*bsd*-gnu)
9323   version_type=linux
9324   need_lib_prefix=no
9325   need_version=no
9326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327   soname_spec='${libname}${release}${shared_ext}$major'
9328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9329   shlibpath_var=LD_LIBRARY_PATH
9330   shlibpath_overrides_runpath=no
9331   # This implies no fast_install, which is unacceptable.
9332   # Some rework will be needed to allow for fast_install
9333   # before this can be enabled.
9334   hardcode_into_libs=yes
9335
9336   # Append ld.so.conf contents to the search path
9337   if test -f /etc/ld.so.conf; then
9338     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' ' '`
9339     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9340   fi
9341
9342   # We used to test for /lib/ld.so.1 and disable shared libraries on
9343   # powerpc, because MkLinux only supported shared libraries with the
9344   # GNU dynamic linker.  Since this was broken with cross compilers,
9345   # most powerpc-linux boxes support dynamic linking these days and
9346   # people can always --disable-shared, the test was removed, and we
9347   # assume the GNU/Linux dynamic linker is in use.
9348   dynamic_linker='GNU/Linux ld.so'
9349   ;;
9350
9351 netbsdelf*-gnu)
9352   version_type=linux
9353   need_lib_prefix=no
9354   need_version=no
9355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356   soname_spec='${libname}${release}${shared_ext}$major'
9357   shlibpath_var=LD_LIBRARY_PATH
9358   shlibpath_overrides_runpath=no
9359   hardcode_into_libs=yes
9360   dynamic_linker='NetBSD ld.elf_so'
9361   ;;
9362
9363 netbsd*)
9364   version_type=sunos
9365   need_lib_prefix=no
9366   need_version=no
9367   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9369     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9370     dynamic_linker='NetBSD (a.out) ld.so'
9371   else
9372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373     soname_spec='${libname}${release}${shared_ext}$major'
9374     dynamic_linker='NetBSD ld.elf_so'
9375   fi
9376   shlibpath_var=LD_LIBRARY_PATH
9377   shlibpath_overrides_runpath=yes
9378   hardcode_into_libs=yes
9379   ;;
9380
9381 newsos6)
9382   version_type=linux
9383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   shlibpath_overrides_runpath=yes
9386   ;;
9387
9388 nto-qnx*)
9389   version_type=linux
9390   need_lib_prefix=no
9391   need_version=no
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393   soname_spec='${libname}${release}${shared_ext}$major'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   shlibpath_overrides_runpath=yes
9396   ;;
9397
9398 openbsd*)
9399   version_type=sunos
9400   sys_lib_dlsearch_path_spec="/usr/lib"
9401   need_lib_prefix=no
9402   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9403   case $host_os in
9404     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9405     *)                         need_version=no  ;;
9406   esac
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409   shlibpath_var=LD_LIBRARY_PATH
9410   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9411     case $host_os in
9412       openbsd2.[89] | openbsd2.[89].*)
9413         shlibpath_overrides_runpath=no
9414         ;;
9415       *)
9416         shlibpath_overrides_runpath=yes
9417         ;;
9418       esac
9419   else
9420     shlibpath_overrides_runpath=yes
9421   fi
9422   ;;
9423
9424 os2*)
9425   libname_spec='$name'
9426   shrext_cmds=".dll"
9427   need_lib_prefix=no
9428   library_names_spec='$libname${shared_ext} $libname.a'
9429   dynamic_linker='OS/2 ld.exe'
9430   shlibpath_var=LIBPATH
9431   ;;
9432
9433 osf3* | osf4* | osf5*)
9434   version_type=osf
9435   need_lib_prefix=no
9436   need_version=no
9437   soname_spec='${libname}${release}${shared_ext}$major'
9438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439   shlibpath_var=LD_LIBRARY_PATH
9440   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9441   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9442   ;;
9443
9444 rdos*)
9445   dynamic_linker=no
9446   ;;
9447
9448 solaris*)
9449   version_type=linux
9450   need_lib_prefix=no
9451   need_version=no
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453   soname_spec='${libname}${release}${shared_ext}$major'
9454   shlibpath_var=LD_LIBRARY_PATH
9455   shlibpath_overrides_runpath=yes
9456   hardcode_into_libs=yes
9457   # ldd complains unless libraries are executable
9458   postinstall_cmds='chmod +x $lib'
9459   ;;
9460
9461 sunos4*)
9462   version_type=sunos
9463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9464   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9465   shlibpath_var=LD_LIBRARY_PATH
9466   shlibpath_overrides_runpath=yes
9467   if test "$with_gnu_ld" = yes; then
9468     need_lib_prefix=no
9469   fi
9470   need_version=yes
9471   ;;
9472
9473 sysv4 | sysv4.3*)
9474   version_type=linux
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476   soname_spec='${libname}${release}${shared_ext}$major'
9477   shlibpath_var=LD_LIBRARY_PATH
9478   case $host_vendor in
9479     sni)
9480       shlibpath_overrides_runpath=no
9481       need_lib_prefix=no
9482       export_dynamic_flag_spec='${wl}-Blargedynsym'
9483       runpath_var=LD_RUN_PATH
9484       ;;
9485     siemens)
9486       need_lib_prefix=no
9487       ;;
9488     motorola)
9489       need_lib_prefix=no
9490       need_version=no
9491       shlibpath_overrides_runpath=no
9492       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9493       ;;
9494   esac
9495   ;;
9496
9497 sysv4*MP*)
9498   if test -d /usr/nec ;then
9499     version_type=linux
9500     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9501     soname_spec='$libname${shared_ext}.$major'
9502     shlibpath_var=LD_LIBRARY_PATH
9503   fi
9504   ;;
9505
9506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9507   version_type=freebsd-elf
9508   need_lib_prefix=no
9509   need_version=no
9510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9511   soname_spec='${libname}${release}${shared_ext}$major'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   hardcode_into_libs=yes
9514   if test "$with_gnu_ld" = yes; then
9515     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9516     shlibpath_overrides_runpath=no
9517   else
9518     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9519     shlibpath_overrides_runpath=yes
9520     case $host_os in
9521       sco3.2v5*)
9522         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9523         ;;
9524     esac
9525   fi
9526   sys_lib_dlsearch_path_spec='/usr/lib'
9527   ;;
9528
9529 uts4*)
9530   version_type=linux
9531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532   soname_spec='${libname}${release}${shared_ext}$major'
9533   shlibpath_var=LD_LIBRARY_PATH
9534   ;;
9535
9536 *)
9537   dynamic_linker=no
9538   ;;
9539 esac
9540 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9541 echo "${ECHO_T}$dynamic_linker" >&6; }
9542 test "$dynamic_linker" = no && can_build_shared=no
9543
9544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9548 fi
9549
9550 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9551 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9555 fi
9556
9557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9558
9559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9560 if test "$GCC" = yes; then
9561   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9562 fi
9563
9564 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9565 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9566 hardcode_action=
9567 if test -n "$hardcode_libdir_flag_spec" || \
9568    test -n "$runpath_var" || \
9569    test "X$hardcode_automatic" = "Xyes" ; then
9570
9571   # We can hardcode non-existant directories.
9572   if test "$hardcode_direct" != no &&
9573      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9574      # have to relink, otherwise we might link with an installed library
9575      # when we should be linking with a yet-to-be-installed one
9576      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9577      test "$hardcode_minus_L" != no; then
9578     # Linking always hardcodes the temporary library directory.
9579     hardcode_action=relink
9580   else
9581     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9582     hardcode_action=immediate
9583   fi
9584 else
9585   # We cannot hardcode anything, or else we can only hardcode existing
9586   # directories.
9587   hardcode_action=unsupported
9588 fi
9589 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9590 echo "${ECHO_T}$hardcode_action" >&6; }
9591
9592 if test "$hardcode_action" = relink; then
9593   # Fast installation is not supported
9594   enable_fast_install=no
9595 elif test "$shlibpath_overrides_runpath" = yes ||
9596      test "$enable_shared" = no; then
9597   # Fast installation is not necessary
9598   enable_fast_install=needless
9599 fi
9600
9601 striplib=
9602 old_striplib=
9603 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9604 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9605 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9606   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9607   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9608   { echo "$as_me:$LINENO: result: yes" >&5
9609 echo "${ECHO_T}yes" >&6; }
9610 else
9611 # FIXME - insert some real tests, host_os isn't really good enough
9612   case $host_os in
9613    darwin*)
9614        if test -n "$STRIP" ; then
9615          striplib="$STRIP -x"
9616          old_striplib="$STRIP -S"
9617          { echo "$as_me:$LINENO: result: yes" >&5
9618 echo "${ECHO_T}yes" >&6; }
9619        else
9620   { echo "$as_me:$LINENO: result: no" >&5
9621 echo "${ECHO_T}no" >&6; }
9622 fi
9623        ;;
9624    *)
9625   { echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6; }
9627     ;;
9628   esac
9629 fi
9630
9631 if test "x$enable_dlopen" != xyes; then
9632   enable_dlopen=unknown
9633   enable_dlopen_self=unknown
9634   enable_dlopen_self_static=unknown
9635 else
9636   lt_cv_dlopen=no
9637   lt_cv_dlopen_libs=
9638
9639   case $host_os in
9640   beos*)
9641     lt_cv_dlopen="load_add_on"
9642     lt_cv_dlopen_libs=
9643     lt_cv_dlopen_self=yes
9644     ;;
9645
9646   mingw* | pw32*)
9647     lt_cv_dlopen="LoadLibrary"
9648     lt_cv_dlopen_libs=
9649    ;;
9650
9651   cygwin*)
9652     lt_cv_dlopen="dlopen"
9653     lt_cv_dlopen_libs=
9654    ;;
9655
9656   darwin*)
9657   # if libdl is installed we need to link against it
9658     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-ldl  $LIBS"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671
9672 /* Override any GCC internal prototype to avoid an error.
9673    Use char because int might match the return type of a GCC
9674    builtin and then its argument prototype would still apply.  */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 char dlopen ();
9679 int
9680 main ()
9681 {
9682 return dlopen ();
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_link") 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } && {
9701          test -z "$ac_c_werror_flag" ||
9702          test ! -s conftest.err
9703        } && test -s conftest$ac_exeext &&
9704        $as_test_x conftest$ac_exeext; then
9705   ac_cv_lib_dl_dlopen=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710         ac_cv_lib_dl_dlopen=no
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714       conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9721 else
9722
9723     lt_cv_dlopen="dyld"
9724     lt_cv_dlopen_libs=
9725     lt_cv_dlopen_self=yes
9726
9727 fi
9728
9729    ;;
9730
9731   *)
9732     { echo "$as_me:$LINENO: checking for shl_load" >&5
9733 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9734 if test "${ac_cv_func_shl_load+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9745 #define shl_load innocuous_shl_load
9746
9747 /* System header to define __stub macros and hopefully few prototypes,
9748     which can conflict with char shl_load (); below.
9749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750     <limits.h> exists even on freestanding compilers.  */
9751
9752 #ifdef __STDC__
9753 # include <limits.h>
9754 #else
9755 # include <assert.h>
9756 #endif
9757
9758 #undef shl_load
9759
9760 /* Override any GCC internal prototype to avoid an error.
9761    Use char because int might match the return type of a GCC
9762    builtin and then its argument prototype would still apply.  */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 char shl_load ();
9767 /* The GNU C library defines this for functions which it implements
9768     to always fail with ENOSYS.  Some functions are actually named
9769     something starting with __ and the normal name is an alias.  */
9770 #if defined __stub_shl_load || defined __stub___shl_load
9771 choke me
9772 #endif
9773
9774 int
9775 main ()
9776 {
9777 return shl_load ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_link") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } && {
9796          test -z "$ac_c_werror_flag" ||
9797          test ! -s conftest.err
9798        } && test -s conftest$ac_exeext &&
9799        $as_test_x conftest$ac_exeext; then
9800   ac_cv_func_shl_load=yes
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805         ac_cv_func_shl_load=no
9806 fi
9807
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809       conftest$ac_exeext conftest.$ac_ext
9810 fi
9811 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9812 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9813 if test $ac_cv_func_shl_load = yes; then
9814   lt_cv_dlopen="shl_load"
9815 else
9816   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9817 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-ldld  $LIBS"
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829
9830 /* Override any GCC internal prototype to avoid an error.
9831    Use char because int might match the return type of a GCC
9832    builtin and then its argument prototype would still apply.  */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char shl_load ();
9837 int
9838 main ()
9839 {
9840 return shl_load ();
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9847 case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_link") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && {
9859          test -z "$ac_c_werror_flag" ||
9860          test ! -s conftest.err
9861        } && test -s conftest$ac_exeext &&
9862        $as_test_x conftest$ac_exeext; then
9863   ac_cv_lib_dld_shl_load=yes
9864 else
9865   echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868         ac_cv_lib_dld_shl_load=no
9869 fi
9870
9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9872       conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9874 fi
9875 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9877 if test $ac_cv_lib_dld_shl_load = yes; then
9878   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9879 else
9880   { echo "$as_me:$LINENO: checking for dlopen" >&5
9881 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9882 if test "${ac_cv_func_dlopen+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885   cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9893 #define dlopen innocuous_dlopen
9894
9895 /* System header to define __stub macros and hopefully few prototypes,
9896     which can conflict with char dlopen (); below.
9897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898     <limits.h> exists even on freestanding compilers.  */
9899
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9905
9906 #undef dlopen
9907
9908 /* Override any GCC internal prototype to avoid an error.
9909    Use char because int might match the return type of a GCC
9910    builtin and then its argument prototype would still apply.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char dlopen ();
9915 /* The GNU C library defines this for functions which it implements
9916     to always fail with ENOSYS.  Some functions are actually named
9917     something starting with __ and the normal name is an alias.  */
9918 #if defined __stub_dlopen || defined __stub___dlopen
9919 choke me
9920 #endif
9921
9922 int
9923 main ()
9924 {
9925 return dlopen ();
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9932 case "(($ac_try" in
9933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934   *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937   (eval "$ac_link") 2>conftest.er1
9938   ac_status=$?
9939   grep -v '^ *+' conftest.er1 >conftest.err
9940   rm -f conftest.er1
9941   cat conftest.err >&5
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } && {
9944          test -z "$ac_c_werror_flag" ||
9945          test ! -s conftest.err
9946        } && test -s conftest$ac_exeext &&
9947        $as_test_x conftest$ac_exeext; then
9948   ac_cv_func_dlopen=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953         ac_cv_func_dlopen=no
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957       conftest$ac_exeext conftest.$ac_ext
9958 fi
9959 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9960 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9961 if test $ac_cv_func_dlopen = yes; then
9962   lt_cv_dlopen="dlopen"
9963 else
9964   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   ac_check_lib_save_LIBS=$LIBS
9970 LIBS="-ldl  $LIBS"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977
9978 /* Override any GCC internal prototype to avoid an error.
9979    Use char because int might match the return type of a GCC
9980    builtin and then its argument prototype would still apply.  */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char dlopen ();
9985 int
9986 main ()
9987 {
9988 return dlopen ();
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (ac_try="$ac_link"
9995 case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_link") 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } && {
10007          test -z "$ac_c_werror_flag" ||
10008          test ! -s conftest.err
10009        } && test -s conftest$ac_exeext &&
10010        $as_test_x conftest$ac_exeext; then
10011   ac_cv_lib_dl_dlopen=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016         ac_cv_lib_dl_dlopen=no
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020       conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10022 fi
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10025 if test $ac_cv_lib_dl_dlopen = yes; then
10026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10027 else
10028   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10029 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10030 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033   ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lsvld  $LIBS"
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041
10042 /* Override any GCC internal prototype to avoid an error.
10043    Use char because int might match the return type of a GCC
10044    builtin and then its argument prototype would still apply.  */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 char dlopen ();
10049 int
10050 main ()
10051 {
10052 return dlopen ();
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_link") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } && {
10071          test -z "$ac_c_werror_flag" ||
10072          test ! -s conftest.err
10073        } && test -s conftest$ac_exeext &&
10074        $as_test_x conftest$ac_exeext; then
10075   ac_cv_lib_svld_dlopen=yes
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080         ac_cv_lib_svld_dlopen=no
10081 fi
10082
10083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10084       conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10086 fi
10087 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10088 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10089 if test $ac_cv_lib_svld_dlopen = yes; then
10090   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10091 else
10092   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   ac_check_lib_save_LIBS=$LIBS
10098 LIBS="-ldld  $LIBS"
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h.  */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h.  */
10105
10106 /* Override any GCC internal prototype to avoid an error.
10107    Use char because int might match the return type of a GCC
10108    builtin and then its argument prototype would still apply.  */
10109 #ifdef __cplusplus
10110 extern "C"
10111 #endif
10112 char dld_link ();
10113 int
10114 main ()
10115 {
10116 return dld_link ();
10117   ;
10118   return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_link") 2>conftest.er1
10129   ac_status=$?
10130   grep -v '^ *+' conftest.er1 >conftest.err
10131   rm -f conftest.er1
10132   cat conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } && {
10135          test -z "$ac_c_werror_flag" ||
10136          test ! -s conftest.err
10137        } && test -s conftest$ac_exeext &&
10138        $as_test_x conftest$ac_exeext; then
10139   ac_cv_lib_dld_dld_link=yes
10140 else
10141   echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144         ac_cv_lib_dld_dld_link=no
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10148       conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10150 fi
10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10153 if test $ac_cv_lib_dld_dld_link = yes; then
10154   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10155 fi
10156
10157
10158 fi
10159
10160
10161 fi
10162
10163
10164 fi
10165
10166
10167 fi
10168
10169
10170 fi
10171
10172     ;;
10173   esac
10174
10175   if test "x$lt_cv_dlopen" != xno; then
10176     enable_dlopen=yes
10177   else
10178     enable_dlopen=no
10179   fi
10180
10181   case $lt_cv_dlopen in
10182   dlopen)
10183     save_CPPFLAGS="$CPPFLAGS"
10184     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10185
10186     save_LDFLAGS="$LDFLAGS"
10187     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10188
10189     save_LIBS="$LIBS"
10190     LIBS="$lt_cv_dlopen_libs $LIBS"
10191
10192     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10193 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10194 if test "${lt_cv_dlopen_self+set}" = set; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197           if test "$cross_compiling" = yes; then :
10198   lt_cv_dlopen_self=cross
10199 else
10200   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10201   lt_status=$lt_dlunknown
10202   cat > conftest.$ac_ext <<EOF
10203 #line 10203 "configure"
10204 #include "confdefs.h"
10205
10206 #if HAVE_DLFCN_H
10207 #include <dlfcn.h>
10208 #endif
10209
10210 #include <stdio.h>
10211
10212 #ifdef RTLD_GLOBAL
10213 #  define LT_DLGLOBAL           RTLD_GLOBAL
10214 #else
10215 #  ifdef DL_GLOBAL
10216 #    define LT_DLGLOBAL         DL_GLOBAL
10217 #  else
10218 #    define LT_DLGLOBAL         0
10219 #  endif
10220 #endif
10221
10222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10223    find out it does not work in some platform. */
10224 #ifndef LT_DLLAZY_OR_NOW
10225 #  ifdef RTLD_LAZY
10226 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10227 #  else
10228 #    ifdef DL_LAZY
10229 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10230 #    else
10231 #      ifdef RTLD_NOW
10232 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10233 #      else
10234 #        ifdef DL_NOW
10235 #          define LT_DLLAZY_OR_NOW      DL_NOW
10236 #        else
10237 #          define LT_DLLAZY_OR_NOW      0
10238 #        endif
10239 #      endif
10240 #    endif
10241 #  endif
10242 #endif
10243
10244 #ifdef __cplusplus
10245 extern "C" void exit (int);
10246 #endif
10247
10248 void fnord() { int i=42;}
10249 int main ()
10250 {
10251   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10252   int status = $lt_dlunknown;
10253
10254   if (self)
10255     {
10256       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10257       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10258       /* dlclose (self); */
10259     }
10260   else
10261     puts (dlerror ());
10262
10263     exit (status);
10264 }
10265 EOF
10266   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267   (eval $ac_link) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10271     (./conftest; exit; ) >&5 2>/dev/null
10272     lt_status=$?
10273     case x$lt_status in
10274       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10275       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10276       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10277     esac
10278   else :
10279     # compilation failed
10280     lt_cv_dlopen_self=no
10281   fi
10282 fi
10283 rm -fr conftest*
10284
10285
10286 fi
10287 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10288 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10289
10290     if test "x$lt_cv_dlopen_self" = xyes; then
10291       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10292       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10293 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10294 if test "${lt_cv_dlopen_self_static+set}" = set; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297           if test "$cross_compiling" = yes; then :
10298   lt_cv_dlopen_self_static=cross
10299 else
10300   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301   lt_status=$lt_dlunknown
10302   cat > conftest.$ac_ext <<EOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10305
10306 #if HAVE_DLFCN_H
10307 #include <dlfcn.h>
10308 #endif
10309
10310 #include <stdio.h>
10311
10312 #ifdef RTLD_GLOBAL
10313 #  define LT_DLGLOBAL           RTLD_GLOBAL
10314 #else
10315 #  ifdef DL_GLOBAL
10316 #    define LT_DLGLOBAL         DL_GLOBAL
10317 #  else
10318 #    define LT_DLGLOBAL         0
10319 #  endif
10320 #endif
10321
10322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323    find out it does not work in some platform. */
10324 #ifndef LT_DLLAZY_OR_NOW
10325 #  ifdef RTLD_LAZY
10326 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10327 #  else
10328 #    ifdef DL_LAZY
10329 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10330 #    else
10331 #      ifdef RTLD_NOW
10332 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10333 #      else
10334 #        ifdef DL_NOW
10335 #          define LT_DLLAZY_OR_NOW      DL_NOW
10336 #        else
10337 #          define LT_DLLAZY_OR_NOW      0
10338 #        endif
10339 #      endif
10340 #    endif
10341 #  endif
10342 #endif
10343
10344 #ifdef __cplusplus
10345 extern "C" void exit (int);
10346 #endif
10347
10348 void fnord() { int i=42;}
10349 int main ()
10350 {
10351   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352   int status = $lt_dlunknown;
10353
10354   if (self)
10355     {
10356       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10357       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358       /* dlclose (self); */
10359     }
10360   else
10361     puts (dlerror ());
10362
10363     exit (status);
10364 }
10365 EOF
10366   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367   (eval $ac_link) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10371     (./conftest; exit; ) >&5 2>/dev/null
10372     lt_status=$?
10373     case x$lt_status in
10374       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10375       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10376       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10377     esac
10378   else :
10379     # compilation failed
10380     lt_cv_dlopen_self_static=no
10381   fi
10382 fi
10383 rm -fr conftest*
10384
10385
10386 fi
10387 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10388 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10389     fi
10390
10391     CPPFLAGS="$save_CPPFLAGS"
10392     LDFLAGS="$save_LDFLAGS"
10393     LIBS="$save_LIBS"
10394     ;;
10395   esac
10396
10397   case $lt_cv_dlopen_self in
10398   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10399   *) enable_dlopen_self=unknown ;;
10400   esac
10401
10402   case $lt_cv_dlopen_self_static in
10403   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10404   *) enable_dlopen_self_static=unknown ;;
10405   esac
10406 fi
10407
10408
10409 # Report which library types will actually be built
10410 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10411 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10412 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10413 echo "${ECHO_T}$can_build_shared" >&6; }
10414
10415 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10416 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10417 test "$can_build_shared" = "no" && enable_shared=no
10418
10419 # On AIX, shared libraries and static libraries use the same namespace, and
10420 # are all built from PIC.
10421 case $host_os in
10422 aix3*)
10423   test "$enable_shared" = yes && enable_static=no
10424   if test -n "$RANLIB"; then
10425     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10426     postinstall_cmds='$RANLIB $lib'
10427   fi
10428   ;;
10429
10430 aix[4-9]*)
10431   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10432     test "$enable_shared" = yes && enable_static=no
10433   fi
10434     ;;
10435 esac
10436 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10437 echo "${ECHO_T}$enable_shared" >&6; }
10438
10439 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10440 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10441 # Make sure either enable_shared or enable_static is yes.
10442 test "$enable_shared" = yes || enable_static=yes
10443 { echo "$as_me:$LINENO: result: $enable_static" >&5
10444 echo "${ECHO_T}$enable_static" >&6; }
10445
10446 # The else clause should only fire when bootstrapping the
10447 # libtool distribution, otherwise you forgot to ship ltmain.sh
10448 # with your package, and you will get complaints that there are
10449 # no rules to generate ltmain.sh.
10450 if test -f "$ltmain"; then
10451   # See if we are running on zsh, and set the options which allow our commands through
10452   # without removal of \ escapes.
10453   if test -n "${ZSH_VERSION+set}" ; then
10454     setopt NO_GLOB_SUBST
10455   fi
10456   # Now quote all the things that may contain metacharacters while being
10457   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10458   # variables and quote the copies for generation of the libtool script.
10459   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10460     SED SHELL STRIP \
10461     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10462     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10463     deplibs_check_method reload_flag reload_cmds need_locks \
10464     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10465     lt_cv_sys_global_symbol_to_c_name_address \
10466     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10467     old_postinstall_cmds old_postuninstall_cmds \
10468     compiler \
10469     CC \
10470     LD \
10471     lt_prog_compiler_wl \
10472     lt_prog_compiler_pic \
10473     lt_prog_compiler_static \
10474     lt_prog_compiler_no_builtin_flag \
10475     export_dynamic_flag_spec \
10476     thread_safe_flag_spec \
10477     whole_archive_flag_spec \
10478     enable_shared_with_static_runtimes \
10479     old_archive_cmds \
10480     old_archive_from_new_cmds \
10481     predep_objects \
10482     postdep_objects \
10483     predeps \
10484     postdeps \
10485     compiler_lib_search_path \
10486     compiler_lib_search_dirs \
10487     archive_cmds \
10488     archive_expsym_cmds \
10489     postinstall_cmds \
10490     postuninstall_cmds \
10491     old_archive_from_expsyms_cmds \
10492     allow_undefined_flag \
10493     no_undefined_flag \
10494     export_symbols_cmds \
10495     hardcode_libdir_flag_spec \
10496     hardcode_libdir_flag_spec_ld \
10497     hardcode_libdir_separator \
10498     hardcode_automatic \
10499     module_cmds \
10500     module_expsym_cmds \
10501     lt_cv_prog_compiler_c_o \
10502     fix_srcfile_path \
10503     exclude_expsyms \
10504     include_expsyms; do
10505
10506     case $var in
10507     old_archive_cmds | \
10508     old_archive_from_new_cmds | \
10509     archive_cmds | \
10510     archive_expsym_cmds | \
10511     module_cmds | \
10512     module_expsym_cmds | \
10513     old_archive_from_expsyms_cmds | \
10514     export_symbols_cmds | \
10515     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10516     postinstall_cmds | postuninstall_cmds | \
10517     old_postinstall_cmds | old_postuninstall_cmds | \
10518     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10519       # Double-quote double-evaled strings.
10520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10521       ;;
10522     *)
10523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10524       ;;
10525     esac
10526   done
10527
10528   case $lt_echo in
10529   *'\$0 --fallback-echo"')
10530     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10531     ;;
10532   esac
10533
10534 cfgfile="${ofile}T"
10535   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10536   $rm -f "$cfgfile"
10537   { echo "$as_me:$LINENO: creating $ofile" >&5
10538 echo "$as_me: creating $ofile" >&6;}
10539
10540   cat <<__EOF__ >> "$cfgfile"
10541 #! $SHELL
10542
10543 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10546 #
10547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10548 # Free Software Foundation, Inc.
10549 #
10550 # This file is part of GNU Libtool:
10551 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10552 #
10553 # This program is free software; you can redistribute it and/or modify
10554 # it under the terms of the GNU General Public License as published by
10555 # the Free Software Foundation; either version 2 of the License, or
10556 # (at your option) any later version.
10557 #
10558 # This program is distributed in the hope that it will be useful, but
10559 # WITHOUT ANY WARRANTY; without even the implied warranty of
10560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10561 # General Public License for more details.
10562 #
10563 # You should have received a copy of the GNU General Public License
10564 # along with this program; if not, write to the Free Software
10565 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10566 #
10567 # As a special exception to the GNU General Public License, if you
10568 # distribute this file as part of a program that contains a
10569 # configuration script generated by Autoconf, you may include it under
10570 # the same distribution terms that you use for the rest of that program.
10571
10572 # A sed program that does not truncate output.
10573 SED=$lt_SED
10574
10575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10576 Xsed="$SED -e 1s/^X//"
10577
10578 # The HP-UX ksh and POSIX shell print the target directory to stdout
10579 # if CDPATH is set.
10580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10581
10582 # The names of the tagged configurations supported by this script.
10583 available_tags=
10584
10585 # ### BEGIN LIBTOOL CONFIG
10586
10587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10588
10589 # Shell to use when invoking shell scripts.
10590 SHELL=$lt_SHELL
10591
10592 # Whether or not to build shared libraries.
10593 build_libtool_libs=$enable_shared
10594
10595 # Whether or not to build static libraries.
10596 build_old_libs=$enable_static
10597
10598 # Whether or not to add -lc for building shared libraries.
10599 build_libtool_need_lc=$archive_cmds_need_lc
10600
10601 # Whether or not to disallow shared libs when runtime libs are static
10602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10603
10604 # Whether or not to optimize for fast installation.
10605 fast_install=$enable_fast_install
10606
10607 # The host system.
10608 host_alias=$host_alias
10609 host=$host
10610 host_os=$host_os
10611
10612 # The build system.
10613 build_alias=$build_alias
10614 build=$build
10615 build_os=$build_os
10616
10617 # An echo program that does not interpret backslashes.
10618 echo=$lt_echo
10619
10620 # The archiver.
10621 AR=$lt_AR
10622 AR_FLAGS=$lt_AR_FLAGS
10623
10624 # A C compiler.
10625 LTCC=$lt_LTCC
10626
10627 # LTCC compiler flags.
10628 LTCFLAGS=$lt_LTCFLAGS
10629
10630 # A language-specific compiler.
10631 CC=$lt_compiler
10632
10633 # Is the compiler the GNU C compiler?
10634 with_gcc=$GCC
10635
10636 # An ERE matcher.
10637 EGREP=$lt_EGREP
10638
10639 # The linker used to build libraries.
10640 LD=$lt_LD
10641
10642 # Whether we need hard or soft links.
10643 LN_S=$lt_LN_S
10644
10645 # A BSD-compatible nm program.
10646 NM=$lt_NM
10647
10648 # A symbol stripping program
10649 STRIP=$lt_STRIP
10650
10651 # Used to examine libraries when file_magic_cmd begins "file"
10652 MAGIC_CMD=$MAGIC_CMD
10653
10654 # Used on cygwin: DLL creation program.
10655 DLLTOOL="$DLLTOOL"
10656
10657 # Used on cygwin: object dumper.
10658 OBJDUMP="$OBJDUMP"
10659
10660 # Used on cygwin: assembler.
10661 AS="$AS"
10662
10663 # The name of the directory that contains temporary libtool files.
10664 objdir=$objdir
10665
10666 # How to create reloadable object files.
10667 reload_flag=$lt_reload_flag
10668 reload_cmds=$lt_reload_cmds
10669
10670 # How to pass a linker flag through the compiler.
10671 wl=$lt_lt_prog_compiler_wl
10672
10673 # Object file suffix (normally "o").
10674 objext="$ac_objext"
10675
10676 # Old archive suffix (normally "a").
10677 libext="$libext"
10678
10679 # Shared library suffix (normally ".so").
10680 shrext_cmds='$shrext_cmds'
10681
10682 # Executable file suffix (normally "").
10683 exeext="$exeext"
10684
10685 # Additional compiler flags for building library objects.
10686 pic_flag=$lt_lt_prog_compiler_pic
10687 pic_mode=$pic_mode
10688
10689 # What is the maximum length of a command?
10690 max_cmd_len=$lt_cv_sys_max_cmd_len
10691
10692 # Does compiler simultaneously support -c and -o options?
10693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10694
10695 # Must we lock files when doing compilation?
10696 need_locks=$lt_need_locks
10697
10698 # Do we need the lib prefix for modules?
10699 need_lib_prefix=$need_lib_prefix
10700
10701 # Do we need a version for libraries?
10702 need_version=$need_version
10703
10704 # Whether dlopen is supported.
10705 dlopen_support=$enable_dlopen
10706
10707 # Whether dlopen of programs is supported.
10708 dlopen_self=$enable_dlopen_self
10709
10710 # Whether dlopen of statically linked programs is supported.
10711 dlopen_self_static=$enable_dlopen_self_static
10712
10713 # Compiler flag to prevent dynamic linking.
10714 link_static_flag=$lt_lt_prog_compiler_static
10715
10716 # Compiler flag to turn off builtin functions.
10717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10718
10719 # Compiler flag to allow reflexive dlopens.
10720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10721
10722 # Compiler flag to generate shared objects directly from archives.
10723 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10724
10725 # Compiler flag to generate thread-safe objects.
10726 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10727
10728 # Library versioning type.
10729 version_type=$version_type
10730
10731 # Format of library name prefix.
10732 libname_spec=$lt_libname_spec
10733
10734 # List of archive names.  First name is the real one, the rest are links.
10735 # The last name is the one that the linker finds with -lNAME.
10736 library_names_spec=$lt_library_names_spec
10737
10738 # The coded name of the library, if different from the real name.
10739 soname_spec=$lt_soname_spec
10740
10741 # Commands used to build and install an old-style archive.
10742 RANLIB=$lt_RANLIB
10743 old_archive_cmds=$lt_old_archive_cmds
10744 old_postinstall_cmds=$lt_old_postinstall_cmds
10745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10746
10747 # Create an old-style archive from a shared archive.
10748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10749
10750 # Create a temporary old-style archive to link instead of a shared archive.
10751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10752
10753 # Commands used to build and install a shared archive.
10754 archive_cmds=$lt_archive_cmds
10755 archive_expsym_cmds=$lt_archive_expsym_cmds
10756 postinstall_cmds=$lt_postinstall_cmds
10757 postuninstall_cmds=$lt_postuninstall_cmds
10758
10759 # Commands used to build a loadable module (assumed same as above if empty)
10760 module_cmds=$lt_module_cmds
10761 module_expsym_cmds=$lt_module_expsym_cmds
10762
10763 # Commands to strip libraries.
10764 old_striplib=$lt_old_striplib
10765 striplib=$lt_striplib
10766
10767 # Dependencies to place before the objects being linked to create a
10768 # shared library.
10769 predep_objects=$lt_predep_objects
10770
10771 # Dependencies to place after the objects being linked to create a
10772 # shared library.
10773 postdep_objects=$lt_postdep_objects
10774
10775 # Dependencies to place before the objects being linked to create a
10776 # shared library.
10777 predeps=$lt_predeps
10778
10779 # Dependencies to place after the objects being linked to create a
10780 # shared library.
10781 postdeps=$lt_postdeps
10782
10783 # The directories searched by this compiler when creating a shared
10784 # library
10785 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10786
10787 # The library search path used internally by the compiler when linking
10788 # a shared library.
10789 compiler_lib_search_path=$lt_compiler_lib_search_path
10790
10791 # Method to check whether dependent libraries are shared objects.
10792 deplibs_check_method=$lt_deplibs_check_method
10793
10794 # Command to use when deplibs_check_method == file_magic.
10795 file_magic_cmd=$lt_file_magic_cmd
10796
10797 # Flag that allows shared libraries with undefined symbols to be built.
10798 allow_undefined_flag=$lt_allow_undefined_flag
10799
10800 # Flag that forces no undefined symbols.
10801 no_undefined_flag=$lt_no_undefined_flag
10802
10803 # Commands used to finish a libtool library installation in a directory.
10804 finish_cmds=$lt_finish_cmds
10805
10806 # Same as above, but a single script fragment to be evaled but not shown.
10807 finish_eval=$lt_finish_eval
10808
10809 # Take the output of nm and produce a listing of raw symbols and C names.
10810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10811
10812 # Transform the output of nm in a proper C declaration
10813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10814
10815 # Transform the output of nm in a C name address pair
10816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10817
10818 # This is the shared library runtime path variable.
10819 runpath_var=$runpath_var
10820
10821 # This is the shared library path variable.
10822 shlibpath_var=$shlibpath_var
10823
10824 # Is shlibpath searched before the hard-coded library search path?
10825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10826
10827 # How to hardcode a shared library path into an executable.
10828 hardcode_action=$hardcode_action
10829
10830 # Whether we should hardcode library paths into libraries.
10831 hardcode_into_libs=$hardcode_into_libs
10832
10833 # Flag to hardcode \$libdir into a binary during linking.
10834 # This must work even if \$libdir does not exist.
10835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10836
10837 # If ld is used when linking, flag to hardcode \$libdir into
10838 # a binary during linking. This must work even if \$libdir does
10839 # not exist.
10840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10841
10842 # Whether we need a single -rpath flag with a separated argument.
10843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10844
10845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10846 # resulting binary.
10847 hardcode_direct=$hardcode_direct
10848
10849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10850 # resulting binary.
10851 hardcode_minus_L=$hardcode_minus_L
10852
10853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10854 # the resulting binary.
10855 hardcode_shlibpath_var=$hardcode_shlibpath_var
10856
10857 # Set to yes if building a shared library automatically hardcodes DIR into the library
10858 # and all subsequent libraries and executables linked against it.
10859 hardcode_automatic=$hardcode_automatic
10860
10861 # Variables whose values should be saved in libtool wrapper scripts and
10862 # restored at relink time.
10863 variables_saved_for_relink="$variables_saved_for_relink"
10864
10865 # Whether libtool must link a program against all its dependency libraries.
10866 link_all_deplibs=$link_all_deplibs
10867
10868 # Compile-time system search path for libraries
10869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10870
10871 # Run-time system search path for libraries
10872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10873
10874 # Fix the shell variable \$srcfile for the compiler.
10875 fix_srcfile_path=$lt_fix_srcfile_path
10876
10877 # Set to yes if exported symbols are required.
10878 always_export_symbols=$always_export_symbols
10879
10880 # The commands to list exported symbols.
10881 export_symbols_cmds=$lt_export_symbols_cmds
10882
10883 # The commands to extract the exported symbol list from a shared archive.
10884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10885
10886 # Symbols that should not be listed in the preloaded symbols.
10887 exclude_expsyms=$lt_exclude_expsyms
10888
10889 # Symbols that must always be exported.
10890 include_expsyms=$lt_include_expsyms
10891
10892 # ### END LIBTOOL CONFIG
10893
10894 __EOF__
10895
10896
10897   case $host_os in
10898   aix3*)
10899     cat <<\EOF >> "$cfgfile"
10900
10901 # AIX sometimes has problems with the GCC collect2 program.  For some
10902 # reason, if we set the COLLECT_NAMES environment variable, the problems
10903 # vanish in a puff of smoke.
10904 if test "X${COLLECT_NAMES+set}" != Xset; then
10905   COLLECT_NAMES=
10906   export COLLECT_NAMES
10907 fi
10908 EOF
10909     ;;
10910   esac
10911
10912   # We use sed instead of cat because bash on DJGPP gets confused if
10913   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10914   # text mode, it properly converts lines to CR/LF.  This bash problem
10915   # is reportedly fixed, but why not run on old versions too?
10916   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10917
10918   mv -f "$cfgfile" "$ofile" || \
10919     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10920   chmod +x "$ofile"
10921
10922 else
10923   # If there is no Makefile yet, we rely on a make rule to execute
10924   # `config.status --recheck' to rerun these tests and create the
10925   # libtool script then.
10926   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10927   if test -f "$ltmain_in"; then
10928     test -f Makefile && make "$ltmain"
10929   fi
10930 fi
10931
10932
10933 ac_ext=c
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10938
10939 CC="$lt_save_CC"
10940
10941
10942 # Check whether --with-tags was given.
10943 if test "${with_tags+set}" = set; then
10944   withval=$with_tags; tagnames="$withval"
10945 fi
10946
10947
10948 if test -f "$ltmain" && test -n "$tagnames"; then
10949   if test ! -f "${ofile}"; then
10950     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10951 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10952   fi
10953
10954   if test -z "$LTCC"; then
10955     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10956     if test -z "$LTCC"; then
10957       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10958 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10959     else
10960       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10961 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10962     fi
10963   fi
10964   if test -z "$LTCFLAGS"; then
10965     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10966   fi
10967
10968   # Extract list of available tagged configurations in $ofile.
10969   # Note that this assumes the entire list is on one line.
10970   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10971
10972   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10973   for tagname in $tagnames; do
10974     IFS="$lt_save_ifs"
10975     # Check whether tagname contains only valid characters
10976     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10977     "") ;;
10978     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10979 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10980    { (exit 1); exit 1; }; }
10981         ;;
10982     esac
10983
10984     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10985     then
10986       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10987 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10988    { (exit 1); exit 1; }; }
10989     fi
10990
10991     # Update the list of available tags.
10992     if test -n "$tagname"; then
10993       echo appending configuration tag \"$tagname\" to $ofile
10994
10995       case $tagname in
10996       CXX)
10997         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10998             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10999             (test "X$CXX" != "Xg++"))) ; then
11000           ac_ext=cpp
11001 ac_cpp='$CXXCPP $CPPFLAGS'
11002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11005
11006
11007
11008
11009 archive_cmds_need_lc_CXX=no
11010 allow_undefined_flag_CXX=
11011 always_export_symbols_CXX=no
11012 archive_expsym_cmds_CXX=
11013 export_dynamic_flag_spec_CXX=
11014 hardcode_direct_CXX=no
11015 hardcode_libdir_flag_spec_CXX=
11016 hardcode_libdir_flag_spec_ld_CXX=
11017 hardcode_libdir_separator_CXX=
11018 hardcode_minus_L_CXX=no
11019 hardcode_shlibpath_var_CXX=unsupported
11020 hardcode_automatic_CXX=no
11021 module_cmds_CXX=
11022 module_expsym_cmds_CXX=
11023 link_all_deplibs_CXX=unknown
11024 old_archive_cmds_CXX=$old_archive_cmds
11025 no_undefined_flag_CXX=
11026 whole_archive_flag_spec_CXX=
11027 enable_shared_with_static_runtimes_CXX=no
11028
11029 # Dependencies to place before and after the object being linked:
11030 predep_objects_CXX=
11031 postdep_objects_CXX=
11032 predeps_CXX=
11033 postdeps_CXX=
11034 compiler_lib_search_path_CXX=
11035 compiler_lib_search_dirs_CXX=
11036
11037 # Source file extension for C++ test sources.
11038 ac_ext=cpp
11039
11040 # Object file extension for compiled C++ test sources.
11041 objext=o
11042 objext_CXX=$objext
11043
11044 # Code to be used in simple compile tests
11045 lt_simple_compile_test_code="int some_variable = 0;"
11046
11047 # Code to be used in simple link tests
11048 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11049
11050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11051
11052 # If no C compiler was specified, use CC.
11053 LTCC=${LTCC-"$CC"}
11054
11055 # If no C compiler flags were specified, use CFLAGS.
11056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11057
11058 # Allow CC to be a program name with arguments.
11059 compiler=$CC
11060
11061
11062 # save warnings/boilerplate of simple test code
11063 ac_outfile=conftest.$ac_objext
11064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11066 _lt_compiler_boilerplate=`cat conftest.err`
11067 $rm conftest*
11068
11069 ac_outfile=conftest.$ac_objext
11070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11072 _lt_linker_boilerplate=`cat conftest.err`
11073 $rm -r conftest*
11074
11075
11076 # Allow CC to be a program name with arguments.
11077 lt_save_CC=$CC
11078 lt_save_LD=$LD
11079 lt_save_GCC=$GCC
11080 GCC=$GXX
11081 lt_save_with_gnu_ld=$with_gnu_ld
11082 lt_save_path_LD=$lt_cv_path_LD
11083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11084   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11085 else
11086   $as_unset lt_cv_prog_gnu_ld
11087 fi
11088 if test -n "${lt_cv_path_LDCXX+set}"; then
11089   lt_cv_path_LD=$lt_cv_path_LDCXX
11090 else
11091   $as_unset lt_cv_path_LD
11092 fi
11093 test -z "${LDCXX+set}" || LD=$LDCXX
11094 CC=${CXX-"c++"}
11095 compiler=$CC
11096 compiler_CXX=$CC
11097 for cc_temp in $compiler""; do
11098   case $cc_temp in
11099     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11100     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11101     \-*) ;;
11102     *) break;;
11103   esac
11104 done
11105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11106
11107
11108 # We don't want -fno-exception wen compiling C++ code, so set the
11109 # no_builtin_flag separately
11110 if test "$GXX" = yes; then
11111   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11112 else
11113   lt_prog_compiler_no_builtin_flag_CXX=
11114 fi
11115
11116 if test "$GXX" = yes; then
11117   # Set up default GNU C++ configuration
11118
11119
11120 # Check whether --with-gnu-ld was given.
11121 if test "${with_gnu_ld+set}" = set; then
11122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11123 else
11124   with_gnu_ld=no
11125 fi
11126
11127 ac_prog=ld
11128 if test "$GCC" = yes; then
11129   # Check if gcc -print-prog-name=ld gives a path.
11130   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11132   case $host in
11133   *-*-mingw*)
11134     # gcc leaves a trailing carriage return which upsets mingw
11135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11136   *)
11137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11138   esac
11139   case $ac_prog in
11140     # Accept absolute paths.
11141     [\\/]* | ?:[\\/]*)
11142       re_direlt='/[^/][^/]*/\.\./'
11143       # Canonicalize the pathname of ld
11144       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11145       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11146         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11147       done
11148       test -z "$LD" && LD="$ac_prog"
11149       ;;
11150   "")
11151     # If it fails, then pretend we aren't using GCC.
11152     ac_prog=ld
11153     ;;
11154   *)
11155     # If it is relative, then search for the first ld in PATH.
11156     with_gnu_ld=unknown
11157     ;;
11158   esac
11159 elif test "$with_gnu_ld" = yes; then
11160   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11162 else
11163   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11165 fi
11166 if test "${lt_cv_path_LD+set}" = set; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169   if test -z "$LD"; then
11170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11171   for ac_dir in $PATH; do
11172     IFS="$lt_save_ifs"
11173     test -z "$ac_dir" && ac_dir=.
11174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11175       lt_cv_path_LD="$ac_dir/$ac_prog"
11176       # Check to see if the program is GNU ld.  I'd rather use --version,
11177       # but apparently some variants of GNU ld only accept -v.
11178       # Break only if it was the GNU/non-GNU ld that we prefer.
11179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11180       *GNU* | *'with BFD'*)
11181         test "$with_gnu_ld" != no && break
11182         ;;
11183       *)
11184         test "$with_gnu_ld" != yes && break
11185         ;;
11186       esac
11187     fi
11188   done
11189   IFS="$lt_save_ifs"
11190 else
11191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11192 fi
11193 fi
11194
11195 LD="$lt_cv_path_LD"
11196 if test -n "$LD"; then
11197   { echo "$as_me:$LINENO: result: $LD" >&5
11198 echo "${ECHO_T}$LD" >&6; }
11199 else
11200   { echo "$as_me:$LINENO: result: no" >&5
11201 echo "${ECHO_T}no" >&6; }
11202 fi
11203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11205    { (exit 1); exit 1; }; }
11206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11212 case `$LD -v 2>&1 </dev/null` in
11213 *GNU* | *'with BFD'*)
11214   lt_cv_prog_gnu_ld=yes
11215   ;;
11216 *)
11217   lt_cv_prog_gnu_ld=no
11218   ;;
11219 esac
11220 fi
11221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11223 with_gnu_ld=$lt_cv_prog_gnu_ld
11224
11225
11226
11227   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11228   # archiving commands below assume that GNU ld is being used.
11229   if test "$with_gnu_ld" = yes; then
11230     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11231     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'
11232
11233     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11234     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11235
11236     # If archive_cmds runs LD, not CC, wlarc should be empty
11237     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11238     #     investigate it a little bit more. (MM)
11239     wlarc='${wl}'
11240
11241     # ancient GNU ld didn't support --whole-archive et. al.
11242     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11243         grep 'no-whole-archive' > /dev/null; then
11244       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11245     else
11246       whole_archive_flag_spec_CXX=
11247     fi
11248   else
11249     with_gnu_ld=no
11250     wlarc=
11251
11252     # A generic and very simple default shared library creation
11253     # command for GNU C++ for the case where it uses the native
11254     # linker, instead of GNU ld.  If possible, this setting should
11255     # overridden to take advantage of the native linker features on
11256     # the platform it is being used on.
11257     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11258   fi
11259
11260   # Commands to make compiler produce verbose output that lists
11261   # what "hidden" libraries, object files and flags are used when
11262   # linking a shared library.
11263   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11264
11265 else
11266   GXX=no
11267   with_gnu_ld=no
11268   wlarc=
11269 fi
11270
11271 # PORTME: fill in a description of your system's C++ link characteristics
11272 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11274 ld_shlibs_CXX=yes
11275 case $host_os in
11276   aix3*)
11277     # FIXME: insert proper C++ library support
11278     ld_shlibs_CXX=no
11279     ;;
11280   aix[4-9]*)
11281     if test "$host_cpu" = ia64; then
11282       # On IA64, the linker does run time linking by default, so we don't
11283       # have to do anything special.
11284       aix_use_runtimelinking=no
11285       exp_sym_flag='-Bexport'
11286       no_entry_flag=""
11287     else
11288       aix_use_runtimelinking=no
11289
11290       # Test if we are trying to use run time linking or normal
11291       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11292       # need to do runtime linking.
11293       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11294         for ld_flag in $LDFLAGS; do
11295           case $ld_flag in
11296           *-brtl*)
11297             aix_use_runtimelinking=yes
11298             break
11299             ;;
11300           esac
11301         done
11302         ;;
11303       esac
11304
11305       exp_sym_flag='-bexport'
11306       no_entry_flag='-bnoentry'
11307     fi
11308
11309     # When large executables or shared objects are built, AIX ld can
11310     # have problems creating the table of contents.  If linking a library
11311     # or program results in "error TOC overflow" add -mminimal-toc to
11312     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11313     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11314
11315     archive_cmds_CXX=''
11316     hardcode_direct_CXX=yes
11317     hardcode_libdir_separator_CXX=':'
11318     link_all_deplibs_CXX=yes
11319
11320     if test "$GXX" = yes; then
11321       case $host_os in aix4.[012]|aix4.[012].*)
11322       # We only want to do this on AIX 4.2 and lower, the check
11323       # below for broken collect2 doesn't work under 4.3+
11324         collect2name=`${CC} -print-prog-name=collect2`
11325         if test -f "$collect2name" && \
11326            strings "$collect2name" | grep resolve_lib_name >/dev/null
11327         then
11328           # We have reworked collect2
11329           :
11330         else
11331           # We have old collect2
11332           hardcode_direct_CXX=unsupported
11333           # It fails to find uninstalled libraries when the uninstalled
11334           # path is not listed in the libpath.  Setting hardcode_minus_L
11335           # to unsupported forces relinking
11336           hardcode_minus_L_CXX=yes
11337           hardcode_libdir_flag_spec_CXX='-L$libdir'
11338           hardcode_libdir_separator_CXX=
11339         fi
11340         ;;
11341       esac
11342       shared_flag='-shared'
11343       if test "$aix_use_runtimelinking" = yes; then
11344         shared_flag="$shared_flag "'${wl}-G'
11345       fi
11346     else
11347       # not using gcc
11348       if test "$host_cpu" = ia64; then
11349         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11350         # chokes on -Wl,-G. The following line is correct:
11351         shared_flag='-G'
11352       else
11353         if test "$aix_use_runtimelinking" = yes; then
11354           shared_flag='${wl}-G'
11355         else
11356           shared_flag='${wl}-bM:SRE'
11357         fi
11358       fi
11359     fi
11360
11361     # It seems that -bexpall does not export symbols beginning with
11362     # underscore (_), so it is better to generate a list of symbols to export.
11363     always_export_symbols_CXX=yes
11364     if test "$aix_use_runtimelinking" = yes; then
11365       # Warning - without using the other runtime loading flags (-brtl),
11366       # -berok will link without error, but may produce a broken library.
11367       allow_undefined_flag_CXX='-berok'
11368       # Determine the default libpath from the value encoded in an empty executable.
11369       cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375
11376 int
11377 main ()
11378 {
11379
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_link") 2>conftest.er1
11392   ac_status=$?
11393   grep -v '^ *+' conftest.er1 >conftest.err
11394   rm -f conftest.er1
11395   cat conftest.err >&5
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } && {
11398          test -z "$ac_cxx_werror_flag" ||
11399          test ! -s conftest.err
11400        } && test -s conftest$ac_exeext &&
11401        $as_test_x conftest$ac_exeext; then
11402
11403 lt_aix_libpath_sed='
11404     /Import File Strings/,/^$/ {
11405         /^0/ {
11406             s/^0  *\(.*\)$/\1/
11407             p
11408         }
11409     }'
11410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11411 # Check for a 64-bit object if we didn't find anything.
11412 if test -z "$aix_libpath"; then
11413   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11414 fi
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419
11420 fi
11421
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423       conftest$ac_exeext conftest.$ac_ext
11424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11425
11426       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11427
11428       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"
11429      else
11430       if test "$host_cpu" = ia64; then
11431         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11432         allow_undefined_flag_CXX="-z nodefs"
11433         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"
11434       else
11435         # Determine the default libpath from the value encoded in an empty executable.
11436         cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442
11443 int
11444 main ()
11445 {
11446
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455   *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458   (eval "$ac_link") 2>conftest.er1
11459   ac_status=$?
11460   grep -v '^ *+' conftest.er1 >conftest.err
11461   rm -f conftest.er1
11462   cat conftest.err >&5
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } && {
11465          test -z "$ac_cxx_werror_flag" ||
11466          test ! -s conftest.err
11467        } && test -s conftest$ac_exeext &&
11468        $as_test_x conftest$ac_exeext; then
11469
11470 lt_aix_libpath_sed='
11471     /Import File Strings/,/^$/ {
11472         /^0/ {
11473             s/^0  *\(.*\)$/\1/
11474             p
11475         }
11476     }'
11477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11478 # Check for a 64-bit object if we didn't find anything.
11479 if test -z "$aix_libpath"; then
11480   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481 fi
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486
11487 fi
11488
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490       conftest$ac_exeext conftest.$ac_ext
11491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11492
11493         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11494         # Warning - without using the other run time loading flags,
11495         # -berok will link without error, but may produce a broken library.
11496         no_undefined_flag_CXX=' ${wl}-bernotok'
11497         allow_undefined_flag_CXX=' ${wl}-berok'
11498         # Exported symbols can be pulled into shared objects from archives
11499         whole_archive_flag_spec_CXX='$convenience'
11500         archive_cmds_need_lc_CXX=yes
11501         # This is similar to how AIX traditionally builds its shared libraries.
11502         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'
11503       fi
11504     fi
11505     ;;
11506
11507   beos*)
11508     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11509       allow_undefined_flag_CXX=unsupported
11510       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11511       # support --undefined.  This deserves some investigation.  FIXME
11512       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11513     else
11514       ld_shlibs_CXX=no
11515     fi
11516     ;;
11517
11518   chorus*)
11519     case $cc_basename in
11520       *)
11521         # FIXME: insert proper C++ library support
11522         ld_shlibs_CXX=no
11523         ;;
11524     esac
11525     ;;
11526
11527   cygwin* | mingw* | pw32*)
11528     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11529     # as there is no search path for DLLs.
11530     hardcode_libdir_flag_spec_CXX='-L$libdir'
11531     allow_undefined_flag_CXX=unsupported
11532     always_export_symbols_CXX=no
11533     enable_shared_with_static_runtimes_CXX=yes
11534
11535     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11536       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'
11537       # If the export-symbols file already is a .def file (1st line
11538       # is EXPORTS), use it as is; otherwise, prepend...
11539       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11540         cp $export_symbols $output_objdir/$soname.def;
11541       else
11542         echo EXPORTS > $output_objdir/$soname.def;
11543         cat $export_symbols >> $output_objdir/$soname.def;
11544       fi~
11545       $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'
11546     else
11547       ld_shlibs_CXX=no
11548     fi
11549   ;;
11550       darwin* | rhapsody*)
11551       archive_cmds_need_lc_CXX=no
11552       hardcode_direct_CXX=no
11553       hardcode_automatic_CXX=yes
11554       hardcode_shlibpath_var_CXX=unsupported
11555       whole_archive_flag_spec_CXX=''
11556       link_all_deplibs_CXX=yes
11557       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11558       if test "$GXX" = yes ; then
11559       output_verbose_link_cmd='echo'
11560       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11561       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11562       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11563       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11564       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11565         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11566         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11567       fi
11568       else
11569       case $cc_basename in
11570         xlc*)
11571          output_verbose_link_cmd='echo'
11572           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'
11573           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11574           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11575           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}'
11576           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}'
11577           ;;
11578        *)
11579          ld_shlibs_CXX=no
11580           ;;
11581       esac
11582       fi
11583         ;;
11584
11585   dgux*)
11586     case $cc_basename in
11587       ec++*)
11588         # FIXME: insert proper C++ library support
11589         ld_shlibs_CXX=no
11590         ;;
11591       ghcx*)
11592         # Green Hills C++ Compiler
11593         # FIXME: insert proper C++ library support
11594         ld_shlibs_CXX=no
11595         ;;
11596       *)
11597         # FIXME: insert proper C++ library support
11598         ld_shlibs_CXX=no
11599         ;;
11600     esac
11601     ;;
11602   freebsd[12]*)
11603     # C++ shared libraries reported to be fairly broken before switch to ELF
11604     ld_shlibs_CXX=no
11605     ;;
11606   freebsd-elf*)
11607     archive_cmds_need_lc_CXX=no
11608     ;;
11609   freebsd* | dragonfly*)
11610     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11611     # conventions
11612     ld_shlibs_CXX=yes
11613     ;;
11614   gnu*)
11615     ;;
11616   hpux9*)
11617     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11618     hardcode_libdir_separator_CXX=:
11619     export_dynamic_flag_spec_CXX='${wl}-E'
11620     hardcode_direct_CXX=yes
11621     hardcode_minus_L_CXX=yes # Not in the search PATH,
11622                                 # but as the default
11623                                 # location of the library.
11624
11625     case $cc_basename in
11626     CC*)
11627       # FIXME: insert proper C++ library support
11628       ld_shlibs_CXX=no
11629       ;;
11630     aCC*)
11631       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'
11632       # Commands to make compiler produce verbose output that lists
11633       # what "hidden" libraries, object files and flags are used when
11634       # linking a shared library.
11635       #
11636       # There doesn't appear to be a way to prevent this compiler from
11637       # explicitly linking system object files so we need to strip them
11638       # from the output so that they don't get included in the library
11639       # dependencies.
11640       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'
11641       ;;
11642     *)
11643       if test "$GXX" = yes; then
11644         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'
11645       else
11646         # FIXME: insert proper C++ library support
11647         ld_shlibs_CXX=no
11648       fi
11649       ;;
11650     esac
11651     ;;
11652   hpux10*|hpux11*)
11653     if test $with_gnu_ld = no; then
11654       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11655       hardcode_libdir_separator_CXX=:
11656
11657       case $host_cpu in
11658       hppa*64*|ia64*) ;;
11659       *)
11660         export_dynamic_flag_spec_CXX='${wl}-E'
11661         ;;
11662       esac
11663     fi
11664     case $host_cpu in
11665     hppa*64*|ia64*)
11666       hardcode_direct_CXX=no
11667       hardcode_shlibpath_var_CXX=no
11668       ;;
11669     *)
11670       hardcode_direct_CXX=yes
11671       hardcode_minus_L_CXX=yes # Not in the search PATH,
11672                                               # but as the default
11673                                               # location of the library.
11674       ;;
11675     esac
11676
11677     case $cc_basename in
11678       CC*)
11679         # FIXME: insert proper C++ library support
11680         ld_shlibs_CXX=no
11681         ;;
11682       aCC*)
11683         case $host_cpu in
11684         hppa*64*)
11685           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11686           ;;
11687         ia64*)
11688           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11689           ;;
11690         *)
11691           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692           ;;
11693         esac
11694         # Commands to make compiler produce verbose output that lists
11695         # what "hidden" libraries, object files and flags are used when
11696         # linking a shared library.
11697         #
11698         # There doesn't appear to be a way to prevent this compiler from
11699         # explicitly linking system object files so we need to strip them
11700         # from the output so that they don't get included in the library
11701         # dependencies.
11702         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'
11703         ;;
11704       *)
11705         if test "$GXX" = yes; then
11706           if test $with_gnu_ld = no; then
11707             case $host_cpu in
11708             hppa*64*)
11709               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710               ;;
11711             ia64*)
11712               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713               ;;
11714             *)
11715               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'
11716               ;;
11717             esac
11718           fi
11719         else
11720           # FIXME: insert proper C++ library support
11721           ld_shlibs_CXX=no
11722         fi
11723         ;;
11724     esac
11725     ;;
11726   interix[3-9]*)
11727     hardcode_direct_CXX=no
11728     hardcode_shlibpath_var_CXX=no
11729     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11730     export_dynamic_flag_spec_CXX='${wl}-E'
11731     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11732     # Instead, shared libraries are loaded at an image base (0x10000000 by
11733     # default) and relocated if they conflict, which is a slow very memory
11734     # consuming and fragmenting process.  To avoid this, we pick a random,
11735     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11736     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11737     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'
11738     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'
11739     ;;
11740   irix5* | irix6*)
11741     case $cc_basename in
11742       CC*)
11743         # SGI C++
11744         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'
11745
11746         # Archives containing C++ object files must be created using
11747         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11748         # necessary to make sure instantiated templates are included
11749         # in the archive.
11750         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11751         ;;
11752       *)
11753         if test "$GXX" = yes; then
11754           if test "$with_gnu_ld" = no; then
11755             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'
11756           else
11757             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'
11758           fi
11759         fi
11760         link_all_deplibs_CXX=yes
11761         ;;
11762     esac
11763     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11764     hardcode_libdir_separator_CXX=:
11765     ;;
11766   linux* | k*bsd*-gnu)
11767     case $cc_basename in
11768       KCC*)
11769         # Kuck and Associates, Inc. (KAI) C++ Compiler
11770
11771         # KCC will only create a shared library if the output file
11772         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773         # to its proper name (with version) after linking.
11774         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'
11775         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'
11776         # Commands to make compiler produce verbose output that lists
11777         # what "hidden" libraries, object files and flags are used when
11778         # linking a shared library.
11779         #
11780         # There doesn't appear to be a way to prevent this compiler from
11781         # explicitly linking system object files so we need to strip them
11782         # from the output so that they don't get included in the library
11783         # dependencies.
11784         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'
11785
11786         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11787         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11788
11789         # Archives containing C++ object files must be created using
11790         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11791         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11792         ;;
11793       icpc*)
11794         # Intel C++
11795         with_gnu_ld=yes
11796         # version 8.0 and above of icpc choke on multiply defined symbols
11797         # if we add $predep_objects and $postdep_objects, however 7.1 and
11798         # earlier do not add the objects themselves.
11799         case `$CC -V 2>&1` in
11800         *"Version 7."*)
11801           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802           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'
11803           ;;
11804         *)  # Version 8.0 or newer
11805           tmp_idyn=
11806           case $host_cpu in
11807             ia64*) tmp_idyn=' -i_dynamic';;
11808           esac
11809           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810           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'
11811           ;;
11812         esac
11813         archive_cmds_need_lc_CXX=no
11814         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11815         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11817         ;;
11818       pgCC* | pgcpp*)
11819         # Portland Group C++ compiler
11820         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11821         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'
11822
11823         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11824         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11825         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'
11826         ;;
11827       cxx*)
11828         # Compaq C++
11829         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830         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'
11831
11832         runpath_var=LD_RUN_PATH
11833         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11834         hardcode_libdir_separator_CXX=:
11835
11836         # Commands to make compiler produce verbose output that lists
11837         # what "hidden" libraries, object files and flags are used when
11838         # linking a shared library.
11839         #
11840         # There doesn't appear to be a way to prevent this compiler from
11841         # explicitly linking system object files so we need to strip them
11842         # from the output so that they don't get included in the library
11843         # dependencies.
11844         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'
11845         ;;
11846       *)
11847         case `$CC -V 2>&1 | sed 5q` in
11848         *Sun\ C*)
11849           # Sun C++ 5.9
11850           no_undefined_flag_CXX=' -zdefs'
11851           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852           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'
11853           hardcode_libdir_flag_spec_CXX='-R$libdir'
11854           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'
11855
11856           # Not sure whether something based on
11857           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11858           # would be better.
11859           output_verbose_link_cmd='echo'
11860
11861           # Archives containing C++ object files must be created using
11862           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11863           # necessary to make sure instantiated templates are included
11864           # in the archive.
11865           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11866           ;;
11867         esac
11868         ;;
11869     esac
11870     ;;
11871   lynxos*)
11872     # FIXME: insert proper C++ library support
11873     ld_shlibs_CXX=no
11874     ;;
11875   m88k*)
11876     # FIXME: insert proper C++ library support
11877     ld_shlibs_CXX=no
11878     ;;
11879   mvs*)
11880     case $cc_basename in
11881       cxx*)
11882         # FIXME: insert proper C++ library support
11883         ld_shlibs_CXX=no
11884         ;;
11885       *)
11886         # FIXME: insert proper C++ library support
11887         ld_shlibs_CXX=no
11888         ;;
11889     esac
11890     ;;
11891   netbsd* | netbsdelf*-gnu)
11892     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11893       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11894       wlarc=
11895       hardcode_libdir_flag_spec_CXX='-R$libdir'
11896       hardcode_direct_CXX=yes
11897       hardcode_shlibpath_var_CXX=no
11898     fi
11899     # Workaround some broken pre-1.5 toolchains
11900     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11901     ;;
11902   openbsd2*)
11903     # C++ shared libraries are fairly broken
11904     ld_shlibs_CXX=no
11905     ;;
11906   openbsd*)
11907     if test -f /usr/libexec/ld.so; then
11908       hardcode_direct_CXX=yes
11909       hardcode_shlibpath_var_CXX=no
11910       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11911       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11912       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11913         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11914         export_dynamic_flag_spec_CXX='${wl}-E'
11915         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11916       fi
11917       output_verbose_link_cmd='echo'
11918     else
11919       ld_shlibs_CXX=no
11920     fi
11921     ;;
11922   osf3*)
11923     case $cc_basename in
11924       KCC*)
11925         # Kuck and Associates, Inc. (KAI) C++ Compiler
11926
11927         # KCC will only create a shared library if the output file
11928         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11929         # to its proper name (with version) after linking.
11930         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'
11931
11932         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11933         hardcode_libdir_separator_CXX=:
11934
11935         # Archives containing C++ object files must be created using
11936         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11937         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11938
11939         ;;
11940       RCC*)
11941         # Rational C++ 2.4.1
11942         # FIXME: insert proper C++ library support
11943         ld_shlibs_CXX=no
11944         ;;
11945       cxx*)
11946         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11947         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'
11948
11949         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11950         hardcode_libdir_separator_CXX=:
11951
11952         # Commands to make compiler produce verbose output that lists
11953         # what "hidden" libraries, object files and flags are used when
11954         # linking a shared library.
11955         #
11956         # There doesn't appear to be a way to prevent this compiler from
11957         # explicitly linking system object files so we need to strip them
11958         # from the output so that they don't get included in the library
11959         # dependencies.
11960         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'
11961         ;;
11962       *)
11963         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11964           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11965           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'
11966
11967           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11968           hardcode_libdir_separator_CXX=:
11969
11970           # Commands to make compiler produce verbose output that lists
11971           # what "hidden" libraries, object files and flags are used when
11972           # linking a shared library.
11973           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11974
11975         else
11976           # FIXME: insert proper C++ library support
11977           ld_shlibs_CXX=no
11978         fi
11979         ;;
11980     esac
11981     ;;
11982   osf4* | osf5*)
11983     case $cc_basename in
11984       KCC*)
11985         # Kuck and Associates, Inc. (KAI) C++ Compiler
11986
11987         # KCC will only create a shared library if the output file
11988         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11989         # to its proper name (with version) after linking.
11990         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'
11991
11992         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11993         hardcode_libdir_separator_CXX=:
11994
11995         # Archives containing C++ object files must be created using
11996         # the KAI C++ compiler.
11997         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11998         ;;
11999       RCC*)
12000         # Rational C++ 2.4.1
12001         # FIXME: insert proper C++ library support
12002         ld_shlibs_CXX=no
12003         ;;
12004       cxx*)
12005         allow_undefined_flag_CXX=' -expect_unresolved \*'
12006         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'
12007         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12008           echo "-hidden">> $lib.exp~
12009           $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~
12010           $rm $lib.exp'
12011
12012         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12013         hardcode_libdir_separator_CXX=:
12014
12015         # Commands to make compiler produce verbose output that lists
12016         # what "hidden" libraries, object files and flags are used when
12017         # linking a shared library.
12018         #
12019         # There doesn't appear to be a way to prevent this compiler from
12020         # explicitly linking system object files so we need to strip them
12021         # from the output so that they don't get included in the library
12022         # dependencies.
12023         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'
12024         ;;
12025       *)
12026         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12027           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12028          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'
12029
12030           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031           hardcode_libdir_separator_CXX=:
12032
12033           # Commands to make compiler produce verbose output that lists
12034           # what "hidden" libraries, object files and flags are used when
12035           # linking a shared library.
12036           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12037
12038         else
12039           # FIXME: insert proper C++ library support
12040           ld_shlibs_CXX=no
12041         fi
12042         ;;
12043     esac
12044     ;;
12045   psos*)
12046     # FIXME: insert proper C++ library support
12047     ld_shlibs_CXX=no
12048     ;;
12049   sunos4*)
12050     case $cc_basename in
12051       CC*)
12052         # Sun C++ 4.x
12053         # FIXME: insert proper C++ library support
12054         ld_shlibs_CXX=no
12055         ;;
12056       lcc*)
12057         # Lucid
12058         # FIXME: insert proper C++ library support
12059         ld_shlibs_CXX=no
12060         ;;
12061       *)
12062         # FIXME: insert proper C++ library support
12063         ld_shlibs_CXX=no
12064         ;;
12065     esac
12066     ;;
12067   solaris*)
12068     case $cc_basename in
12069       CC*)
12070         # Sun C++ 4.2, 5.x and Centerline C++
12071         archive_cmds_need_lc_CXX=yes
12072         no_undefined_flag_CXX=' -zdefs'
12073         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075         $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'
12076
12077         hardcode_libdir_flag_spec_CXX='-R$libdir'
12078         hardcode_shlibpath_var_CXX=no
12079         case $host_os in
12080           solaris2.[0-5] | solaris2.[0-5].*) ;;
12081           *)
12082             # The compiler driver will combine and reorder linker options,
12083             # but understands `-z linker_flag'.
12084             # Supported since Solaris 2.6 (maybe 2.5.1?)
12085             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12086             ;;
12087         esac
12088         link_all_deplibs_CXX=yes
12089
12090         output_verbose_link_cmd='echo'
12091
12092         # Archives containing C++ object files must be created using
12093         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12094         # necessary to make sure instantiated templates are included
12095         # in the archive.
12096         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12097         ;;
12098       gcx*)
12099         # Green Hills C++ Compiler
12100         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12101
12102         # The C++ compiler must be used to create the archive.
12103         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12104         ;;
12105       *)
12106         # GNU C++ compiler with Solaris linker
12107         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12108           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12109           if $CC --version | grep -v '^2\.7' > /dev/null; then
12110             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12113
12114             # Commands to make compiler produce verbose output that lists
12115             # what "hidden" libraries, object files and flags are used when
12116             # linking a shared library.
12117             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12118           else
12119             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12120             # platform.
12121             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12122             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12123                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12124
12125             # Commands to make compiler produce verbose output that lists
12126             # what "hidden" libraries, object files and flags are used when
12127             # linking a shared library.
12128             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12129           fi
12130
12131           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12132           case $host_os in
12133           solaris2.[0-5] | solaris2.[0-5].*) ;;
12134           *)
12135             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12136             ;;
12137           esac
12138         fi
12139         ;;
12140     esac
12141     ;;
12142   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12143     no_undefined_flag_CXX='${wl}-z,text'
12144     archive_cmds_need_lc_CXX=no
12145     hardcode_shlibpath_var_CXX=no
12146     runpath_var='LD_RUN_PATH'
12147
12148     case $cc_basename in
12149       CC*)
12150         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12152         ;;
12153       *)
12154         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12156         ;;
12157     esac
12158     ;;
12159   sysv5* | sco3.2v5* | sco5v6*)
12160     # Note: We can NOT use -z defs as we might desire, because we do not
12161     # link with -lc, and that would cause any symbols used from libc to
12162     # always be unresolved, which means just about no library would
12163     # ever link correctly.  If we're not using GNU ld we use -z text
12164     # though, which does catch some bad symbols but isn't as heavy-handed
12165     # as -z defs.
12166     # For security reasons, it is highly recommended that you always
12167     # use absolute paths for naming shared libraries, and exclude the
12168     # DT_RUNPATH tag from executables and libraries.  But doing so
12169     # requires that you compile everything twice, which is a pain.
12170     # So that behaviour is only enabled if SCOABSPATH is set to a
12171     # non-empty value in the environment.  Most likely only useful for
12172     # creating official distributions of packages.
12173     # This is a hack until libtool officially supports absolute path
12174     # names for shared libraries.
12175     no_undefined_flag_CXX='${wl}-z,text'
12176     allow_undefined_flag_CXX='${wl}-z,nodefs'
12177     archive_cmds_need_lc_CXX=no
12178     hardcode_shlibpath_var_CXX=no
12179     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12180     hardcode_libdir_separator_CXX=':'
12181     link_all_deplibs_CXX=yes
12182     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12183     runpath_var='LD_RUN_PATH'
12184
12185     case $cc_basename in
12186       CC*)
12187         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12189         ;;
12190       *)
12191         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12193         ;;
12194     esac
12195     ;;
12196   tandem*)
12197     case $cc_basename in
12198       NCC*)
12199         # NonStop-UX NCC 3.20
12200         # FIXME: insert proper C++ library support
12201         ld_shlibs_CXX=no
12202         ;;
12203       *)
12204         # FIXME: insert proper C++ library support
12205         ld_shlibs_CXX=no
12206         ;;
12207     esac
12208     ;;
12209   vxworks*)
12210     # FIXME: insert proper C++ library support
12211     ld_shlibs_CXX=no
12212     ;;
12213   *)
12214     # FIXME: insert proper C++ library support
12215     ld_shlibs_CXX=no
12216     ;;
12217 esac
12218 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12219 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12220 test "$ld_shlibs_CXX" = no && can_build_shared=no
12221
12222 GCC_CXX="$GXX"
12223 LD_CXX="$LD"
12224
12225 cat > conftest.$ac_ext <<EOF
12226 class Foo
12227 {
12228 public:
12229   Foo (void) { a = 0; }
12230 private:
12231   int a;
12232 };
12233 EOF
12234
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236   (eval $ac_compile) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; then
12240   # Parse the compiler output and extract the necessary
12241   # objects, libraries and library flags.
12242
12243   # Sentinel used to keep track of whether or not we are before
12244   # the conftest object file.
12245   pre_test_object_deps_done=no
12246
12247   # The `*' in the case matches for architectures that use `case' in
12248   # $output_verbose_cmd can trigger glob expansion during the loop
12249   # eval without this substitution.
12250   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12251
12252   for p in `eval $output_verbose_link_cmd`; do
12253     case $p in
12254
12255     -L* | -R* | -l*)
12256        # Some compilers place space between "-{L,R}" and the path.
12257        # Remove the space.
12258        if test $p = "-L" \
12259           || test $p = "-R"; then
12260          prev=$p
12261          continue
12262        else
12263          prev=
12264        fi
12265
12266        if test "$pre_test_object_deps_done" = no; then
12267          case $p in
12268          -L* | -R*)
12269            # Internal compiler library paths should come after those
12270            # provided the user.  The postdeps already come after the
12271            # user supplied libs so there is no need to process them.
12272            if test -z "$compiler_lib_search_path_CXX"; then
12273              compiler_lib_search_path_CXX="${prev}${p}"
12274            else
12275              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12276            fi
12277            ;;
12278          # The "-l" case would never come before the object being
12279          # linked, so don't bother handling this case.
12280          esac
12281        else
12282          if test -z "$postdeps_CXX"; then
12283            postdeps_CXX="${prev}${p}"
12284          else
12285            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12286          fi
12287        fi
12288        ;;
12289
12290     *.$objext)
12291        # This assumes that the test object file only shows up
12292        # once in the compiler output.
12293        if test "$p" = "conftest.$objext"; then
12294          pre_test_object_deps_done=yes
12295          continue
12296        fi
12297
12298        if test "$pre_test_object_deps_done" = no; then
12299          if test -z "$predep_objects_CXX"; then
12300            predep_objects_CXX="$p"
12301          else
12302            predep_objects_CXX="$predep_objects_CXX $p"
12303          fi
12304        else
12305          if test -z "$postdep_objects_CXX"; then
12306            postdep_objects_CXX="$p"
12307          else
12308            postdep_objects_CXX="$postdep_objects_CXX $p"
12309          fi
12310        fi
12311        ;;
12312
12313     *) ;; # Ignore the rest.
12314
12315     esac
12316   done
12317
12318   # Clean up.
12319   rm -f a.out a.exe
12320 else
12321   echo "libtool.m4: error: problem compiling CXX test program"
12322 fi
12323
12324 $rm -f confest.$objext
12325
12326 compiler_lib_search_dirs_CXX=
12327 if test -n "$compiler_lib_search_path_CXX"; then
12328   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12329 fi
12330
12331 # PORTME: override above test on systems where it is broken
12332 case $host_os in
12333 interix[3-9]*)
12334   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12335   # hack all around it, let's just trust "g++" to DTRT.
12336   predep_objects_CXX=
12337   postdep_objects_CXX=
12338   postdeps_CXX=
12339   ;;
12340
12341 linux*)
12342   case `$CC -V 2>&1 | sed 5q` in
12343   *Sun\ C*)
12344     # Sun C++ 5.9
12345     #
12346     # The more standards-conforming stlport4 library is
12347     # incompatible with the Cstd library. Avoid specifying
12348     # it if it's in CXXFLAGS. Ignore libCrun as
12349     # -library=stlport4 depends on it.
12350     case " $CXX $CXXFLAGS " in
12351     *" -library=stlport4 "*)
12352       solaris_use_stlport4=yes
12353       ;;
12354     esac
12355     if test "$solaris_use_stlport4" != yes; then
12356       postdeps_CXX='-library=Cstd -library=Crun'
12357     fi
12358     ;;
12359   esac
12360   ;;
12361
12362 solaris*)
12363   case $cc_basename in
12364   CC*)
12365     # The more standards-conforming stlport4 library is
12366     # incompatible with the Cstd library. Avoid specifying
12367     # it if it's in CXXFLAGS. Ignore libCrun as
12368     # -library=stlport4 depends on it.
12369     case " $CXX $CXXFLAGS " in
12370     *" -library=stlport4 "*)
12371       solaris_use_stlport4=yes
12372       ;;
12373     esac
12374
12375     # Adding this requires a known-good setup of shared libraries for
12376     # Sun compiler versions before 5.6, else PIC objects from an old
12377     # archive will be linked into the output, leading to subtle bugs.
12378     if test "$solaris_use_stlport4" != yes; then
12379       postdeps_CXX='-library=Cstd -library=Crun'
12380     fi
12381     ;;
12382   esac
12383   ;;
12384 esac
12385
12386 case " $postdeps_CXX " in
12387 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12388 esac
12389
12390 lt_prog_compiler_wl_CXX=
12391 lt_prog_compiler_pic_CXX=
12392 lt_prog_compiler_static_CXX=
12393
12394 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12395 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12396
12397   # C++ specific cases for pic, static, wl, etc.
12398   if test "$GXX" = yes; then
12399     lt_prog_compiler_wl_CXX='-Wl,'
12400     lt_prog_compiler_static_CXX='-static'
12401
12402     case $host_os in
12403     aix*)
12404       # All AIX code is PIC.
12405       if test "$host_cpu" = ia64; then
12406         # AIX 5 now supports IA64 processor
12407         lt_prog_compiler_static_CXX='-Bstatic'
12408       fi
12409       ;;
12410     amigaos*)
12411       # FIXME: we need at least 68020 code to build shared libraries, but
12412       # adding the `-m68020' flag to GCC prevents building anything better,
12413       # like `-m68040'.
12414       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12415       ;;
12416     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12417       # PIC is the default for these OSes.
12418       ;;
12419     mingw* | cygwin* | os2* | pw32*)
12420       # This hack is so that the source file can tell whether it is being
12421       # built for inclusion in a dll (and should export symbols for example).
12422       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12423       # (--disable-auto-import) libraries
12424       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12425       ;;
12426     darwin* | rhapsody*)
12427       # PIC is the default on this platform
12428       # Common symbols not allowed in MH_DYLIB files
12429       lt_prog_compiler_pic_CXX='-fno-common'
12430       ;;
12431     *djgpp*)
12432       # DJGPP does not support shared libraries at all
12433       lt_prog_compiler_pic_CXX=
12434       ;;
12435     interix[3-9]*)
12436       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12437       # Instead, we relocate shared libraries at runtime.
12438       ;;
12439     sysv4*MP*)
12440       if test -d /usr/nec; then
12441         lt_prog_compiler_pic_CXX=-Kconform_pic
12442       fi
12443       ;;
12444     hpux*)
12445       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12446       # not for PA HP-UX.
12447       case $host_cpu in
12448       hppa*64*|ia64*)
12449         ;;
12450       *)
12451         lt_prog_compiler_pic_CXX='-fPIC'
12452         ;;
12453       esac
12454       ;;
12455     *)
12456       lt_prog_compiler_pic_CXX='-fPIC'
12457       ;;
12458     esac
12459   else
12460     case $host_os in
12461       aix[4-9]*)
12462         # All AIX code is PIC.
12463         if test "$host_cpu" = ia64; then
12464           # AIX 5 now supports IA64 processor
12465           lt_prog_compiler_static_CXX='-Bstatic'
12466         else
12467           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12468         fi
12469         ;;
12470       chorus*)
12471         case $cc_basename in
12472         cxch68*)
12473           # Green Hills C++ Compiler
12474           # _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"
12475           ;;
12476         esac
12477         ;;
12478        darwin*)
12479          # PIC is the default on this platform
12480          # Common symbols not allowed in MH_DYLIB files
12481          case $cc_basename in
12482            xlc*)
12483            lt_prog_compiler_pic_CXX='-qnocommon'
12484            lt_prog_compiler_wl_CXX='-Wl,'
12485            ;;
12486          esac
12487        ;;
12488       dgux*)
12489         case $cc_basename in
12490           ec++*)
12491             lt_prog_compiler_pic_CXX='-KPIC'
12492             ;;
12493           ghcx*)
12494             # Green Hills C++ Compiler
12495             lt_prog_compiler_pic_CXX='-pic'
12496             ;;
12497           *)
12498             ;;
12499         esac
12500         ;;
12501       freebsd* | dragonfly*)
12502         # FreeBSD uses GNU C++
12503         ;;
12504       hpux9* | hpux10* | hpux11*)
12505         case $cc_basename in
12506           CC*)
12507             lt_prog_compiler_wl_CXX='-Wl,'
12508             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12509             if test "$host_cpu" != ia64; then
12510               lt_prog_compiler_pic_CXX='+Z'
12511             fi
12512             ;;
12513           aCC*)
12514             lt_prog_compiler_wl_CXX='-Wl,'
12515             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12516             case $host_cpu in
12517             hppa*64*|ia64*)
12518               # +Z the default
12519               ;;
12520             *)
12521               lt_prog_compiler_pic_CXX='+Z'
12522               ;;
12523             esac
12524             ;;
12525           *)
12526             ;;
12527         esac
12528         ;;
12529       interix*)
12530         # This is c89, which is MS Visual C++ (no shared libs)
12531         # Anyone wants to do a port?
12532         ;;
12533       irix5* | irix6* | nonstopux*)
12534         case $cc_basename in
12535           CC*)
12536             lt_prog_compiler_wl_CXX='-Wl,'
12537             lt_prog_compiler_static_CXX='-non_shared'
12538             # CC pic flag -KPIC is the default.
12539             ;;
12540           *)
12541             ;;
12542         esac
12543         ;;
12544       linux* | k*bsd*-gnu)
12545         case $cc_basename in
12546           KCC*)
12547             # KAI C++ Compiler
12548             lt_prog_compiler_wl_CXX='--backend -Wl,'
12549             lt_prog_compiler_pic_CXX='-fPIC'
12550             ;;
12551           icpc* | ecpc*)
12552             # Intel C++
12553             lt_prog_compiler_wl_CXX='-Wl,'
12554             lt_prog_compiler_pic_CXX='-KPIC'
12555             lt_prog_compiler_static_CXX='-static'
12556             ;;
12557           pgCC* | pgcpp*)
12558             # Portland Group C++ compiler.
12559             lt_prog_compiler_wl_CXX='-Wl,'
12560             lt_prog_compiler_pic_CXX='-fpic'
12561             lt_prog_compiler_static_CXX='-Bstatic'
12562             ;;
12563           cxx*)
12564             # Compaq C++
12565             # Make sure the PIC flag is empty.  It appears that all Alpha
12566             # Linux and Compaq Tru64 Unix objects are PIC.
12567             lt_prog_compiler_pic_CXX=
12568             lt_prog_compiler_static_CXX='-non_shared'
12569             ;;
12570           *)
12571             case `$CC -V 2>&1 | sed 5q` in
12572             *Sun\ C*)
12573               # Sun C++ 5.9
12574               lt_prog_compiler_pic_CXX='-KPIC'
12575               lt_prog_compiler_static_CXX='-Bstatic'
12576               lt_prog_compiler_wl_CXX='-Qoption ld '
12577               ;;
12578             esac
12579             ;;
12580         esac
12581         ;;
12582       lynxos*)
12583         ;;
12584       m88k*)
12585         ;;
12586       mvs*)
12587         case $cc_basename in
12588           cxx*)
12589             lt_prog_compiler_pic_CXX='-W c,exportall'
12590             ;;
12591           *)
12592             ;;
12593         esac
12594         ;;
12595       netbsd* | netbsdelf*-gnu)
12596         ;;
12597       osf3* | osf4* | osf5*)
12598         case $cc_basename in
12599           KCC*)
12600             lt_prog_compiler_wl_CXX='--backend -Wl,'
12601             ;;
12602           RCC*)
12603             # Rational C++ 2.4.1
12604             lt_prog_compiler_pic_CXX='-pic'
12605             ;;
12606           cxx*)
12607             # Digital/Compaq C++
12608             lt_prog_compiler_wl_CXX='-Wl,'
12609             # Make sure the PIC flag is empty.  It appears that all Alpha
12610             # Linux and Compaq Tru64 Unix objects are PIC.
12611             lt_prog_compiler_pic_CXX=
12612             lt_prog_compiler_static_CXX='-non_shared'
12613             ;;
12614           *)
12615             ;;
12616         esac
12617         ;;
12618       psos*)
12619         ;;
12620       solaris*)
12621         case $cc_basename in
12622           CC*)
12623             # Sun C++ 4.2, 5.x and Centerline C++
12624             lt_prog_compiler_pic_CXX='-KPIC'
12625             lt_prog_compiler_static_CXX='-Bstatic'
12626             lt_prog_compiler_wl_CXX='-Qoption ld '
12627             ;;
12628           gcx*)
12629             # Green Hills C++ Compiler
12630             lt_prog_compiler_pic_CXX='-PIC'
12631             ;;
12632           *)
12633             ;;
12634         esac
12635         ;;
12636       sunos4*)
12637         case $cc_basename in
12638           CC*)
12639             # Sun C++ 4.x
12640             lt_prog_compiler_pic_CXX='-pic'
12641             lt_prog_compiler_static_CXX='-Bstatic'
12642             ;;
12643           lcc*)
12644             # Lucid
12645             lt_prog_compiler_pic_CXX='-pic'
12646             ;;
12647           *)
12648             ;;
12649         esac
12650         ;;
12651       tandem*)
12652         case $cc_basename in
12653           NCC*)
12654             # NonStop-UX NCC 3.20
12655             lt_prog_compiler_pic_CXX='-KPIC'
12656             ;;
12657           *)
12658             ;;
12659         esac
12660         ;;
12661       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12662         case $cc_basename in
12663           CC*)
12664             lt_prog_compiler_wl_CXX='-Wl,'
12665             lt_prog_compiler_pic_CXX='-KPIC'
12666             lt_prog_compiler_static_CXX='-Bstatic'
12667             ;;
12668         esac
12669         ;;
12670       vxworks*)
12671         ;;
12672       *)
12673         lt_prog_compiler_can_build_shared_CXX=no
12674         ;;
12675     esac
12676   fi
12677
12678 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12679 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12680
12681 #
12682 # Check to make sure the PIC flag actually works.
12683 #
12684 if test -n "$lt_prog_compiler_pic_CXX"; then
12685
12686 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12687 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12688 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   lt_cv_prog_compiler_pic_works_CXX=no
12692   ac_outfile=conftest.$ac_objext
12693    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12694    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12695    # Insert the option either (1) after the last *FLAGS variable, or
12696    # (2) before a word containing "conftest.", or (3) at the end.
12697    # Note that $ac_compile itself does not contain backslashes and begins
12698    # with a dollar sign (not a hyphen), so the echo should work correctly.
12699    # The option is referenced via a variable to avoid confusing sed.
12700    lt_compile=`echo "$ac_compile" | $SED \
12701    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12702    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12703    -e 's:$: $lt_compiler_flag:'`
12704    (eval echo "\"\$as_me:12704: $lt_compile\"" >&5)
12705    (eval "$lt_compile" 2>conftest.err)
12706    ac_status=$?
12707    cat conftest.err >&5
12708    echo "$as_me:12708: \$? = $ac_status" >&5
12709    if (exit $ac_status) && test -s "$ac_outfile"; then
12710      # The compiler can only warn and ignore the option if not recognized
12711      # So say no if there are warnings other than the usual output.
12712      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12713      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12714      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12715        lt_cv_prog_compiler_pic_works_CXX=yes
12716      fi
12717    fi
12718    $rm conftest*
12719
12720 fi
12721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12722 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12723
12724 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12725     case $lt_prog_compiler_pic_CXX in
12726      "" | " "*) ;;
12727      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12728      esac
12729 else
12730     lt_prog_compiler_pic_CXX=
12731      lt_prog_compiler_can_build_shared_CXX=no
12732 fi
12733
12734 fi
12735 case $host_os in
12736   # For platforms which do not support PIC, -DPIC is meaningless:
12737   *djgpp*)
12738     lt_prog_compiler_pic_CXX=
12739     ;;
12740   *)
12741     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12742     ;;
12743 esac
12744
12745 #
12746 # Check to make sure the static flag actually works.
12747 #
12748 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12749 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12750 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12751 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   lt_cv_prog_compiler_static_works_CXX=no
12755    save_LDFLAGS="$LDFLAGS"
12756    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12757    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12758    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12759      # The linker can only warn and ignore the option if not recognized
12760      # So say no if there are warnings
12761      if test -s conftest.err; then
12762        # Append any errors to the config.log.
12763        cat conftest.err 1>&5
12764        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12765        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12766        if diff conftest.exp conftest.er2 >/dev/null; then
12767          lt_cv_prog_compiler_static_works_CXX=yes
12768        fi
12769      else
12770        lt_cv_prog_compiler_static_works_CXX=yes
12771      fi
12772    fi
12773    $rm -r conftest*
12774    LDFLAGS="$save_LDFLAGS"
12775
12776 fi
12777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12778 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12779
12780 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12781     :
12782 else
12783     lt_prog_compiler_static_CXX=
12784 fi
12785
12786
12787 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12788 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12789 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   lt_cv_prog_compiler_c_o_CXX=no
12793    $rm -r conftest 2>/dev/null
12794    mkdir conftest
12795    cd conftest
12796    mkdir out
12797    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12798
12799    lt_compiler_flag="-o out/conftest2.$ac_objext"
12800    # Insert the option either (1) after the last *FLAGS variable, or
12801    # (2) before a word containing "conftest.", or (3) at the end.
12802    # Note that $ac_compile itself does not contain backslashes and begins
12803    # with a dollar sign (not a hyphen), so the echo should work correctly.
12804    lt_compile=`echo "$ac_compile" | $SED \
12805    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12807    -e 's:$: $lt_compiler_flag:'`
12808    (eval echo "\"\$as_me:12808: $lt_compile\"" >&5)
12809    (eval "$lt_compile" 2>out/conftest.err)
12810    ac_status=$?
12811    cat out/conftest.err >&5
12812    echo "$as_me:12812: \$? = $ac_status" >&5
12813    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12814    then
12815      # The compiler can only warn and ignore the option if not recognized
12816      # So say no if there are warnings
12817      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12818      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12819      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12820        lt_cv_prog_compiler_c_o_CXX=yes
12821      fi
12822    fi
12823    chmod u+w . 2>&5
12824    $rm conftest*
12825    # SGI C++ compiler will create directory out/ii_files/ for
12826    # template instantiation
12827    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12828    $rm out/* && rmdir out
12829    cd ..
12830    rmdir conftest
12831    $rm conftest*
12832
12833 fi
12834 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12835 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12836
12837
12838 hard_links="nottested"
12839 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12840   # do not overwrite the value of need_locks provided by the user
12841   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12842 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12843   hard_links=yes
12844   $rm conftest*
12845   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12846   touch conftest.a
12847   ln conftest.a conftest.b 2>&5 || hard_links=no
12848   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12849   { echo "$as_me:$LINENO: result: $hard_links" >&5
12850 echo "${ECHO_T}$hard_links" >&6; }
12851   if test "$hard_links" = no; then
12852     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12853 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12854     need_locks=warn
12855   fi
12856 else
12857   need_locks=no
12858 fi
12859
12860 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12861 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12862
12863   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12864   case $host_os in
12865   aix[4-9]*)
12866     # If we're using GNU nm, then we don't want the "-C" option.
12867     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12868     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12869       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'
12870     else
12871       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'
12872     fi
12873     ;;
12874   pw32*)
12875     export_symbols_cmds_CXX="$ltdll_cmds"
12876   ;;
12877   cygwin* | mingw*)
12878     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'
12879   ;;
12880   linux* | k*bsd*-gnu)
12881     link_all_deplibs_CXX=no
12882   ;;
12883   *)
12884     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12885   ;;
12886   esac
12887   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12888
12889 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12890 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12891 test "$ld_shlibs_CXX" = no && can_build_shared=no
12892
12893 #
12894 # Do we need to explicitly link libc?
12895 #
12896 case "x$archive_cmds_need_lc_CXX" in
12897 x|xyes)
12898   # Assume -lc should be added
12899   archive_cmds_need_lc_CXX=yes
12900
12901   if test "$enable_shared" = yes && test "$GCC" = yes; then
12902     case $archive_cmds_CXX in
12903     *'~'*)
12904       # FIXME: we may have to deal with multi-command sequences.
12905       ;;
12906     '$CC '*)
12907       # Test whether the compiler implicitly links with -lc since on some
12908       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12909       # to ld, don't add -lc before -lgcc.
12910       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12912       $rm conftest*
12913       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12914
12915       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916   (eval $ac_compile) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); } 2>conftest.err; then
12920         soname=conftest
12921         lib=conftest
12922         libobjs=conftest.$ac_objext
12923         deplibs=
12924         wl=$lt_prog_compiler_wl_CXX
12925         pic_flag=$lt_prog_compiler_pic_CXX
12926         compiler_flags=-v
12927         linker_flags=-v
12928         verstring=
12929         output_objdir=.
12930         libname=conftest
12931         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12932         allow_undefined_flag_CXX=
12933         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12934   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }
12938         then
12939           archive_cmds_need_lc_CXX=no
12940         else
12941           archive_cmds_need_lc_CXX=yes
12942         fi
12943         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12944       else
12945         cat conftest.err 1>&5
12946       fi
12947       $rm conftest*
12948       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12949 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12950       ;;
12951     esac
12952   fi
12953   ;;
12954 esac
12955
12956 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12958 library_names_spec=
12959 libname_spec='lib$name'
12960 soname_spec=
12961 shrext_cmds=".so"
12962 postinstall_cmds=
12963 postuninstall_cmds=
12964 finish_cmds=
12965 finish_eval=
12966 shlibpath_var=
12967 shlibpath_overrides_runpath=unknown
12968 version_type=none
12969 dynamic_linker="$host_os ld.so"
12970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12971
12972 need_lib_prefix=unknown
12973 hardcode_into_libs=no
12974
12975 # when you set need_version to no, make sure it does not cause -set_version
12976 # flags to be left without arguments
12977 need_version=unknown
12978
12979 case $host_os in
12980 aix3*)
12981   version_type=linux
12982   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12983   shlibpath_var=LIBPATH
12984
12985   # AIX 3 has no versioning support, so we append a major version to the name.
12986   soname_spec='${libname}${release}${shared_ext}$major'
12987   ;;
12988
12989 aix[4-9]*)
12990   version_type=linux
12991   need_lib_prefix=no
12992   need_version=no
12993   hardcode_into_libs=yes
12994   if test "$host_cpu" = ia64; then
12995     # AIX 5 supports IA64
12996     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12997     shlibpath_var=LD_LIBRARY_PATH
12998   else
12999     # With GCC up to 2.95.x, collect2 would create an import file
13000     # for dependence libraries.  The import file would start with
13001     # the line `#! .'.  This would cause the generated library to
13002     # depend on `.', always an invalid library.  This was fixed in
13003     # development snapshots of GCC prior to 3.0.
13004     case $host_os in
13005       aix4 | aix4.[01] | aix4.[01].*)
13006       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13007            echo ' yes '
13008            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13009         :
13010       else
13011         can_build_shared=no
13012       fi
13013       ;;
13014     esac
13015     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13016     # soname into executable. Probably we can add versioning support to
13017     # collect2, so additional links can be useful in future.
13018     if test "$aix_use_runtimelinking" = yes; then
13019       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13020       # instead of lib<name>.a to let people know that these are not
13021       # typical AIX shared libraries.
13022       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023     else
13024       # We preserve .a as extension for shared libraries through AIX4.2
13025       # and later when we are not doing run time linking.
13026       library_names_spec='${libname}${release}.a $libname.a'
13027       soname_spec='${libname}${release}${shared_ext}$major'
13028     fi
13029     shlibpath_var=LIBPATH
13030   fi
13031   ;;
13032
13033 amigaos*)
13034   library_names_spec='$libname.ixlibrary $libname.a'
13035   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13036   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'
13037   ;;
13038
13039 beos*)
13040   library_names_spec='${libname}${shared_ext}'
13041   dynamic_linker="$host_os ld.so"
13042   shlibpath_var=LIBRARY_PATH
13043   ;;
13044
13045 bsdi[45]*)
13046   version_type=linux
13047   need_version=no
13048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049   soname_spec='${libname}${release}${shared_ext}$major'
13050   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13051   shlibpath_var=LD_LIBRARY_PATH
13052   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13053   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13054   # the default ld.so.conf also contains /usr/contrib/lib and
13055   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13056   # libtool to hard-code these into programs
13057   ;;
13058
13059 cygwin* | mingw* | pw32*)
13060   version_type=windows
13061   shrext_cmds=".dll"
13062   need_version=no
13063   need_lib_prefix=no
13064
13065   case $GCC,$host_os in
13066   yes,cygwin* | yes,mingw* | yes,pw32*)
13067     library_names_spec='$libname.dll.a'
13068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13069     postinstall_cmds='base_file=`basename \${file}`~
13070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13071       dldir=$destdir/`dirname \$dlpath`~
13072       test -d \$dldir || mkdir -p \$dldir~
13073       $install_prog $dir/$dlname \$dldir/$dlname~
13074       chmod a+x \$dldir/$dlname'
13075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13076       dlpath=$dir/\$dldll~
13077        $rm \$dlpath'
13078     shlibpath_overrides_runpath=yes
13079
13080     case $host_os in
13081     cygwin*)
13082       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13083       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13084       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13085       ;;
13086     mingw*)
13087       # MinGW DLLs use traditional 'lib' prefix
13088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13090       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13091         # It is most probably a Windows format PATH printed by
13092         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13093         # path with ; separators, and with drive letters. We can handle the
13094         # drive letters (cygwin fileutils understands them), so leave them,
13095         # especially as we might pass files found there to a mingw objdump,
13096         # which wouldn't understand a cygwinified path. Ahh.
13097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13098       else
13099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13100       fi
13101       ;;
13102     pw32*)
13103       # pw32 DLLs use 'pw' prefix rather than 'lib'
13104       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13105       ;;
13106     esac
13107     ;;
13108
13109   *)
13110     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13111     ;;
13112   esac
13113   dynamic_linker='Win32 ld.exe'
13114   # FIXME: first we should search . and the directory the executable is in
13115   shlibpath_var=PATH
13116   ;;
13117
13118 darwin* | rhapsody*)
13119   dynamic_linker="$host_os dyld"
13120   version_type=darwin
13121   need_lib_prefix=no
13122   need_version=no
13123   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13124   soname_spec='${libname}${release}${major}$shared_ext'
13125   shlibpath_overrides_runpath=yes
13126   shlibpath_var=DYLD_LIBRARY_PATH
13127   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13128
13129   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13130   ;;
13131
13132 dgux*)
13133   version_type=linux
13134   need_lib_prefix=no
13135   need_version=no
13136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13137   soname_spec='${libname}${release}${shared_ext}$major'
13138   shlibpath_var=LD_LIBRARY_PATH
13139   ;;
13140
13141 freebsd1*)
13142   dynamic_linker=no
13143   ;;
13144
13145 freebsd* | dragonfly*)
13146   # DragonFly does not have aout.  When/if they implement a new
13147   # versioning mechanism, adjust this.
13148   if test -x /usr/bin/objformat; then
13149     objformat=`/usr/bin/objformat`
13150   else
13151     case $host_os in
13152     freebsd[123]*) objformat=aout ;;
13153     *) objformat=elf ;;
13154     esac
13155   fi
13156   version_type=freebsd-$objformat
13157   case $version_type in
13158     freebsd-elf*)
13159       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13160       need_version=no
13161       need_lib_prefix=no
13162       ;;
13163     freebsd-*)
13164       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13165       need_version=yes
13166       ;;
13167   esac
13168   shlibpath_var=LD_LIBRARY_PATH
13169   case $host_os in
13170   freebsd2*)
13171     shlibpath_overrides_runpath=yes
13172     ;;
13173   freebsd3.[01]* | freebsdelf3.[01]*)
13174     shlibpath_overrides_runpath=yes
13175     hardcode_into_libs=yes
13176     ;;
13177   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13178   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13179     shlibpath_overrides_runpath=no
13180     hardcode_into_libs=yes
13181     ;;
13182   *) # from 4.6 on, and DragonFly
13183     shlibpath_overrides_runpath=yes
13184     hardcode_into_libs=yes
13185     ;;
13186   esac
13187   ;;
13188
13189 gnu*)
13190   version_type=linux
13191   need_lib_prefix=no
13192   need_version=no
13193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13194   soname_spec='${libname}${release}${shared_ext}$major'
13195   shlibpath_var=LD_LIBRARY_PATH
13196   hardcode_into_libs=yes
13197   ;;
13198
13199 hpux9* | hpux10* | hpux11*)
13200   # Give a soname corresponding to the major version so that dld.sl refuses to
13201   # link against other versions.
13202   version_type=sunos
13203   need_lib_prefix=no
13204   need_version=no
13205   case $host_cpu in
13206   ia64*)
13207     shrext_cmds='.so'
13208     hardcode_into_libs=yes
13209     dynamic_linker="$host_os dld.so"
13210     shlibpath_var=LD_LIBRARY_PATH
13211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213     soname_spec='${libname}${release}${shared_ext}$major'
13214     if test "X$HPUX_IA64_MODE" = X32; then
13215       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13216     else
13217       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13218     fi
13219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13220     ;;
13221    hppa*64*)
13222      shrext_cmds='.sl'
13223      hardcode_into_libs=yes
13224      dynamic_linker="$host_os dld.sl"
13225      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13226      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228      soname_spec='${libname}${release}${shared_ext}$major'
13229      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13230      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13231      ;;
13232    *)
13233     shrext_cmds='.sl'
13234     dynamic_linker="$host_os dld.sl"
13235     shlibpath_var=SHLIB_PATH
13236     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238     soname_spec='${libname}${release}${shared_ext}$major'
13239     ;;
13240   esac
13241   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13242   postinstall_cmds='chmod 555 $lib'
13243   ;;
13244
13245 interix[3-9]*)
13246   version_type=linux
13247   need_lib_prefix=no
13248   need_version=no
13249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13250   soname_spec='${libname}${release}${shared_ext}$major'
13251   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13252   shlibpath_var=LD_LIBRARY_PATH
13253   shlibpath_overrides_runpath=no
13254   hardcode_into_libs=yes
13255   ;;
13256
13257 irix5* | irix6* | nonstopux*)
13258   case $host_os in
13259     nonstopux*) version_type=nonstopux ;;
13260     *)
13261         if test "$lt_cv_prog_gnu_ld" = yes; then
13262                 version_type=linux
13263         else
13264                 version_type=irix
13265         fi ;;
13266   esac
13267   need_lib_prefix=no
13268   need_version=no
13269   soname_spec='${libname}${release}${shared_ext}$major'
13270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13271   case $host_os in
13272   irix5* | nonstopux*)
13273     libsuff= shlibsuff=
13274     ;;
13275   *)
13276     case $LD in # libtool.m4 will add one of these switches to LD
13277     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13278       libsuff= shlibsuff= libmagic=32-bit;;
13279     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13280       libsuff=32 shlibsuff=N32 libmagic=N32;;
13281     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13282       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13283     *) libsuff= shlibsuff= libmagic=never-match;;
13284     esac
13285     ;;
13286   esac
13287   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13288   shlibpath_overrides_runpath=no
13289   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13290   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13291   hardcode_into_libs=yes
13292   ;;
13293
13294 # No shared lib support for Linux oldld, aout, or coff.
13295 linux*oldld* | linux*aout* | linux*coff*)
13296   dynamic_linker=no
13297   ;;
13298
13299 # This must be Linux ELF.
13300 linux* | k*bsd*-gnu)
13301   version_type=linux
13302   need_lib_prefix=no
13303   need_version=no
13304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305   soname_spec='${libname}${release}${shared_ext}$major'
13306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13307   shlibpath_var=LD_LIBRARY_PATH
13308   shlibpath_overrides_runpath=no
13309   # This implies no fast_install, which is unacceptable.
13310   # Some rework will be needed to allow for fast_install
13311   # before this can be enabled.
13312   hardcode_into_libs=yes
13313
13314   # Append ld.so.conf contents to the search path
13315   if test -f /etc/ld.so.conf; then
13316     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' ' '`
13317     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13318   fi
13319
13320   # We used to test for /lib/ld.so.1 and disable shared libraries on
13321   # powerpc, because MkLinux only supported shared libraries with the
13322   # GNU dynamic linker.  Since this was broken with cross compilers,
13323   # most powerpc-linux boxes support dynamic linking these days and
13324   # people can always --disable-shared, the test was removed, and we
13325   # assume the GNU/Linux dynamic linker is in use.
13326   dynamic_linker='GNU/Linux ld.so'
13327   ;;
13328
13329 netbsdelf*-gnu)
13330   version_type=linux
13331   need_lib_prefix=no
13332   need_version=no
13333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13334   soname_spec='${libname}${release}${shared_ext}$major'
13335   shlibpath_var=LD_LIBRARY_PATH
13336   shlibpath_overrides_runpath=no
13337   hardcode_into_libs=yes
13338   dynamic_linker='NetBSD ld.elf_so'
13339   ;;
13340
13341 netbsd*)
13342   version_type=sunos
13343   need_lib_prefix=no
13344   need_version=no
13345   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13347     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13348     dynamic_linker='NetBSD (a.out) ld.so'
13349   else
13350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13351     soname_spec='${libname}${release}${shared_ext}$major'
13352     dynamic_linker='NetBSD ld.elf_so'
13353   fi
13354   shlibpath_var=LD_LIBRARY_PATH
13355   shlibpath_overrides_runpath=yes
13356   hardcode_into_libs=yes
13357   ;;
13358
13359 newsos6)
13360   version_type=linux
13361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362   shlibpath_var=LD_LIBRARY_PATH
13363   shlibpath_overrides_runpath=yes
13364   ;;
13365
13366 nto-qnx*)
13367   version_type=linux
13368   need_lib_prefix=no
13369   need_version=no
13370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371   soname_spec='${libname}${release}${shared_ext}$major'
13372   shlibpath_var=LD_LIBRARY_PATH
13373   shlibpath_overrides_runpath=yes
13374   ;;
13375
13376 openbsd*)
13377   version_type=sunos
13378   sys_lib_dlsearch_path_spec="/usr/lib"
13379   need_lib_prefix=no
13380   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13381   case $host_os in
13382     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13383     *)                         need_version=no  ;;
13384   esac
13385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13387   shlibpath_var=LD_LIBRARY_PATH
13388   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13389     case $host_os in
13390       openbsd2.[89] | openbsd2.[89].*)
13391         shlibpath_overrides_runpath=no
13392         ;;
13393       *)
13394         shlibpath_overrides_runpath=yes
13395         ;;
13396       esac
13397   else
13398     shlibpath_overrides_runpath=yes
13399   fi
13400   ;;
13401
13402 os2*)
13403   libname_spec='$name'
13404   shrext_cmds=".dll"
13405   need_lib_prefix=no
13406   library_names_spec='$libname${shared_ext} $libname.a'
13407   dynamic_linker='OS/2 ld.exe'
13408   shlibpath_var=LIBPATH
13409   ;;
13410
13411 osf3* | osf4* | osf5*)
13412   version_type=osf
13413   need_lib_prefix=no
13414   need_version=no
13415   soname_spec='${libname}${release}${shared_ext}$major'
13416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13419   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13420   ;;
13421
13422 rdos*)
13423   dynamic_linker=no
13424   ;;
13425
13426 solaris*)
13427   version_type=linux
13428   need_lib_prefix=no
13429   need_version=no
13430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431   soname_spec='${libname}${release}${shared_ext}$major'
13432   shlibpath_var=LD_LIBRARY_PATH
13433   shlibpath_overrides_runpath=yes
13434   hardcode_into_libs=yes
13435   # ldd complains unless libraries are executable
13436   postinstall_cmds='chmod +x $lib'
13437   ;;
13438
13439 sunos4*)
13440   version_type=sunos
13441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13442   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13443   shlibpath_var=LD_LIBRARY_PATH
13444   shlibpath_overrides_runpath=yes
13445   if test "$with_gnu_ld" = yes; then
13446     need_lib_prefix=no
13447   fi
13448   need_version=yes
13449   ;;
13450
13451 sysv4 | sysv4.3*)
13452   version_type=linux
13453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454   soname_spec='${libname}${release}${shared_ext}$major'
13455   shlibpath_var=LD_LIBRARY_PATH
13456   case $host_vendor in
13457     sni)
13458       shlibpath_overrides_runpath=no
13459       need_lib_prefix=no
13460       export_dynamic_flag_spec='${wl}-Blargedynsym'
13461       runpath_var=LD_RUN_PATH
13462       ;;
13463     siemens)
13464       need_lib_prefix=no
13465       ;;
13466     motorola)
13467       need_lib_prefix=no
13468       need_version=no
13469       shlibpath_overrides_runpath=no
13470       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13471       ;;
13472   esac
13473   ;;
13474
13475 sysv4*MP*)
13476   if test -d /usr/nec ;then
13477     version_type=linux
13478     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13479     soname_spec='$libname${shared_ext}.$major'
13480     shlibpath_var=LD_LIBRARY_PATH
13481   fi
13482   ;;
13483
13484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13485   version_type=freebsd-elf
13486   need_lib_prefix=no
13487   need_version=no
13488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13489   soname_spec='${libname}${release}${shared_ext}$major'
13490   shlibpath_var=LD_LIBRARY_PATH
13491   hardcode_into_libs=yes
13492   if test "$with_gnu_ld" = yes; then
13493     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13494     shlibpath_overrides_runpath=no
13495   else
13496     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13497     shlibpath_overrides_runpath=yes
13498     case $host_os in
13499       sco3.2v5*)
13500         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13501         ;;
13502     esac
13503   fi
13504   sys_lib_dlsearch_path_spec='/usr/lib'
13505   ;;
13506
13507 uts4*)
13508   version_type=linux
13509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510   soname_spec='${libname}${release}${shared_ext}$major'
13511   shlibpath_var=LD_LIBRARY_PATH
13512   ;;
13513
13514 *)
13515   dynamic_linker=no
13516   ;;
13517 esac
13518 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13519 echo "${ECHO_T}$dynamic_linker" >&6; }
13520 test "$dynamic_linker" = no && can_build_shared=no
13521
13522 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13526 fi
13527
13528 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13529 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13533 fi
13534
13535 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13536
13537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13538 if test "$GCC" = yes; then
13539   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13540 fi
13541
13542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13544 hardcode_action_CXX=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546    test -n "$runpath_var_CXX" || \
13547    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13548
13549   # We can hardcode non-existant directories.
13550   if test "$hardcode_direct_CXX" != no &&
13551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552      # have to relink, otherwise we might link with an installed library
13553      # when we should be linking with a yet-to-be-installed one
13554      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555      test "$hardcode_minus_L_CXX" != no; then
13556     # Linking always hardcodes the temporary library directory.
13557     hardcode_action_CXX=relink
13558   else
13559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560     hardcode_action_CXX=immediate
13561   fi
13562 else
13563   # We cannot hardcode anything, or else we can only hardcode existing
13564   # directories.
13565   hardcode_action_CXX=unsupported
13566 fi
13567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13569
13570 if test "$hardcode_action_CXX" = relink; then
13571   # Fast installation is not supported
13572   enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574      test "$enable_shared" = no; then
13575   # Fast installation is not necessary
13576   enable_fast_install=needless
13577 fi
13578
13579
13580 # The else clause should only fire when bootstrapping the
13581 # libtool distribution, otherwise you forgot to ship ltmain.sh
13582 # with your package, and you will get complaints that there are
13583 # no rules to generate ltmain.sh.
13584 if test -f "$ltmain"; then
13585   # See if we are running on zsh, and set the options which allow our commands through
13586   # without removal of \ escapes.
13587   if test -n "${ZSH_VERSION+set}" ; then
13588     setopt NO_GLOB_SUBST
13589   fi
13590   # Now quote all the things that may contain metacharacters while being
13591   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13592   # variables and quote the copies for generation of the libtool script.
13593   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13594     SED SHELL STRIP \
13595     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13596     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13597     deplibs_check_method reload_flag reload_cmds need_locks \
13598     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13599     lt_cv_sys_global_symbol_to_c_name_address \
13600     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13601     old_postinstall_cmds old_postuninstall_cmds \
13602     compiler_CXX \
13603     CC_CXX \
13604     LD_CXX \
13605     lt_prog_compiler_wl_CXX \
13606     lt_prog_compiler_pic_CXX \
13607     lt_prog_compiler_static_CXX \
13608     lt_prog_compiler_no_builtin_flag_CXX \
13609     export_dynamic_flag_spec_CXX \
13610     thread_safe_flag_spec_CXX \
13611     whole_archive_flag_spec_CXX \
13612     enable_shared_with_static_runtimes_CXX \
13613     old_archive_cmds_CXX \
13614     old_archive_from_new_cmds_CXX \
13615     predep_objects_CXX \
13616     postdep_objects_CXX \
13617     predeps_CXX \
13618     postdeps_CXX \
13619     compiler_lib_search_path_CXX \
13620     compiler_lib_search_dirs_CXX \
13621     archive_cmds_CXX \
13622     archive_expsym_cmds_CXX \
13623     postinstall_cmds_CXX \
13624     postuninstall_cmds_CXX \
13625     old_archive_from_expsyms_cmds_CXX \
13626     allow_undefined_flag_CXX \
13627     no_undefined_flag_CXX \
13628     export_symbols_cmds_CXX \
13629     hardcode_libdir_flag_spec_CXX \
13630     hardcode_libdir_flag_spec_ld_CXX \
13631     hardcode_libdir_separator_CXX \
13632     hardcode_automatic_CXX \
13633     module_cmds_CXX \
13634     module_expsym_cmds_CXX \
13635     lt_cv_prog_compiler_c_o_CXX \
13636     fix_srcfile_path_CXX \
13637     exclude_expsyms_CXX \
13638     include_expsyms_CXX; do
13639
13640     case $var in
13641     old_archive_cmds_CXX | \
13642     old_archive_from_new_cmds_CXX | \
13643     archive_cmds_CXX | \
13644     archive_expsym_cmds_CXX | \
13645     module_cmds_CXX | \
13646     module_expsym_cmds_CXX | \
13647     old_archive_from_expsyms_cmds_CXX | \
13648     export_symbols_cmds_CXX | \
13649     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13650     postinstall_cmds | postuninstall_cmds | \
13651     old_postinstall_cmds | old_postuninstall_cmds | \
13652     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13653       # Double-quote double-evaled strings.
13654       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13655       ;;
13656     *)
13657       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13658       ;;
13659     esac
13660   done
13661
13662   case $lt_echo in
13663   *'\$0 --fallback-echo"')
13664     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13665     ;;
13666   esac
13667
13668 cfgfile="$ofile"
13669
13670   cat <<__EOF__ >> "$cfgfile"
13671 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13672
13673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13674
13675 # Shell to use when invoking shell scripts.
13676 SHELL=$lt_SHELL
13677
13678 # Whether or not to build shared libraries.
13679 build_libtool_libs=$enable_shared
13680
13681 # Whether or not to build static libraries.
13682 build_old_libs=$enable_static
13683
13684 # Whether or not to add -lc for building shared libraries.
13685 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13686
13687 # Whether or not to disallow shared libs when runtime libs are static
13688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13689
13690 # Whether or not to optimize for fast installation.
13691 fast_install=$enable_fast_install
13692
13693 # The host system.
13694 host_alias=$host_alias
13695 host=$host
13696 host_os=$host_os
13697
13698 # The build system.
13699 build_alias=$build_alias
13700 build=$build
13701 build_os=$build_os
13702
13703 # An echo program that does not interpret backslashes.
13704 echo=$lt_echo
13705
13706 # The archiver.
13707 AR=$lt_AR
13708 AR_FLAGS=$lt_AR_FLAGS
13709
13710 # A C compiler.
13711 LTCC=$lt_LTCC
13712
13713 # LTCC compiler flags.
13714 LTCFLAGS=$lt_LTCFLAGS
13715
13716 # A language-specific compiler.
13717 CC=$lt_compiler_CXX
13718
13719 # Is the compiler the GNU C compiler?
13720 with_gcc=$GCC_CXX
13721
13722 # An ERE matcher.
13723 EGREP=$lt_EGREP
13724
13725 # The linker used to build libraries.
13726 LD=$lt_LD_CXX
13727
13728 # Whether we need hard or soft links.
13729 LN_S=$lt_LN_S
13730
13731 # A BSD-compatible nm program.
13732 NM=$lt_NM
13733
13734 # A symbol stripping program
13735 STRIP=$lt_STRIP
13736
13737 # Used to examine libraries when file_magic_cmd begins "file"
13738 MAGIC_CMD=$MAGIC_CMD
13739
13740 # Used on cygwin: DLL creation program.
13741 DLLTOOL="$DLLTOOL"
13742
13743 # Used on cygwin: object dumper.
13744 OBJDUMP="$OBJDUMP"
13745
13746 # Used on cygwin: assembler.
13747 AS="$AS"
13748
13749 # The name of the directory that contains temporary libtool files.
13750 objdir=$objdir
13751
13752 # How to create reloadable object files.
13753 reload_flag=$lt_reload_flag
13754 reload_cmds=$lt_reload_cmds
13755
13756 # How to pass a linker flag through the compiler.
13757 wl=$lt_lt_prog_compiler_wl_CXX
13758
13759 # Object file suffix (normally "o").
13760 objext="$ac_objext"
13761
13762 # Old archive suffix (normally "a").
13763 libext="$libext"
13764
13765 # Shared library suffix (normally ".so").
13766 shrext_cmds='$shrext_cmds'
13767
13768 # Executable file suffix (normally "").
13769 exeext="$exeext"
13770
13771 # Additional compiler flags for building library objects.
13772 pic_flag=$lt_lt_prog_compiler_pic_CXX
13773 pic_mode=$pic_mode
13774
13775 # What is the maximum length of a command?
13776 max_cmd_len=$lt_cv_sys_max_cmd_len
13777
13778 # Does compiler simultaneously support -c and -o options?
13779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13780
13781 # Must we lock files when doing compilation?
13782 need_locks=$lt_need_locks
13783
13784 # Do we need the lib prefix for modules?
13785 need_lib_prefix=$need_lib_prefix
13786
13787 # Do we need a version for libraries?
13788 need_version=$need_version
13789
13790 # Whether dlopen is supported.
13791 dlopen_support=$enable_dlopen
13792
13793 # Whether dlopen of programs is supported.
13794 dlopen_self=$enable_dlopen_self
13795
13796 # Whether dlopen of statically linked programs is supported.
13797 dlopen_self_static=$enable_dlopen_self_static
13798
13799 # Compiler flag to prevent dynamic linking.
13800 link_static_flag=$lt_lt_prog_compiler_static_CXX
13801
13802 # Compiler flag to turn off builtin functions.
13803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13804
13805 # Compiler flag to allow reflexive dlopens.
13806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13807
13808 # Compiler flag to generate shared objects directly from archives.
13809 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13810
13811 # Compiler flag to generate thread-safe objects.
13812 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13813
13814 # Library versioning type.
13815 version_type=$version_type
13816
13817 # Format of library name prefix.
13818 libname_spec=$lt_libname_spec
13819
13820 # List of archive names.  First name is the real one, the rest are links.
13821 # The last name is the one that the linker finds with -lNAME.
13822 library_names_spec=$lt_library_names_spec
13823
13824 # The coded name of the library, if different from the real name.
13825 soname_spec=$lt_soname_spec
13826
13827 # Commands used to build and install an old-style archive.
13828 RANLIB=$lt_RANLIB
13829 old_archive_cmds=$lt_old_archive_cmds_CXX
13830 old_postinstall_cmds=$lt_old_postinstall_cmds
13831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13832
13833 # Create an old-style archive from a shared archive.
13834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13835
13836 # Create a temporary old-style archive to link instead of a shared archive.
13837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13838
13839 # Commands used to build and install a shared archive.
13840 archive_cmds=$lt_archive_cmds_CXX
13841 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13842 postinstall_cmds=$lt_postinstall_cmds
13843 postuninstall_cmds=$lt_postuninstall_cmds
13844
13845 # Commands used to build a loadable module (assumed same as above if empty)
13846 module_cmds=$lt_module_cmds_CXX
13847 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13848
13849 # Commands to strip libraries.
13850 old_striplib=$lt_old_striplib
13851 striplib=$lt_striplib
13852
13853 # Dependencies to place before the objects being linked to create a
13854 # shared library.
13855 predep_objects=$lt_predep_objects_CXX
13856
13857 # Dependencies to place after the objects being linked to create a
13858 # shared library.
13859 postdep_objects=$lt_postdep_objects_CXX
13860
13861 # Dependencies to place before the objects being linked to create a
13862 # shared library.
13863 predeps=$lt_predeps_CXX
13864
13865 # Dependencies to place after the objects being linked to create a
13866 # shared library.
13867 postdeps=$lt_postdeps_CXX
13868
13869 # The directories searched by this compiler when creating a shared
13870 # library
13871 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13872
13873 # The library search path used internally by the compiler when linking
13874 # a shared library.
13875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13876
13877 # Method to check whether dependent libraries are shared objects.
13878 deplibs_check_method=$lt_deplibs_check_method
13879
13880 # Command to use when deplibs_check_method == file_magic.
13881 file_magic_cmd=$lt_file_magic_cmd
13882
13883 # Flag that allows shared libraries with undefined symbols to be built.
13884 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13885
13886 # Flag that forces no undefined symbols.
13887 no_undefined_flag=$lt_no_undefined_flag_CXX
13888
13889 # Commands used to finish a libtool library installation in a directory.
13890 finish_cmds=$lt_finish_cmds
13891
13892 # Same as above, but a single script fragment to be evaled but not shown.
13893 finish_eval=$lt_finish_eval
13894
13895 # Take the output of nm and produce a listing of raw symbols and C names.
13896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13897
13898 # Transform the output of nm in a proper C declaration
13899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13900
13901 # Transform the output of nm in a C name address pair
13902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13903
13904 # This is the shared library runtime path variable.
13905 runpath_var=$runpath_var
13906
13907 # This is the shared library path variable.
13908 shlibpath_var=$shlibpath_var
13909
13910 # Is shlibpath searched before the hard-coded library search path?
13911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13912
13913 # How to hardcode a shared library path into an executable.
13914 hardcode_action=$hardcode_action_CXX
13915
13916 # Whether we should hardcode library paths into libraries.
13917 hardcode_into_libs=$hardcode_into_libs
13918
13919 # Flag to hardcode \$libdir into a binary during linking.
13920 # This must work even if \$libdir does not exist.
13921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13922
13923 # If ld is used when linking, flag to hardcode \$libdir into
13924 # a binary during linking. This must work even if \$libdir does
13925 # not exist.
13926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13927
13928 # Whether we need a single -rpath flag with a separated argument.
13929 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13930
13931 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13932 # resulting binary.
13933 hardcode_direct=$hardcode_direct_CXX
13934
13935 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13936 # resulting binary.
13937 hardcode_minus_L=$hardcode_minus_L_CXX
13938
13939 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13940 # the resulting binary.
13941 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13942
13943 # Set to yes if building a shared library automatically hardcodes DIR into the library
13944 # and all subsequent libraries and executables linked against it.
13945 hardcode_automatic=$hardcode_automatic_CXX
13946
13947 # Variables whose values should be saved in libtool wrapper scripts and
13948 # restored at relink time.
13949 variables_saved_for_relink="$variables_saved_for_relink"
13950
13951 # Whether libtool must link a program against all its dependency libraries.
13952 link_all_deplibs=$link_all_deplibs_CXX
13953
13954 # Compile-time system search path for libraries
13955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13956
13957 # Run-time system search path for libraries
13958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13959
13960 # Fix the shell variable \$srcfile for the compiler.
13961 fix_srcfile_path=$lt_fix_srcfile_path
13962
13963 # Set to yes if exported symbols are required.
13964 always_export_symbols=$always_export_symbols_CXX
13965
13966 # The commands to list exported symbols.
13967 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13968
13969 # The commands to extract the exported symbol list from a shared archive.
13970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13971
13972 # Symbols that should not be listed in the preloaded symbols.
13973 exclude_expsyms=$lt_exclude_expsyms_CXX
13974
13975 # Symbols that must always be exported.
13976 include_expsyms=$lt_include_expsyms_CXX
13977
13978 # ### END LIBTOOL TAG CONFIG: $tagname
13979
13980 __EOF__
13981
13982
13983 else
13984   # If there is no Makefile yet, we rely on a make rule to execute
13985   # `config.status --recheck' to rerun these tests and create the
13986   # libtool script then.
13987   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13988   if test -f "$ltmain_in"; then
13989     test -f Makefile && make "$ltmain"
13990   fi
13991 fi
13992
13993
13994 ac_ext=c
13995 ac_cpp='$CPP $CPPFLAGS'
13996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13999
14000 CC=$lt_save_CC
14001 LDCXX=$LD
14002 LD=$lt_save_LD
14003 GCC=$lt_save_GCC
14004 with_gnu_ldcxx=$with_gnu_ld
14005 with_gnu_ld=$lt_save_with_gnu_ld
14006 lt_cv_path_LDCXX=$lt_cv_path_LD
14007 lt_cv_path_LD=$lt_save_path_LD
14008 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14009 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14010
14011         else
14012           tagname=""
14013         fi
14014         ;;
14015
14016       F77)
14017         if test -n "$F77" && test "X$F77" != "Xno"; then
14018
14019 ac_ext=f
14020 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14021 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14023
14024
14025 archive_cmds_need_lc_F77=no
14026 allow_undefined_flag_F77=
14027 always_export_symbols_F77=no
14028 archive_expsym_cmds_F77=
14029 export_dynamic_flag_spec_F77=
14030 hardcode_direct_F77=no
14031 hardcode_libdir_flag_spec_F77=
14032 hardcode_libdir_flag_spec_ld_F77=
14033 hardcode_libdir_separator_F77=
14034 hardcode_minus_L_F77=no
14035 hardcode_automatic_F77=no
14036 module_cmds_F77=
14037 module_expsym_cmds_F77=
14038 link_all_deplibs_F77=unknown
14039 old_archive_cmds_F77=$old_archive_cmds
14040 no_undefined_flag_F77=
14041 whole_archive_flag_spec_F77=
14042 enable_shared_with_static_runtimes_F77=no
14043
14044 # Source file extension for f77 test sources.
14045 ac_ext=f
14046
14047 # Object file extension for compiled f77 test sources.
14048 objext=o
14049 objext_F77=$objext
14050
14051 # Code to be used in simple compile tests
14052 lt_simple_compile_test_code="\
14053       subroutine t
14054       return
14055       end
14056 "
14057
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code="\
14060       program t
14061       end
14062 "
14063
14064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14065
14066 # If no C compiler was specified, use CC.
14067 LTCC=${LTCC-"$CC"}
14068
14069 # If no C compiler flags were specified, use CFLAGS.
14070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14071
14072 # Allow CC to be a program name with arguments.
14073 compiler=$CC
14074
14075
14076 # save warnings/boilerplate of simple test code
14077 ac_outfile=conftest.$ac_objext
14078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14080 _lt_compiler_boilerplate=`cat conftest.err`
14081 $rm conftest*
14082
14083 ac_outfile=conftest.$ac_objext
14084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14086 _lt_linker_boilerplate=`cat conftest.err`
14087 $rm -r conftest*
14088
14089
14090 # Allow CC to be a program name with arguments.
14091 lt_save_CC="$CC"
14092 CC=${F77-"f77"}
14093 compiler=$CC
14094 compiler_F77=$CC
14095 for cc_temp in $compiler""; do
14096   case $cc_temp in
14097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14099     \-*) ;;
14100     *) break;;
14101   esac
14102 done
14103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14104
14105
14106 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14107 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14108 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14109 echo "${ECHO_T}$can_build_shared" >&6; }
14110
14111 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14112 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14113 test "$can_build_shared" = "no" && enable_shared=no
14114
14115 # On AIX, shared libraries and static libraries use the same namespace, and
14116 # are all built from PIC.
14117 case $host_os in
14118 aix3*)
14119   test "$enable_shared" = yes && enable_static=no
14120   if test -n "$RANLIB"; then
14121     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14122     postinstall_cmds='$RANLIB $lib'
14123   fi
14124   ;;
14125 aix[4-9]*)
14126   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14127     test "$enable_shared" = yes && enable_static=no
14128   fi
14129   ;;
14130 esac
14131 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14132 echo "${ECHO_T}$enable_shared" >&6; }
14133
14134 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14135 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14136 # Make sure either enable_shared or enable_static is yes.
14137 test "$enable_shared" = yes || enable_static=yes
14138 { echo "$as_me:$LINENO: result: $enable_static" >&5
14139 echo "${ECHO_T}$enable_static" >&6; }
14140
14141 GCC_F77="$G77"
14142 LD_F77="$LD"
14143
14144 lt_prog_compiler_wl_F77=
14145 lt_prog_compiler_pic_F77=
14146 lt_prog_compiler_static_F77=
14147
14148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14150
14151   if test "$GCC" = yes; then
14152     lt_prog_compiler_wl_F77='-Wl,'
14153     lt_prog_compiler_static_F77='-static'
14154
14155     case $host_os in
14156       aix*)
14157       # All AIX code is PIC.
14158       if test "$host_cpu" = ia64; then
14159         # AIX 5 now supports IA64 processor
14160         lt_prog_compiler_static_F77='-Bstatic'
14161       fi
14162       ;;
14163
14164     amigaos*)
14165       # FIXME: we need at least 68020 code to build shared libraries, but
14166       # adding the `-m68020' flag to GCC prevents building anything better,
14167       # like `-m68040'.
14168       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14169       ;;
14170
14171     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14172       # PIC is the default for these OSes.
14173       ;;
14174
14175     mingw* | cygwin* | pw32* | os2*)
14176       # This hack is so that the source file can tell whether it is being
14177       # built for inclusion in a dll (and should export symbols for example).
14178       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14179       # (--disable-auto-import) libraries
14180       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14181       ;;
14182
14183     darwin* | rhapsody*)
14184       # PIC is the default on this platform
14185       # Common symbols not allowed in MH_DYLIB files
14186       lt_prog_compiler_pic_F77='-fno-common'
14187       ;;
14188
14189     interix[3-9]*)
14190       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14191       # Instead, we relocate shared libraries at runtime.
14192       ;;
14193
14194     msdosdjgpp*)
14195       # Just because we use GCC doesn't mean we suddenly get shared libraries
14196       # on systems that don't support them.
14197       lt_prog_compiler_can_build_shared_F77=no
14198       enable_shared=no
14199       ;;
14200
14201     sysv4*MP*)
14202       if test -d /usr/nec; then
14203         lt_prog_compiler_pic_F77=-Kconform_pic
14204       fi
14205       ;;
14206
14207     hpux*)
14208       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14209       # not for PA HP-UX.
14210       case $host_cpu in
14211       hppa*64*|ia64*)
14212         # +Z the default
14213         ;;
14214       *)
14215         lt_prog_compiler_pic_F77='-fPIC'
14216         ;;
14217       esac
14218       ;;
14219
14220     *)
14221       lt_prog_compiler_pic_F77='-fPIC'
14222       ;;
14223     esac
14224   else
14225     # PORTME Check for flag to pass linker flags through the system compiler.
14226     case $host_os in
14227     aix*)
14228       lt_prog_compiler_wl_F77='-Wl,'
14229       if test "$host_cpu" = ia64; then
14230         # AIX 5 now supports IA64 processor
14231         lt_prog_compiler_static_F77='-Bstatic'
14232       else
14233         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14234       fi
14235       ;;
14236       darwin*)
14237         # PIC is the default on this platform
14238         # Common symbols not allowed in MH_DYLIB files
14239        case $cc_basename in
14240          xlc*)
14241          lt_prog_compiler_pic_F77='-qnocommon'
14242          lt_prog_compiler_wl_F77='-Wl,'
14243          ;;
14244        esac
14245        ;;
14246
14247     mingw* | cygwin* | pw32* | os2*)
14248       # This hack is so that the source file can tell whether it is being
14249       # built for inclusion in a dll (and should export symbols for example).
14250       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14251       ;;
14252
14253     hpux9* | hpux10* | hpux11*)
14254       lt_prog_compiler_wl_F77='-Wl,'
14255       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14256       # not for PA HP-UX.
14257       case $host_cpu in
14258       hppa*64*|ia64*)
14259         # +Z the default
14260         ;;
14261       *)
14262         lt_prog_compiler_pic_F77='+Z'
14263         ;;
14264       esac
14265       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14266       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14267       ;;
14268
14269     irix5* | irix6* | nonstopux*)
14270       lt_prog_compiler_wl_F77='-Wl,'
14271       # PIC (with -KPIC) is the default.
14272       lt_prog_compiler_static_F77='-non_shared'
14273       ;;
14274
14275     newsos6)
14276       lt_prog_compiler_pic_F77='-KPIC'
14277       lt_prog_compiler_static_F77='-Bstatic'
14278       ;;
14279
14280     linux* | k*bsd*-gnu)
14281       case $cc_basename in
14282       icc* | ecc*)
14283         lt_prog_compiler_wl_F77='-Wl,'
14284         lt_prog_compiler_pic_F77='-KPIC'
14285         lt_prog_compiler_static_F77='-static'
14286         ;;
14287       pgcc* | pgf77* | pgf90* | pgf95*)
14288         # Portland Group compilers (*not* the Pentium gcc compiler,
14289         # which looks to be a dead project)
14290         lt_prog_compiler_wl_F77='-Wl,'
14291         lt_prog_compiler_pic_F77='-fpic'
14292         lt_prog_compiler_static_F77='-Bstatic'
14293         ;;
14294       ccc*)
14295         lt_prog_compiler_wl_F77='-Wl,'
14296         # All Alpha code is PIC.
14297         lt_prog_compiler_static_F77='-non_shared'
14298         ;;
14299       *)
14300         case `$CC -V 2>&1 | sed 5q` in
14301         *Sun\ C*)
14302           # Sun C 5.9
14303           lt_prog_compiler_pic_F77='-KPIC'
14304           lt_prog_compiler_static_F77='-Bstatic'
14305           lt_prog_compiler_wl_F77='-Wl,'
14306           ;;
14307         *Sun\ F*)
14308           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14309           lt_prog_compiler_pic_F77='-KPIC'
14310           lt_prog_compiler_static_F77='-Bstatic'
14311           lt_prog_compiler_wl_F77=''
14312           ;;
14313         esac
14314         ;;
14315       esac
14316       ;;
14317
14318     osf3* | osf4* | osf5*)
14319       lt_prog_compiler_wl_F77='-Wl,'
14320       # All OSF/1 code is PIC.
14321       lt_prog_compiler_static_F77='-non_shared'
14322       ;;
14323
14324     rdos*)
14325       lt_prog_compiler_static_F77='-non_shared'
14326       ;;
14327
14328     solaris*)
14329       lt_prog_compiler_pic_F77='-KPIC'
14330       lt_prog_compiler_static_F77='-Bstatic'
14331       case $cc_basename in
14332       f77* | f90* | f95*)
14333         lt_prog_compiler_wl_F77='-Qoption ld ';;
14334       *)
14335         lt_prog_compiler_wl_F77='-Wl,';;
14336       esac
14337       ;;
14338
14339     sunos4*)
14340       lt_prog_compiler_wl_F77='-Qoption ld '
14341       lt_prog_compiler_pic_F77='-PIC'
14342       lt_prog_compiler_static_F77='-Bstatic'
14343       ;;
14344
14345     sysv4 | sysv4.2uw2* | sysv4.3*)
14346       lt_prog_compiler_wl_F77='-Wl,'
14347       lt_prog_compiler_pic_F77='-KPIC'
14348       lt_prog_compiler_static_F77='-Bstatic'
14349       ;;
14350
14351     sysv4*MP*)
14352       if test -d /usr/nec ;then
14353         lt_prog_compiler_pic_F77='-Kconform_pic'
14354         lt_prog_compiler_static_F77='-Bstatic'
14355       fi
14356       ;;
14357
14358     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14359       lt_prog_compiler_wl_F77='-Wl,'
14360       lt_prog_compiler_pic_F77='-KPIC'
14361       lt_prog_compiler_static_F77='-Bstatic'
14362       ;;
14363
14364     unicos*)
14365       lt_prog_compiler_wl_F77='-Wl,'
14366       lt_prog_compiler_can_build_shared_F77=no
14367       ;;
14368
14369     uts4*)
14370       lt_prog_compiler_pic_F77='-pic'
14371       lt_prog_compiler_static_F77='-Bstatic'
14372       ;;
14373
14374     *)
14375       lt_prog_compiler_can_build_shared_F77=no
14376       ;;
14377     esac
14378   fi
14379
14380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14381 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14382
14383 #
14384 # Check to make sure the PIC flag actually works.
14385 #
14386 if test -n "$lt_prog_compiler_pic_F77"; then
14387
14388 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14390 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14391   echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393   lt_cv_prog_compiler_pic_works_F77=no
14394   ac_outfile=conftest.$ac_objext
14395    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14396    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14397    # Insert the option either (1) after the last *FLAGS variable, or
14398    # (2) before a word containing "conftest.", or (3) at the end.
14399    # Note that $ac_compile itself does not contain backslashes and begins
14400    # with a dollar sign (not a hyphen), so the echo should work correctly.
14401    # The option is referenced via a variable to avoid confusing sed.
14402    lt_compile=`echo "$ac_compile" | $SED \
14403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405    -e 's:$: $lt_compiler_flag:'`
14406    (eval echo "\"\$as_me:14406: $lt_compile\"" >&5)
14407    (eval "$lt_compile" 2>conftest.err)
14408    ac_status=$?
14409    cat conftest.err >&5
14410    echo "$as_me:14410: \$? = $ac_status" >&5
14411    if (exit $ac_status) && test -s "$ac_outfile"; then
14412      # The compiler can only warn and ignore the option if not recognized
14413      # So say no if there are warnings other than the usual output.
14414      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14415      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14416      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14417        lt_cv_prog_compiler_pic_works_F77=yes
14418      fi
14419    fi
14420    $rm conftest*
14421
14422 fi
14423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14424 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14425
14426 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14427     case $lt_prog_compiler_pic_F77 in
14428      "" | " "*) ;;
14429      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14430      esac
14431 else
14432     lt_prog_compiler_pic_F77=
14433      lt_prog_compiler_can_build_shared_F77=no
14434 fi
14435
14436 fi
14437 case $host_os in
14438   # For platforms which do not support PIC, -DPIC is meaningless:
14439   *djgpp*)
14440     lt_prog_compiler_pic_F77=
14441     ;;
14442   *)
14443     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14444     ;;
14445 esac
14446
14447 #
14448 # Check to make sure the static flag actually works.
14449 #
14450 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14451 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14452 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14453 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14454   echo $ECHO_N "(cached) $ECHO_C" >&6
14455 else
14456   lt_cv_prog_compiler_static_works_F77=no
14457    save_LDFLAGS="$LDFLAGS"
14458    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14459    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14460    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14461      # The linker can only warn and ignore the option if not recognized
14462      # So say no if there are warnings
14463      if test -s conftest.err; then
14464        # Append any errors to the config.log.
14465        cat conftest.err 1>&5
14466        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14467        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14468        if diff conftest.exp conftest.er2 >/dev/null; then
14469          lt_cv_prog_compiler_static_works_F77=yes
14470        fi
14471      else
14472        lt_cv_prog_compiler_static_works_F77=yes
14473      fi
14474    fi
14475    $rm -r conftest*
14476    LDFLAGS="$save_LDFLAGS"
14477
14478 fi
14479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14480 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14481
14482 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14483     :
14484 else
14485     lt_prog_compiler_static_F77=
14486 fi
14487
14488
14489 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14490 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14491 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   lt_cv_prog_compiler_c_o_F77=no
14495    $rm -r conftest 2>/dev/null
14496    mkdir conftest
14497    cd conftest
14498    mkdir out
14499    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14500
14501    lt_compiler_flag="-o out/conftest2.$ac_objext"
14502    # Insert the option either (1) after the last *FLAGS variable, or
14503    # (2) before a word containing "conftest.", or (3) at the end.
14504    # Note that $ac_compile itself does not contain backslashes and begins
14505    # with a dollar sign (not a hyphen), so the echo should work correctly.
14506    lt_compile=`echo "$ac_compile" | $SED \
14507    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14508    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14509    -e 's:$: $lt_compiler_flag:'`
14510    (eval echo "\"\$as_me:14510: $lt_compile\"" >&5)
14511    (eval "$lt_compile" 2>out/conftest.err)
14512    ac_status=$?
14513    cat out/conftest.err >&5
14514    echo "$as_me:14514: \$? = $ac_status" >&5
14515    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14516    then
14517      # The compiler can only warn and ignore the option if not recognized
14518      # So say no if there are warnings
14519      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14520      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14521      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14522        lt_cv_prog_compiler_c_o_F77=yes
14523      fi
14524    fi
14525    chmod u+w . 2>&5
14526    $rm conftest*
14527    # SGI C++ compiler will create directory out/ii_files/ for
14528    # template instantiation
14529    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14530    $rm out/* && rmdir out
14531    cd ..
14532    rmdir conftest
14533    $rm conftest*
14534
14535 fi
14536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14538
14539
14540 hard_links="nottested"
14541 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14542   # do not overwrite the value of need_locks provided by the user
14543   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14545   hard_links=yes
14546   $rm conftest*
14547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14548   touch conftest.a
14549   ln conftest.a conftest.b 2>&5 || hard_links=no
14550   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14551   { echo "$as_me:$LINENO: result: $hard_links" >&5
14552 echo "${ECHO_T}$hard_links" >&6; }
14553   if test "$hard_links" = no; then
14554     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14556     need_locks=warn
14557   fi
14558 else
14559   need_locks=no
14560 fi
14561
14562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14564
14565   runpath_var=
14566   allow_undefined_flag_F77=
14567   enable_shared_with_static_runtimes_F77=no
14568   archive_cmds_F77=
14569   archive_expsym_cmds_F77=
14570   old_archive_From_new_cmds_F77=
14571   old_archive_from_expsyms_cmds_F77=
14572   export_dynamic_flag_spec_F77=
14573   whole_archive_flag_spec_F77=
14574   thread_safe_flag_spec_F77=
14575   hardcode_libdir_flag_spec_F77=
14576   hardcode_libdir_flag_spec_ld_F77=
14577   hardcode_libdir_separator_F77=
14578   hardcode_direct_F77=no
14579   hardcode_minus_L_F77=no
14580   hardcode_shlibpath_var_F77=unsupported
14581   link_all_deplibs_F77=unknown
14582   hardcode_automatic_F77=no
14583   module_cmds_F77=
14584   module_expsym_cmds_F77=
14585   always_export_symbols_F77=no
14586   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14587   # include_expsyms should be a list of space-separated symbols to be *always*
14588   # included in the symbol list
14589   include_expsyms_F77=
14590   # exclude_expsyms can be an extended regexp of symbols to exclude
14591   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14592   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14593   # as well as any symbol that contains `d'.
14594   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14595   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14596   # platforms (ab)use it in PIC code, but their linkers get confused if
14597   # the symbol is explicitly referenced.  Since portable code cannot
14598   # rely on this symbol name, it's probably fine to never include it in
14599   # preloaded symbol tables.
14600   # Exclude shared library initialization/finalization symbols.
14601   extract_expsyms_cmds=
14602   # Just being paranoid about ensuring that cc_basename is set.
14603   for cc_temp in $compiler""; do
14604   case $cc_temp in
14605     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14606     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14607     \-*) ;;
14608     *) break;;
14609   esac
14610 done
14611 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14612
14613   case $host_os in
14614   cygwin* | mingw* | pw32*)
14615     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14616     # When not using gcc, we currently assume that we are using
14617     # Microsoft Visual C++.
14618     if test "$GCC" != yes; then
14619       with_gnu_ld=no
14620     fi
14621     ;;
14622   interix*)
14623     # we just hope/assume this is gcc and not c89 (= MSVC++)
14624     with_gnu_ld=yes
14625     ;;
14626   openbsd*)
14627     with_gnu_ld=no
14628     ;;
14629   esac
14630
14631   ld_shlibs_F77=yes
14632   if test "$with_gnu_ld" = yes; then
14633     # If archive_cmds runs LD, not CC, wlarc should be empty
14634     wlarc='${wl}'
14635
14636     # Set some defaults for GNU ld with shared library support. These
14637     # are reset later if shared libraries are not supported. Putting them
14638     # here allows them to be overridden if necessary.
14639     runpath_var=LD_RUN_PATH
14640     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14641     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14642     # ancient GNU ld didn't support --whole-archive et. al.
14643     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14644         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14645       else
14646         whole_archive_flag_spec_F77=
14647     fi
14648     supports_anon_versioning=no
14649     case `$LD -v 2>/dev/null` in
14650       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14651       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14652       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14653       *\ 2.11.*) ;; # other 2.11 versions
14654       *) supports_anon_versioning=yes ;;
14655     esac
14656
14657     # See if GNU ld supports shared libraries.
14658     case $host_os in
14659     aix[3-9]*)
14660       # On AIX/PPC, the GNU linker is very broken
14661       if test "$host_cpu" != ia64; then
14662         ld_shlibs_F77=no
14663         cat <<EOF 1>&2
14664
14665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14666 *** to be unable to reliably create shared libraries on AIX.
14667 *** Therefore, libtool is disabling shared libraries support.  If you
14668 *** really care for shared libraries, you may want to modify your PATH
14669 *** so that a non-GNU linker is found, and then restart.
14670
14671 EOF
14672       fi
14673       ;;
14674
14675     amigaos*)
14676       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)'
14677       hardcode_libdir_flag_spec_F77='-L$libdir'
14678       hardcode_minus_L_F77=yes
14679
14680       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14681       # that the semantics of dynamic libraries on AmigaOS, at least up
14682       # to version 4, is to share data among multiple programs linked
14683       # with the same dynamic library.  Since this doesn't match the
14684       # behavior of shared libraries on other platforms, we can't use
14685       # them.
14686       ld_shlibs_F77=no
14687       ;;
14688
14689     beos*)
14690       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14691         allow_undefined_flag_F77=unsupported
14692         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14693         # support --undefined.  This deserves some investigation.  FIXME
14694         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695       else
14696         ld_shlibs_F77=no
14697       fi
14698       ;;
14699
14700     cygwin* | mingw* | pw32*)
14701       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14702       # as there is no search path for DLLs.
14703       hardcode_libdir_flag_spec_F77='-L$libdir'
14704       allow_undefined_flag_F77=unsupported
14705       always_export_symbols_F77=no
14706       enable_shared_with_static_runtimes_F77=yes
14707       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14708
14709       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14710         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14711         # If the export-symbols file already is a .def file (1st line
14712         # is EXPORTS), use it as is; otherwise, prepend...
14713         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14714           cp $export_symbols $output_objdir/$soname.def;
14715         else
14716           echo EXPORTS > $output_objdir/$soname.def;
14717           cat $export_symbols >> $output_objdir/$soname.def;
14718         fi~
14719         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14720       else
14721         ld_shlibs_F77=no
14722       fi
14723       ;;
14724
14725     interix[3-9]*)
14726       hardcode_direct_F77=no
14727       hardcode_shlibpath_var_F77=no
14728       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14729       export_dynamic_flag_spec_F77='${wl}-E'
14730       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14731       # Instead, shared libraries are loaded at an image base (0x10000000 by
14732       # default) and relocated if they conflict, which is a slow very memory
14733       # consuming and fragmenting process.  To avoid this, we pick a random,
14734       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14735       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14736       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'
14737       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'
14738       ;;
14739
14740     gnu* | linux* | k*bsd*-gnu)
14741       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14742         tmp_addflag=
14743         case $cc_basename,$host_cpu in
14744         pgcc*)                          # Portland Group C compiler
14745           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'
14746           tmp_addflag=' $pic_flag'
14747           ;;
14748         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14749           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'
14750           tmp_addflag=' $pic_flag -Mnomain' ;;
14751         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14752           tmp_addflag=' -i_dynamic' ;;
14753         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14754           tmp_addflag=' -i_dynamic -nofor_main' ;;
14755         ifc* | ifort*)                  # Intel Fortran compiler
14756           tmp_addflag=' -nofor_main' ;;
14757         esac
14758         case `$CC -V 2>&1 | sed 5q` in
14759         *Sun\ C*)                       # Sun C 5.9
14760           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'
14761           tmp_sharedflag='-G' ;;
14762         *Sun\ F*)                       # Sun Fortran 8.3
14763           tmp_sharedflag='-G' ;;
14764         *)
14765           tmp_sharedflag='-shared' ;;
14766         esac
14767         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14768
14769         if test $supports_anon_versioning = yes; then
14770           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14771   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14772   $echo "local: *; };" >> $output_objdir/$libname.ver~
14773           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14774         fi
14775         link_all_deplibs_F77=no
14776       else
14777         ld_shlibs_F77=no
14778       fi
14779       ;;
14780
14781     netbsd* | netbsdelf*-gnu)
14782       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14783         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14784         wlarc=
14785       else
14786         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14788       fi
14789       ;;
14790
14791     solaris*)
14792       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14793         ld_shlibs_F77=no
14794         cat <<EOF 1>&2
14795
14796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14797 *** create shared libraries on Solaris systems.  Therefore, libtool
14798 *** is disabling shared libraries support.  We urge you to upgrade GNU
14799 *** binutils to release 2.9.1 or newer.  Another option is to modify
14800 *** your PATH or compiler configuration so that the native linker is
14801 *** used, and then restart.
14802
14803 EOF
14804       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14805         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14807       else
14808         ld_shlibs_F77=no
14809       fi
14810       ;;
14811
14812     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14813       case `$LD -v 2>&1` in
14814         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14815         ld_shlibs_F77=no
14816         cat <<_LT_EOF 1>&2
14817
14818 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14819 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14820 *** is disabling shared libraries support.  We urge you to upgrade GNU
14821 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14822 *** your PATH or compiler configuration so that the native linker is
14823 *** used, and then restart.
14824
14825 _LT_EOF
14826         ;;
14827         *)
14828           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14829             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14830             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14831             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14832           else
14833             ld_shlibs_F77=no
14834           fi
14835         ;;
14836       esac
14837       ;;
14838
14839     sunos4*)
14840       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14841       wlarc=
14842       hardcode_direct_F77=yes
14843       hardcode_shlibpath_var_F77=no
14844       ;;
14845
14846     *)
14847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14850       else
14851         ld_shlibs_F77=no
14852       fi
14853       ;;
14854     esac
14855
14856     if test "$ld_shlibs_F77" = no; then
14857       runpath_var=
14858       hardcode_libdir_flag_spec_F77=
14859       export_dynamic_flag_spec_F77=
14860       whole_archive_flag_spec_F77=
14861     fi
14862   else
14863     # PORTME fill in a description of your system's linker (not GNU ld)
14864     case $host_os in
14865     aix3*)
14866       allow_undefined_flag_F77=unsupported
14867       always_export_symbols_F77=yes
14868       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'
14869       # Note: this linker hardcodes the directories in LIBPATH if there
14870       # are no directories specified by -L.
14871       hardcode_minus_L_F77=yes
14872       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14873         # Neither direct hardcoding nor static linking is supported with a
14874         # broken collect2.
14875         hardcode_direct_F77=unsupported
14876       fi
14877       ;;
14878
14879     aix[4-9]*)
14880       if test "$host_cpu" = ia64; then
14881         # On IA64, the linker does run time linking by default, so we don't
14882         # have to do anything special.
14883         aix_use_runtimelinking=no
14884         exp_sym_flag='-Bexport'
14885         no_entry_flag=""
14886       else
14887         # If we're using GNU nm, then we don't want the "-C" option.
14888         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14889         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14890           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'
14891         else
14892           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'
14893         fi
14894         aix_use_runtimelinking=no
14895
14896         # Test if we are trying to use run time linking or normal
14897         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14898         # need to do runtime linking.
14899         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14900           for ld_flag in $LDFLAGS; do
14901           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14902             aix_use_runtimelinking=yes
14903             break
14904           fi
14905           done
14906           ;;
14907         esac
14908
14909         exp_sym_flag='-bexport'
14910         no_entry_flag='-bnoentry'
14911       fi
14912
14913       # When large executables or shared objects are built, AIX ld can
14914       # have problems creating the table of contents.  If linking a library
14915       # or program results in "error TOC overflow" add -mminimal-toc to
14916       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14917       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14918
14919       archive_cmds_F77=''
14920       hardcode_direct_F77=yes
14921       hardcode_libdir_separator_F77=':'
14922       link_all_deplibs_F77=yes
14923
14924       if test "$GCC" = yes; then
14925         case $host_os in aix4.[012]|aix4.[012].*)
14926         # We only want to do this on AIX 4.2 and lower, the check
14927         # below for broken collect2 doesn't work under 4.3+
14928           collect2name=`${CC} -print-prog-name=collect2`
14929           if test -f "$collect2name" && \
14930            strings "$collect2name" | grep resolve_lib_name >/dev/null
14931           then
14932           # We have reworked collect2
14933           :
14934           else
14935           # We have old collect2
14936           hardcode_direct_F77=unsupported
14937           # It fails to find uninstalled libraries when the uninstalled
14938           # path is not listed in the libpath.  Setting hardcode_minus_L
14939           # to unsupported forces relinking
14940           hardcode_minus_L_F77=yes
14941           hardcode_libdir_flag_spec_F77='-L$libdir'
14942           hardcode_libdir_separator_F77=
14943           fi
14944           ;;
14945         esac
14946         shared_flag='-shared'
14947         if test "$aix_use_runtimelinking" = yes; then
14948           shared_flag="$shared_flag "'${wl}-G'
14949         fi
14950       else
14951         # not using gcc
14952         if test "$host_cpu" = ia64; then
14953         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14954         # chokes on -Wl,-G. The following line is correct:
14955           shared_flag='-G'
14956         else
14957           if test "$aix_use_runtimelinking" = yes; then
14958             shared_flag='${wl}-G'
14959           else
14960             shared_flag='${wl}-bM:SRE'
14961           fi
14962         fi
14963       fi
14964
14965       # It seems that -bexpall does not export symbols beginning with
14966       # underscore (_), so it is better to generate a list of symbols to export.
14967       always_export_symbols_F77=yes
14968       if test "$aix_use_runtimelinking" = yes; then
14969         # Warning - without using the other runtime loading flags (-brtl),
14970         # -berok will link without error, but may produce a broken library.
14971         allow_undefined_flag_F77='-berok'
14972        # Determine the default libpath from the value encoded in an empty executable.
14973        cat >conftest.$ac_ext <<_ACEOF
14974       program main
14975
14976       end
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982   *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985   (eval "$ac_link") 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } && {
14992          test -z "$ac_f77_werror_flag" ||
14993          test ! -s conftest.err
14994        } && test -s conftest$ac_exeext &&
14995        $as_test_x conftest$ac_exeext; then
14996
14997 lt_aix_libpath_sed='
14998     /Import File Strings/,/^$/ {
14999         /^0/ {
15000             s/^0  *\(.*\)$/\1/
15001             p
15002         }
15003     }'
15004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15005 # Check for a 64-bit object if we didn't find anything.
15006 if test -z "$aix_libpath"; then
15007   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15008 fi
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013
15014 fi
15015
15016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15017       conftest$ac_exeext conftest.$ac_ext
15018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15019
15020        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15021         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"
15022        else
15023         if test "$host_cpu" = ia64; then
15024           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15025           allow_undefined_flag_F77="-z nodefs"
15026           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"
15027         else
15028          # Determine the default libpath from the value encoded in an empty executable.
15029          cat >conftest.$ac_ext <<_ACEOF
15030       program main
15031
15032       end
15033 _ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (ac_try="$ac_link"
15036 case "(($ac_try" in
15037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038   *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041   (eval "$ac_link") 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } && {
15048          test -z "$ac_f77_werror_flag" ||
15049          test ! -s conftest.err
15050        } && test -s conftest$ac_exeext &&
15051        $as_test_x conftest$ac_exeext; then
15052
15053 lt_aix_libpath_sed='
15054     /Import File Strings/,/^$/ {
15055         /^0/ {
15056             s/^0  *\(.*\)$/\1/
15057             p
15058         }
15059     }'
15060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15061 # Check for a 64-bit object if we didn't find anything.
15062 if test -z "$aix_libpath"; then
15063   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15064 fi
15065 else
15066   echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069
15070 fi
15071
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073       conftest$ac_exeext conftest.$ac_ext
15074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15075
15076          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15077           # Warning - without using the other run time loading flags,
15078           # -berok will link without error, but may produce a broken library.
15079           no_undefined_flag_F77=' ${wl}-bernotok'
15080           allow_undefined_flag_F77=' ${wl}-berok'
15081           # Exported symbols can be pulled into shared objects from archives
15082           whole_archive_flag_spec_F77='$convenience'
15083           archive_cmds_need_lc_F77=yes
15084           # This is similar to how AIX traditionally builds its shared libraries.
15085           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'
15086         fi
15087       fi
15088       ;;
15089
15090     amigaos*)
15091       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)'
15092       hardcode_libdir_flag_spec_F77='-L$libdir'
15093       hardcode_minus_L_F77=yes
15094       # see comment about different semantics on the GNU ld section
15095       ld_shlibs_F77=no
15096       ;;
15097
15098     bsdi[45]*)
15099       export_dynamic_flag_spec_F77=-rdynamic
15100       ;;
15101
15102     cygwin* | mingw* | pw32*)
15103       # When not using gcc, we currently assume that we are using
15104       # Microsoft Visual C++.
15105       # hardcode_libdir_flag_spec is actually meaningless, as there is
15106       # no search path for DLLs.
15107       hardcode_libdir_flag_spec_F77=' '
15108       allow_undefined_flag_F77=unsupported
15109       # Tell ltmain to make .lib files, not .a files.
15110       libext=lib
15111       # Tell ltmain to make .dll files, not .so files.
15112       shrext_cmds=".dll"
15113       # FIXME: Setting linknames here is a bad hack.
15114       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15115       # The linker will automatically build a .lib file if we build a DLL.
15116       old_archive_From_new_cmds_F77='true'
15117       # FIXME: Should let the user specify the lib program.
15118       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15119       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15120       enable_shared_with_static_runtimes_F77=yes
15121       ;;
15122
15123     darwin* | rhapsody*)
15124       case $host_os in
15125         rhapsody* | darwin1.[012])
15126          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15127          ;;
15128        *) # Darwin 1.3 on
15129          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15130            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15131          else
15132            case ${MACOSX_DEPLOYMENT_TARGET} in
15133              10.[012])
15134                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15135                ;;
15136              10.*)
15137                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15138                ;;
15139            esac
15140          fi
15141          ;;
15142       esac
15143       archive_cmds_need_lc_F77=no
15144       hardcode_direct_F77=no
15145       hardcode_automatic_F77=yes
15146       hardcode_shlibpath_var_F77=unsupported
15147       whole_archive_flag_spec_F77=''
15148       link_all_deplibs_F77=yes
15149     if test "$GCC" = yes ; then
15150         output_verbose_link_cmd='echo'
15151         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15152         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15153         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15154         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15155     else
15156       case $cc_basename in
15157         xlc*)
15158          output_verbose_link_cmd='echo'
15159          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15160          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15161           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15162          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}'
15163           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}'
15164           ;;
15165        *)
15166          ld_shlibs_F77=no
15167           ;;
15168       esac
15169     fi
15170       ;;
15171
15172     dgux*)
15173       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174       hardcode_libdir_flag_spec_F77='-L$libdir'
15175       hardcode_shlibpath_var_F77=no
15176       ;;
15177
15178     freebsd1*)
15179       ld_shlibs_F77=no
15180       ;;
15181
15182     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15183     # support.  Future versions do this automatically, but an explicit c++rt0.o
15184     # does not break anything, and helps significantly (at the cost of a little
15185     # extra space).
15186     freebsd2.2*)
15187       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15188       hardcode_libdir_flag_spec_F77='-R$libdir'
15189       hardcode_direct_F77=yes
15190       hardcode_shlibpath_var_F77=no
15191       ;;
15192
15193     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15194     freebsd2*)
15195       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196       hardcode_direct_F77=yes
15197       hardcode_minus_L_F77=yes
15198       hardcode_shlibpath_var_F77=no
15199       ;;
15200
15201     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15202     freebsd* | dragonfly*)
15203       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15204       hardcode_libdir_flag_spec_F77='-R$libdir'
15205       hardcode_direct_F77=yes
15206       hardcode_shlibpath_var_F77=no
15207       ;;
15208
15209     hpux9*)
15210       if test "$GCC" = yes; then
15211         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'
15212       else
15213         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'
15214       fi
15215       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15216       hardcode_libdir_separator_F77=:
15217       hardcode_direct_F77=yes
15218
15219       # hardcode_minus_L: Not really in the search PATH,
15220       # but as the default location of the library.
15221       hardcode_minus_L_F77=yes
15222       export_dynamic_flag_spec_F77='${wl}-E'
15223       ;;
15224
15225     hpux10*)
15226       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15227         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15228       else
15229         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15230       fi
15231       if test "$with_gnu_ld" = no; then
15232         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15233         hardcode_libdir_separator_F77=:
15234
15235         hardcode_direct_F77=yes
15236         export_dynamic_flag_spec_F77='${wl}-E'
15237
15238         # hardcode_minus_L: Not really in the search PATH,
15239         # but as the default location of the library.
15240         hardcode_minus_L_F77=yes
15241       fi
15242       ;;
15243
15244     hpux11*)
15245       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15246         case $host_cpu in
15247         hppa*64*)
15248           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249           ;;
15250         ia64*)
15251           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15252           ;;
15253         *)
15254           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255           ;;
15256         esac
15257       else
15258         case $host_cpu in
15259         hppa*64*)
15260           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261           ;;
15262         ia64*)
15263           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15264           ;;
15265         *)
15266           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15267           ;;
15268         esac
15269       fi
15270       if test "$with_gnu_ld" = no; then
15271         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15272         hardcode_libdir_separator_F77=:
15273
15274         case $host_cpu in
15275         hppa*64*|ia64*)
15276           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15277           hardcode_direct_F77=no
15278           hardcode_shlibpath_var_F77=no
15279           ;;
15280         *)
15281           hardcode_direct_F77=yes
15282           export_dynamic_flag_spec_F77='${wl}-E'
15283
15284           # hardcode_minus_L: Not really in the search PATH,
15285           # but as the default location of the library.
15286           hardcode_minus_L_F77=yes
15287           ;;
15288         esac
15289       fi
15290       ;;
15291
15292     irix5* | irix6* | nonstopux*)
15293       if test "$GCC" = yes; then
15294         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'
15295       else
15296         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'
15297         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15298       fi
15299       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15300       hardcode_libdir_separator_F77=:
15301       link_all_deplibs_F77=yes
15302       ;;
15303
15304     netbsd* | netbsdelf*-gnu)
15305       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15306         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15307       else
15308         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15309       fi
15310       hardcode_libdir_flag_spec_F77='-R$libdir'
15311       hardcode_direct_F77=yes
15312       hardcode_shlibpath_var_F77=no
15313       ;;
15314
15315     newsos6)
15316       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317       hardcode_direct_F77=yes
15318       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15319       hardcode_libdir_separator_F77=:
15320       hardcode_shlibpath_var_F77=no
15321       ;;
15322
15323     openbsd*)
15324       if test -f /usr/libexec/ld.so; then
15325         hardcode_direct_F77=yes
15326         hardcode_shlibpath_var_F77=no
15327         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15328           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15330           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15331           export_dynamic_flag_spec_F77='${wl}-E'
15332         else
15333           case $host_os in
15334            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15335              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15336              hardcode_libdir_flag_spec_F77='-R$libdir'
15337              ;;
15338            *)
15339              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15340              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15341              ;;
15342           esac
15343         fi
15344       else
15345         ld_shlibs_F77=no
15346       fi
15347       ;;
15348
15349     os2*)
15350       hardcode_libdir_flag_spec_F77='-L$libdir'
15351       hardcode_minus_L_F77=yes
15352       allow_undefined_flag_F77=unsupported
15353       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'
15354       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15355       ;;
15356
15357     osf3*)
15358       if test "$GCC" = yes; then
15359         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15360         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'
15361       else
15362         allow_undefined_flag_F77=' -expect_unresolved \*'
15363         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'
15364       fi
15365       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366       hardcode_libdir_separator_F77=:
15367       ;;
15368
15369     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15370       if test "$GCC" = yes; then
15371         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15372         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'
15373         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15374       else
15375         allow_undefined_flag_F77=' -expect_unresolved \*'
15376         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'
15377         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~
15378         $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'
15379
15380         # Both c and cxx compiler support -rpath directly
15381         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15382       fi
15383       hardcode_libdir_separator_F77=:
15384       ;;
15385
15386     solaris*)
15387       no_undefined_flag_F77=' -z text'
15388       if test "$GCC" = yes; then
15389         wlarc='${wl}'
15390         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15392           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15393       else
15394         wlarc=''
15395         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15397         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15398       fi
15399       hardcode_libdir_flag_spec_F77='-R$libdir'
15400       hardcode_shlibpath_var_F77=no
15401       case $host_os in
15402       solaris2.[0-5] | solaris2.[0-5].*) ;;
15403       *)
15404         # The compiler driver will combine and reorder linker options,
15405         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15406         # but is careful enough not to reorder.
15407         # Supported since Solaris 2.6 (maybe 2.5.1?)
15408         if test "$GCC" = yes; then
15409           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15410         else
15411           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15412         fi
15413         ;;
15414       esac
15415       link_all_deplibs_F77=yes
15416       ;;
15417
15418     sunos4*)
15419       if test "x$host_vendor" = xsequent; then
15420         # Use $CC to link under sequent, because it throws in some extra .o
15421         # files that make .init and .fini sections work.
15422         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15423       else
15424         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15425       fi
15426       hardcode_libdir_flag_spec_F77='-L$libdir'
15427       hardcode_direct_F77=yes
15428       hardcode_minus_L_F77=yes
15429       hardcode_shlibpath_var_F77=no
15430       ;;
15431
15432     sysv4)
15433       case $host_vendor in
15434         sni)
15435           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436           hardcode_direct_F77=yes # is this really true???
15437         ;;
15438         siemens)
15439           ## LD is ld it makes a PLAMLIB
15440           ## CC just makes a GrossModule.
15441           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15442           reload_cmds_F77='$CC -r -o $output$reload_objs'
15443           hardcode_direct_F77=no
15444         ;;
15445         motorola)
15446           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15447           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15448         ;;
15449       esac
15450       runpath_var='LD_RUN_PATH'
15451       hardcode_shlibpath_var_F77=no
15452       ;;
15453
15454     sysv4.3*)
15455       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456       hardcode_shlibpath_var_F77=no
15457       export_dynamic_flag_spec_F77='-Bexport'
15458       ;;
15459
15460     sysv4*MP*)
15461       if test -d /usr/nec; then
15462         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463         hardcode_shlibpath_var_F77=no
15464         runpath_var=LD_RUN_PATH
15465         hardcode_runpath_var=yes
15466         ld_shlibs_F77=yes
15467       fi
15468       ;;
15469
15470     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15471       no_undefined_flag_F77='${wl}-z,text'
15472       archive_cmds_need_lc_F77=no
15473       hardcode_shlibpath_var_F77=no
15474       runpath_var='LD_RUN_PATH'
15475
15476       if test "$GCC" = yes; then
15477         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15478         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15479       else
15480         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15482       fi
15483       ;;
15484
15485     sysv5* | sco3.2v5* | sco5v6*)
15486       # Note: We can NOT use -z defs as we might desire, because we do not
15487       # link with -lc, and that would cause any symbols used from libc to
15488       # always be unresolved, which means just about no library would
15489       # ever link correctly.  If we're not using GNU ld we use -z text
15490       # though, which does catch some bad symbols but isn't as heavy-handed
15491       # as -z defs.
15492       no_undefined_flag_F77='${wl}-z,text'
15493       allow_undefined_flag_F77='${wl}-z,nodefs'
15494       archive_cmds_need_lc_F77=no
15495       hardcode_shlibpath_var_F77=no
15496       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15497       hardcode_libdir_separator_F77=':'
15498       link_all_deplibs_F77=yes
15499       export_dynamic_flag_spec_F77='${wl}-Bexport'
15500       runpath_var='LD_RUN_PATH'
15501
15502       if test "$GCC" = yes; then
15503         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15505       else
15506         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508       fi
15509       ;;
15510
15511     uts4*)
15512       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513       hardcode_libdir_flag_spec_F77='-L$libdir'
15514       hardcode_shlibpath_var_F77=no
15515       ;;
15516
15517     *)
15518       ld_shlibs_F77=no
15519       ;;
15520     esac
15521   fi
15522
15523 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15524 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15525 test "$ld_shlibs_F77" = no && can_build_shared=no
15526
15527 #
15528 # Do we need to explicitly link libc?
15529 #
15530 case "x$archive_cmds_need_lc_F77" in
15531 x|xyes)
15532   # Assume -lc should be added
15533   archive_cmds_need_lc_F77=yes
15534
15535   if test "$enable_shared" = yes && test "$GCC" = yes; then
15536     case $archive_cmds_F77 in
15537     *'~'*)
15538       # FIXME: we may have to deal with multi-command sequences.
15539       ;;
15540     '$CC '*)
15541       # Test whether the compiler implicitly links with -lc since on some
15542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15543       # to ld, don't add -lc before -lgcc.
15544       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15546       $rm conftest*
15547       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548
15549       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550   (eval $ac_compile) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } 2>conftest.err; then
15554         soname=conftest
15555         lib=conftest
15556         libobjs=conftest.$ac_objext
15557         deplibs=
15558         wl=$lt_prog_compiler_wl_F77
15559         pic_flag=$lt_prog_compiler_pic_F77
15560         compiler_flags=-v
15561         linker_flags=-v
15562         verstring=
15563         output_objdir=.
15564         libname=conftest
15565         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15566         allow_undefined_flag_F77=
15567         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15568   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); }
15572         then
15573           archive_cmds_need_lc_F77=no
15574         else
15575           archive_cmds_need_lc_F77=yes
15576         fi
15577         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15578       else
15579         cat conftest.err 1>&5
15580       fi
15581       $rm conftest*
15582       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15584       ;;
15585     esac
15586   fi
15587   ;;
15588 esac
15589
15590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15592 library_names_spec=
15593 libname_spec='lib$name'
15594 soname_spec=
15595 shrext_cmds=".so"
15596 postinstall_cmds=
15597 postuninstall_cmds=
15598 finish_cmds=
15599 finish_eval=
15600 shlibpath_var=
15601 shlibpath_overrides_runpath=unknown
15602 version_type=none
15603 dynamic_linker="$host_os ld.so"
15604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15605
15606 need_lib_prefix=unknown
15607 hardcode_into_libs=no
15608
15609 # when you set need_version to no, make sure it does not cause -set_version
15610 # flags to be left without arguments
15611 need_version=unknown
15612
15613 case $host_os in
15614 aix3*)
15615   version_type=linux
15616   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15617   shlibpath_var=LIBPATH
15618
15619   # AIX 3 has no versioning support, so we append a major version to the name.
15620   soname_spec='${libname}${release}${shared_ext}$major'
15621   ;;
15622
15623 aix[4-9]*)
15624   version_type=linux
15625   need_lib_prefix=no
15626   need_version=no
15627   hardcode_into_libs=yes
15628   if test "$host_cpu" = ia64; then
15629     # AIX 5 supports IA64
15630     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15631     shlibpath_var=LD_LIBRARY_PATH
15632   else
15633     # With GCC up to 2.95.x, collect2 would create an import file
15634     # for dependence libraries.  The import file would start with
15635     # the line `#! .'.  This would cause the generated library to
15636     # depend on `.', always an invalid library.  This was fixed in
15637     # development snapshots of GCC prior to 3.0.
15638     case $host_os in
15639       aix4 | aix4.[01] | aix4.[01].*)
15640       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15641            echo ' yes '
15642            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15643         :
15644       else
15645         can_build_shared=no
15646       fi
15647       ;;
15648     esac
15649     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15650     # soname into executable. Probably we can add versioning support to
15651     # collect2, so additional links can be useful in future.
15652     if test "$aix_use_runtimelinking" = yes; then
15653       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15654       # instead of lib<name>.a to let people know that these are not
15655       # typical AIX shared libraries.
15656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657     else
15658       # We preserve .a as extension for shared libraries through AIX4.2
15659       # and later when we are not doing run time linking.
15660       library_names_spec='${libname}${release}.a $libname.a'
15661       soname_spec='${libname}${release}${shared_ext}$major'
15662     fi
15663     shlibpath_var=LIBPATH
15664   fi
15665   ;;
15666
15667 amigaos*)
15668   library_names_spec='$libname.ixlibrary $libname.a'
15669   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670   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'
15671   ;;
15672
15673 beos*)
15674   library_names_spec='${libname}${shared_ext}'
15675   dynamic_linker="$host_os ld.so"
15676   shlibpath_var=LIBRARY_PATH
15677   ;;
15678
15679 bsdi[45]*)
15680   version_type=linux
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15685   shlibpath_var=LD_LIBRARY_PATH
15686   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15687   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15688   # the default ld.so.conf also contains /usr/contrib/lib and
15689   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15690   # libtool to hard-code these into programs
15691   ;;
15692
15693 cygwin* | mingw* | pw32*)
15694   version_type=windows
15695   shrext_cmds=".dll"
15696   need_version=no
15697   need_lib_prefix=no
15698
15699   case $GCC,$host_os in
15700   yes,cygwin* | yes,mingw* | yes,pw32*)
15701     library_names_spec='$libname.dll.a'
15702     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15703     postinstall_cmds='base_file=`basename \${file}`~
15704       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15705       dldir=$destdir/`dirname \$dlpath`~
15706       test -d \$dldir || mkdir -p \$dldir~
15707       $install_prog $dir/$dlname \$dldir/$dlname~
15708       chmod a+x \$dldir/$dlname'
15709     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15710       dlpath=$dir/\$dldll~
15711        $rm \$dlpath'
15712     shlibpath_overrides_runpath=yes
15713
15714     case $host_os in
15715     cygwin*)
15716       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15717       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15719       ;;
15720     mingw*)
15721       # MinGW DLLs use traditional 'lib' prefix
15722       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15724       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15725         # It is most probably a Windows format PATH printed by
15726         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15727         # path with ; separators, and with drive letters. We can handle the
15728         # drive letters (cygwin fileutils understands them), so leave them,
15729         # especially as we might pass files found there to a mingw objdump,
15730         # which wouldn't understand a cygwinified path. Ahh.
15731         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15732       else
15733         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15734       fi
15735       ;;
15736     pw32*)
15737       # pw32 DLLs use 'pw' prefix rather than 'lib'
15738       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15739       ;;
15740     esac
15741     ;;
15742
15743   *)
15744     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15745     ;;
15746   esac
15747   dynamic_linker='Win32 ld.exe'
15748   # FIXME: first we should search . and the directory the executable is in
15749   shlibpath_var=PATH
15750   ;;
15751
15752 darwin* | rhapsody*)
15753   dynamic_linker="$host_os dyld"
15754   version_type=darwin
15755   need_lib_prefix=no
15756   need_version=no
15757   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15758   soname_spec='${libname}${release}${major}$shared_ext'
15759   shlibpath_overrides_runpath=yes
15760   shlibpath_var=DYLD_LIBRARY_PATH
15761   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15762
15763   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15764   ;;
15765
15766 dgux*)
15767   version_type=linux
15768   need_lib_prefix=no
15769   need_version=no
15770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15771   soname_spec='${libname}${release}${shared_ext}$major'
15772   shlibpath_var=LD_LIBRARY_PATH
15773   ;;
15774
15775 freebsd1*)
15776   dynamic_linker=no
15777   ;;
15778
15779 freebsd* | dragonfly*)
15780   # DragonFly does not have aout.  When/if they implement a new
15781   # versioning mechanism, adjust this.
15782   if test -x /usr/bin/objformat; then
15783     objformat=`/usr/bin/objformat`
15784   else
15785     case $host_os in
15786     freebsd[123]*) objformat=aout ;;
15787     *) objformat=elf ;;
15788     esac
15789   fi
15790   version_type=freebsd-$objformat
15791   case $version_type in
15792     freebsd-elf*)
15793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15794       need_version=no
15795       need_lib_prefix=no
15796       ;;
15797     freebsd-*)
15798       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15799       need_version=yes
15800       ;;
15801   esac
15802   shlibpath_var=LD_LIBRARY_PATH
15803   case $host_os in
15804   freebsd2*)
15805     shlibpath_overrides_runpath=yes
15806     ;;
15807   freebsd3.[01]* | freebsdelf3.[01]*)
15808     shlibpath_overrides_runpath=yes
15809     hardcode_into_libs=yes
15810     ;;
15811   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15812   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15813     shlibpath_overrides_runpath=no
15814     hardcode_into_libs=yes
15815     ;;
15816   *) # from 4.6 on, and DragonFly
15817     shlibpath_overrides_runpath=yes
15818     hardcode_into_libs=yes
15819     ;;
15820   esac
15821   ;;
15822
15823 gnu*)
15824   version_type=linux
15825   need_lib_prefix=no
15826   need_version=no
15827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15828   soname_spec='${libname}${release}${shared_ext}$major'
15829   shlibpath_var=LD_LIBRARY_PATH
15830   hardcode_into_libs=yes
15831   ;;
15832
15833 hpux9* | hpux10* | hpux11*)
15834   # Give a soname corresponding to the major version so that dld.sl refuses to
15835   # link against other versions.
15836   version_type=sunos
15837   need_lib_prefix=no
15838   need_version=no
15839   case $host_cpu in
15840   ia64*)
15841     shrext_cmds='.so'
15842     hardcode_into_libs=yes
15843     dynamic_linker="$host_os dld.so"
15844     shlibpath_var=LD_LIBRARY_PATH
15845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847     soname_spec='${libname}${release}${shared_ext}$major'
15848     if test "X$HPUX_IA64_MODE" = X32; then
15849       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15850     else
15851       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15852     fi
15853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15854     ;;
15855    hppa*64*)
15856      shrext_cmds='.sl'
15857      hardcode_into_libs=yes
15858      dynamic_linker="$host_os dld.sl"
15859      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15860      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15861      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862      soname_spec='${libname}${release}${shared_ext}$major'
15863      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15864      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15865      ;;
15866    *)
15867     shrext_cmds='.sl'
15868     dynamic_linker="$host_os dld.sl"
15869     shlibpath_var=SHLIB_PATH
15870     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872     soname_spec='${libname}${release}${shared_ext}$major'
15873     ;;
15874   esac
15875   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15876   postinstall_cmds='chmod 555 $lib'
15877   ;;
15878
15879 interix[3-9]*)
15880   version_type=linux
15881   need_lib_prefix=no
15882   need_version=no
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15886   shlibpath_var=LD_LIBRARY_PATH
15887   shlibpath_overrides_runpath=no
15888   hardcode_into_libs=yes
15889   ;;
15890
15891 irix5* | irix6* | nonstopux*)
15892   case $host_os in
15893     nonstopux*) version_type=nonstopux ;;
15894     *)
15895         if test "$lt_cv_prog_gnu_ld" = yes; then
15896                 version_type=linux
15897         else
15898                 version_type=irix
15899         fi ;;
15900   esac
15901   need_lib_prefix=no
15902   need_version=no
15903   soname_spec='${libname}${release}${shared_ext}$major'
15904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15905   case $host_os in
15906   irix5* | nonstopux*)
15907     libsuff= shlibsuff=
15908     ;;
15909   *)
15910     case $LD in # libtool.m4 will add one of these switches to LD
15911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15912       libsuff= shlibsuff= libmagic=32-bit;;
15913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15914       libsuff=32 shlibsuff=N32 libmagic=N32;;
15915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15917     *) libsuff= shlibsuff= libmagic=never-match;;
15918     esac
15919     ;;
15920   esac
15921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15922   shlibpath_overrides_runpath=no
15923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15925   hardcode_into_libs=yes
15926   ;;
15927
15928 # No shared lib support for Linux oldld, aout, or coff.
15929 linux*oldld* | linux*aout* | linux*coff*)
15930   dynamic_linker=no
15931   ;;
15932
15933 # This must be Linux ELF.
15934 linux* | k*bsd*-gnu)
15935   version_type=linux
15936   need_lib_prefix=no
15937   need_version=no
15938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939   soname_spec='${libname}${release}${shared_ext}$major'
15940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15941   shlibpath_var=LD_LIBRARY_PATH
15942   shlibpath_overrides_runpath=no
15943   # This implies no fast_install, which is unacceptable.
15944   # Some rework will be needed to allow for fast_install
15945   # before this can be enabled.
15946   hardcode_into_libs=yes
15947
15948   # Append ld.so.conf contents to the search path
15949   if test -f /etc/ld.so.conf; then
15950     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' ' '`
15951     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15952   fi
15953
15954   # We used to test for /lib/ld.so.1 and disable shared libraries on
15955   # powerpc, because MkLinux only supported shared libraries with the
15956   # GNU dynamic linker.  Since this was broken with cross compilers,
15957   # most powerpc-linux boxes support dynamic linking these days and
15958   # people can always --disable-shared, the test was removed, and we
15959   # assume the GNU/Linux dynamic linker is in use.
15960   dynamic_linker='GNU/Linux ld.so'
15961   ;;
15962
15963 netbsdelf*-gnu)
15964   version_type=linux
15965   need_lib_prefix=no
15966   need_version=no
15967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15968   soname_spec='${libname}${release}${shared_ext}$major'
15969   shlibpath_var=LD_LIBRARY_PATH
15970   shlibpath_overrides_runpath=no
15971   hardcode_into_libs=yes
15972   dynamic_linker='NetBSD ld.elf_so'
15973   ;;
15974
15975 netbsd*)
15976   version_type=sunos
15977   need_lib_prefix=no
15978   need_version=no
15979   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982     dynamic_linker='NetBSD (a.out) ld.so'
15983   else
15984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15985     soname_spec='${libname}${release}${shared_ext}$major'
15986     dynamic_linker='NetBSD ld.elf_so'
15987   fi
15988   shlibpath_var=LD_LIBRARY_PATH
15989   shlibpath_overrides_runpath=yes
15990   hardcode_into_libs=yes
15991   ;;
15992
15993 newsos6)
15994   version_type=linux
15995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996   shlibpath_var=LD_LIBRARY_PATH
15997   shlibpath_overrides_runpath=yes
15998   ;;
15999
16000 nto-qnx*)
16001   version_type=linux
16002   need_lib_prefix=no
16003   need_version=no
16004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005   soname_spec='${libname}${release}${shared_ext}$major'
16006   shlibpath_var=LD_LIBRARY_PATH
16007   shlibpath_overrides_runpath=yes
16008   ;;
16009
16010 openbsd*)
16011   version_type=sunos
16012   sys_lib_dlsearch_path_spec="/usr/lib"
16013   need_lib_prefix=no
16014   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16015   case $host_os in
16016     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16017     *)                         need_version=no  ;;
16018   esac
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16023     case $host_os in
16024       openbsd2.[89] | openbsd2.[89].*)
16025         shlibpath_overrides_runpath=no
16026         ;;
16027       *)
16028         shlibpath_overrides_runpath=yes
16029         ;;
16030       esac
16031   else
16032     shlibpath_overrides_runpath=yes
16033   fi
16034   ;;
16035
16036 os2*)
16037   libname_spec='$name'
16038   shrext_cmds=".dll"
16039   need_lib_prefix=no
16040   library_names_spec='$libname${shared_ext} $libname.a'
16041   dynamic_linker='OS/2 ld.exe'
16042   shlibpath_var=LIBPATH
16043   ;;
16044
16045 osf3* | osf4* | osf5*)
16046   version_type=osf
16047   need_lib_prefix=no
16048   need_version=no
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051   shlibpath_var=LD_LIBRARY_PATH
16052   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16053   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16054   ;;
16055
16056 rdos*)
16057   dynamic_linker=no
16058   ;;
16059
16060 solaris*)
16061   version_type=linux
16062   need_lib_prefix=no
16063   need_version=no
16064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065   soname_spec='${libname}${release}${shared_ext}$major'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   shlibpath_overrides_runpath=yes
16068   hardcode_into_libs=yes
16069   # ldd complains unless libraries are executable
16070   postinstall_cmds='chmod +x $lib'
16071   ;;
16072
16073 sunos4*)
16074   version_type=sunos
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   shlibpath_overrides_runpath=yes
16079   if test "$with_gnu_ld" = yes; then
16080     need_lib_prefix=no
16081   fi
16082   need_version=yes
16083   ;;
16084
16085 sysv4 | sysv4.3*)
16086   version_type=linux
16087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088   soname_spec='${libname}${release}${shared_ext}$major'
16089   shlibpath_var=LD_LIBRARY_PATH
16090   case $host_vendor in
16091     sni)
16092       shlibpath_overrides_runpath=no
16093       need_lib_prefix=no
16094       export_dynamic_flag_spec='${wl}-Blargedynsym'
16095       runpath_var=LD_RUN_PATH
16096       ;;
16097     siemens)
16098       need_lib_prefix=no
16099       ;;
16100     motorola)
16101       need_lib_prefix=no
16102       need_version=no
16103       shlibpath_overrides_runpath=no
16104       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16105       ;;
16106   esac
16107   ;;
16108
16109 sysv4*MP*)
16110   if test -d /usr/nec ;then
16111     version_type=linux
16112     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16113     soname_spec='$libname${shared_ext}.$major'
16114     shlibpath_var=LD_LIBRARY_PATH
16115   fi
16116   ;;
16117
16118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16119   version_type=freebsd-elf
16120   need_lib_prefix=no
16121   need_version=no
16122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16123   soname_spec='${libname}${release}${shared_ext}$major'
16124   shlibpath_var=LD_LIBRARY_PATH
16125   hardcode_into_libs=yes
16126   if test "$with_gnu_ld" = yes; then
16127     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16128     shlibpath_overrides_runpath=no
16129   else
16130     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16131     shlibpath_overrides_runpath=yes
16132     case $host_os in
16133       sco3.2v5*)
16134         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16135         ;;
16136     esac
16137   fi
16138   sys_lib_dlsearch_path_spec='/usr/lib'
16139   ;;
16140
16141 uts4*)
16142   version_type=linux
16143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144   soname_spec='${libname}${release}${shared_ext}$major'
16145   shlibpath_var=LD_LIBRARY_PATH
16146   ;;
16147
16148 *)
16149   dynamic_linker=no
16150   ;;
16151 esac
16152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16153 echo "${ECHO_T}$dynamic_linker" >&6; }
16154 test "$dynamic_linker" = no && can_build_shared=no
16155
16156 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16157   echo $ECHO_N "(cached) $ECHO_C" >&6
16158 else
16159   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16160 fi
16161
16162 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16167 fi
16168
16169 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16170
16171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16172 if test "$GCC" = yes; then
16173   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16174 fi
16175
16176 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16177 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16178 hardcode_action_F77=
16179 if test -n "$hardcode_libdir_flag_spec_F77" || \
16180    test -n "$runpath_var_F77" || \
16181    test "X$hardcode_automatic_F77" = "Xyes" ; then
16182
16183   # We can hardcode non-existant directories.
16184   if test "$hardcode_direct_F77" != no &&
16185      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16186      # have to relink, otherwise we might link with an installed library
16187      # when we should be linking with a yet-to-be-installed one
16188      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16189      test "$hardcode_minus_L_F77" != no; then
16190     # Linking always hardcodes the temporary library directory.
16191     hardcode_action_F77=relink
16192   else
16193     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16194     hardcode_action_F77=immediate
16195   fi
16196 else
16197   # We cannot hardcode anything, or else we can only hardcode existing
16198   # directories.
16199   hardcode_action_F77=unsupported
16200 fi
16201 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16202 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16203
16204 if test "$hardcode_action_F77" = relink; then
16205   # Fast installation is not supported
16206   enable_fast_install=no
16207 elif test "$shlibpath_overrides_runpath" = yes ||
16208      test "$enable_shared" = no; then
16209   # Fast installation is not necessary
16210   enable_fast_install=needless
16211 fi
16212
16213
16214 # The else clause should only fire when bootstrapping the
16215 # libtool distribution, otherwise you forgot to ship ltmain.sh
16216 # with your package, and you will get complaints that there are
16217 # no rules to generate ltmain.sh.
16218 if test -f "$ltmain"; then
16219   # See if we are running on zsh, and set the options which allow our commands through
16220   # without removal of \ escapes.
16221   if test -n "${ZSH_VERSION+set}" ; then
16222     setopt NO_GLOB_SUBST
16223   fi
16224   # Now quote all the things that may contain metacharacters while being
16225   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16226   # variables and quote the copies for generation of the libtool script.
16227   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16228     SED SHELL STRIP \
16229     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16230     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16231     deplibs_check_method reload_flag reload_cmds need_locks \
16232     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16233     lt_cv_sys_global_symbol_to_c_name_address \
16234     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16235     old_postinstall_cmds old_postuninstall_cmds \
16236     compiler_F77 \
16237     CC_F77 \
16238     LD_F77 \
16239     lt_prog_compiler_wl_F77 \
16240     lt_prog_compiler_pic_F77 \
16241     lt_prog_compiler_static_F77 \
16242     lt_prog_compiler_no_builtin_flag_F77 \
16243     export_dynamic_flag_spec_F77 \
16244     thread_safe_flag_spec_F77 \
16245     whole_archive_flag_spec_F77 \
16246     enable_shared_with_static_runtimes_F77 \
16247     old_archive_cmds_F77 \
16248     old_archive_from_new_cmds_F77 \
16249     predep_objects_F77 \
16250     postdep_objects_F77 \
16251     predeps_F77 \
16252     postdeps_F77 \
16253     compiler_lib_search_path_F77 \
16254     compiler_lib_search_dirs_F77 \
16255     archive_cmds_F77 \
16256     archive_expsym_cmds_F77 \
16257     postinstall_cmds_F77 \
16258     postuninstall_cmds_F77 \
16259     old_archive_from_expsyms_cmds_F77 \
16260     allow_undefined_flag_F77 \
16261     no_undefined_flag_F77 \
16262     export_symbols_cmds_F77 \
16263     hardcode_libdir_flag_spec_F77 \
16264     hardcode_libdir_flag_spec_ld_F77 \
16265     hardcode_libdir_separator_F77 \
16266     hardcode_automatic_F77 \
16267     module_cmds_F77 \
16268     module_expsym_cmds_F77 \
16269     lt_cv_prog_compiler_c_o_F77 \
16270     fix_srcfile_path_F77 \
16271     exclude_expsyms_F77 \
16272     include_expsyms_F77; do
16273
16274     case $var in
16275     old_archive_cmds_F77 | \
16276     old_archive_from_new_cmds_F77 | \
16277     archive_cmds_F77 | \
16278     archive_expsym_cmds_F77 | \
16279     module_cmds_F77 | \
16280     module_expsym_cmds_F77 | \
16281     old_archive_from_expsyms_cmds_F77 | \
16282     export_symbols_cmds_F77 | \
16283     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16284     postinstall_cmds | postuninstall_cmds | \
16285     old_postinstall_cmds | old_postuninstall_cmds | \
16286     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16287       # Double-quote double-evaled strings.
16288       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16289       ;;
16290     *)
16291       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16292       ;;
16293     esac
16294   done
16295
16296   case $lt_echo in
16297   *'\$0 --fallback-echo"')
16298     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16299     ;;
16300   esac
16301
16302 cfgfile="$ofile"
16303
16304   cat <<__EOF__ >> "$cfgfile"
16305 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16306
16307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16308
16309 # Shell to use when invoking shell scripts.
16310 SHELL=$lt_SHELL
16311
16312 # Whether or not to build shared libraries.
16313 build_libtool_libs=$enable_shared
16314
16315 # Whether or not to build static libraries.
16316 build_old_libs=$enable_static
16317
16318 # Whether or not to add -lc for building shared libraries.
16319 build_libtool_need_lc=$archive_cmds_need_lc_F77
16320
16321 # Whether or not to disallow shared libs when runtime libs are static
16322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16323
16324 # Whether or not to optimize for fast installation.
16325 fast_install=$enable_fast_install
16326
16327 # The host system.
16328 host_alias=$host_alias
16329 host=$host
16330 host_os=$host_os
16331
16332 # The build system.
16333 build_alias=$build_alias
16334 build=$build
16335 build_os=$build_os
16336
16337 # An echo program that does not interpret backslashes.
16338 echo=$lt_echo
16339
16340 # The archiver.
16341 AR=$lt_AR
16342 AR_FLAGS=$lt_AR_FLAGS
16343
16344 # A C compiler.
16345 LTCC=$lt_LTCC
16346
16347 # LTCC compiler flags.
16348 LTCFLAGS=$lt_LTCFLAGS
16349
16350 # A language-specific compiler.
16351 CC=$lt_compiler_F77
16352
16353 # Is the compiler the GNU C compiler?
16354 with_gcc=$GCC_F77
16355
16356 # An ERE matcher.
16357 EGREP=$lt_EGREP
16358
16359 # The linker used to build libraries.
16360 LD=$lt_LD_F77
16361
16362 # Whether we need hard or soft links.
16363 LN_S=$lt_LN_S
16364
16365 # A BSD-compatible nm program.
16366 NM=$lt_NM
16367
16368 # A symbol stripping program
16369 STRIP=$lt_STRIP
16370
16371 # Used to examine libraries when file_magic_cmd begins "file"
16372 MAGIC_CMD=$MAGIC_CMD
16373
16374 # Used on cygwin: DLL creation program.
16375 DLLTOOL="$DLLTOOL"
16376
16377 # Used on cygwin: object dumper.
16378 OBJDUMP="$OBJDUMP"
16379
16380 # Used on cygwin: assembler.
16381 AS="$AS"
16382
16383 # The name of the directory that contains temporary libtool files.
16384 objdir=$objdir
16385
16386 # How to create reloadable object files.
16387 reload_flag=$lt_reload_flag
16388 reload_cmds=$lt_reload_cmds
16389
16390 # How to pass a linker flag through the compiler.
16391 wl=$lt_lt_prog_compiler_wl_F77
16392
16393 # Object file suffix (normally "o").
16394 objext="$ac_objext"
16395
16396 # Old archive suffix (normally "a").
16397 libext="$libext"
16398
16399 # Shared library suffix (normally ".so").
16400 shrext_cmds='$shrext_cmds'
16401
16402 # Executable file suffix (normally "").
16403 exeext="$exeext"
16404
16405 # Additional compiler flags for building library objects.
16406 pic_flag=$lt_lt_prog_compiler_pic_F77
16407 pic_mode=$pic_mode
16408
16409 # What is the maximum length of a command?
16410 max_cmd_len=$lt_cv_sys_max_cmd_len
16411
16412 # Does compiler simultaneously support -c and -o options?
16413 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16414
16415 # Must we lock files when doing compilation?
16416 need_locks=$lt_need_locks
16417
16418 # Do we need the lib prefix for modules?
16419 need_lib_prefix=$need_lib_prefix
16420
16421 # Do we need a version for libraries?
16422 need_version=$need_version
16423
16424 # Whether dlopen is supported.
16425 dlopen_support=$enable_dlopen
16426
16427 # Whether dlopen of programs is supported.
16428 dlopen_self=$enable_dlopen_self
16429
16430 # Whether dlopen of statically linked programs is supported.
16431 dlopen_self_static=$enable_dlopen_self_static
16432
16433 # Compiler flag to prevent dynamic linking.
16434 link_static_flag=$lt_lt_prog_compiler_static_F77
16435
16436 # Compiler flag to turn off builtin functions.
16437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16438
16439 # Compiler flag to allow reflexive dlopens.
16440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16441
16442 # Compiler flag to generate shared objects directly from archives.
16443 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16444
16445 # Compiler flag to generate thread-safe objects.
16446 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16447
16448 # Library versioning type.
16449 version_type=$version_type
16450
16451 # Format of library name prefix.
16452 libname_spec=$lt_libname_spec
16453
16454 # List of archive names.  First name is the real one, the rest are links.
16455 # The last name is the one that the linker finds with -lNAME.
16456 library_names_spec=$lt_library_names_spec
16457
16458 # The coded name of the library, if different from the real name.
16459 soname_spec=$lt_soname_spec
16460
16461 # Commands used to build and install an old-style archive.
16462 RANLIB=$lt_RANLIB
16463 old_archive_cmds=$lt_old_archive_cmds_F77
16464 old_postinstall_cmds=$lt_old_postinstall_cmds
16465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16466
16467 # Create an old-style archive from a shared archive.
16468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16469
16470 # Create a temporary old-style archive to link instead of a shared archive.
16471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16472
16473 # Commands used to build and install a shared archive.
16474 archive_cmds=$lt_archive_cmds_F77
16475 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16476 postinstall_cmds=$lt_postinstall_cmds
16477 postuninstall_cmds=$lt_postuninstall_cmds
16478
16479 # Commands used to build a loadable module (assumed same as above if empty)
16480 module_cmds=$lt_module_cmds_F77
16481 module_expsym_cmds=$lt_module_expsym_cmds_F77
16482
16483 # Commands to strip libraries.
16484 old_striplib=$lt_old_striplib
16485 striplib=$lt_striplib
16486
16487 # Dependencies to place before the objects being linked to create a
16488 # shared library.
16489 predep_objects=$lt_predep_objects_F77
16490
16491 # Dependencies to place after the objects being linked to create a
16492 # shared library.
16493 postdep_objects=$lt_postdep_objects_F77
16494
16495 # Dependencies to place before the objects being linked to create a
16496 # shared library.
16497 predeps=$lt_predeps_F77
16498
16499 # Dependencies to place after the objects being linked to create a
16500 # shared library.
16501 postdeps=$lt_postdeps_F77
16502
16503 # The directories searched by this compiler when creating a shared
16504 # library
16505 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16506
16507 # The library search path used internally by the compiler when linking
16508 # a shared library.
16509 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16510
16511 # Method to check whether dependent libraries are shared objects.
16512 deplibs_check_method=$lt_deplibs_check_method
16513
16514 # Command to use when deplibs_check_method == file_magic.
16515 file_magic_cmd=$lt_file_magic_cmd
16516
16517 # Flag that allows shared libraries with undefined symbols to be built.
16518 allow_undefined_flag=$lt_allow_undefined_flag_F77
16519
16520 # Flag that forces no undefined symbols.
16521 no_undefined_flag=$lt_no_undefined_flag_F77
16522
16523 # Commands used to finish a libtool library installation in a directory.
16524 finish_cmds=$lt_finish_cmds
16525
16526 # Same as above, but a single script fragment to be evaled but not shown.
16527 finish_eval=$lt_finish_eval
16528
16529 # Take the output of nm and produce a listing of raw symbols and C names.
16530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16531
16532 # Transform the output of nm in a proper C declaration
16533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16534
16535 # Transform the output of nm in a C name address pair
16536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16537
16538 # This is the shared library runtime path variable.
16539 runpath_var=$runpath_var
16540
16541 # This is the shared library path variable.
16542 shlibpath_var=$shlibpath_var
16543
16544 # Is shlibpath searched before the hard-coded library search path?
16545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16546
16547 # How to hardcode a shared library path into an executable.
16548 hardcode_action=$hardcode_action_F77
16549
16550 # Whether we should hardcode library paths into libraries.
16551 hardcode_into_libs=$hardcode_into_libs
16552
16553 # Flag to hardcode \$libdir into a binary during linking.
16554 # This must work even if \$libdir does not exist.
16555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16556
16557 # If ld is used when linking, flag to hardcode \$libdir into
16558 # a binary during linking. This must work even if \$libdir does
16559 # not exist.
16560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16561
16562 # Whether we need a single -rpath flag with a separated argument.
16563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16564
16565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16566 # resulting binary.
16567 hardcode_direct=$hardcode_direct_F77
16568
16569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16570 # resulting binary.
16571 hardcode_minus_L=$hardcode_minus_L_F77
16572
16573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16574 # the resulting binary.
16575 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16576
16577 # Set to yes if building a shared library automatically hardcodes DIR into the library
16578 # and all subsequent libraries and executables linked against it.
16579 hardcode_automatic=$hardcode_automatic_F77
16580
16581 # Variables whose values should be saved in libtool wrapper scripts and
16582 # restored at relink time.
16583 variables_saved_for_relink="$variables_saved_for_relink"
16584
16585 # Whether libtool must link a program against all its dependency libraries.
16586 link_all_deplibs=$link_all_deplibs_F77
16587
16588 # Compile-time system search path for libraries
16589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16590
16591 # Run-time system search path for libraries
16592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16593
16594 # Fix the shell variable \$srcfile for the compiler.
16595 fix_srcfile_path=$lt_fix_srcfile_path
16596
16597 # Set to yes if exported symbols are required.
16598 always_export_symbols=$always_export_symbols_F77
16599
16600 # The commands to list exported symbols.
16601 export_symbols_cmds=$lt_export_symbols_cmds_F77
16602
16603 # The commands to extract the exported symbol list from a shared archive.
16604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16605
16606 # Symbols that should not be listed in the preloaded symbols.
16607 exclude_expsyms=$lt_exclude_expsyms_F77
16608
16609 # Symbols that must always be exported.
16610 include_expsyms=$lt_include_expsyms_F77
16611
16612 # ### END LIBTOOL TAG CONFIG: $tagname
16613
16614 __EOF__
16615
16616
16617 else
16618   # If there is no Makefile yet, we rely on a make rule to execute
16619   # `config.status --recheck' to rerun these tests and create the
16620   # libtool script then.
16621   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16622   if test -f "$ltmain_in"; then
16623     test -f Makefile && make "$ltmain"
16624   fi
16625 fi
16626
16627
16628 ac_ext=c
16629 ac_cpp='$CPP $CPPFLAGS'
16630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16633
16634 CC="$lt_save_CC"
16635
16636         else
16637           tagname=""
16638         fi
16639         ;;
16640
16641       GCJ)
16642         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16643
16644
16645 # Source file extension for Java test sources.
16646 ac_ext=java
16647
16648 # Object file extension for compiled Java test sources.
16649 objext=o
16650 objext_GCJ=$objext
16651
16652 # Code to be used in simple compile tests
16653 lt_simple_compile_test_code="class foo {}"
16654
16655 # Code to be used in simple link tests
16656 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16657
16658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16659
16660 # If no C compiler was specified, use CC.
16661 LTCC=${LTCC-"$CC"}
16662
16663 # If no C compiler flags were specified, use CFLAGS.
16664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16665
16666 # Allow CC to be a program name with arguments.
16667 compiler=$CC
16668
16669
16670 # save warnings/boilerplate of simple test code
16671 ac_outfile=conftest.$ac_objext
16672 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16674 _lt_compiler_boilerplate=`cat conftest.err`
16675 $rm conftest*
16676
16677 ac_outfile=conftest.$ac_objext
16678 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16680 _lt_linker_boilerplate=`cat conftest.err`
16681 $rm -r conftest*
16682
16683
16684 # Allow CC to be a program name with arguments.
16685 lt_save_CC="$CC"
16686 CC=${GCJ-"gcj"}
16687 compiler=$CC
16688 compiler_GCJ=$CC
16689 for cc_temp in $compiler""; do
16690   case $cc_temp in
16691     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16692     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16693     \-*) ;;
16694     *) break;;
16695   esac
16696 done
16697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16698
16699
16700 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16701 archive_cmds_need_lc_GCJ=no
16702
16703 old_archive_cmds_GCJ=$old_archive_cmds
16704
16705
16706 lt_prog_compiler_no_builtin_flag_GCJ=
16707
16708 if test "$GCC" = yes; then
16709   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16710
16711
16712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16715   echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717   lt_cv_prog_compiler_rtti_exceptions=no
16718   ac_outfile=conftest.$ac_objext
16719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16720    lt_compiler_flag="-fno-rtti -fno-exceptions"
16721    # Insert the option either (1) after the last *FLAGS variable, or
16722    # (2) before a word containing "conftest.", or (3) at the end.
16723    # Note that $ac_compile itself does not contain backslashes and begins
16724    # with a dollar sign (not a hyphen), so the echo should work correctly.
16725    # The option is referenced via a variable to avoid confusing sed.
16726    lt_compile=`echo "$ac_compile" | $SED \
16727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16729    -e 's:$: $lt_compiler_flag:'`
16730    (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
16731    (eval "$lt_compile" 2>conftest.err)
16732    ac_status=$?
16733    cat conftest.err >&5
16734    echo "$as_me:16734: \$? = $ac_status" >&5
16735    if (exit $ac_status) && test -s "$ac_outfile"; then
16736      # The compiler can only warn and ignore the option if not recognized
16737      # So say no if there are warnings other than the usual output.
16738      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16741        lt_cv_prog_compiler_rtti_exceptions=yes
16742      fi
16743    fi
16744    $rm conftest*
16745
16746 fi
16747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16749
16750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16751     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16752 else
16753     :
16754 fi
16755
16756 fi
16757
16758 lt_prog_compiler_wl_GCJ=
16759 lt_prog_compiler_pic_GCJ=
16760 lt_prog_compiler_static_GCJ=
16761
16762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16764
16765   if test "$GCC" = yes; then
16766     lt_prog_compiler_wl_GCJ='-Wl,'
16767     lt_prog_compiler_static_GCJ='-static'
16768
16769     case $host_os in
16770       aix*)
16771       # All AIX code is PIC.
16772       if test "$host_cpu" = ia64; then
16773         # AIX 5 now supports IA64 processor
16774         lt_prog_compiler_static_GCJ='-Bstatic'
16775       fi
16776       ;;
16777
16778     amigaos*)
16779       # FIXME: we need at least 68020 code to build shared libraries, but
16780       # adding the `-m68020' flag to GCC prevents building anything better,
16781       # like `-m68040'.
16782       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16783       ;;
16784
16785     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16786       # PIC is the default for these OSes.
16787       ;;
16788
16789     mingw* | cygwin* | pw32* | os2*)
16790       # This hack is so that the source file can tell whether it is being
16791       # built for inclusion in a dll (and should export symbols for example).
16792       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16793       # (--disable-auto-import) libraries
16794
16795       ;;
16796
16797     darwin* | rhapsody*)
16798       # PIC is the default on this platform
16799       # Common symbols not allowed in MH_DYLIB files
16800       lt_prog_compiler_pic_GCJ='-fno-common'
16801       ;;
16802
16803     interix[3-9]*)
16804       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16805       # Instead, we relocate shared libraries at runtime.
16806       ;;
16807
16808     msdosdjgpp*)
16809       # Just because we use GCC doesn't mean we suddenly get shared libraries
16810       # on systems that don't support them.
16811       lt_prog_compiler_can_build_shared_GCJ=no
16812       enable_shared=no
16813       ;;
16814
16815     sysv4*MP*)
16816       if test -d /usr/nec; then
16817         lt_prog_compiler_pic_GCJ=-Kconform_pic
16818       fi
16819       ;;
16820
16821     hpux*)
16822       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16823       # not for PA HP-UX.
16824       case $host_cpu in
16825       hppa*64*|ia64*)
16826         # +Z the default
16827         ;;
16828       *)
16829         lt_prog_compiler_pic_GCJ='-fPIC'
16830         ;;
16831       esac
16832       ;;
16833
16834     *)
16835       lt_prog_compiler_pic_GCJ='-fPIC'
16836       ;;
16837     esac
16838   else
16839     # PORTME Check for flag to pass linker flags through the system compiler.
16840     case $host_os in
16841     aix*)
16842       lt_prog_compiler_wl_GCJ='-Wl,'
16843       if test "$host_cpu" = ia64; then
16844         # AIX 5 now supports IA64 processor
16845         lt_prog_compiler_static_GCJ='-Bstatic'
16846       else
16847         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16848       fi
16849       ;;
16850       darwin*)
16851         # PIC is the default on this platform
16852         # Common symbols not allowed in MH_DYLIB files
16853        case $cc_basename in
16854          xlc*)
16855          lt_prog_compiler_pic_GCJ='-qnocommon'
16856          lt_prog_compiler_wl_GCJ='-Wl,'
16857          ;;
16858        esac
16859        ;;
16860
16861     mingw* | cygwin* | pw32* | os2*)
16862       # This hack is so that the source file can tell whether it is being
16863       # built for inclusion in a dll (and should export symbols for example).
16864
16865       ;;
16866
16867     hpux9* | hpux10* | hpux11*)
16868       lt_prog_compiler_wl_GCJ='-Wl,'
16869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16870       # not for PA HP-UX.
16871       case $host_cpu in
16872       hppa*64*|ia64*)
16873         # +Z the default
16874         ;;
16875       *)
16876         lt_prog_compiler_pic_GCJ='+Z'
16877         ;;
16878       esac
16879       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16880       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16881       ;;
16882
16883     irix5* | irix6* | nonstopux*)
16884       lt_prog_compiler_wl_GCJ='-Wl,'
16885       # PIC (with -KPIC) is the default.
16886       lt_prog_compiler_static_GCJ='-non_shared'
16887       ;;
16888
16889     newsos6)
16890       lt_prog_compiler_pic_GCJ='-KPIC'
16891       lt_prog_compiler_static_GCJ='-Bstatic'
16892       ;;
16893
16894     linux* | k*bsd*-gnu)
16895       case $cc_basename in
16896       icc* | ecc*)
16897         lt_prog_compiler_wl_GCJ='-Wl,'
16898         lt_prog_compiler_pic_GCJ='-KPIC'
16899         lt_prog_compiler_static_GCJ='-static'
16900         ;;
16901       pgcc* | pgf77* | pgf90* | pgf95*)
16902         # Portland Group compilers (*not* the Pentium gcc compiler,
16903         # which looks to be a dead project)
16904         lt_prog_compiler_wl_GCJ='-Wl,'
16905         lt_prog_compiler_pic_GCJ='-fpic'
16906         lt_prog_compiler_static_GCJ='-Bstatic'
16907         ;;
16908       ccc*)
16909         lt_prog_compiler_wl_GCJ='-Wl,'
16910         # All Alpha code is PIC.
16911         lt_prog_compiler_static_GCJ='-non_shared'
16912         ;;
16913       *)
16914         case `$CC -V 2>&1 | sed 5q` in
16915         *Sun\ C*)
16916           # Sun C 5.9
16917           lt_prog_compiler_pic_GCJ='-KPIC'
16918           lt_prog_compiler_static_GCJ='-Bstatic'
16919           lt_prog_compiler_wl_GCJ='-Wl,'
16920           ;;
16921         *Sun\ F*)
16922           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16923           lt_prog_compiler_pic_GCJ='-KPIC'
16924           lt_prog_compiler_static_GCJ='-Bstatic'
16925           lt_prog_compiler_wl_GCJ=''
16926           ;;
16927         esac
16928         ;;
16929       esac
16930       ;;
16931
16932     osf3* | osf4* | osf5*)
16933       lt_prog_compiler_wl_GCJ='-Wl,'
16934       # All OSF/1 code is PIC.
16935       lt_prog_compiler_static_GCJ='-non_shared'
16936       ;;
16937
16938     rdos*)
16939       lt_prog_compiler_static_GCJ='-non_shared'
16940       ;;
16941
16942     solaris*)
16943       lt_prog_compiler_pic_GCJ='-KPIC'
16944       lt_prog_compiler_static_GCJ='-Bstatic'
16945       case $cc_basename in
16946       f77* | f90* | f95*)
16947         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16948       *)
16949         lt_prog_compiler_wl_GCJ='-Wl,';;
16950       esac
16951       ;;
16952
16953     sunos4*)
16954       lt_prog_compiler_wl_GCJ='-Qoption ld '
16955       lt_prog_compiler_pic_GCJ='-PIC'
16956       lt_prog_compiler_static_GCJ='-Bstatic'
16957       ;;
16958
16959     sysv4 | sysv4.2uw2* | sysv4.3*)
16960       lt_prog_compiler_wl_GCJ='-Wl,'
16961       lt_prog_compiler_pic_GCJ='-KPIC'
16962       lt_prog_compiler_static_GCJ='-Bstatic'
16963       ;;
16964
16965     sysv4*MP*)
16966       if test -d /usr/nec ;then
16967         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16968         lt_prog_compiler_static_GCJ='-Bstatic'
16969       fi
16970       ;;
16971
16972     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16973       lt_prog_compiler_wl_GCJ='-Wl,'
16974       lt_prog_compiler_pic_GCJ='-KPIC'
16975       lt_prog_compiler_static_GCJ='-Bstatic'
16976       ;;
16977
16978     unicos*)
16979       lt_prog_compiler_wl_GCJ='-Wl,'
16980       lt_prog_compiler_can_build_shared_GCJ=no
16981       ;;
16982
16983     uts4*)
16984       lt_prog_compiler_pic_GCJ='-pic'
16985       lt_prog_compiler_static_GCJ='-Bstatic'
16986       ;;
16987
16988     *)
16989       lt_prog_compiler_can_build_shared_GCJ=no
16990       ;;
16991     esac
16992   fi
16993
16994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16995 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16996
16997 #
16998 # Check to make sure the PIC flag actually works.
16999 #
17000 if test -n "$lt_prog_compiler_pic_GCJ"; then
17001
17002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17004 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007   lt_cv_prog_compiler_pic_works_GCJ=no
17008   ac_outfile=conftest.$ac_objext
17009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17010    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17011    # Insert the option either (1) after the last *FLAGS variable, or
17012    # (2) before a word containing "conftest.", or (3) at the end.
17013    # Note that $ac_compile itself does not contain backslashes and begins
17014    # with a dollar sign (not a hyphen), so the echo should work correctly.
17015    # The option is referenced via a variable to avoid confusing sed.
17016    lt_compile=`echo "$ac_compile" | $SED \
17017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17019    -e 's:$: $lt_compiler_flag:'`
17020    (eval echo "\"\$as_me:17020: $lt_compile\"" >&5)
17021    (eval "$lt_compile" 2>conftest.err)
17022    ac_status=$?
17023    cat conftest.err >&5
17024    echo "$as_me:17024: \$? = $ac_status" >&5
17025    if (exit $ac_status) && test -s "$ac_outfile"; then
17026      # The compiler can only warn and ignore the option if not recognized
17027      # So say no if there are warnings other than the usual output.
17028      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17029      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17030      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17031        lt_cv_prog_compiler_pic_works_GCJ=yes
17032      fi
17033    fi
17034    $rm conftest*
17035
17036 fi
17037 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17038 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17039
17040 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17041     case $lt_prog_compiler_pic_GCJ in
17042      "" | " "*) ;;
17043      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17044      esac
17045 else
17046     lt_prog_compiler_pic_GCJ=
17047      lt_prog_compiler_can_build_shared_GCJ=no
17048 fi
17049
17050 fi
17051 case $host_os in
17052   # For platforms which do not support PIC, -DPIC is meaningless:
17053   *djgpp*)
17054     lt_prog_compiler_pic_GCJ=
17055     ;;
17056   *)
17057     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17058     ;;
17059 esac
17060
17061 #
17062 # Check to make sure the static flag actually works.
17063 #
17064 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17065 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17066 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17067 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   lt_cv_prog_compiler_static_works_GCJ=no
17071    save_LDFLAGS="$LDFLAGS"
17072    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17073    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17074    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17075      # The linker can only warn and ignore the option if not recognized
17076      # So say no if there are warnings
17077      if test -s conftest.err; then
17078        # Append any errors to the config.log.
17079        cat conftest.err 1>&5
17080        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17081        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17082        if diff conftest.exp conftest.er2 >/dev/null; then
17083          lt_cv_prog_compiler_static_works_GCJ=yes
17084        fi
17085      else
17086        lt_cv_prog_compiler_static_works_GCJ=yes
17087      fi
17088    fi
17089    $rm -r conftest*
17090    LDFLAGS="$save_LDFLAGS"
17091
17092 fi
17093 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17094 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17095
17096 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17097     :
17098 else
17099     lt_prog_compiler_static_GCJ=
17100 fi
17101
17102
17103 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17105 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   lt_cv_prog_compiler_c_o_GCJ=no
17109    $rm -r conftest 2>/dev/null
17110    mkdir conftest
17111    cd conftest
17112    mkdir out
17113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17114
17115    lt_compiler_flag="-o out/conftest2.$ac_objext"
17116    # Insert the option either (1) after the last *FLAGS variable, or
17117    # (2) before a word containing "conftest.", or (3) at the end.
17118    # Note that $ac_compile itself does not contain backslashes and begins
17119    # with a dollar sign (not a hyphen), so the echo should work correctly.
17120    lt_compile=`echo "$ac_compile" | $SED \
17121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17123    -e 's:$: $lt_compiler_flag:'`
17124    (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125    (eval "$lt_compile" 2>out/conftest.err)
17126    ac_status=$?
17127    cat out/conftest.err >&5
17128    echo "$as_me:17128: \$? = $ac_status" >&5
17129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17130    then
17131      # The compiler can only warn and ignore the option if not recognized
17132      # So say no if there are warnings
17133      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17134      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17135      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17136        lt_cv_prog_compiler_c_o_GCJ=yes
17137      fi
17138    fi
17139    chmod u+w . 2>&5
17140    $rm conftest*
17141    # SGI C++ compiler will create directory out/ii_files/ for
17142    # template instantiation
17143    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17144    $rm out/* && rmdir out
17145    cd ..
17146    rmdir conftest
17147    $rm conftest*
17148
17149 fi
17150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17152
17153
17154 hard_links="nottested"
17155 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17156   # do not overwrite the value of need_locks provided by the user
17157   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17159   hard_links=yes
17160   $rm conftest*
17161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17162   touch conftest.a
17163   ln conftest.a conftest.b 2>&5 || hard_links=no
17164   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165   { echo "$as_me:$LINENO: result: $hard_links" >&5
17166 echo "${ECHO_T}$hard_links" >&6; }
17167   if test "$hard_links" = no; then
17168     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17170     need_locks=warn
17171   fi
17172 else
17173   need_locks=no
17174 fi
17175
17176 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17178
17179   runpath_var=
17180   allow_undefined_flag_GCJ=
17181   enable_shared_with_static_runtimes_GCJ=no
17182   archive_cmds_GCJ=
17183   archive_expsym_cmds_GCJ=
17184   old_archive_From_new_cmds_GCJ=
17185   old_archive_from_expsyms_cmds_GCJ=
17186   export_dynamic_flag_spec_GCJ=
17187   whole_archive_flag_spec_GCJ=
17188   thread_safe_flag_spec_GCJ=
17189   hardcode_libdir_flag_spec_GCJ=
17190   hardcode_libdir_flag_spec_ld_GCJ=
17191   hardcode_libdir_separator_GCJ=
17192   hardcode_direct_GCJ=no
17193   hardcode_minus_L_GCJ=no
17194   hardcode_shlibpath_var_GCJ=unsupported
17195   link_all_deplibs_GCJ=unknown
17196   hardcode_automatic_GCJ=no
17197   module_cmds_GCJ=
17198   module_expsym_cmds_GCJ=
17199   always_export_symbols_GCJ=no
17200   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17201   # include_expsyms should be a list of space-separated symbols to be *always*
17202   # included in the symbol list
17203   include_expsyms_GCJ=
17204   # exclude_expsyms can be an extended regexp of symbols to exclude
17205   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17206   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17207   # as well as any symbol that contains `d'.
17208   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17209   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17210   # platforms (ab)use it in PIC code, but their linkers get confused if
17211   # the symbol is explicitly referenced.  Since portable code cannot
17212   # rely on this symbol name, it's probably fine to never include it in
17213   # preloaded symbol tables.
17214   # Exclude shared library initialization/finalization symbols.
17215   extract_expsyms_cmds=
17216   # Just being paranoid about ensuring that cc_basename is set.
17217   for cc_temp in $compiler""; do
17218   case $cc_temp in
17219     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17220     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17221     \-*) ;;
17222     *) break;;
17223   esac
17224 done
17225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17226
17227   case $host_os in
17228   cygwin* | mingw* | pw32*)
17229     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17230     # When not using gcc, we currently assume that we are using
17231     # Microsoft Visual C++.
17232     if test "$GCC" != yes; then
17233       with_gnu_ld=no
17234     fi
17235     ;;
17236   interix*)
17237     # we just hope/assume this is gcc and not c89 (= MSVC++)
17238     with_gnu_ld=yes
17239     ;;
17240   openbsd*)
17241     with_gnu_ld=no
17242     ;;
17243   esac
17244
17245   ld_shlibs_GCJ=yes
17246   if test "$with_gnu_ld" = yes; then
17247     # If archive_cmds runs LD, not CC, wlarc should be empty
17248     wlarc='${wl}'
17249
17250     # Set some defaults for GNU ld with shared library support. These
17251     # are reset later if shared libraries are not supported. Putting them
17252     # here allows them to be overridden if necessary.
17253     runpath_var=LD_RUN_PATH
17254     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17255     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17256     # ancient GNU ld didn't support --whole-archive et. al.
17257     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17258         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17259       else
17260         whole_archive_flag_spec_GCJ=
17261     fi
17262     supports_anon_versioning=no
17263     case `$LD -v 2>/dev/null` in
17264       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17265       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17266       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17267       *\ 2.11.*) ;; # other 2.11 versions
17268       *) supports_anon_versioning=yes ;;
17269     esac
17270
17271     # See if GNU ld supports shared libraries.
17272     case $host_os in
17273     aix[3-9]*)
17274       # On AIX/PPC, the GNU linker is very broken
17275       if test "$host_cpu" != ia64; then
17276         ld_shlibs_GCJ=no
17277         cat <<EOF 1>&2
17278
17279 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17280 *** to be unable to reliably create shared libraries on AIX.
17281 *** Therefore, libtool is disabling shared libraries support.  If you
17282 *** really care for shared libraries, you may want to modify your PATH
17283 *** so that a non-GNU linker is found, and then restart.
17284
17285 EOF
17286       fi
17287       ;;
17288
17289     amigaos*)
17290       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)'
17291       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292       hardcode_minus_L_GCJ=yes
17293
17294       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17295       # that the semantics of dynamic libraries on AmigaOS, at least up
17296       # to version 4, is to share data among multiple programs linked
17297       # with the same dynamic library.  Since this doesn't match the
17298       # behavior of shared libraries on other platforms, we can't use
17299       # them.
17300       ld_shlibs_GCJ=no
17301       ;;
17302
17303     beos*)
17304       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17305         allow_undefined_flag_GCJ=unsupported
17306         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17307         # support --undefined.  This deserves some investigation.  FIXME
17308         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17309       else
17310         ld_shlibs_GCJ=no
17311       fi
17312       ;;
17313
17314     cygwin* | mingw* | pw32*)
17315       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17316       # as there is no search path for DLLs.
17317       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17318       allow_undefined_flag_GCJ=unsupported
17319       always_export_symbols_GCJ=no
17320       enable_shared_with_static_runtimes_GCJ=yes
17321       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17322
17323       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17324         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325         # If the export-symbols file already is a .def file (1st line
17326         # is EXPORTS), use it as is; otherwise, prepend...
17327         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17328           cp $export_symbols $output_objdir/$soname.def;
17329         else
17330           echo EXPORTS > $output_objdir/$soname.def;
17331           cat $export_symbols >> $output_objdir/$soname.def;
17332         fi~
17333         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17334       else
17335         ld_shlibs_GCJ=no
17336       fi
17337       ;;
17338
17339     interix[3-9]*)
17340       hardcode_direct_GCJ=no
17341       hardcode_shlibpath_var_GCJ=no
17342       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17343       export_dynamic_flag_spec_GCJ='${wl}-E'
17344       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17345       # Instead, shared libraries are loaded at an image base (0x10000000 by
17346       # default) and relocated if they conflict, which is a slow very memory
17347       # consuming and fragmenting process.  To avoid this, we pick a random,
17348       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17349       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17350       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'
17351       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'
17352       ;;
17353
17354     gnu* | linux* | k*bsd*-gnu)
17355       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17356         tmp_addflag=
17357         case $cc_basename,$host_cpu in
17358         pgcc*)                          # Portland Group C compiler
17359           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'
17360           tmp_addflag=' $pic_flag'
17361           ;;
17362         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17363           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'
17364           tmp_addflag=' $pic_flag -Mnomain' ;;
17365         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17366           tmp_addflag=' -i_dynamic' ;;
17367         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17368           tmp_addflag=' -i_dynamic -nofor_main' ;;
17369         ifc* | ifort*)                  # Intel Fortran compiler
17370           tmp_addflag=' -nofor_main' ;;
17371         esac
17372         case `$CC -V 2>&1 | sed 5q` in
17373         *Sun\ C*)                       # Sun C 5.9
17374           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'
17375           tmp_sharedflag='-G' ;;
17376         *Sun\ F*)                       # Sun Fortran 8.3
17377           tmp_sharedflag='-G' ;;
17378         *)
17379           tmp_sharedflag='-shared' ;;
17380         esac
17381         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17382
17383         if test $supports_anon_versioning = yes; then
17384           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17385   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17386   $echo "local: *; };" >> $output_objdir/$libname.ver~
17387           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17388         fi
17389         link_all_deplibs_GCJ=no
17390       else
17391         ld_shlibs_GCJ=no
17392       fi
17393       ;;
17394
17395     netbsd* | netbsdelf*-gnu)
17396       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17397         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17398         wlarc=
17399       else
17400         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17401         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17402       fi
17403       ;;
17404
17405     solaris*)
17406       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17407         ld_shlibs_GCJ=no
17408         cat <<EOF 1>&2
17409
17410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17411 *** create shared libraries on Solaris systems.  Therefore, libtool
17412 *** is disabling shared libraries support.  We urge you to upgrade GNU
17413 *** binutils to release 2.9.1 or newer.  Another option is to modify
17414 *** your PATH or compiler configuration so that the native linker is
17415 *** used, and then restart.
17416
17417 EOF
17418       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17419         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17421       else
17422         ld_shlibs_GCJ=no
17423       fi
17424       ;;
17425
17426     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17427       case `$LD -v 2>&1` in
17428         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17429         ld_shlibs_GCJ=no
17430         cat <<_LT_EOF 1>&2
17431
17432 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17433 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17434 *** is disabling shared libraries support.  We urge you to upgrade GNU
17435 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17436 *** your PATH or compiler configuration so that the native linker is
17437 *** used, and then restart.
17438
17439 _LT_EOF
17440         ;;
17441         *)
17442           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17443             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17444             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17445             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17446           else
17447             ld_shlibs_GCJ=no
17448           fi
17449         ;;
17450       esac
17451       ;;
17452
17453     sunos4*)
17454       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17455       wlarc=
17456       hardcode_direct_GCJ=yes
17457       hardcode_shlibpath_var_GCJ=no
17458       ;;
17459
17460     *)
17461       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17464       else
17465         ld_shlibs_GCJ=no
17466       fi
17467       ;;
17468     esac
17469
17470     if test "$ld_shlibs_GCJ" = no; then
17471       runpath_var=
17472       hardcode_libdir_flag_spec_GCJ=
17473       export_dynamic_flag_spec_GCJ=
17474       whole_archive_flag_spec_GCJ=
17475     fi
17476   else
17477     # PORTME fill in a description of your system's linker (not GNU ld)
17478     case $host_os in
17479     aix3*)
17480       allow_undefined_flag_GCJ=unsupported
17481       always_export_symbols_GCJ=yes
17482       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'
17483       # Note: this linker hardcodes the directories in LIBPATH if there
17484       # are no directories specified by -L.
17485       hardcode_minus_L_GCJ=yes
17486       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17487         # Neither direct hardcoding nor static linking is supported with a
17488         # broken collect2.
17489         hardcode_direct_GCJ=unsupported
17490       fi
17491       ;;
17492
17493     aix[4-9]*)
17494       if test "$host_cpu" = ia64; then
17495         # On IA64, the linker does run time linking by default, so we don't
17496         # have to do anything special.
17497         aix_use_runtimelinking=no
17498         exp_sym_flag='-Bexport'
17499         no_entry_flag=""
17500       else
17501         # If we're using GNU nm, then we don't want the "-C" option.
17502         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17503         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17504           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'
17505         else
17506           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'
17507         fi
17508         aix_use_runtimelinking=no
17509
17510         # Test if we are trying to use run time linking or normal
17511         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17512         # need to do runtime linking.
17513         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17514           for ld_flag in $LDFLAGS; do
17515           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17516             aix_use_runtimelinking=yes
17517             break
17518           fi
17519           done
17520           ;;
17521         esac
17522
17523         exp_sym_flag='-bexport'
17524         no_entry_flag='-bnoentry'
17525       fi
17526
17527       # When large executables or shared objects are built, AIX ld can
17528       # have problems creating the table of contents.  If linking a library
17529       # or program results in "error TOC overflow" add -mminimal-toc to
17530       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17531       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17532
17533       archive_cmds_GCJ=''
17534       hardcode_direct_GCJ=yes
17535       hardcode_libdir_separator_GCJ=':'
17536       link_all_deplibs_GCJ=yes
17537
17538       if test "$GCC" = yes; then
17539         case $host_os in aix4.[012]|aix4.[012].*)
17540         # We only want to do this on AIX 4.2 and lower, the check
17541         # below for broken collect2 doesn't work under 4.3+
17542           collect2name=`${CC} -print-prog-name=collect2`
17543           if test -f "$collect2name" && \
17544            strings "$collect2name" | grep resolve_lib_name >/dev/null
17545           then
17546           # We have reworked collect2
17547           :
17548           else
17549           # We have old collect2
17550           hardcode_direct_GCJ=unsupported
17551           # It fails to find uninstalled libraries when the uninstalled
17552           # path is not listed in the libpath.  Setting hardcode_minus_L
17553           # to unsupported forces relinking
17554           hardcode_minus_L_GCJ=yes
17555           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17556           hardcode_libdir_separator_GCJ=
17557           fi
17558           ;;
17559         esac
17560         shared_flag='-shared'
17561         if test "$aix_use_runtimelinking" = yes; then
17562           shared_flag="$shared_flag "'${wl}-G'
17563         fi
17564       else
17565         # not using gcc
17566         if test "$host_cpu" = ia64; then
17567         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17568         # chokes on -Wl,-G. The following line is correct:
17569           shared_flag='-G'
17570         else
17571           if test "$aix_use_runtimelinking" = yes; then
17572             shared_flag='${wl}-G'
17573           else
17574             shared_flag='${wl}-bM:SRE'
17575           fi
17576         fi
17577       fi
17578
17579       # It seems that -bexpall does not export symbols beginning with
17580       # underscore (_), so it is better to generate a list of symbols to export.
17581       always_export_symbols_GCJ=yes
17582       if test "$aix_use_runtimelinking" = yes; then
17583         # Warning - without using the other runtime loading flags (-brtl),
17584         # -berok will link without error, but may produce a broken library.
17585         allow_undefined_flag_GCJ='-berok'
17586        # Determine the default libpath from the value encoded in an empty executable.
17587        cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593
17594 int
17595 main ()
17596 {
17597
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_link") 2>conftest.er1
17610   ac_status=$?
17611   grep -v '^ *+' conftest.er1 >conftest.err
17612   rm -f conftest.er1
17613   cat conftest.err >&5
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } && {
17616          test -z "$ac_c_werror_flag" ||
17617          test ! -s conftest.err
17618        } && test -s conftest$ac_exeext &&
17619        $as_test_x conftest$ac_exeext; then
17620
17621 lt_aix_libpath_sed='
17622     /Import File Strings/,/^$/ {
17623         /^0/ {
17624             s/^0  *\(.*\)$/\1/
17625             p
17626         }
17627     }'
17628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17629 # Check for a 64-bit object if we didn't find anything.
17630 if test -z "$aix_libpath"; then
17631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17632 fi
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637
17638 fi
17639
17640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641       conftest$ac_exeext conftest.$ac_ext
17642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17643
17644        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17645         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"
17646        else
17647         if test "$host_cpu" = ia64; then
17648           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17649           allow_undefined_flag_GCJ="-z nodefs"
17650           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"
17651         else
17652          # Determine the default libpath from the value encoded in an empty executable.
17653          cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659
17660 int
17661 main ()
17662 {
17663
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672   *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675   (eval "$ac_link") 2>conftest.er1
17676   ac_status=$?
17677   grep -v '^ *+' conftest.er1 >conftest.err
17678   rm -f conftest.er1
17679   cat conftest.err >&5
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); } && {
17682          test -z "$ac_c_werror_flag" ||
17683          test ! -s conftest.err
17684        } && test -s conftest$ac_exeext &&
17685        $as_test_x conftest$ac_exeext; then
17686
17687 lt_aix_libpath_sed='
17688     /Import File Strings/,/^$/ {
17689         /^0/ {
17690             s/^0  *\(.*\)$/\1/
17691             p
17692         }
17693     }'
17694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17695 # Check for a 64-bit object if we didn't find anything.
17696 if test -z "$aix_libpath"; then
17697   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17698 fi
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703
17704 fi
17705
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707       conftest$ac_exeext conftest.$ac_ext
17708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17709
17710          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17711           # Warning - without using the other run time loading flags,
17712           # -berok will link without error, but may produce a broken library.
17713           no_undefined_flag_GCJ=' ${wl}-bernotok'
17714           allow_undefined_flag_GCJ=' ${wl}-berok'
17715           # Exported symbols can be pulled into shared objects from archives
17716           whole_archive_flag_spec_GCJ='$convenience'
17717           archive_cmds_need_lc_GCJ=yes
17718           # This is similar to how AIX traditionally builds its shared libraries.
17719           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'
17720         fi
17721       fi
17722       ;;
17723
17724     amigaos*)
17725       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)'
17726       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17727       hardcode_minus_L_GCJ=yes
17728       # see comment about different semantics on the GNU ld section
17729       ld_shlibs_GCJ=no
17730       ;;
17731
17732     bsdi[45]*)
17733       export_dynamic_flag_spec_GCJ=-rdynamic
17734       ;;
17735
17736     cygwin* | mingw* | pw32*)
17737       # When not using gcc, we currently assume that we are using
17738       # Microsoft Visual C++.
17739       # hardcode_libdir_flag_spec is actually meaningless, as there is
17740       # no search path for DLLs.
17741       hardcode_libdir_flag_spec_GCJ=' '
17742       allow_undefined_flag_GCJ=unsupported
17743       # Tell ltmain to make .lib files, not .a files.
17744       libext=lib
17745       # Tell ltmain to make .dll files, not .so files.
17746       shrext_cmds=".dll"
17747       # FIXME: Setting linknames here is a bad hack.
17748       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17749       # The linker will automatically build a .lib file if we build a DLL.
17750       old_archive_From_new_cmds_GCJ='true'
17751       # FIXME: Should let the user specify the lib program.
17752       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17753       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17754       enable_shared_with_static_runtimes_GCJ=yes
17755       ;;
17756
17757     darwin* | rhapsody*)
17758       case $host_os in
17759         rhapsody* | darwin1.[012])
17760          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17761          ;;
17762        *) # Darwin 1.3 on
17763          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17764            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17765          else
17766            case ${MACOSX_DEPLOYMENT_TARGET} in
17767              10.[012])
17768                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17769                ;;
17770              10.*)
17771                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17772                ;;
17773            esac
17774          fi
17775          ;;
17776       esac
17777       archive_cmds_need_lc_GCJ=no
17778       hardcode_direct_GCJ=no
17779       hardcode_automatic_GCJ=yes
17780       hardcode_shlibpath_var_GCJ=unsupported
17781       whole_archive_flag_spec_GCJ=''
17782       link_all_deplibs_GCJ=yes
17783     if test "$GCC" = yes ; then
17784         output_verbose_link_cmd='echo'
17785         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17786         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17787         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17788         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17789     else
17790       case $cc_basename in
17791         xlc*)
17792          output_verbose_link_cmd='echo'
17793          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17794          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17795           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17796          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}'
17797           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}'
17798           ;;
17799        *)
17800          ld_shlibs_GCJ=no
17801           ;;
17802       esac
17803     fi
17804       ;;
17805
17806     dgux*)
17807       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17808       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17809       hardcode_shlibpath_var_GCJ=no
17810       ;;
17811
17812     freebsd1*)
17813       ld_shlibs_GCJ=no
17814       ;;
17815
17816     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17817     # support.  Future versions do this automatically, but an explicit c++rt0.o
17818     # does not break anything, and helps significantly (at the cost of a little
17819     # extra space).
17820     freebsd2.2*)
17821       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17822       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17823       hardcode_direct_GCJ=yes
17824       hardcode_shlibpath_var_GCJ=no
17825       ;;
17826
17827     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17828     freebsd2*)
17829       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17830       hardcode_direct_GCJ=yes
17831       hardcode_minus_L_GCJ=yes
17832       hardcode_shlibpath_var_GCJ=no
17833       ;;
17834
17835     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17836     freebsd* | dragonfly*)
17837       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17838       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17839       hardcode_direct_GCJ=yes
17840       hardcode_shlibpath_var_GCJ=no
17841       ;;
17842
17843     hpux9*)
17844       if test "$GCC" = yes; then
17845         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'
17846       else
17847         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'
17848       fi
17849       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17850       hardcode_libdir_separator_GCJ=:
17851       hardcode_direct_GCJ=yes
17852
17853       # hardcode_minus_L: Not really in the search PATH,
17854       # but as the default location of the library.
17855       hardcode_minus_L_GCJ=yes
17856       export_dynamic_flag_spec_GCJ='${wl}-E'
17857       ;;
17858
17859     hpux10*)
17860       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17861         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17862       else
17863         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17864       fi
17865       if test "$with_gnu_ld" = no; then
17866         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17867         hardcode_libdir_separator_GCJ=:
17868
17869         hardcode_direct_GCJ=yes
17870         export_dynamic_flag_spec_GCJ='${wl}-E'
17871
17872         # hardcode_minus_L: Not really in the search PATH,
17873         # but as the default location of the library.
17874         hardcode_minus_L_GCJ=yes
17875       fi
17876       ;;
17877
17878     hpux11*)
17879       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17880         case $host_cpu in
17881         hppa*64*)
17882           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17883           ;;
17884         ia64*)
17885           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17886           ;;
17887         *)
17888           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17889           ;;
17890         esac
17891       else
17892         case $host_cpu in
17893         hppa*64*)
17894           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17895           ;;
17896         ia64*)
17897           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17898           ;;
17899         *)
17900           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17901           ;;
17902         esac
17903       fi
17904       if test "$with_gnu_ld" = no; then
17905         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17906         hardcode_libdir_separator_GCJ=:
17907
17908         case $host_cpu in
17909         hppa*64*|ia64*)
17910           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17911           hardcode_direct_GCJ=no
17912           hardcode_shlibpath_var_GCJ=no
17913           ;;
17914         *)
17915           hardcode_direct_GCJ=yes
17916           export_dynamic_flag_spec_GCJ='${wl}-E'
17917
17918           # hardcode_minus_L: Not really in the search PATH,
17919           # but as the default location of the library.
17920           hardcode_minus_L_GCJ=yes
17921           ;;
17922         esac
17923       fi
17924       ;;
17925
17926     irix5* | irix6* | nonstopux*)
17927       if test "$GCC" = yes; then
17928         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'
17929       else
17930         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'
17931         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17932       fi
17933       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17934       hardcode_libdir_separator_GCJ=:
17935       link_all_deplibs_GCJ=yes
17936       ;;
17937
17938     netbsd* | netbsdelf*-gnu)
17939       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17940         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17941       else
17942         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17943       fi
17944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945       hardcode_direct_GCJ=yes
17946       hardcode_shlibpath_var_GCJ=no
17947       ;;
17948
17949     newsos6)
17950       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951       hardcode_direct_GCJ=yes
17952       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17953       hardcode_libdir_separator_GCJ=:
17954       hardcode_shlibpath_var_GCJ=no
17955       ;;
17956
17957     openbsd*)
17958       if test -f /usr/libexec/ld.so; then
17959         hardcode_direct_GCJ=yes
17960         hardcode_shlibpath_var_GCJ=no
17961         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17962           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17963           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17964           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17965           export_dynamic_flag_spec_GCJ='${wl}-E'
17966         else
17967           case $host_os in
17968            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17969              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17970              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17971              ;;
17972            *)
17973              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17974              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17975              ;;
17976           esac
17977         fi
17978       else
17979         ld_shlibs_GCJ=no
17980       fi
17981       ;;
17982
17983     os2*)
17984       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985       hardcode_minus_L_GCJ=yes
17986       allow_undefined_flag_GCJ=unsupported
17987       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'
17988       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17989       ;;
17990
17991     osf3*)
17992       if test "$GCC" = yes; then
17993         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994         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'
17995       else
17996         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17997         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'
17998       fi
17999       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18000       hardcode_libdir_separator_GCJ=:
18001       ;;
18002
18003     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18004       if test "$GCC" = yes; then
18005         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18006         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'
18007         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18008       else
18009         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18010         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'
18011         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~
18012         $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'
18013
18014         # Both c and cxx compiler support -rpath directly
18015         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18016       fi
18017       hardcode_libdir_separator_GCJ=:
18018       ;;
18019
18020     solaris*)
18021       no_undefined_flag_GCJ=' -z text'
18022       if test "$GCC" = yes; then
18023         wlarc='${wl}'
18024         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18025         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18026           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18027       else
18028         wlarc=''
18029         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18032       fi
18033       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18034       hardcode_shlibpath_var_GCJ=no
18035       case $host_os in
18036       solaris2.[0-5] | solaris2.[0-5].*) ;;
18037       *)
18038         # The compiler driver will combine and reorder linker options,
18039         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18040         # but is careful enough not to reorder.
18041         # Supported since Solaris 2.6 (maybe 2.5.1?)
18042         if test "$GCC" = yes; then
18043           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18044         else
18045           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18046         fi
18047         ;;
18048       esac
18049       link_all_deplibs_GCJ=yes
18050       ;;
18051
18052     sunos4*)
18053       if test "x$host_vendor" = xsequent; then
18054         # Use $CC to link under sequent, because it throws in some extra .o
18055         # files that make .init and .fini sections work.
18056         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18057       else
18058         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18059       fi
18060       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18061       hardcode_direct_GCJ=yes
18062       hardcode_minus_L_GCJ=yes
18063       hardcode_shlibpath_var_GCJ=no
18064       ;;
18065
18066     sysv4)
18067       case $host_vendor in
18068         sni)
18069           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070           hardcode_direct_GCJ=yes # is this really true???
18071         ;;
18072         siemens)
18073           ## LD is ld it makes a PLAMLIB
18074           ## CC just makes a GrossModule.
18075           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18076           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18077           hardcode_direct_GCJ=no
18078         ;;
18079         motorola)
18080           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18081           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18082         ;;
18083       esac
18084       runpath_var='LD_RUN_PATH'
18085       hardcode_shlibpath_var_GCJ=no
18086       ;;
18087
18088     sysv4.3*)
18089       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18090       hardcode_shlibpath_var_GCJ=no
18091       export_dynamic_flag_spec_GCJ='-Bexport'
18092       ;;
18093
18094     sysv4*MP*)
18095       if test -d /usr/nec; then
18096         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097         hardcode_shlibpath_var_GCJ=no
18098         runpath_var=LD_RUN_PATH
18099         hardcode_runpath_var=yes
18100         ld_shlibs_GCJ=yes
18101       fi
18102       ;;
18103
18104     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18105       no_undefined_flag_GCJ='${wl}-z,text'
18106       archive_cmds_need_lc_GCJ=no
18107       hardcode_shlibpath_var_GCJ=no
18108       runpath_var='LD_RUN_PATH'
18109
18110       if test "$GCC" = yes; then
18111         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113       else
18114         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116       fi
18117       ;;
18118
18119     sysv5* | sco3.2v5* | sco5v6*)
18120       # Note: We can NOT use -z defs as we might desire, because we do not
18121       # link with -lc, and that would cause any symbols used from libc to
18122       # always be unresolved, which means just about no library would
18123       # ever link correctly.  If we're not using GNU ld we use -z text
18124       # though, which does catch some bad symbols but isn't as heavy-handed
18125       # as -z defs.
18126       no_undefined_flag_GCJ='${wl}-z,text'
18127       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18128       archive_cmds_need_lc_GCJ=no
18129       hardcode_shlibpath_var_GCJ=no
18130       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18131       hardcode_libdir_separator_GCJ=':'
18132       link_all_deplibs_GCJ=yes
18133       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18134       runpath_var='LD_RUN_PATH'
18135
18136       if test "$GCC" = yes; then
18137         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18139       else
18140         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142       fi
18143       ;;
18144
18145     uts4*)
18146       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18148       hardcode_shlibpath_var_GCJ=no
18149       ;;
18150
18151     *)
18152       ld_shlibs_GCJ=no
18153       ;;
18154     esac
18155   fi
18156
18157 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18158 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18159 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18160
18161 #
18162 # Do we need to explicitly link libc?
18163 #
18164 case "x$archive_cmds_need_lc_GCJ" in
18165 x|xyes)
18166   # Assume -lc should be added
18167   archive_cmds_need_lc_GCJ=yes
18168
18169   if test "$enable_shared" = yes && test "$GCC" = yes; then
18170     case $archive_cmds_GCJ in
18171     *'~'*)
18172       # FIXME: we may have to deal with multi-command sequences.
18173       ;;
18174     '$CC '*)
18175       # Test whether the compiler implicitly links with -lc since on some
18176       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18177       # to ld, don't add -lc before -lgcc.
18178       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18180       $rm conftest*
18181       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18182
18183       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184   (eval $ac_compile) 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); } 2>conftest.err; then
18188         soname=conftest
18189         lib=conftest
18190         libobjs=conftest.$ac_objext
18191         deplibs=
18192         wl=$lt_prog_compiler_wl_GCJ
18193         pic_flag=$lt_prog_compiler_pic_GCJ
18194         compiler_flags=-v
18195         linker_flags=-v
18196         verstring=
18197         output_objdir=.
18198         libname=conftest
18199         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18200         allow_undefined_flag_GCJ=
18201         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18202   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }
18206         then
18207           archive_cmds_need_lc_GCJ=no
18208         else
18209           archive_cmds_need_lc_GCJ=yes
18210         fi
18211         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18212       else
18213         cat conftest.err 1>&5
18214       fi
18215       $rm conftest*
18216       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18218       ;;
18219     esac
18220   fi
18221   ;;
18222 esac
18223
18224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18226 library_names_spec=
18227 libname_spec='lib$name'
18228 soname_spec=
18229 shrext_cmds=".so"
18230 postinstall_cmds=
18231 postuninstall_cmds=
18232 finish_cmds=
18233 finish_eval=
18234 shlibpath_var=
18235 shlibpath_overrides_runpath=unknown
18236 version_type=none
18237 dynamic_linker="$host_os ld.so"
18238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18239
18240 need_lib_prefix=unknown
18241 hardcode_into_libs=no
18242
18243 # when you set need_version to no, make sure it does not cause -set_version
18244 # flags to be left without arguments
18245 need_version=unknown
18246
18247 case $host_os in
18248 aix3*)
18249   version_type=linux
18250   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18251   shlibpath_var=LIBPATH
18252
18253   # AIX 3 has no versioning support, so we append a major version to the name.
18254   soname_spec='${libname}${release}${shared_ext}$major'
18255   ;;
18256
18257 aix[4-9]*)
18258   version_type=linux
18259   need_lib_prefix=no
18260   need_version=no
18261   hardcode_into_libs=yes
18262   if test "$host_cpu" = ia64; then
18263     # AIX 5 supports IA64
18264     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18265     shlibpath_var=LD_LIBRARY_PATH
18266   else
18267     # With GCC up to 2.95.x, collect2 would create an import file
18268     # for dependence libraries.  The import file would start with
18269     # the line `#! .'.  This would cause the generated library to
18270     # depend on `.', always an invalid library.  This was fixed in
18271     # development snapshots of GCC prior to 3.0.
18272     case $host_os in
18273       aix4 | aix4.[01] | aix4.[01].*)
18274       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18275            echo ' yes '
18276            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18277         :
18278       else
18279         can_build_shared=no
18280       fi
18281       ;;
18282     esac
18283     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18284     # soname into executable. Probably we can add versioning support to
18285     # collect2, so additional links can be useful in future.
18286     if test "$aix_use_runtimelinking" = yes; then
18287       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18288       # instead of lib<name>.a to let people know that these are not
18289       # typical AIX shared libraries.
18290       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291     else
18292       # We preserve .a as extension for shared libraries through AIX4.2
18293       # and later when we are not doing run time linking.
18294       library_names_spec='${libname}${release}.a $libname.a'
18295       soname_spec='${libname}${release}${shared_ext}$major'
18296     fi
18297     shlibpath_var=LIBPATH
18298   fi
18299   ;;
18300
18301 amigaos*)
18302   library_names_spec='$libname.ixlibrary $libname.a'
18303   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18304   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'
18305   ;;
18306
18307 beos*)
18308   library_names_spec='${libname}${shared_ext}'
18309   dynamic_linker="$host_os ld.so"
18310   shlibpath_var=LIBRARY_PATH
18311   ;;
18312
18313 bsdi[45]*)
18314   version_type=linux
18315   need_version=no
18316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317   soname_spec='${libname}${release}${shared_ext}$major'
18318   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18319   shlibpath_var=LD_LIBRARY_PATH
18320   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18321   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18322   # the default ld.so.conf also contains /usr/contrib/lib and
18323   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18324   # libtool to hard-code these into programs
18325   ;;
18326
18327 cygwin* | mingw* | pw32*)
18328   version_type=windows
18329   shrext_cmds=".dll"
18330   need_version=no
18331   need_lib_prefix=no
18332
18333   case $GCC,$host_os in
18334   yes,cygwin* | yes,mingw* | yes,pw32*)
18335     library_names_spec='$libname.dll.a'
18336     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18337     postinstall_cmds='base_file=`basename \${file}`~
18338       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18339       dldir=$destdir/`dirname \$dlpath`~
18340       test -d \$dldir || mkdir -p \$dldir~
18341       $install_prog $dir/$dlname \$dldir/$dlname~
18342       chmod a+x \$dldir/$dlname'
18343     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18344       dlpath=$dir/\$dldll~
18345        $rm \$dlpath'
18346     shlibpath_overrides_runpath=yes
18347
18348     case $host_os in
18349     cygwin*)
18350       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18351       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18352       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18353       ;;
18354     mingw*)
18355       # MinGW DLLs use traditional 'lib' prefix
18356       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18357       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18358       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18359         # It is most probably a Windows format PATH printed by
18360         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18361         # path with ; separators, and with drive letters. We can handle the
18362         # drive letters (cygwin fileutils understands them), so leave them,
18363         # especially as we might pass files found there to a mingw objdump,
18364         # which wouldn't understand a cygwinified path. Ahh.
18365         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18366       else
18367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18368       fi
18369       ;;
18370     pw32*)
18371       # pw32 DLLs use 'pw' prefix rather than 'lib'
18372       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18373       ;;
18374     esac
18375     ;;
18376
18377   *)
18378     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18379     ;;
18380   esac
18381   dynamic_linker='Win32 ld.exe'
18382   # FIXME: first we should search . and the directory the executable is in
18383   shlibpath_var=PATH
18384   ;;
18385
18386 darwin* | rhapsody*)
18387   dynamic_linker="$host_os dyld"
18388   version_type=darwin
18389   need_lib_prefix=no
18390   need_version=no
18391   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18392   soname_spec='${libname}${release}${major}$shared_ext'
18393   shlibpath_overrides_runpath=yes
18394   shlibpath_var=DYLD_LIBRARY_PATH
18395   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18396
18397   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18398   ;;
18399
18400 dgux*)
18401   version_type=linux
18402   need_lib_prefix=no
18403   need_version=no
18404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18405   soname_spec='${libname}${release}${shared_ext}$major'
18406   shlibpath_var=LD_LIBRARY_PATH
18407   ;;
18408
18409 freebsd1*)
18410   dynamic_linker=no
18411   ;;
18412
18413 freebsd* | dragonfly*)
18414   # DragonFly does not have aout.  When/if they implement a new
18415   # versioning mechanism, adjust this.
18416   if test -x /usr/bin/objformat; then
18417     objformat=`/usr/bin/objformat`
18418   else
18419     case $host_os in
18420     freebsd[123]*) objformat=aout ;;
18421     *) objformat=elf ;;
18422     esac
18423   fi
18424   version_type=freebsd-$objformat
18425   case $version_type in
18426     freebsd-elf*)
18427       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428       need_version=no
18429       need_lib_prefix=no
18430       ;;
18431     freebsd-*)
18432       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18433       need_version=yes
18434       ;;
18435   esac
18436   shlibpath_var=LD_LIBRARY_PATH
18437   case $host_os in
18438   freebsd2*)
18439     shlibpath_overrides_runpath=yes
18440     ;;
18441   freebsd3.[01]* | freebsdelf3.[01]*)
18442     shlibpath_overrides_runpath=yes
18443     hardcode_into_libs=yes
18444     ;;
18445   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18446   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18447     shlibpath_overrides_runpath=no
18448     hardcode_into_libs=yes
18449     ;;
18450   *) # from 4.6 on, and DragonFly
18451     shlibpath_overrides_runpath=yes
18452     hardcode_into_libs=yes
18453     ;;
18454   esac
18455   ;;
18456
18457 gnu*)
18458   version_type=linux
18459   need_lib_prefix=no
18460   need_version=no
18461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18462   soname_spec='${libname}${release}${shared_ext}$major'
18463   shlibpath_var=LD_LIBRARY_PATH
18464   hardcode_into_libs=yes
18465   ;;
18466
18467 hpux9* | hpux10* | hpux11*)
18468   # Give a soname corresponding to the major version so that dld.sl refuses to
18469   # link against other versions.
18470   version_type=sunos
18471   need_lib_prefix=no
18472   need_version=no
18473   case $host_cpu in
18474   ia64*)
18475     shrext_cmds='.so'
18476     hardcode_into_libs=yes
18477     dynamic_linker="$host_os dld.so"
18478     shlibpath_var=LD_LIBRARY_PATH
18479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481     soname_spec='${libname}${release}${shared_ext}$major'
18482     if test "X$HPUX_IA64_MODE" = X32; then
18483       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18484     else
18485       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18486     fi
18487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18488     ;;
18489    hppa*64*)
18490      shrext_cmds='.sl'
18491      hardcode_into_libs=yes
18492      dynamic_linker="$host_os dld.sl"
18493      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18494      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18495      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496      soname_spec='${libname}${release}${shared_ext}$major'
18497      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18498      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18499      ;;
18500    *)
18501     shrext_cmds='.sl'
18502     dynamic_linker="$host_os dld.sl"
18503     shlibpath_var=SHLIB_PATH
18504     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506     soname_spec='${libname}${release}${shared_ext}$major'
18507     ;;
18508   esac
18509   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18510   postinstall_cmds='chmod 555 $lib'
18511   ;;
18512
18513 interix[3-9]*)
18514   version_type=linux
18515   need_lib_prefix=no
18516   need_version=no
18517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18518   soname_spec='${libname}${release}${shared_ext}$major'
18519   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18520   shlibpath_var=LD_LIBRARY_PATH
18521   shlibpath_overrides_runpath=no
18522   hardcode_into_libs=yes
18523   ;;
18524
18525 irix5* | irix6* | nonstopux*)
18526   case $host_os in
18527     nonstopux*) version_type=nonstopux ;;
18528     *)
18529         if test "$lt_cv_prog_gnu_ld" = yes; then
18530                 version_type=linux
18531         else
18532                 version_type=irix
18533         fi ;;
18534   esac
18535   need_lib_prefix=no
18536   need_version=no
18537   soname_spec='${libname}${release}${shared_ext}$major'
18538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18539   case $host_os in
18540   irix5* | nonstopux*)
18541     libsuff= shlibsuff=
18542     ;;
18543   *)
18544     case $LD in # libtool.m4 will add one of these switches to LD
18545     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18546       libsuff= shlibsuff= libmagic=32-bit;;
18547     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18548       libsuff=32 shlibsuff=N32 libmagic=N32;;
18549     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18550       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18551     *) libsuff= shlibsuff= libmagic=never-match;;
18552     esac
18553     ;;
18554   esac
18555   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18556   shlibpath_overrides_runpath=no
18557   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18558   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18559   hardcode_into_libs=yes
18560   ;;
18561
18562 # No shared lib support for Linux oldld, aout, or coff.
18563 linux*oldld* | linux*aout* | linux*coff*)
18564   dynamic_linker=no
18565   ;;
18566
18567 # This must be Linux ELF.
18568 linux* | k*bsd*-gnu)
18569   version_type=linux
18570   need_lib_prefix=no
18571   need_version=no
18572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573   soname_spec='${libname}${release}${shared_ext}$major'
18574   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18575   shlibpath_var=LD_LIBRARY_PATH
18576   shlibpath_overrides_runpath=no
18577   # This implies no fast_install, which is unacceptable.
18578   # Some rework will be needed to allow for fast_install
18579   # before this can be enabled.
18580   hardcode_into_libs=yes
18581
18582   # Append ld.so.conf contents to the search path
18583   if test -f /etc/ld.so.conf; then
18584     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' ' '`
18585     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18586   fi
18587
18588   # We used to test for /lib/ld.so.1 and disable shared libraries on
18589   # powerpc, because MkLinux only supported shared libraries with the
18590   # GNU dynamic linker.  Since this was broken with cross compilers,
18591   # most powerpc-linux boxes support dynamic linking these days and
18592   # people can always --disable-shared, the test was removed, and we
18593   # assume the GNU/Linux dynamic linker is in use.
18594   dynamic_linker='GNU/Linux ld.so'
18595   ;;
18596
18597 netbsdelf*-gnu)
18598   version_type=linux
18599   need_lib_prefix=no
18600   need_version=no
18601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18602   soname_spec='${libname}${release}${shared_ext}$major'
18603   shlibpath_var=LD_LIBRARY_PATH
18604   shlibpath_overrides_runpath=no
18605   hardcode_into_libs=yes
18606   dynamic_linker='NetBSD ld.elf_so'
18607   ;;
18608
18609 netbsd*)
18610   version_type=sunos
18611   need_lib_prefix=no
18612   need_version=no
18613   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18616     dynamic_linker='NetBSD (a.out) ld.so'
18617   else
18618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18619     soname_spec='${libname}${release}${shared_ext}$major'
18620     dynamic_linker='NetBSD ld.elf_so'
18621   fi
18622   shlibpath_var=LD_LIBRARY_PATH
18623   shlibpath_overrides_runpath=yes
18624   hardcode_into_libs=yes
18625   ;;
18626
18627 newsos6)
18628   version_type=linux
18629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630   shlibpath_var=LD_LIBRARY_PATH
18631   shlibpath_overrides_runpath=yes
18632   ;;
18633
18634 nto-qnx*)
18635   version_type=linux
18636   need_lib_prefix=no
18637   need_version=no
18638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639   soname_spec='${libname}${release}${shared_ext}$major'
18640   shlibpath_var=LD_LIBRARY_PATH
18641   shlibpath_overrides_runpath=yes
18642   ;;
18643
18644 openbsd*)
18645   version_type=sunos
18646   sys_lib_dlsearch_path_spec="/usr/lib"
18647   need_lib_prefix=no
18648   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18649   case $host_os in
18650     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18651     *)                         need_version=no  ;;
18652   esac
18653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18655   shlibpath_var=LD_LIBRARY_PATH
18656   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18657     case $host_os in
18658       openbsd2.[89] | openbsd2.[89].*)
18659         shlibpath_overrides_runpath=no
18660         ;;
18661       *)
18662         shlibpath_overrides_runpath=yes
18663         ;;
18664       esac
18665   else
18666     shlibpath_overrides_runpath=yes
18667   fi
18668   ;;
18669
18670 os2*)
18671   libname_spec='$name'
18672   shrext_cmds=".dll"
18673   need_lib_prefix=no
18674   library_names_spec='$libname${shared_ext} $libname.a'
18675   dynamic_linker='OS/2 ld.exe'
18676   shlibpath_var=LIBPATH
18677   ;;
18678
18679 osf3* | osf4* | osf5*)
18680   version_type=osf
18681   need_lib_prefix=no
18682   need_version=no
18683   soname_spec='${libname}${release}${shared_ext}$major'
18684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18685   shlibpath_var=LD_LIBRARY_PATH
18686   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18687   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18688   ;;
18689
18690 rdos*)
18691   dynamic_linker=no
18692   ;;
18693
18694 solaris*)
18695   version_type=linux
18696   need_lib_prefix=no
18697   need_version=no
18698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699   soname_spec='${libname}${release}${shared_ext}$major'
18700   shlibpath_var=LD_LIBRARY_PATH
18701   shlibpath_overrides_runpath=yes
18702   hardcode_into_libs=yes
18703   # ldd complains unless libraries are executable
18704   postinstall_cmds='chmod +x $lib'
18705   ;;
18706
18707 sunos4*)
18708   version_type=sunos
18709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18710   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18711   shlibpath_var=LD_LIBRARY_PATH
18712   shlibpath_overrides_runpath=yes
18713   if test "$with_gnu_ld" = yes; then
18714     need_lib_prefix=no
18715   fi
18716   need_version=yes
18717   ;;
18718
18719 sysv4 | sysv4.3*)
18720   version_type=linux
18721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722   soname_spec='${libname}${release}${shared_ext}$major'
18723   shlibpath_var=LD_LIBRARY_PATH
18724   case $host_vendor in
18725     sni)
18726       shlibpath_overrides_runpath=no
18727       need_lib_prefix=no
18728       export_dynamic_flag_spec='${wl}-Blargedynsym'
18729       runpath_var=LD_RUN_PATH
18730       ;;
18731     siemens)
18732       need_lib_prefix=no
18733       ;;
18734     motorola)
18735       need_lib_prefix=no
18736       need_version=no
18737       shlibpath_overrides_runpath=no
18738       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18739       ;;
18740   esac
18741   ;;
18742
18743 sysv4*MP*)
18744   if test -d /usr/nec ;then
18745     version_type=linux
18746     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18747     soname_spec='$libname${shared_ext}.$major'
18748     shlibpath_var=LD_LIBRARY_PATH
18749   fi
18750   ;;
18751
18752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18753   version_type=freebsd-elf
18754   need_lib_prefix=no
18755   need_version=no
18756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18757   soname_spec='${libname}${release}${shared_ext}$major'
18758   shlibpath_var=LD_LIBRARY_PATH
18759   hardcode_into_libs=yes
18760   if test "$with_gnu_ld" = yes; then
18761     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18762     shlibpath_overrides_runpath=no
18763   else
18764     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18765     shlibpath_overrides_runpath=yes
18766     case $host_os in
18767       sco3.2v5*)
18768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18769         ;;
18770     esac
18771   fi
18772   sys_lib_dlsearch_path_spec='/usr/lib'
18773   ;;
18774
18775 uts4*)
18776   version_type=linux
18777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778   soname_spec='${libname}${release}${shared_ext}$major'
18779   shlibpath_var=LD_LIBRARY_PATH
18780   ;;
18781
18782 *)
18783   dynamic_linker=no
18784   ;;
18785 esac
18786 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18787 echo "${ECHO_T}$dynamic_linker" >&6; }
18788 test "$dynamic_linker" = no && can_build_shared=no
18789
18790 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18794 fi
18795
18796 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18798   echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18801 fi
18802
18803 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18804
18805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18806 if test "$GCC" = yes; then
18807   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18808 fi
18809
18810 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18812 hardcode_action_GCJ=
18813 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18814    test -n "$runpath_var_GCJ" || \
18815    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18816
18817   # We can hardcode non-existant directories.
18818   if test "$hardcode_direct_GCJ" != no &&
18819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18820      # have to relink, otherwise we might link with an installed library
18821      # when we should be linking with a yet-to-be-installed one
18822      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18823      test "$hardcode_minus_L_GCJ" != no; then
18824     # Linking always hardcodes the temporary library directory.
18825     hardcode_action_GCJ=relink
18826   else
18827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18828     hardcode_action_GCJ=immediate
18829   fi
18830 else
18831   # We cannot hardcode anything, or else we can only hardcode existing
18832   # directories.
18833   hardcode_action_GCJ=unsupported
18834 fi
18835 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18836 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18837
18838 if test "$hardcode_action_GCJ" = relink; then
18839   # Fast installation is not supported
18840   enable_fast_install=no
18841 elif test "$shlibpath_overrides_runpath" = yes ||
18842      test "$enable_shared" = no; then
18843   # Fast installation is not necessary
18844   enable_fast_install=needless
18845 fi
18846
18847
18848 # The else clause should only fire when bootstrapping the
18849 # libtool distribution, otherwise you forgot to ship ltmain.sh
18850 # with your package, and you will get complaints that there are
18851 # no rules to generate ltmain.sh.
18852 if test -f "$ltmain"; then
18853   # See if we are running on zsh, and set the options which allow our commands through
18854   # without removal of \ escapes.
18855   if test -n "${ZSH_VERSION+set}" ; then
18856     setopt NO_GLOB_SUBST
18857   fi
18858   # Now quote all the things that may contain metacharacters while being
18859   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18860   # variables and quote the copies for generation of the libtool script.
18861   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18862     SED SHELL STRIP \
18863     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18864     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18865     deplibs_check_method reload_flag reload_cmds need_locks \
18866     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18867     lt_cv_sys_global_symbol_to_c_name_address \
18868     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18869     old_postinstall_cmds old_postuninstall_cmds \
18870     compiler_GCJ \
18871     CC_GCJ \
18872     LD_GCJ \
18873     lt_prog_compiler_wl_GCJ \
18874     lt_prog_compiler_pic_GCJ \
18875     lt_prog_compiler_static_GCJ \
18876     lt_prog_compiler_no_builtin_flag_GCJ \
18877     export_dynamic_flag_spec_GCJ \
18878     thread_safe_flag_spec_GCJ \
18879     whole_archive_flag_spec_GCJ \
18880     enable_shared_with_static_runtimes_GCJ \
18881     old_archive_cmds_GCJ \
18882     old_archive_from_new_cmds_GCJ \
18883     predep_objects_GCJ \
18884     postdep_objects_GCJ \
18885     predeps_GCJ \
18886     postdeps_GCJ \
18887     compiler_lib_search_path_GCJ \
18888     compiler_lib_search_dirs_GCJ \
18889     archive_cmds_GCJ \
18890     archive_expsym_cmds_GCJ \
18891     postinstall_cmds_GCJ \
18892     postuninstall_cmds_GCJ \
18893     old_archive_from_expsyms_cmds_GCJ \
18894     allow_undefined_flag_GCJ \
18895     no_undefined_flag_GCJ \
18896     export_symbols_cmds_GCJ \
18897     hardcode_libdir_flag_spec_GCJ \
18898     hardcode_libdir_flag_spec_ld_GCJ \
18899     hardcode_libdir_separator_GCJ \
18900     hardcode_automatic_GCJ \
18901     module_cmds_GCJ \
18902     module_expsym_cmds_GCJ \
18903     lt_cv_prog_compiler_c_o_GCJ \
18904     fix_srcfile_path_GCJ \
18905     exclude_expsyms_GCJ \
18906     include_expsyms_GCJ; do
18907
18908     case $var in
18909     old_archive_cmds_GCJ | \
18910     old_archive_from_new_cmds_GCJ | \
18911     archive_cmds_GCJ | \
18912     archive_expsym_cmds_GCJ | \
18913     module_cmds_GCJ | \
18914     module_expsym_cmds_GCJ | \
18915     old_archive_from_expsyms_cmds_GCJ | \
18916     export_symbols_cmds_GCJ | \
18917     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18918     postinstall_cmds | postuninstall_cmds | \
18919     old_postinstall_cmds | old_postuninstall_cmds | \
18920     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18921       # Double-quote double-evaled strings.
18922       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18923       ;;
18924     *)
18925       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18926       ;;
18927     esac
18928   done
18929
18930   case $lt_echo in
18931   *'\$0 --fallback-echo"')
18932     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18933     ;;
18934   esac
18935
18936 cfgfile="$ofile"
18937
18938   cat <<__EOF__ >> "$cfgfile"
18939 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18940
18941 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18942
18943 # Shell to use when invoking shell scripts.
18944 SHELL=$lt_SHELL
18945
18946 # Whether or not to build shared libraries.
18947 build_libtool_libs=$enable_shared
18948
18949 # Whether or not to build static libraries.
18950 build_old_libs=$enable_static
18951
18952 # Whether or not to add -lc for building shared libraries.
18953 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18954
18955 # Whether or not to disallow shared libs when runtime libs are static
18956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18957
18958 # Whether or not to optimize for fast installation.
18959 fast_install=$enable_fast_install
18960
18961 # The host system.
18962 host_alias=$host_alias
18963 host=$host
18964 host_os=$host_os
18965
18966 # The build system.
18967 build_alias=$build_alias
18968 build=$build
18969 build_os=$build_os
18970
18971 # An echo program that does not interpret backslashes.
18972 echo=$lt_echo
18973
18974 # The archiver.
18975 AR=$lt_AR
18976 AR_FLAGS=$lt_AR_FLAGS
18977
18978 # A C compiler.
18979 LTCC=$lt_LTCC
18980
18981 # LTCC compiler flags.
18982 LTCFLAGS=$lt_LTCFLAGS
18983
18984 # A language-specific compiler.
18985 CC=$lt_compiler_GCJ
18986
18987 # Is the compiler the GNU C compiler?
18988 with_gcc=$GCC_GCJ
18989
18990 # An ERE matcher.
18991 EGREP=$lt_EGREP
18992
18993 # The linker used to build libraries.
18994 LD=$lt_LD_GCJ
18995
18996 # Whether we need hard or soft links.
18997 LN_S=$lt_LN_S
18998
18999 # A BSD-compatible nm program.
19000 NM=$lt_NM
19001
19002 # A symbol stripping program
19003 STRIP=$lt_STRIP
19004
19005 # Used to examine libraries when file_magic_cmd begins "file"
19006 MAGIC_CMD=$MAGIC_CMD
19007
19008 # Used on cygwin: DLL creation program.
19009 DLLTOOL="$DLLTOOL"
19010
19011 # Used on cygwin: object dumper.
19012 OBJDUMP="$OBJDUMP"
19013
19014 # Used on cygwin: assembler.
19015 AS="$AS"
19016
19017 # The name of the directory that contains temporary libtool files.
19018 objdir=$objdir
19019
19020 # How to create reloadable object files.
19021 reload_flag=$lt_reload_flag
19022 reload_cmds=$lt_reload_cmds
19023
19024 # How to pass a linker flag through the compiler.
19025 wl=$lt_lt_prog_compiler_wl_GCJ
19026
19027 # Object file suffix (normally "o").
19028 objext="$ac_objext"
19029
19030 # Old archive suffix (normally "a").
19031 libext="$libext"
19032
19033 # Shared library suffix (normally ".so").
19034 shrext_cmds='$shrext_cmds'
19035
19036 # Executable file suffix (normally "").
19037 exeext="$exeext"
19038
19039 # Additional compiler flags for building library objects.
19040 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19041 pic_mode=$pic_mode
19042
19043 # What is the maximum length of a command?
19044 max_cmd_len=$lt_cv_sys_max_cmd_len
19045
19046 # Does compiler simultaneously support -c and -o options?
19047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19048
19049 # Must we lock files when doing compilation?
19050 need_locks=$lt_need_locks
19051
19052 # Do we need the lib prefix for modules?
19053 need_lib_prefix=$need_lib_prefix
19054
19055 # Do we need a version for libraries?
19056 need_version=$need_version
19057
19058 # Whether dlopen is supported.
19059 dlopen_support=$enable_dlopen
19060
19061 # Whether dlopen of programs is supported.
19062 dlopen_self=$enable_dlopen_self
19063
19064 # Whether dlopen of statically linked programs is supported.
19065 dlopen_self_static=$enable_dlopen_self_static
19066
19067 # Compiler flag to prevent dynamic linking.
19068 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19069
19070 # Compiler flag to turn off builtin functions.
19071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19072
19073 # Compiler flag to allow reflexive dlopens.
19074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19075
19076 # Compiler flag to generate shared objects directly from archives.
19077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19078
19079 # Compiler flag to generate thread-safe objects.
19080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19081
19082 # Library versioning type.
19083 version_type=$version_type
19084
19085 # Format of library name prefix.
19086 libname_spec=$lt_libname_spec
19087
19088 # List of archive names.  First name is the real one, the rest are links.
19089 # The last name is the one that the linker finds with -lNAME.
19090 library_names_spec=$lt_library_names_spec
19091
19092 # The coded name of the library, if different from the real name.
19093 soname_spec=$lt_soname_spec
19094
19095 # Commands used to build and install an old-style archive.
19096 RANLIB=$lt_RANLIB
19097 old_archive_cmds=$lt_old_archive_cmds_GCJ
19098 old_postinstall_cmds=$lt_old_postinstall_cmds
19099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19100
19101 # Create an old-style archive from a shared archive.
19102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19103
19104 # Create a temporary old-style archive to link instead of a shared archive.
19105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19106
19107 # Commands used to build and install a shared archive.
19108 archive_cmds=$lt_archive_cmds_GCJ
19109 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19110 postinstall_cmds=$lt_postinstall_cmds
19111 postuninstall_cmds=$lt_postuninstall_cmds
19112
19113 # Commands used to build a loadable module (assumed same as above if empty)
19114 module_cmds=$lt_module_cmds_GCJ
19115 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19116
19117 # Commands to strip libraries.
19118 old_striplib=$lt_old_striplib
19119 striplib=$lt_striplib
19120
19121 # Dependencies to place before the objects being linked to create a
19122 # shared library.
19123 predep_objects=$lt_predep_objects_GCJ
19124
19125 # Dependencies to place after the objects being linked to create a
19126 # shared library.
19127 postdep_objects=$lt_postdep_objects_GCJ
19128
19129 # Dependencies to place before the objects being linked to create a
19130 # shared library.
19131 predeps=$lt_predeps_GCJ
19132
19133 # Dependencies to place after the objects being linked to create a
19134 # shared library.
19135 postdeps=$lt_postdeps_GCJ
19136
19137 # The directories searched by this compiler when creating a shared
19138 # library
19139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19140
19141 # The library search path used internally by the compiler when linking
19142 # a shared library.
19143 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19144
19145 # Method to check whether dependent libraries are shared objects.
19146 deplibs_check_method=$lt_deplibs_check_method
19147
19148 # Command to use when deplibs_check_method == file_magic.
19149 file_magic_cmd=$lt_file_magic_cmd
19150
19151 # Flag that allows shared libraries with undefined symbols to be built.
19152 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19153
19154 # Flag that forces no undefined symbols.
19155 no_undefined_flag=$lt_no_undefined_flag_GCJ
19156
19157 # Commands used to finish a libtool library installation in a directory.
19158 finish_cmds=$lt_finish_cmds
19159
19160 # Same as above, but a single script fragment to be evaled but not shown.
19161 finish_eval=$lt_finish_eval
19162
19163 # Take the output of nm and produce a listing of raw symbols and C names.
19164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19165
19166 # Transform the output of nm in a proper C declaration
19167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19168
19169 # Transform the output of nm in a C name address pair
19170 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19171
19172 # This is the shared library runtime path variable.
19173 runpath_var=$runpath_var
19174
19175 # This is the shared library path variable.
19176 shlibpath_var=$shlibpath_var
19177
19178 # Is shlibpath searched before the hard-coded library search path?
19179 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19180
19181 # How to hardcode a shared library path into an executable.
19182 hardcode_action=$hardcode_action_GCJ
19183
19184 # Whether we should hardcode library paths into libraries.
19185 hardcode_into_libs=$hardcode_into_libs
19186
19187 # Flag to hardcode \$libdir into a binary during linking.
19188 # This must work even if \$libdir does not exist.
19189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19190
19191 # If ld is used when linking, flag to hardcode \$libdir into
19192 # a binary during linking. This must work even if \$libdir does
19193 # not exist.
19194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19195
19196 # Whether we need a single -rpath flag with a separated argument.
19197 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19198
19199 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19200 # resulting binary.
19201 hardcode_direct=$hardcode_direct_GCJ
19202
19203 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19204 # resulting binary.
19205 hardcode_minus_L=$hardcode_minus_L_GCJ
19206
19207 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19208 # the resulting binary.
19209 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19210
19211 # Set to yes if building a shared library automatically hardcodes DIR into the library
19212 # and all subsequent libraries and executables linked against it.
19213 hardcode_automatic=$hardcode_automatic_GCJ
19214
19215 # Variables whose values should be saved in libtool wrapper scripts and
19216 # restored at relink time.
19217 variables_saved_for_relink="$variables_saved_for_relink"
19218
19219 # Whether libtool must link a program against all its dependency libraries.
19220 link_all_deplibs=$link_all_deplibs_GCJ
19221
19222 # Compile-time system search path for libraries
19223 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19224
19225 # Run-time system search path for libraries
19226 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19227
19228 # Fix the shell variable \$srcfile for the compiler.
19229 fix_srcfile_path=$lt_fix_srcfile_path
19230
19231 # Set to yes if exported symbols are required.
19232 always_export_symbols=$always_export_symbols_GCJ
19233
19234 # The commands to list exported symbols.
19235 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19236
19237 # The commands to extract the exported symbol list from a shared archive.
19238 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19239
19240 # Symbols that should not be listed in the preloaded symbols.
19241 exclude_expsyms=$lt_exclude_expsyms_GCJ
19242
19243 # Symbols that must always be exported.
19244 include_expsyms=$lt_include_expsyms_GCJ
19245
19246 # ### END LIBTOOL TAG CONFIG: $tagname
19247
19248 __EOF__
19249
19250
19251 else
19252   # If there is no Makefile yet, we rely on a make rule to execute
19253   # `config.status --recheck' to rerun these tests and create the
19254   # libtool script then.
19255   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19256   if test -f "$ltmain_in"; then
19257     test -f Makefile && make "$ltmain"
19258   fi
19259 fi
19260
19261
19262 ac_ext=c
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267
19268 CC="$lt_save_CC"
19269
19270         else
19271           tagname=""
19272         fi
19273         ;;
19274
19275       RC)
19276
19277
19278 # Source file extension for RC test sources.
19279 ac_ext=rc
19280
19281 # Object file extension for compiled RC test sources.
19282 objext=o
19283 objext_RC=$objext
19284
19285 # Code to be used in simple compile tests
19286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19287
19288 # Code to be used in simple link tests
19289 lt_simple_link_test_code="$lt_simple_compile_test_code"
19290
19291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19292
19293 # If no C compiler was specified, use CC.
19294 LTCC=${LTCC-"$CC"}
19295
19296 # If no C compiler flags were specified, use CFLAGS.
19297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19298
19299 # Allow CC to be a program name with arguments.
19300 compiler=$CC
19301
19302
19303 # save warnings/boilerplate of simple test code
19304 ac_outfile=conftest.$ac_objext
19305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19307 _lt_compiler_boilerplate=`cat conftest.err`
19308 $rm conftest*
19309
19310 ac_outfile=conftest.$ac_objext
19311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19313 _lt_linker_boilerplate=`cat conftest.err`
19314 $rm -r conftest*
19315
19316
19317 # Allow CC to be a program name with arguments.
19318 lt_save_CC="$CC"
19319 CC=${RC-"windres"}
19320 compiler=$CC
19321 compiler_RC=$CC
19322 for cc_temp in $compiler""; do
19323   case $cc_temp in
19324     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19325     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19326     \-*) ;;
19327     *) break;;
19328   esac
19329 done
19330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19331
19332 lt_cv_prog_compiler_c_o_RC=yes
19333
19334 # The else clause should only fire when bootstrapping the
19335 # libtool distribution, otherwise you forgot to ship ltmain.sh
19336 # with your package, and you will get complaints that there are
19337 # no rules to generate ltmain.sh.
19338 if test -f "$ltmain"; then
19339   # See if we are running on zsh, and set the options which allow our commands through
19340   # without removal of \ escapes.
19341   if test -n "${ZSH_VERSION+set}" ; then
19342     setopt NO_GLOB_SUBST
19343   fi
19344   # Now quote all the things that may contain metacharacters while being
19345   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19346   # variables and quote the copies for generation of the libtool script.
19347   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19348     SED SHELL STRIP \
19349     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19350     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19351     deplibs_check_method reload_flag reload_cmds need_locks \
19352     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19353     lt_cv_sys_global_symbol_to_c_name_address \
19354     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19355     old_postinstall_cmds old_postuninstall_cmds \
19356     compiler_RC \
19357     CC_RC \
19358     LD_RC \
19359     lt_prog_compiler_wl_RC \
19360     lt_prog_compiler_pic_RC \
19361     lt_prog_compiler_static_RC \
19362     lt_prog_compiler_no_builtin_flag_RC \
19363     export_dynamic_flag_spec_RC \
19364     thread_safe_flag_spec_RC \
19365     whole_archive_flag_spec_RC \
19366     enable_shared_with_static_runtimes_RC \
19367     old_archive_cmds_RC \
19368     old_archive_from_new_cmds_RC \
19369     predep_objects_RC \
19370     postdep_objects_RC \
19371     predeps_RC \
19372     postdeps_RC \
19373     compiler_lib_search_path_RC \
19374     compiler_lib_search_dirs_RC \
19375     archive_cmds_RC \
19376     archive_expsym_cmds_RC \
19377     postinstall_cmds_RC \
19378     postuninstall_cmds_RC \
19379     old_archive_from_expsyms_cmds_RC \
19380     allow_undefined_flag_RC \
19381     no_undefined_flag_RC \
19382     export_symbols_cmds_RC \
19383     hardcode_libdir_flag_spec_RC \
19384     hardcode_libdir_flag_spec_ld_RC \
19385     hardcode_libdir_separator_RC \
19386     hardcode_automatic_RC \
19387     module_cmds_RC \
19388     module_expsym_cmds_RC \
19389     lt_cv_prog_compiler_c_o_RC \
19390     fix_srcfile_path_RC \
19391     exclude_expsyms_RC \
19392     include_expsyms_RC; do
19393
19394     case $var in
19395     old_archive_cmds_RC | \
19396     old_archive_from_new_cmds_RC | \
19397     archive_cmds_RC | \
19398     archive_expsym_cmds_RC | \
19399     module_cmds_RC | \
19400     module_expsym_cmds_RC | \
19401     old_archive_from_expsyms_cmds_RC | \
19402     export_symbols_cmds_RC | \
19403     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19404     postinstall_cmds | postuninstall_cmds | \
19405     old_postinstall_cmds | old_postuninstall_cmds | \
19406     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19407       # Double-quote double-evaled strings.
19408       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19409       ;;
19410     *)
19411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19412       ;;
19413     esac
19414   done
19415
19416   case $lt_echo in
19417   *'\$0 --fallback-echo"')
19418     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19419     ;;
19420   esac
19421
19422 cfgfile="$ofile"
19423
19424   cat <<__EOF__ >> "$cfgfile"
19425 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19426
19427 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19428
19429 # Shell to use when invoking shell scripts.
19430 SHELL=$lt_SHELL
19431
19432 # Whether or not to build shared libraries.
19433 build_libtool_libs=$enable_shared
19434
19435 # Whether or not to build static libraries.
19436 build_old_libs=$enable_static
19437
19438 # Whether or not to add -lc for building shared libraries.
19439 build_libtool_need_lc=$archive_cmds_need_lc_RC
19440
19441 # Whether or not to disallow shared libs when runtime libs are static
19442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19443
19444 # Whether or not to optimize for fast installation.
19445 fast_install=$enable_fast_install
19446
19447 # The host system.
19448 host_alias=$host_alias
19449 host=$host
19450 host_os=$host_os
19451
19452 # The build system.
19453 build_alias=$build_alias
19454 build=$build
19455 build_os=$build_os
19456
19457 # An echo program that does not interpret backslashes.
19458 echo=$lt_echo
19459
19460 # The archiver.
19461 AR=$lt_AR
19462 AR_FLAGS=$lt_AR_FLAGS
19463
19464 # A C compiler.
19465 LTCC=$lt_LTCC
19466
19467 # LTCC compiler flags.
19468 LTCFLAGS=$lt_LTCFLAGS
19469
19470 # A language-specific compiler.
19471 CC=$lt_compiler_RC
19472
19473 # Is the compiler the GNU C compiler?
19474 with_gcc=$GCC_RC
19475
19476 # An ERE matcher.
19477 EGREP=$lt_EGREP
19478
19479 # The linker used to build libraries.
19480 LD=$lt_LD_RC
19481
19482 # Whether we need hard or soft links.
19483 LN_S=$lt_LN_S
19484
19485 # A BSD-compatible nm program.
19486 NM=$lt_NM
19487
19488 # A symbol stripping program
19489 STRIP=$lt_STRIP
19490
19491 # Used to examine libraries when file_magic_cmd begins "file"
19492 MAGIC_CMD=$MAGIC_CMD
19493
19494 # Used on cygwin: DLL creation program.
19495 DLLTOOL="$DLLTOOL"
19496
19497 # Used on cygwin: object dumper.
19498 OBJDUMP="$OBJDUMP"
19499
19500 # Used on cygwin: assembler.
19501 AS="$AS"
19502
19503 # The name of the directory that contains temporary libtool files.
19504 objdir=$objdir
19505
19506 # How to create reloadable object files.
19507 reload_flag=$lt_reload_flag
19508 reload_cmds=$lt_reload_cmds
19509
19510 # How to pass a linker flag through the compiler.
19511 wl=$lt_lt_prog_compiler_wl_RC
19512
19513 # Object file suffix (normally "o").
19514 objext="$ac_objext"
19515
19516 # Old archive suffix (normally "a").
19517 libext="$libext"
19518
19519 # Shared library suffix (normally ".so").
19520 shrext_cmds='$shrext_cmds'
19521
19522 # Executable file suffix (normally "").
19523 exeext="$exeext"
19524
19525 # Additional compiler flags for building library objects.
19526 pic_flag=$lt_lt_prog_compiler_pic_RC
19527 pic_mode=$pic_mode
19528
19529 # What is the maximum length of a command?
19530 max_cmd_len=$lt_cv_sys_max_cmd_len
19531
19532 # Does compiler simultaneously support -c and -o options?
19533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19534
19535 # Must we lock files when doing compilation?
19536 need_locks=$lt_need_locks
19537
19538 # Do we need the lib prefix for modules?
19539 need_lib_prefix=$need_lib_prefix
19540
19541 # Do we need a version for libraries?
19542 need_version=$need_version
19543
19544 # Whether dlopen is supported.
19545 dlopen_support=$enable_dlopen
19546
19547 # Whether dlopen of programs is supported.
19548 dlopen_self=$enable_dlopen_self
19549
19550 # Whether dlopen of statically linked programs is supported.
19551 dlopen_self_static=$enable_dlopen_self_static
19552
19553 # Compiler flag to prevent dynamic linking.
19554 link_static_flag=$lt_lt_prog_compiler_static_RC
19555
19556 # Compiler flag to turn off builtin functions.
19557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19558
19559 # Compiler flag to allow reflexive dlopens.
19560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19561
19562 # Compiler flag to generate shared objects directly from archives.
19563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19564
19565 # Compiler flag to generate thread-safe objects.
19566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19567
19568 # Library versioning type.
19569 version_type=$version_type
19570
19571 # Format of library name prefix.
19572 libname_spec=$lt_libname_spec
19573
19574 # List of archive names.  First name is the real one, the rest are links.
19575 # The last name is the one that the linker finds with -lNAME.
19576 library_names_spec=$lt_library_names_spec
19577
19578 # The coded name of the library, if different from the real name.
19579 soname_spec=$lt_soname_spec
19580
19581 # Commands used to build and install an old-style archive.
19582 RANLIB=$lt_RANLIB
19583 old_archive_cmds=$lt_old_archive_cmds_RC
19584 old_postinstall_cmds=$lt_old_postinstall_cmds
19585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19586
19587 # Create an old-style archive from a shared archive.
19588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19589
19590 # Create a temporary old-style archive to link instead of a shared archive.
19591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19592
19593 # Commands used to build and install a shared archive.
19594 archive_cmds=$lt_archive_cmds_RC
19595 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19596 postinstall_cmds=$lt_postinstall_cmds
19597 postuninstall_cmds=$lt_postuninstall_cmds
19598
19599 # Commands used to build a loadable module (assumed same as above if empty)
19600 module_cmds=$lt_module_cmds_RC
19601 module_expsym_cmds=$lt_module_expsym_cmds_RC
19602
19603 # Commands to strip libraries.
19604 old_striplib=$lt_old_striplib
19605 striplib=$lt_striplib
19606
19607 # Dependencies to place before the objects being linked to create a
19608 # shared library.
19609 predep_objects=$lt_predep_objects_RC
19610
19611 # Dependencies to place after the objects being linked to create a
19612 # shared library.
19613 postdep_objects=$lt_postdep_objects_RC
19614
19615 # Dependencies to place before the objects being linked to create a
19616 # shared library.
19617 predeps=$lt_predeps_RC
19618
19619 # Dependencies to place after the objects being linked to create a
19620 # shared library.
19621 postdeps=$lt_postdeps_RC
19622
19623 # The directories searched by this compiler when creating a shared
19624 # library
19625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19626
19627 # The library search path used internally by the compiler when linking
19628 # a shared library.
19629 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19630
19631 # Method to check whether dependent libraries are shared objects.
19632 deplibs_check_method=$lt_deplibs_check_method
19633
19634 # Command to use when deplibs_check_method == file_magic.
19635 file_magic_cmd=$lt_file_magic_cmd
19636
19637 # Flag that allows shared libraries with undefined symbols to be built.
19638 allow_undefined_flag=$lt_allow_undefined_flag_RC
19639
19640 # Flag that forces no undefined symbols.
19641 no_undefined_flag=$lt_no_undefined_flag_RC
19642
19643 # Commands used to finish a libtool library installation in a directory.
19644 finish_cmds=$lt_finish_cmds
19645
19646 # Same as above, but a single script fragment to be evaled but not shown.
19647 finish_eval=$lt_finish_eval
19648
19649 # Take the output of nm and produce a listing of raw symbols and C names.
19650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19651
19652 # Transform the output of nm in a proper C declaration
19653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19654
19655 # Transform the output of nm in a C name address pair
19656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19657
19658 # This is the shared library runtime path variable.
19659 runpath_var=$runpath_var
19660
19661 # This is the shared library path variable.
19662 shlibpath_var=$shlibpath_var
19663
19664 # Is shlibpath searched before the hard-coded library search path?
19665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19666
19667 # How to hardcode a shared library path into an executable.
19668 hardcode_action=$hardcode_action_RC
19669
19670 # Whether we should hardcode library paths into libraries.
19671 hardcode_into_libs=$hardcode_into_libs
19672
19673 # Flag to hardcode \$libdir into a binary during linking.
19674 # This must work even if \$libdir does not exist.
19675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19676
19677 # If ld is used when linking, flag to hardcode \$libdir into
19678 # a binary during linking. This must work even if \$libdir does
19679 # not exist.
19680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19681
19682 # Whether we need a single -rpath flag with a separated argument.
19683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19684
19685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19686 # resulting binary.
19687 hardcode_direct=$hardcode_direct_RC
19688
19689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19690 # resulting binary.
19691 hardcode_minus_L=$hardcode_minus_L_RC
19692
19693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19694 # the resulting binary.
19695 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19696
19697 # Set to yes if building a shared library automatically hardcodes DIR into the library
19698 # and all subsequent libraries and executables linked against it.
19699 hardcode_automatic=$hardcode_automatic_RC
19700
19701 # Variables whose values should be saved in libtool wrapper scripts and
19702 # restored at relink time.
19703 variables_saved_for_relink="$variables_saved_for_relink"
19704
19705 # Whether libtool must link a program against all its dependency libraries.
19706 link_all_deplibs=$link_all_deplibs_RC
19707
19708 # Compile-time system search path for libraries
19709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19710
19711 # Run-time system search path for libraries
19712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19713
19714 # Fix the shell variable \$srcfile for the compiler.
19715 fix_srcfile_path=$lt_fix_srcfile_path
19716
19717 # Set to yes if exported symbols are required.
19718 always_export_symbols=$always_export_symbols_RC
19719
19720 # The commands to list exported symbols.
19721 export_symbols_cmds=$lt_export_symbols_cmds_RC
19722
19723 # The commands to extract the exported symbol list from a shared archive.
19724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19725
19726 # Symbols that should not be listed in the preloaded symbols.
19727 exclude_expsyms=$lt_exclude_expsyms_RC
19728
19729 # Symbols that must always be exported.
19730 include_expsyms=$lt_include_expsyms_RC
19731
19732 # ### END LIBTOOL TAG CONFIG: $tagname
19733
19734 __EOF__
19735
19736
19737 else
19738   # If there is no Makefile yet, we rely on a make rule to execute
19739   # `config.status --recheck' to rerun these tests and create the
19740   # libtool script then.
19741   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19742   if test -f "$ltmain_in"; then
19743     test -f Makefile && make "$ltmain"
19744   fi
19745 fi
19746
19747
19748 ac_ext=c
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19753
19754 CC="$lt_save_CC"
19755
19756         ;;
19757
19758       *)
19759         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19760 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19761    { (exit 1); exit 1; }; }
19762         ;;
19763       esac
19764
19765       # Append the new tag name to the list of available tags.
19766       if test -n "$tagname" ; then
19767       available_tags="$available_tags $tagname"
19768     fi
19769     fi
19770   done
19771   IFS="$lt_save_ifs"
19772
19773   # Now substitute the updated list of available tags.
19774   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19775     mv "${ofile}T" "$ofile"
19776     chmod +x "$ofile"
19777   else
19778     rm -f "${ofile}T"
19779     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19780 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19781    { (exit 1); exit 1; }; }
19782   fi
19783 fi
19784
19785
19786
19787 # This can be used to rebuild libtool when needed
19788 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19789
19790 # Always use our own libtool.
19791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19792
19793 # Prevent multiple expansion
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815 ac_ext=c
19816 ac_cpp='$CPP $CPPFLAGS'
19817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19820 if test -n "$ac_tool_prefix"; then
19821   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19825 if test "${ac_cv_prog_CC+set}" = set; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828   if test -n "$CC"; then
19829   ac_cv_prog_CC="$CC" # Let the user override the test.
19830 else
19831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19832 for as_dir in $PATH
19833 do
19834   IFS=$as_save_IFS
19835   test -z "$as_dir" && as_dir=.
19836   for ac_exec_ext in '' $ac_executable_extensions; do
19837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19838     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19840     break 2
19841   fi
19842 done
19843 done
19844 IFS=$as_save_IFS
19845
19846 fi
19847 fi
19848 CC=$ac_cv_prog_CC
19849 if test -n "$CC"; then
19850   { echo "$as_me:$LINENO: result: $CC" >&5
19851 echo "${ECHO_T}$CC" >&6; }
19852 else
19853   { echo "$as_me:$LINENO: result: no" >&5
19854 echo "${ECHO_T}no" >&6; }
19855 fi
19856
19857
19858 fi
19859 if test -z "$ac_cv_prog_CC"; then
19860   ac_ct_CC=$CC
19861   # Extract the first word of "gcc", so it can be a program name with args.
19862 set dummy gcc; ac_word=$2
19863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868   if test -n "$ac_ct_CC"; then
19869   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19870 else
19871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19872 for as_dir in $PATH
19873 do
19874   IFS=$as_save_IFS
19875   test -z "$as_dir" && as_dir=.
19876   for ac_exec_ext in '' $ac_executable_extensions; do
19877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19878     ac_cv_prog_ac_ct_CC="gcc"
19879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19880     break 2
19881   fi
19882 done
19883 done
19884 IFS=$as_save_IFS
19885
19886 fi
19887 fi
19888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19889 if test -n "$ac_ct_CC"; then
19890   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19891 echo "${ECHO_T}$ac_ct_CC" >&6; }
19892 else
19893   { echo "$as_me:$LINENO: result: no" >&5
19894 echo "${ECHO_T}no" >&6; }
19895 fi
19896
19897   if test "x$ac_ct_CC" = x; then
19898     CC=""
19899   else
19900     case $cross_compiling:$ac_tool_warned in
19901 yes:)
19902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19903 whose name does not start with the host triplet.  If you think this
19904 configuration is useful to you, please write to autoconf@gnu.org." >&5
19905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19906 whose name does not start with the host triplet.  If you think this
19907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19908 ac_tool_warned=yes ;;
19909 esac
19910     CC=$ac_ct_CC
19911   fi
19912 else
19913   CC="$ac_cv_prog_CC"
19914 fi
19915
19916 if test -z "$CC"; then
19917           if test -n "$ac_tool_prefix"; then
19918     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19919 set dummy ${ac_tool_prefix}cc; ac_word=$2
19920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19922 if test "${ac_cv_prog_CC+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   if test -n "$CC"; then
19926   ac_cv_prog_CC="$CC" # Let the user override the test.
19927 else
19928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19929 for as_dir in $PATH
19930 do
19931   IFS=$as_save_IFS
19932   test -z "$as_dir" && as_dir=.
19933   for ac_exec_ext in '' $ac_executable_extensions; do
19934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19935     ac_cv_prog_CC="${ac_tool_prefix}cc"
19936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19937     break 2
19938   fi
19939 done
19940 done
19941 IFS=$as_save_IFS
19942
19943 fi
19944 fi
19945 CC=$ac_cv_prog_CC
19946 if test -n "$CC"; then
19947   { echo "$as_me:$LINENO: result: $CC" >&5
19948 echo "${ECHO_T}$CC" >&6; }
19949 else
19950   { echo "$as_me:$LINENO: result: no" >&5
19951 echo "${ECHO_T}no" >&6; }
19952 fi
19953
19954
19955   fi
19956 fi
19957 if test -z "$CC"; then
19958   # Extract the first word of "cc", so it can be a program name with args.
19959 set dummy cc; ac_word=$2
19960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19962 if test "${ac_cv_prog_CC+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   if test -n "$CC"; then
19966   ac_cv_prog_CC="$CC" # Let the user override the test.
19967 else
19968   ac_prog_rejected=no
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19971 do
19972   IFS=$as_save_IFS
19973   test -z "$as_dir" && as_dir=.
19974   for ac_exec_ext in '' $ac_executable_extensions; do
19975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19976     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19977        ac_prog_rejected=yes
19978        continue
19979      fi
19980     ac_cv_prog_CC="cc"
19981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19982     break 2
19983   fi
19984 done
19985 done
19986 IFS=$as_save_IFS
19987
19988 if test $ac_prog_rejected = yes; then
19989   # We found a bogon in the path, so make sure we never use it.
19990   set dummy $ac_cv_prog_CC
19991   shift
19992   if test $# != 0; then
19993     # We chose a different compiler from the bogus one.
19994     # However, it has the same basename, so the bogon will be chosen
19995     # first if we set CC to just the basename; use the full file name.
19996     shift
19997     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19998   fi
19999 fi
20000 fi
20001 fi
20002 CC=$ac_cv_prog_CC
20003 if test -n "$CC"; then
20004   { echo "$as_me:$LINENO: result: $CC" >&5
20005 echo "${ECHO_T}$CC" >&6; }
20006 else
20007   { echo "$as_me:$LINENO: result: no" >&5
20008 echo "${ECHO_T}no" >&6; }
20009 fi
20010
20011
20012 fi
20013 if test -z "$CC"; then
20014   if test -n "$ac_tool_prefix"; then
20015   for ac_prog in cl.exe
20016   do
20017     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20021 if test "${ac_cv_prog_CC+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   if test -n "$CC"; then
20025   ac_cv_prog_CC="$CC" # Let the user override the test.
20026 else
20027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20028 for as_dir in $PATH
20029 do
20030   IFS=$as_save_IFS
20031   test -z "$as_dir" && as_dir=.
20032   for ac_exec_ext in '' $ac_executable_extensions; do
20033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20034     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20036     break 2
20037   fi
20038 done
20039 done
20040 IFS=$as_save_IFS
20041
20042 fi
20043 fi
20044 CC=$ac_cv_prog_CC
20045 if test -n "$CC"; then
20046   { echo "$as_me:$LINENO: result: $CC" >&5
20047 echo "${ECHO_T}$CC" >&6; }
20048 else
20049   { echo "$as_me:$LINENO: result: no" >&5
20050 echo "${ECHO_T}no" >&6; }
20051 fi
20052
20053
20054     test -n "$CC" && break
20055   done
20056 fi
20057 if test -z "$CC"; then
20058   ac_ct_CC=$CC
20059   for ac_prog in cl.exe
20060 do
20061   # Extract the first word of "$ac_prog", so it can be a program name with args.
20062 set dummy $ac_prog; ac_word=$2
20063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20066   echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068   if test -n "$ac_ct_CC"; then
20069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20070 else
20071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20072 for as_dir in $PATH
20073 do
20074   IFS=$as_save_IFS
20075   test -z "$as_dir" && as_dir=.
20076   for ac_exec_ext in '' $ac_executable_extensions; do
20077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20078     ac_cv_prog_ac_ct_CC="$ac_prog"
20079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20080     break 2
20081   fi
20082 done
20083 done
20084 IFS=$as_save_IFS
20085
20086 fi
20087 fi
20088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20089 if test -n "$ac_ct_CC"; then
20090   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20091 echo "${ECHO_T}$ac_ct_CC" >&6; }
20092 else
20093   { echo "$as_me:$LINENO: result: no" >&5
20094 echo "${ECHO_T}no" >&6; }
20095 fi
20096
20097
20098   test -n "$ac_ct_CC" && break
20099 done
20100
20101   if test "x$ac_ct_CC" = x; then
20102     CC=""
20103   else
20104     case $cross_compiling:$ac_tool_warned in
20105 yes:)
20106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20107 whose name does not start with the host triplet.  If you think this
20108 configuration is useful to you, please write to autoconf@gnu.org." >&5
20109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20110 whose name does not start with the host triplet.  If you think this
20111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20112 ac_tool_warned=yes ;;
20113 esac
20114     CC=$ac_ct_CC
20115   fi
20116 fi
20117
20118 fi
20119
20120
20121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20122 See \`config.log' for more details." >&5
20123 echo "$as_me: error: no acceptable C compiler found in \$PATH
20124 See \`config.log' for more details." >&2;}
20125    { (exit 1); exit 1; }; }
20126
20127 # Provide some information about the compiler.
20128 echo "$as_me:$LINENO: checking for C compiler version" >&5
20129 ac_compiler=`set X $ac_compile; echo $2`
20130 { (ac_try="$ac_compiler --version >&5"
20131 case "(($ac_try" in
20132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133   *) ac_try_echo=$ac_try;;
20134 esac
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136   (eval "$ac_compiler --version >&5") 2>&5
20137   ac_status=$?
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); }
20140 { (ac_try="$ac_compiler -v >&5"
20141 case "(($ac_try" in
20142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143   *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146   (eval "$ac_compiler -v >&5") 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); }
20150 { (ac_try="$ac_compiler -V >&5"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_compiler -V >&5") 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }
20160
20161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20164   echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166   cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172
20173 int
20174 main ()
20175 {
20176 #ifndef __GNUC__
20177        choke me
20178 #endif
20179
20180   ;
20181   return 0;
20182 }
20183 _ACEOF
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188   *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191   (eval "$ac_compile") 2>conftest.er1
20192   ac_status=$?
20193   grep -v '^ *+' conftest.er1 >conftest.err
20194   rm -f conftest.er1
20195   cat conftest.err >&5
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); } && {
20198          test -z "$ac_c_werror_flag" ||
20199          test ! -s conftest.err
20200        } && test -s conftest.$ac_objext; then
20201   ac_compiler_gnu=yes
20202 else
20203   echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206         ac_compiler_gnu=no
20207 fi
20208
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20211
20212 fi
20213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20215 GCC=`test $ac_compiler_gnu = yes && echo yes`
20216 ac_test_CFLAGS=${CFLAGS+set}
20217 ac_save_CFLAGS=$CFLAGS
20218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20220 if test "${ac_cv_prog_cc_g+set}" = set; then
20221   echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223   ac_save_c_werror_flag=$ac_c_werror_flag
20224    ac_c_werror_flag=yes
20225    ac_cv_prog_cc_g=no
20226    CFLAGS="-g"
20227    cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233
20234 int
20235 main ()
20236 {
20237
20238   ;
20239   return 0;
20240 }
20241 _ACEOF
20242 rm -f conftest.$ac_objext
20243 if { (ac_try="$ac_compile"
20244 case "(($ac_try" in
20245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246   *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249   (eval "$ac_compile") 2>conftest.er1
20250   ac_status=$?
20251   grep -v '^ *+' conftest.er1 >conftest.err
20252   rm -f conftest.er1
20253   cat conftest.err >&5
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); } && {
20256          test -z "$ac_c_werror_flag" ||
20257          test ! -s conftest.err
20258        } && test -s conftest.$ac_objext; then
20259   ac_cv_prog_cc_g=yes
20260 else
20261   echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20263
20264         CFLAGS=""
20265       cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h.  */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h.  */
20271
20272 int
20273 main ()
20274 {
20275
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287   (eval "$ac_compile") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } && {
20294          test -z "$ac_c_werror_flag" ||
20295          test ! -s conftest.err
20296        } && test -s conftest.$ac_objext; then
20297   :
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302         ac_c_werror_flag=$ac_save_c_werror_flag
20303          CFLAGS="-g"
20304          cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310
20311 int
20312 main ()
20313 {
20314
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_compile") 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } && {
20333          test -z "$ac_c_werror_flag" ||
20334          test ! -s conftest.err
20335        } && test -s conftest.$ac_objext; then
20336   ac_cv_prog_cc_g=yes
20337 else
20338   echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341
20342 fi
20343
20344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345 fi
20346
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 fi
20349
20350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351    ac_c_werror_flag=$ac_save_c_werror_flag
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20355 if test "$ac_test_CFLAGS" = set; then
20356   CFLAGS=$ac_save_CFLAGS
20357 elif test $ac_cv_prog_cc_g = yes; then
20358   if test "$GCC" = yes; then
20359     CFLAGS="-g -O2"
20360   else
20361     CFLAGS="-g"
20362   fi
20363 else
20364   if test "$GCC" = yes; then
20365     CFLAGS="-O2"
20366   else
20367     CFLAGS=
20368   fi
20369 fi
20370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20372 if test "${ac_cv_prog_cc_c89+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375   ac_cv_prog_cc_c89=no
20376 ac_save_CC=$CC
20377 cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 #include <stdarg.h>
20384 #include <stdio.h>
20385 #include <sys/types.h>
20386 #include <sys/stat.h>
20387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20388 struct buf { int x; };
20389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20390 static char *e (p, i)
20391      char **p;
20392      int i;
20393 {
20394   return p[i];
20395 }
20396 static char *f (char * (*g) (char **, int), char **p, ...)
20397 {
20398   char *s;
20399   va_list v;
20400   va_start (v,p);
20401   s = g (p, va_arg (v,int));
20402   va_end (v);
20403   return s;
20404 }
20405
20406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20407    function prototypes and stuff, but not '\xHH' hex character constants.
20408    These don't provoke an error unfortunately, instead are silently treated
20409    as 'x'.  The following induces an error, until -std is added to get
20410    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20411    array size at least.  It's necessary to write '\x00'==0 to get something
20412    that's true only with -std.  */
20413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20414
20415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20416    inside strings and character constants.  */
20417 #define FOO(x) 'x'
20418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20419
20420 int test (int i, double x);
20421 struct s1 {int (*f) (int a);};
20422 struct s2 {int (*f) (double a);};
20423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20424 int argc;
20425 char **argv;
20426 int
20427 main ()
20428 {
20429 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20435         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20436 do
20437   CC="$ac_save_CC $ac_arg"
20438   rm -f conftest.$ac_objext
20439 if { (ac_try="$ac_compile"
20440 case "(($ac_try" in
20441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442   *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445   (eval "$ac_compile") 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } && {
20452          test -z "$ac_c_werror_flag" ||
20453          test ! -s conftest.err
20454        } && test -s conftest.$ac_objext; then
20455   ac_cv_prog_cc_c89=$ac_arg
20456 else
20457   echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460
20461 fi
20462
20463 rm -f core conftest.err conftest.$ac_objext
20464   test "x$ac_cv_prog_cc_c89" != "xno" && break
20465 done
20466 rm -f conftest.$ac_ext
20467 CC=$ac_save_CC
20468
20469 fi
20470 # AC_CACHE_VAL
20471 case "x$ac_cv_prog_cc_c89" in
20472   x)
20473     { echo "$as_me:$LINENO: result: none needed" >&5
20474 echo "${ECHO_T}none needed" >&6; } ;;
20475   xno)
20476     { echo "$as_me:$LINENO: result: unsupported" >&5
20477 echo "${ECHO_T}unsupported" >&6; } ;;
20478   *)
20479     CC="$CC $ac_cv_prog_cc_c89"
20480     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20482 esac
20483
20484
20485 ac_ext=c
20486 ac_cpp='$CPP $CPPFLAGS'
20487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20490
20491 depcc="$CC"   am_compiler_list=
20492
20493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20496   echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20499   # We make a subdir and do the tests there.  Otherwise we can end up
20500   # making bogus files that we don't know about and never remove.  For
20501   # instance it was reported that on HP-UX the gcc test will end up
20502   # making a dummy file named `D' -- because `-MD' means `put the output
20503   # in D'.
20504   mkdir conftest.dir
20505   # Copy depcomp to subdir because otherwise we won't find it if we're
20506   # using a relative directory.
20507   cp "$am_depcomp" conftest.dir
20508   cd conftest.dir
20509   # We will build objects and dependencies in a subdirectory because
20510   # it helps to detect inapplicable dependency modes.  For instance
20511   # both Tru64's cc and ICC support -MD to output dependencies as a
20512   # side effect of compilation, but ICC will put the dependencies in
20513   # the current directory while Tru64 will put them in the object
20514   # directory.
20515   mkdir sub
20516
20517   am_cv_CC_dependencies_compiler_type=none
20518   if test "$am_compiler_list" = ""; then
20519      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20520   fi
20521   for depmode in $am_compiler_list; do
20522     # Setup a source with many dependencies, because some compilers
20523     # like to wrap large dependency lists on column 80 (with \), and
20524     # we should not choose a depcomp mode which is confused by this.
20525     #
20526     # We need to recreate these files for each test, as the compiler may
20527     # overwrite some of them when testing with obscure command lines.
20528     # This happens at least with the AIX C compiler.
20529     : > sub/conftest.c
20530     for i in 1 2 3 4 5 6; do
20531       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20532       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20533       # Solaris 8's {/usr,}/bin/sh.
20534       touch sub/conftst$i.h
20535     done
20536     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20537
20538     case $depmode in
20539     nosideeffect)
20540       # after this tag, mechanisms are not by side-effect, so they'll
20541       # only be used when explicitly requested
20542       if test "x$enable_dependency_tracking" = xyes; then
20543         continue
20544       else
20545         break
20546       fi
20547       ;;
20548     none) break ;;
20549     esac
20550     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20551     # mode.  It turns out that the SunPro C++ compiler does not properly
20552     # handle `-M -o', and we need to detect this.
20553     if depmode=$depmode \
20554        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20555        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20556        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20557          >/dev/null 2>conftest.err &&
20558        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20559        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20560        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20561        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20562       # icc doesn't choke on unknown options, it will just issue warnings
20563       # or remarks (even with -Werror).  So we grep stderr for any message
20564       # that says an option was ignored or not supported.
20565       # When given -MP, icc 7.0 and 7.1 complain thusly:
20566       #   icc: Command line warning: ignoring option '-M'; no argument required
20567       # The diagnosis changed in icc 8.0:
20568       #   icc: Command line remark: option '-MP' not supported
20569       if (grep 'ignoring option' conftest.err ||
20570           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20571         am_cv_CC_dependencies_compiler_type=$depmode
20572         break
20573       fi
20574     fi
20575   done
20576
20577   cd ..
20578   rm -rf conftest.dir
20579 else
20580   am_cv_CC_dependencies_compiler_type=none
20581 fi
20582
20583 fi
20584 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20585 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20587
20588  if
20589   test "x$enable_dependency_tracking" != xno \
20590   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20591   am__fastdepCC_TRUE=
20592   am__fastdepCC_FALSE='#'
20593 else
20594   am__fastdepCC_TRUE='#'
20595   am__fastdepCC_FALSE=
20596 fi
20597
20598
20599
20600 # Checks for libraries.
20601
20602 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
20603 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_apr_1_main+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607   ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lapr-1  $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615
20616
20617 int
20618 main ()
20619 {
20620 return main ();
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_link") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } && {
20639          test -z "$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        } && test -s conftest$ac_exeext &&
20642        $as_test_x conftest$ac_exeext; then
20643   ac_cv_lib_apr_1_main=yes
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648         ac_cv_lib_apr_1_main=no
20649 fi
20650
20651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20652       conftest$ac_exeext conftest.$ac_ext
20653 LIBS=$ac_check_lib_save_LIBS
20654 fi
20655 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20656 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20657 if test $ac_cv_lib_apr_1_main = yes; then
20658   cat >>confdefs.h <<_ACEOF
20659 #define HAVE_LIBAPR_1 1
20660 _ACEOF
20661
20662   LIBS="-lapr-1 $LIBS"
20663
20664 fi
20665
20666
20667 # Checks for header files.
20668 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20669 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20670 if test "${ac_cv_header_stdc+set}" = set; then
20671   echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673   cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 #include <stdlib.h>
20680 #include <stdarg.h>
20681 #include <string.h>
20682 #include <float.h>
20683
20684 int
20685 main ()
20686 {
20687
20688   ;
20689   return 0;
20690 }
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696   *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699   (eval "$ac_compile") 2>conftest.er1
20700   ac_status=$?
20701   grep -v '^ *+' conftest.er1 >conftest.err
20702   rm -f conftest.er1
20703   cat conftest.err >&5
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); } && {
20706          test -z "$ac_c_werror_flag" ||
20707          test ! -s conftest.err
20708        } && test -s conftest.$ac_objext; then
20709   ac_cv_header_stdc=yes
20710 else
20711   echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714         ac_cv_header_stdc=no
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718
20719 if test $ac_cv_header_stdc = yes; then
20720   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20721   cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 #include <string.h>
20728
20729 _ACEOF
20730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20731   $EGREP "memchr" >/dev/null 2>&1; then
20732   :
20733 else
20734   ac_cv_header_stdc=no
20735 fi
20736 rm -f conftest*
20737
20738 fi
20739
20740 if test $ac_cv_header_stdc = yes; then
20741   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20742   cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 #include <stdlib.h>
20749
20750 _ACEOF
20751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20752   $EGREP "free" >/dev/null 2>&1; then
20753   :
20754 else
20755   ac_cv_header_stdc=no
20756 fi
20757 rm -f conftest*
20758
20759 fi
20760
20761 if test $ac_cv_header_stdc = yes; then
20762   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20763   if test "$cross_compiling" = yes; then
20764   :
20765 else
20766   cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772 #include <ctype.h>
20773 #include <stdlib.h>
20774 #if ((' ' & 0x0FF) == 0x020)
20775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20777 #else
20778 # define ISLOWER(c) \
20779                    (('a' <= (c) && (c) <= 'i') \
20780                      || ('j' <= (c) && (c) <= 'r') \
20781                      || ('s' <= (c) && (c) <= 'z'))
20782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20783 #endif
20784
20785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20786 int
20787 main ()
20788 {
20789   int i;
20790   for (i = 0; i < 256; i++)
20791     if (XOR (islower (i), ISLOWER (i))
20792         || toupper (i) != TOUPPER (i))
20793       return 2;
20794   return 0;
20795 }
20796 _ACEOF
20797 rm -f conftest$ac_exeext
20798 if { (ac_try="$ac_link"
20799 case "(($ac_try" in
20800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801   *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804   (eval "$ac_link") 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20808   { (case "(($ac_try" in
20809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810   *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813   (eval "$ac_try") 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); }; }; then
20817   :
20818 else
20819   echo "$as_me: program exited with status $ac_status" >&5
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823 ( exit $ac_status )
20824 ac_cv_header_stdc=no
20825 fi
20826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20827 fi
20828
20829
20830 fi
20831 fi
20832 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20833 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20834 if test $ac_cv_header_stdc = yes; then
20835
20836 cat >>confdefs.h <<\_ACEOF
20837 #define STDC_HEADERS 1
20838 _ACEOF
20839
20840 fi
20841
20842
20843 for ac_header in string.h
20844 do
20845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 fi
20852 ac_res=`eval echo '${'$as_ac_Header'}'`
20853                { echo "$as_me:$LINENO: result: $ac_res" >&5
20854 echo "${ECHO_T}$ac_res" >&6; }
20855 else
20856   # Is the header compilable?
20857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 $ac_includes_default
20866 #include <$ac_header>
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   ac_header_compiler=yes
20886 else
20887   echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890         ac_header_compiler=no
20891 fi
20892
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20895 echo "${ECHO_T}$ac_header_compiler" >&6; }
20896
20897 # Is the header present?
20898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 #include <$ac_header>
20907 _ACEOF
20908 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
20921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20922          test ! -s conftest.err
20923        }; then
20924   ac_header_preproc=yes
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929   ac_header_preproc=no
20930 fi
20931
20932 rm -f conftest.err conftest.$ac_ext
20933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20934 echo "${ECHO_T}$ac_header_preproc" >&6; }
20935
20936 # So?  What about this header?
20937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20938   yes:no: )
20939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20943     ac_header_preproc=yes
20944     ;;
20945   no:yes:* )
20946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20958     ( cat <<\_ASBOX
20959 ## ---------------------------------------- ##
20960 ## Report this to konn@users.sourceforge.jp ##
20961 ## ---------------------------------------- ##
20962 _ASBOX
20963      ) | sed "s/^/$as_me: WARNING:     /" >&2
20964     ;;
20965 esac
20966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969   echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971   eval "$as_ac_Header=\$ac_header_preproc"
20972 fi
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974                { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20976
20977 fi
20978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20979   cat >>confdefs.h <<_ACEOF
20980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20981 _ACEOF
20982
20983 fi
20984
20985 done
20986
20987
20988
20989 # Check whether --with-apr-config was given.
20990 if test "${with_apr_config+set}" = set; then
20991   withval=$with_apr_config;
20992 fi
20993
20994 if test "x$with_apr_config" = "xyes" ; then
20995     { { echo "$as_me:$LINENO: error:
20996 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20997 " >&5
20998 echo "$as_me: error:
20999 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
21000 " >&2;}
21001    { (exit 1); exit 1; }; }
21002 fi
21003
21004
21005 # Check whether --with-apu-config was given.
21006 if test "${with_apu_config+set}" = set; then
21007   withval=$with_apu_config;
21008 fi
21009
21010 if test "x$with_apu_config" = "xyes" ; then
21011     { { echo "$as_me:$LINENO: error:
21012 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
21013 " >&5
21014 echo "$as_me: error:
21015 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
21016 " >&2;}
21017    { (exit 1); exit 1; }; }
21018 fi
21019
21020 # Extract the first word of "libtool", so it can be a program name with args.
21021 set dummy libtool; ac_word=$2
21022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21024 if test "${ac_cv_path_LIBTOOL+set}" = set; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027   case $LIBTOOL in
21028   [\\/]* | ?:[\\/]*)
21029   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
21030   ;;
21031   *)
21032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21033 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21034 for as_dir in $as_dummy
21035 do
21036   IFS=$as_save_IFS
21037   test -z "$as_dir" && as_dir=.
21038   for ac_exec_ext in '' $ac_executable_extensions; do
21039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21040     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
21041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21042     break 2
21043   fi
21044 done
21045 done
21046 IFS=$as_save_IFS
21047
21048   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
21049   ;;
21050 esac
21051 fi
21052 LIBTOOL=$ac_cv_path_LIBTOOL
21053 if test -n "$LIBTOOL"; then
21054   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
21055 echo "${ECHO_T}$LIBTOOL" >&6; }
21056 else
21057   { echo "$as_me:$LINENO: result: no" >&5
21058 echo "${ECHO_T}no" >&6; }
21059 fi
21060
21061
21062 if test "x$LIBTOOL" = "xno"; then
21063     { { echo "$as_me:$LINENO: error: libtool not found." >&5
21064 echo "$as_me: error: libtool not found." >&2;}
21065    { (exit 1); exit 1; }; }
21066 fi
21067
21068
21069 if test "x$with_apr_config" = "x" ; then
21070   # Extract the first word of "apr-config", so it can be a program name with args.
21071 set dummy apr-config; ac_word=$2
21072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21074 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
21075   echo $ECHO_N "(cached) $ECHO_C" >&6
21076 else
21077   case $APR_CONFIG in
21078   [\\/]* | ?:[\\/]*)
21079   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
21080   ;;
21081   *)
21082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21083 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21084 for as_dir in $as_dummy
21085 do
21086   IFS=$as_save_IFS
21087   test -z "$as_dir" && as_dir=.
21088   for ac_exec_ext in '' $ac_executable_extensions; do
21089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21090     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21092     break 2
21093   fi
21094 done
21095 done
21096 IFS=$as_save_IFS
21097
21098   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
21099   ;;
21100 esac
21101 fi
21102 APR_CONFIG=$ac_cv_path_APR_CONFIG
21103 if test -n "$APR_CONFIG"; then
21104   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
21105 echo "${ECHO_T}$APR_CONFIG" >&6; }
21106 else
21107   { echo "$as_me:$LINENO: result: no" >&5
21108 echo "${ECHO_T}no" >&6; }
21109 fi
21110
21111
21112   if test "x$APR_CONFIG" = "xno" ; then
21113     # Extract the first word of "apr-1-config", so it can be a program name with args.
21114 set dummy apr-1-config; ac_word=$2
21115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21117 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
21118   echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120   case $APR_1_CONFIG in
21121   [\\/]* | ?:[\\/]*)
21122   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
21123   ;;
21124   *)
21125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21126 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21127 for as_dir in $as_dummy
21128 do
21129   IFS=$as_save_IFS
21130   test -z "$as_dir" && as_dir=.
21131   for ac_exec_ext in '' $ac_executable_extensions; do
21132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21133     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21135     break 2
21136   fi
21137 done
21138 done
21139 IFS=$as_save_IFS
21140
21141   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
21142   ;;
21143 esac
21144 fi
21145 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
21146 if test -n "$APR_1_CONFIG"; then
21147   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
21148 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
21149 else
21150   { echo "$as_me:$LINENO: result: no" >&5
21151 echo "${ECHO_T}no" >&6; }
21152 fi
21153
21154
21155     if test "x$APR_1_CONFIG" = "xno" ; then
21156       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
21157 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
21158    { (exit 1); exit 1; }; }
21159     else
21160       APR_CONFIG="$APR_1_CONFIG"
21161     fi
21162   fi
21163 fi
21164 if test "x$with_apr_config" != "x" ; then
21165   APR_CONFIG=$with_apr_config
21166 fi
21167 if test "x$with_apu_config" = "x" ; then
21168   # Extract the first word of "apu-config", so it can be a program name with args.
21169 set dummy apu-config; ac_word=$2
21170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21172 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
21173   echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175   case $APU_CONFIG in
21176   [\\/]* | ?:[\\/]*)
21177   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
21178   ;;
21179   *)
21180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21181 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21182 for as_dir in $as_dummy
21183 do
21184   IFS=$as_save_IFS
21185   test -z "$as_dir" && as_dir=.
21186   for ac_exec_ext in '' $ac_executable_extensions; do
21187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21188     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21190     break 2
21191   fi
21192 done
21193 done
21194 IFS=$as_save_IFS
21195
21196   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
21197   ;;
21198 esac
21199 fi
21200 APU_CONFIG=$ac_cv_path_APU_CONFIG
21201 if test -n "$APU_CONFIG"; then
21202   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
21203 echo "${ECHO_T}$APU_CONFIG" >&6; }
21204 else
21205   { echo "$as_me:$LINENO: result: no" >&5
21206 echo "${ECHO_T}no" >&6; }
21207 fi
21208
21209
21210   if test "x$APU_CONFIG" = "xno" ; then
21211     # Extract the first word of "apu-1-config", so it can be a program name with args.
21212 set dummy apu-1-config; ac_word=$2
21213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21215 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218   case $APU_1_CONFIG in
21219   [\\/]* | ?:[\\/]*)
21220   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
21221   ;;
21222   *)
21223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21224 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21225 for as_dir in $as_dummy
21226 do
21227   IFS=$as_save_IFS
21228   test -z "$as_dir" && as_dir=.
21229   for ac_exec_ext in '' $ac_executable_extensions; do
21230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21231     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21233     break 2
21234   fi
21235 done
21236 done
21237 IFS=$as_save_IFS
21238
21239   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
21240   ;;
21241 esac
21242 fi
21243 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
21244 if test -n "$APU_1_CONFIG"; then
21245   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
21246 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
21247 else
21248   { echo "$as_me:$LINENO: result: no" >&5
21249 echo "${ECHO_T}no" >&6; }
21250 fi
21251
21252
21253     if test "x$APU_1_CONFIG" = "xno" ; then
21254       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
21255 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
21256    { (exit 1); exit 1; }; }
21257     else
21258       APU_CONFIG="$APU_1_CONFIG"
21259     fi
21260   fi
21261 fi
21262 if test "x$with_apu_config" != "x" ; then
21263   APU_CONFIG=$with_apu_config
21264 fi
21265
21266
21267 if test "x$with_apu_config" != "x" ; then
21268   APU_CONFIG=$with_apu_config
21269 fi
21270
21271 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
21272 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
21273 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
21274 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
21275
21276
21277 # Checks for typedefs, structures, and compiler characteristics.
21278 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21279 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21280 if test "${ac_cv_c_const+set}" = set; then
21281   echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283   cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h.  */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h.  */
21289
21290 int
21291 main ()
21292 {
21293 /* FIXME: Include the comments suggested by Paul. */
21294 #ifndef __cplusplus
21295   /* Ultrix mips cc rejects this.  */
21296   typedef int charset[2];
21297   const charset cs;
21298   /* SunOS 4.1.1 cc rejects this.  */
21299   char const *const *pcpcc;
21300   char **ppc;
21301   /* NEC SVR4.0.2 mips cc rejects this.  */
21302   struct point {int x, y;};
21303   static struct point const zero = {0,0};
21304   /* AIX XL C 1.02.0.0 rejects this.
21305      It does not let you subtract one const X* pointer from another in
21306      an arm of an if-expression whose if-part is not a constant
21307      expression */
21308   const char *g = "string";
21309   pcpcc = &g + (g ? g-g : 0);
21310   /* HPUX 7.0 cc rejects these. */
21311   ++pcpcc;
21312   ppc = (char**) pcpcc;
21313   pcpcc = (char const *const *) ppc;
21314   { /* SCO 3.2v4 cc rejects this.  */
21315     char *t;
21316     char const *s = 0 ? (char *) 0 : (char const *) 0;
21317
21318     *t++ = 0;
21319     if (s) return 0;
21320   }
21321   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21322     int x[] = {25, 17};
21323     const int *foo = &x[0];
21324     ++foo;
21325   }
21326   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21327     typedef const int *iptr;
21328     iptr p = 0;
21329     ++p;
21330   }
21331   { /* AIX XL C 1.02.0.0 rejects this saying
21332        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21333     struct s { int j; const int *ap[3]; };
21334     struct s *b; b->j = 5;
21335   }
21336   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21337     const int foo = 10;
21338     if (!foo) return 0;
21339   }
21340   return !cs[0] && !zero.x;
21341 #endif
21342
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest.$ac_objext
21348 if { (ac_try="$ac_compile"
21349 case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_compile") 2>conftest.er1
21355   ac_status=$?
21356   grep -v '^ *+' conftest.er1 >conftest.err
21357   rm -f conftest.er1
21358   cat conftest.err >&5
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } && {
21361          test -z "$ac_c_werror_flag" ||
21362          test ! -s conftest.err
21363        } && test -s conftest.$ac_objext; then
21364   ac_cv_c_const=yes
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369         ac_cv_c_const=no
21370 fi
21371
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21373 fi
21374 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21375 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21376 if test $ac_cv_c_const = no; then
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define const
21380 _ACEOF
21381
21382 fi
21383
21384
21385 # Checks for library functions.
21386
21387
21388
21389 for ac_func in memset strcasecmp strncasecmp
21390 do
21391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21395   echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397   cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h.  */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h.  */
21403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21405 #define $ac_func innocuous_$ac_func
21406
21407 /* System header to define __stub macros and hopefully few prototypes,
21408     which can conflict with char $ac_func (); below.
21409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410     <limits.h> exists even on freestanding compilers.  */
21411
21412 #ifdef __STDC__
21413 # include <limits.h>
21414 #else
21415 # include <assert.h>
21416 #endif
21417
21418 #undef $ac_func
21419
21420 /* Override any GCC internal prototype to avoid an error.
21421    Use char because int might match the return type of a GCC
21422    builtin and then its argument prototype would still apply.  */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 char $ac_func ();
21427 /* The GNU C library defines this for functions which it implements
21428     to always fail with ENOSYS.  Some functions are actually named
21429     something starting with __ and the normal name is an alias.  */
21430 #if defined __stub_$ac_func || defined __stub___$ac_func
21431 choke me
21432 #endif
21433
21434 int
21435 main ()
21436 {
21437 return $ac_func ();
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_link") 2>conftest.er1
21450   ac_status=$?
21451   grep -v '^ *+' conftest.er1 >conftest.err
21452   rm -f conftest.er1
21453   cat conftest.err >&5
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); } && {
21456          test -z "$ac_c_werror_flag" ||
21457          test ! -s conftest.err
21458        } && test -s conftest$ac_exeext &&
21459        $as_test_x conftest$ac_exeext; then
21460   eval "$as_ac_var=yes"
21461 else
21462   echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465         eval "$as_ac_var=no"
21466 fi
21467
21468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21469       conftest$ac_exeext conftest.$ac_ext
21470 fi
21471 ac_res=`eval echo '${'$as_ac_var'}'`
21472                { echo "$as_me:$LINENO: result: $ac_res" >&5
21473 echo "${ECHO_T}$ac_res" >&6; }
21474 if test `eval echo '${'$as_ac_var'}'` = yes; then
21475   cat >>confdefs.h <<_ACEOF
21476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21477 _ACEOF
21478
21479 fi
21480 done
21481
21482
21483
21484
21485
21486
21487 ac_config_files="$ac_config_files Makefile src/Makefile"
21488
21489 cat >confcache <<\_ACEOF
21490 # This file is a shell script that caches the results of configure
21491 # tests run on this system so they can be shared between configure
21492 # scripts and configure runs, see configure's option --config-cache.
21493 # It is not useful on other systems.  If it contains results you don't
21494 # want to keep, you may remove or edit it.
21495 #
21496 # config.status only pays attention to the cache file if you give it
21497 # the --recheck option to rerun configure.
21498 #
21499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21501 # following values.
21502
21503 _ACEOF
21504
21505 # The following way of writing the cache mishandles newlines in values,
21506 # but we know of no workaround that is simple, portable, and efficient.
21507 # So, we kill variables containing newlines.
21508 # Ultrix sh set writes to stderr and can't be redirected directly,
21509 # and sets the high bit in the cache file unless we assign to the vars.
21510 (
21511   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21512     eval ac_val=\$$ac_var
21513     case $ac_val in #(
21514     *${as_nl}*)
21515       case $ac_var in #(
21516       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21517 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21518       esac
21519       case $ac_var in #(
21520       _ | IFS | as_nl) ;; #(
21521       *) $as_unset $ac_var ;;
21522       esac ;;
21523     esac
21524   done
21525
21526   (set) 2>&1 |
21527     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21528     *${as_nl}ac_space=\ *)
21529       # `set' does not quote correctly, so add quotes (double-quote
21530       # substitution turns \\\\ into \\, and sed turns \\ into \).
21531       sed -n \
21532         "s/'/'\\\\''/g;
21533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21534       ;; #(
21535     *)
21536       # `set' quotes correctly as required by POSIX, so do not add quotes.
21537       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21538       ;;
21539     esac |
21540     sort
21541 ) |
21542   sed '
21543      /^ac_cv_env_/b end
21544      t clear
21545      :clear
21546      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21547      t end
21548      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21549      :end' >>confcache
21550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21551   if test -w "$cache_file"; then
21552     test "x$cache_file" != "x/dev/null" &&
21553       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21554 echo "$as_me: updating cache $cache_file" >&6;}
21555     cat confcache >$cache_file
21556   else
21557     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21558 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21559   fi
21560 fi
21561 rm -f confcache
21562
21563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21564 # Let make expand exec_prefix.
21565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21566
21567 DEFS=-DHAVE_CONFIG_H
21568
21569 ac_libobjs=
21570 ac_ltlibobjs=
21571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21572   # 1. Remove the extension, and $U if already installed.
21573   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21574   ac_i=`echo "$ac_i" | sed "$ac_script"`
21575   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21576   #    will be set to the directory where LIBOBJS objects are built.
21577   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21578   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21579 done
21580 LIBOBJS=$ac_libobjs
21581
21582 LTLIBOBJS=$ac_ltlibobjs
21583
21584
21585 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21586   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21587 Usually this means the macro was only invoked conditionally." >&5
21588 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21589 Usually this means the macro was only invoked conditionally." >&2;}
21590    { (exit 1); exit 1; }; }
21591 fi
21592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21593   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21594 Usually this means the macro was only invoked conditionally." >&5
21595 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21596 Usually this means the macro was only invoked conditionally." >&2;}
21597    { (exit 1); exit 1; }; }
21598 fi
21599 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21600   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21601 Usually this means the macro was only invoked conditionally." >&5
21602 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21603 Usually this means the macro was only invoked conditionally." >&2;}
21604    { (exit 1); exit 1; }; }
21605 fi
21606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21607   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21608 Usually this means the macro was only invoked conditionally." >&5
21609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21610 Usually this means the macro was only invoked conditionally." >&2;}
21611    { (exit 1); exit 1; }; }
21612 fi
21613
21614 : ${CONFIG_STATUS=./config.status}
21615 ac_clean_files_save=$ac_clean_files
21616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21617 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21618 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21619 cat >$CONFIG_STATUS <<_ACEOF
21620 #! $SHELL
21621 # Generated by $as_me.
21622 # Run this file to recreate the current configuration.
21623 # Compiler output produced by configure, useful for debugging
21624 # configure, is in config.log if it exists.
21625
21626 debug=false
21627 ac_cs_recheck=false
21628 ac_cs_silent=false
21629 SHELL=\${CONFIG_SHELL-$SHELL}
21630 _ACEOF
21631
21632 cat >>$CONFIG_STATUS <<\_ACEOF
21633 ## --------------------- ##
21634 ## M4sh Initialization.  ##
21635 ## --------------------- ##
21636
21637 # Be more Bourne compatible
21638 DUALCASE=1; export DUALCASE # for MKS sh
21639 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21640   emulate sh
21641   NULLCMD=:
21642   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21643   # is contrary to our usage.  Disable this feature.
21644   alias -g '${1+"$@"}'='"$@"'
21645   setopt NO_GLOB_SUBST
21646 else
21647   case `(set -o) 2>/dev/null` in
21648   *posix*) set -o posix ;;
21649 esac
21650
21651 fi
21652
21653
21654
21655
21656 # PATH needs CR
21657 # Avoid depending upon Character Ranges.
21658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21661 as_cr_digits='0123456789'
21662 as_cr_alnum=$as_cr_Letters$as_cr_digits
21663
21664 # The user is always right.
21665 if test "${PATH_SEPARATOR+set}" != set; then
21666   echo "#! /bin/sh" >conf$$.sh
21667   echo  "exit 0"   >>conf$$.sh
21668   chmod +x conf$$.sh
21669   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21670     PATH_SEPARATOR=';'
21671   else
21672     PATH_SEPARATOR=:
21673   fi
21674   rm -f conf$$.sh
21675 fi
21676
21677 # Support unset when possible.
21678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21679   as_unset=unset
21680 else
21681   as_unset=false
21682 fi
21683
21684
21685 # IFS
21686 # We need space, tab and new line, in precisely that order.  Quoting is
21687 # there to prevent editors from complaining about space-tab.
21688 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21689 # splitting by setting IFS to empty value.)
21690 as_nl='
21691 '
21692 IFS=" ""        $as_nl"
21693
21694 # Find who we are.  Look in the path if we contain no directory separator.
21695 case $0 in
21696   *[\\/]* ) as_myself=$0 ;;
21697   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21698 for as_dir in $PATH
21699 do
21700   IFS=$as_save_IFS
21701   test -z "$as_dir" && as_dir=.
21702   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21703 done
21704 IFS=$as_save_IFS
21705
21706      ;;
21707 esac
21708 # We did not find ourselves, most probably we were run as `sh COMMAND'
21709 # in which case we are not to be found in the path.
21710 if test "x$as_myself" = x; then
21711   as_myself=$0
21712 fi
21713 if test ! -f "$as_myself"; then
21714   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21715   { (exit 1); exit 1; }
21716 fi
21717
21718 # Work around bugs in pre-3.0 UWIN ksh.
21719 for as_var in ENV MAIL MAILPATH
21720 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21721 done
21722 PS1='$ '
21723 PS2='> '
21724 PS4='+ '
21725
21726 # NLS nuisances.
21727 for as_var in \
21728   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21729   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21730   LC_TELEPHONE LC_TIME
21731 do
21732   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21733     eval $as_var=C; export $as_var
21734   else
21735     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21736   fi
21737 done
21738
21739 # Required to use basename.
21740 if expr a : '\(a\)' >/dev/null 2>&1 &&
21741    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21742   as_expr=expr
21743 else
21744   as_expr=false
21745 fi
21746
21747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21748   as_basename=basename
21749 else
21750   as_basename=false
21751 fi
21752
21753
21754 # Name of the executable.
21755 as_me=`$as_basename -- "$0" ||
21756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21757          X"$0" : 'X\(//\)$' \| \
21758          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21759 echo X/"$0" |
21760     sed '/^.*\/\([^/][^/]*\)\/*$/{
21761             s//\1/
21762             q
21763           }
21764           /^X\/\(\/\/\)$/{
21765             s//\1/
21766             q
21767           }
21768           /^X\/\(\/\).*/{
21769             s//\1/
21770             q
21771           }
21772           s/.*/./; q'`
21773
21774 # CDPATH.
21775 $as_unset CDPATH
21776
21777
21778
21779   as_lineno_1=$LINENO
21780   as_lineno_2=$LINENO
21781   test "x$as_lineno_1" != "x$as_lineno_2" &&
21782   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21783
21784   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21785   # uniformly replaced by the line number.  The first 'sed' inserts a
21786   # line-number line after each line using $LINENO; the second 'sed'
21787   # does the real work.  The second script uses 'N' to pair each
21788   # line-number line with the line containing $LINENO, and appends
21789   # trailing '-' during substitution so that $LINENO is not a special
21790   # case at line end.
21791   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21792   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21793   # E. McMahon (1931-1989) for sed's syntax.  :-)
21794   sed -n '
21795     p
21796     /[$]LINENO/=
21797   ' <$as_myself |
21798     sed '
21799       s/[$]LINENO.*/&-/
21800       t lineno
21801       b
21802       :lineno
21803       N
21804       :loop
21805       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21806       t loop
21807       s/-\n.*//
21808     ' >$as_me.lineno &&
21809   chmod +x "$as_me.lineno" ||
21810     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21811    { (exit 1); exit 1; }; }
21812
21813   # Don't try to exec as it changes $[0], causing all sort of problems
21814   # (the dirname of $[0] is not the place where we might find the
21815   # original and so on.  Autoconf is especially sensitive to this).
21816   . "./$as_me.lineno"
21817   # Exit status is that of the last command.
21818   exit
21819 }
21820
21821
21822 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21823   as_dirname=dirname
21824 else
21825   as_dirname=false
21826 fi
21827
21828 ECHO_C= ECHO_N= ECHO_T=
21829 case `echo -n x` in
21830 -n*)
21831   case `echo 'x\c'` in
21832   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21833   *)   ECHO_C='\c';;
21834   esac;;
21835 *)
21836   ECHO_N='-n';;
21837 esac
21838
21839 if expr a : '\(a\)' >/dev/null 2>&1 &&
21840    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21841   as_expr=expr
21842 else
21843   as_expr=false
21844 fi
21845
21846 rm -f conf$$ conf$$.exe conf$$.file
21847 if test -d conf$$.dir; then
21848   rm -f conf$$.dir/conf$$.file
21849 else
21850   rm -f conf$$.dir
21851   mkdir conf$$.dir
21852 fi
21853 echo >conf$$.file
21854 if ln -s conf$$.file conf$$ 2>/dev/null; then
21855   as_ln_s='ln -s'
21856   # ... but there are two gotchas:
21857   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21858   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21859   # In both cases, we have to default to `cp -p'.
21860   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21861     as_ln_s='cp -p'
21862 elif ln conf$$.file conf$$ 2>/dev/null; then
21863   as_ln_s=ln
21864 else
21865   as_ln_s='cp -p'
21866 fi
21867 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21868 rmdir conf$$.dir 2>/dev/null
21869
21870 if mkdir -p . 2>/dev/null; then
21871   as_mkdir_p=:
21872 else
21873   test -d ./-p && rmdir ./-p
21874   as_mkdir_p=false
21875 fi
21876
21877 if test -x / >/dev/null 2>&1; then
21878   as_test_x='test -x'
21879 else
21880   if ls -dL / >/dev/null 2>&1; then
21881     as_ls_L_option=L
21882   else
21883     as_ls_L_option=
21884   fi
21885   as_test_x='
21886     eval sh -c '\''
21887       if test -d "$1"; then
21888         test -d "$1/.";
21889       else
21890         case $1 in
21891         -*)set "./$1";;
21892         esac;
21893         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21894         ???[sx]*):;;*)false;;esac;fi
21895     '\'' sh
21896   '
21897 fi
21898 as_executable_p=$as_test_x
21899
21900 # Sed expression to map a string onto a valid CPP name.
21901 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21902
21903 # Sed expression to map a string onto a valid variable name.
21904 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21905
21906
21907 exec 6>&1
21908
21909 # Save the log message, to keep $[0] and so on meaningful, and to
21910 # report actual input values of CONFIG_FILES etc. instead of their
21911 # values after options handling.
21912 ac_log="
21913 This file was extended by scss $as_me 1.0.0, which was
21914 generated by GNU Autoconf 2.61.  Invocation command line was
21915
21916   CONFIG_FILES    = $CONFIG_FILES
21917   CONFIG_HEADERS  = $CONFIG_HEADERS
21918   CONFIG_LINKS    = $CONFIG_LINKS
21919   CONFIG_COMMANDS = $CONFIG_COMMANDS
21920   $ $0 $@
21921
21922 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21923 "
21924
21925 _ACEOF
21926
21927 cat >>$CONFIG_STATUS <<_ACEOF
21928 # Files that config.status was made for.
21929 config_files="$ac_config_files"
21930 config_headers="$ac_config_headers"
21931 config_commands="$ac_config_commands"
21932
21933 _ACEOF
21934
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21936 ac_cs_usage="\
21937 \`$as_me' instantiates files from templates according to the
21938 current configuration.
21939
21940 Usage: $0 [OPTIONS] [FILE]...
21941
21942   -h, --help       print this help, then exit
21943   -V, --version    print version number and configuration settings, then exit
21944   -q, --quiet      do not print progress messages
21945   -d, --debug      don't remove temporary files
21946       --recheck    update $as_me by reconfiguring in the same conditions
21947   --file=FILE[:TEMPLATE]
21948                    instantiate the configuration file FILE
21949   --header=FILE[:TEMPLATE]
21950                    instantiate the configuration header FILE
21951
21952 Configuration files:
21953 $config_files
21954
21955 Configuration headers:
21956 $config_headers
21957
21958 Configuration commands:
21959 $config_commands
21960
21961 Report bugs to <bug-autoconf@gnu.org>."
21962
21963 _ACEOF
21964 cat >>$CONFIG_STATUS <<_ACEOF
21965 ac_cs_version="\\
21966 scss config.status 1.0.0
21967 configured by $0, generated by GNU Autoconf 2.61,
21968   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21969
21970 Copyright (C) 2006 Free Software Foundation, Inc.
21971 This config.status script is free software; the Free Software Foundation
21972 gives unlimited permission to copy, distribute and modify it."
21973
21974 ac_pwd='$ac_pwd'
21975 srcdir='$srcdir'
21976 INSTALL='$INSTALL'
21977 MKDIR_P='$MKDIR_P'
21978 _ACEOF
21979
21980 cat >>$CONFIG_STATUS <<\_ACEOF
21981 # If no file are specified by the user, then we need to provide default
21982 # value.  By we need to know if files were specified by the user.
21983 ac_need_defaults=:
21984 while test $# != 0
21985 do
21986   case $1 in
21987   --*=*)
21988     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21989     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21990     ac_shift=:
21991     ;;
21992   *)
21993     ac_option=$1
21994     ac_optarg=$2
21995     ac_shift=shift
21996     ;;
21997   esac
21998
21999   case $ac_option in
22000   # Handling of the options.
22001   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22002     ac_cs_recheck=: ;;
22003   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22004     echo "$ac_cs_version"; exit ;;
22005   --debug | --debu | --deb | --de | --d | -d )
22006     debug=: ;;
22007   --file | --fil | --fi | --f )
22008     $ac_shift
22009     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22010     ac_need_defaults=false;;
22011   --header | --heade | --head | --hea )
22012     $ac_shift
22013     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22014     ac_need_defaults=false;;
22015   --he | --h)
22016     # Conflict between --help and --header
22017     { echo "$as_me: error: ambiguous option: $1
22018 Try \`$0 --help' for more information." >&2
22019    { (exit 1); exit 1; }; };;
22020   --help | --hel | -h )
22021     echo "$ac_cs_usage"; exit ;;
22022   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22023   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22024     ac_cs_silent=: ;;
22025
22026   # This is an error.
22027   -*) { echo "$as_me: error: unrecognized option: $1
22028 Try \`$0 --help' for more information." >&2
22029    { (exit 1); exit 1; }; } ;;
22030
22031   *) ac_config_targets="$ac_config_targets $1"
22032      ac_need_defaults=false ;;
22033
22034   esac
22035   shift
22036 done
22037
22038 ac_configure_extra_args=
22039
22040 if $ac_cs_silent; then
22041   exec 6>/dev/null
22042   ac_configure_extra_args="$ac_configure_extra_args --silent"
22043 fi
22044
22045 _ACEOF
22046 cat >>$CONFIG_STATUS <<_ACEOF
22047 if \$ac_cs_recheck; then
22048   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22049   CONFIG_SHELL=$SHELL
22050   export CONFIG_SHELL
22051   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22052 fi
22053
22054 _ACEOF
22055 cat >>$CONFIG_STATUS <<\_ACEOF
22056 exec 5>>config.log
22057 {
22058   echo
22059   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22060 ## Running $as_me. ##
22061 _ASBOX
22062   echo "$ac_log"
22063 } >&5
22064
22065 _ACEOF
22066 cat >>$CONFIG_STATUS <<_ACEOF
22067 #
22068 # INIT-COMMANDS
22069 #
22070 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22071
22072 _ACEOF
22073
22074 cat >>$CONFIG_STATUS <<\_ACEOF
22075
22076 # Handling of arguments.
22077 for ac_config_target in $ac_config_targets
22078 do
22079   case $ac_config_target in
22080     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22081     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22082     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22083     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22084
22085   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22086 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22087    { (exit 1); exit 1; }; };;
22088   esac
22089 done
22090
22091
22092 # If the user did not use the arguments to specify the items to instantiate,
22093 # then the envvar interface is used.  Set only those that are not.
22094 # We use the long form for the default assignment because of an extremely
22095 # bizarre bug on SunOS 4.1.3.
22096 if $ac_need_defaults; then
22097   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22098   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22099   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22100 fi
22101
22102 # Have a temporary directory for convenience.  Make it in the build tree
22103 # simply because there is no reason against having it here, and in addition,
22104 # creating and moving files from /tmp can sometimes cause problems.
22105 # Hook for its removal unless debugging.
22106 # Note that there is a small window in which the directory will not be cleaned:
22107 # after its creation but before its name has been assigned to `$tmp'.
22108 $debug ||
22109 {
22110   tmp=
22111   trap 'exit_status=$?
22112   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22113 ' 0
22114   trap '{ (exit 1); exit 1; }' 1 2 13 15
22115 }
22116 # Create a (secure) tmp directory for tmp files.
22117
22118 {
22119   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22120   test -n "$tmp" && test -d "$tmp"
22121 }  ||
22122 {
22123   tmp=./conf$$-$RANDOM
22124   (umask 077 && mkdir "$tmp")
22125 } ||
22126 {
22127    echo "$me: cannot create a temporary directory in ." >&2
22128    { (exit 1); exit 1; }
22129 }
22130
22131 #
22132 # Set up the sed scripts for CONFIG_FILES section.
22133 #
22134
22135 # No need to generate the scripts if there are no CONFIG_FILES.
22136 # This happens for instance when ./config.status config.h
22137 if test -n "$CONFIG_FILES"; then
22138
22139 _ACEOF
22140
22141
22142
22143 ac_delim='%!_!# '
22144 for ac_last_try in false false false false false :; do
22145   cat >conf$$subs.sed <<_ACEOF
22146 SHELL!$SHELL$ac_delim
22147 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22148 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22149 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22150 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22151 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22152 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22153 exec_prefix!$exec_prefix$ac_delim
22154 prefix!$prefix$ac_delim
22155 program_transform_name!$program_transform_name$ac_delim
22156 bindir!$bindir$ac_delim
22157 sbindir!$sbindir$ac_delim
22158 libexecdir!$libexecdir$ac_delim
22159 datarootdir!$datarootdir$ac_delim
22160 datadir!$datadir$ac_delim
22161 sysconfdir!$sysconfdir$ac_delim
22162 sharedstatedir!$sharedstatedir$ac_delim
22163 localstatedir!$localstatedir$ac_delim
22164 includedir!$includedir$ac_delim
22165 oldincludedir!$oldincludedir$ac_delim
22166 docdir!$docdir$ac_delim
22167 infodir!$infodir$ac_delim
22168 htmldir!$htmldir$ac_delim
22169 dvidir!$dvidir$ac_delim
22170 pdfdir!$pdfdir$ac_delim
22171 psdir!$psdir$ac_delim
22172 libdir!$libdir$ac_delim
22173 localedir!$localedir$ac_delim
22174 mandir!$mandir$ac_delim
22175 DEFS!$DEFS$ac_delim
22176 ECHO_C!$ECHO_C$ac_delim
22177 ECHO_N!$ECHO_N$ac_delim
22178 ECHO_T!$ECHO_T$ac_delim
22179 LIBS!$LIBS$ac_delim
22180 build_alias!$build_alias$ac_delim
22181 host_alias!$host_alias$ac_delim
22182 target_alias!$target_alias$ac_delim
22183 build!$build$ac_delim
22184 build_cpu!$build_cpu$ac_delim
22185 build_vendor!$build_vendor$ac_delim
22186 build_os!$build_os$ac_delim
22187 host!$host$ac_delim
22188 host_cpu!$host_cpu$ac_delim
22189 host_vendor!$host_vendor$ac_delim
22190 host_os!$host_os$ac_delim
22191 target!$target$ac_delim
22192 target_cpu!$target_cpu$ac_delim
22193 target_vendor!$target_vendor$ac_delim
22194 target_os!$target_os$ac_delim
22195 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22196 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22197 INSTALL_DATA!$INSTALL_DATA$ac_delim
22198 am__isrc!$am__isrc$ac_delim
22199 CYGPATH_W!$CYGPATH_W$ac_delim
22200 PACKAGE!$PACKAGE$ac_delim
22201 VERSION!$VERSION$ac_delim
22202 ACLOCAL!$ACLOCAL$ac_delim
22203 AUTOCONF!$AUTOCONF$ac_delim
22204 AUTOMAKE!$AUTOMAKE$ac_delim
22205 AUTOHEADER!$AUTOHEADER$ac_delim
22206 MAKEINFO!$MAKEINFO$ac_delim
22207 install_sh!$install_sh$ac_delim
22208 STRIP!$STRIP$ac_delim
22209 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22210 mkdir_p!$mkdir_p$ac_delim
22211 AWK!$AWK$ac_delim
22212 SET_MAKE!$SET_MAKE$ac_delim
22213 am__leading_dot!$am__leading_dot$ac_delim
22214 AMTAR!$AMTAR$ac_delim
22215 am__tar!$am__tar$ac_delim
22216 am__untar!$am__untar$ac_delim
22217 CC!$CC$ac_delim
22218 CFLAGS!$CFLAGS$ac_delim
22219 LDFLAGS!$LDFLAGS$ac_delim
22220 CPPFLAGS!$CPPFLAGS$ac_delim
22221 ac_ct_CC!$ac_ct_CC$ac_delim
22222 EXEEXT!$EXEEXT$ac_delim
22223 OBJEXT!$OBJEXT$ac_delim
22224 DEPDIR!$DEPDIR$ac_delim
22225 am__include!$am__include$ac_delim
22226 am__quote!$am__quote$ac_delim
22227 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22228 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22229 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22230 CCDEPMODE!$CCDEPMODE$ac_delim
22231 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22232 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22233 SED!$SED$ac_delim
22234 GREP!$GREP$ac_delim
22235 EGREP!$EGREP$ac_delim
22236 LN_S!$LN_S$ac_delim
22237 ECHO!$ECHO$ac_delim
22238 AR!$AR$ac_delim
22239 RANLIB!$RANLIB$ac_delim
22240 DSYMUTIL!$DSYMUTIL$ac_delim
22241 NMEDIT!$NMEDIT$ac_delim
22242 CPP!$CPP$ac_delim
22243 _ACEOF
22244
22245   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22246     break
22247   elif $ac_last_try; then
22248     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22249 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22250    { (exit 1); exit 1; }; }
22251   else
22252     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22253   fi
22254 done
22255
22256 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22257 if test -n "$ac_eof"; then
22258   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22259   ac_eof=`expr $ac_eof + 1`
22260 fi
22261
22262 cat >>$CONFIG_STATUS <<_ACEOF
22263 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22265 _ACEOF
22266 sed '
22267 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22268 s/^/s,@/; s/!/@,|#_!!_#|/
22269 :n
22270 t n
22271 s/'"$ac_delim"'$/,g/; t
22272 s/$/\\/; p
22273 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22274 ' >>$CONFIG_STATUS <conf$$subs.sed
22275 rm -f conf$$subs.sed
22276 cat >>$CONFIG_STATUS <<_ACEOF
22277 CEOF$ac_eof
22278 _ACEOF
22279
22280
22281 ac_delim='%!_!# '
22282 for ac_last_try in false false false false false :; do
22283   cat >conf$$subs.sed <<_ACEOF
22284 CXX!$CXX$ac_delim
22285 CXXFLAGS!$CXXFLAGS$ac_delim
22286 ac_ct_CXX!$ac_ct_CXX$ac_delim
22287 CXXDEPMODE!$CXXDEPMODE$ac_delim
22288 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22289 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22290 CXXCPP!$CXXCPP$ac_delim
22291 F77!$F77$ac_delim
22292 FFLAGS!$FFLAGS$ac_delim
22293 ac_ct_F77!$ac_ct_F77$ac_delim
22294 LIBTOOL!$LIBTOOL$ac_delim
22295 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22296 APR_CONFIG!$APR_CONFIG$ac_delim
22297 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22298 APU_CONFIG!$APU_CONFIG$ac_delim
22299 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22300 LIBOBJS!$LIBOBJS$ac_delim
22301 LTLIBOBJS!$LTLIBOBJS$ac_delim
22302 _ACEOF
22303
22304   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
22305     break
22306   elif $ac_last_try; then
22307     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22309    { (exit 1); exit 1; }; }
22310   else
22311     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22312   fi
22313 done
22314
22315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22316 if test -n "$ac_eof"; then
22317   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22318   ac_eof=`expr $ac_eof + 1`
22319 fi
22320
22321 cat >>$CONFIG_STATUS <<_ACEOF
22322 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22324 _ACEOF
22325 sed '
22326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22327 s/^/s,@/; s/!/@,|#_!!_#|/
22328 :n
22329 t n
22330 s/'"$ac_delim"'$/,g/; t
22331 s/$/\\/; p
22332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22333 ' >>$CONFIG_STATUS <conf$$subs.sed
22334 rm -f conf$$subs.sed
22335 cat >>$CONFIG_STATUS <<_ACEOF
22336 :end
22337 s/|#_!!_#|//g
22338 CEOF$ac_eof
22339 _ACEOF
22340
22341
22342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22344 # trailing colons and then remove the whole line if VPATH becomes empty
22345 # (actually we leave an empty line to preserve line numbers).
22346 if test "x$srcdir" = x.; then
22347   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22348 s/:*\$(srcdir):*/:/
22349 s/:*\${srcdir}:*/:/
22350 s/:*@srcdir@:*/:/
22351 s/^\([^=]*=[     ]*\):*/\1/
22352 s/:*$//
22353 s/^[^=]*=[       ]*$//
22354 }'
22355 fi
22356
22357 cat >>$CONFIG_STATUS <<\_ACEOF
22358 fi # test -n "$CONFIG_FILES"
22359
22360
22361 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22362 do
22363   case $ac_tag in
22364   :[FHLC]) ac_mode=$ac_tag; continue;;
22365   esac
22366   case $ac_mode$ac_tag in
22367   :[FHL]*:*);;
22368   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22370    { (exit 1); exit 1; }; };;
22371   :[FH]-) ac_tag=-:-;;
22372   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22373   esac
22374   ac_save_IFS=$IFS
22375   IFS=:
22376   set x $ac_tag
22377   IFS=$ac_save_IFS
22378   shift
22379   ac_file=$1
22380   shift
22381
22382   case $ac_mode in
22383   :L) ac_source=$1;;
22384   :[FH])
22385     ac_file_inputs=
22386     for ac_f
22387     do
22388       case $ac_f in
22389       -) ac_f="$tmp/stdin";;
22390       *) # Look for the file first in the build tree, then in the source tree
22391          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22392          # because $ac_f cannot contain `:'.
22393          test -f "$ac_f" ||
22394            case $ac_f in
22395            [\\/$]*) false;;
22396            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22397            esac ||
22398            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22400    { (exit 1); exit 1; }; };;
22401       esac
22402       ac_file_inputs="$ac_file_inputs $ac_f"
22403     done
22404
22405     # Let's still pretend it is `configure' which instantiates (i.e., don't
22406     # use $as_me), people would be surprised to read:
22407     #    /* config.h.  Generated by config.status.  */
22408     configure_input="Generated from "`IFS=:
22409           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22410     if test x"$ac_file" != x-; then
22411       configure_input="$ac_file.  $configure_input"
22412       { echo "$as_me:$LINENO: creating $ac_file" >&5
22413 echo "$as_me: creating $ac_file" >&6;}
22414     fi
22415
22416     case $ac_tag in
22417     *:-:* | *:-) cat >"$tmp/stdin";;
22418     esac
22419     ;;
22420   esac
22421
22422   ac_dir=`$as_dirname -- "$ac_file" ||
22423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22424          X"$ac_file" : 'X\(//\)[^/]' \| \
22425          X"$ac_file" : 'X\(//\)$' \| \
22426          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22427 echo X"$ac_file" |
22428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22429             s//\1/
22430             q
22431           }
22432           /^X\(\/\/\)[^/].*/{
22433             s//\1/
22434             q
22435           }
22436           /^X\(\/\/\)$/{
22437             s//\1/
22438             q
22439           }
22440           /^X\(\/\).*/{
22441             s//\1/
22442             q
22443           }
22444           s/.*/./; q'`
22445   { as_dir="$ac_dir"
22446   case $as_dir in #(
22447   -*) as_dir=./$as_dir;;
22448   esac
22449   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22450     as_dirs=
22451     while :; do
22452       case $as_dir in #(
22453       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22454       *) as_qdir=$as_dir;;
22455       esac
22456       as_dirs="'$as_qdir' $as_dirs"
22457       as_dir=`$as_dirname -- "$as_dir" ||
22458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22459          X"$as_dir" : 'X\(//\)[^/]' \| \
22460          X"$as_dir" : 'X\(//\)$' \| \
22461          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22462 echo X"$as_dir" |
22463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22464             s//\1/
22465             q
22466           }
22467           /^X\(\/\/\)[^/].*/{
22468             s//\1/
22469             q
22470           }
22471           /^X\(\/\/\)$/{
22472             s//\1/
22473             q
22474           }
22475           /^X\(\/\).*/{
22476             s//\1/
22477             q
22478           }
22479           s/.*/./; q'`
22480       test -d "$as_dir" && break
22481     done
22482     test -z "$as_dirs" || eval "mkdir $as_dirs"
22483   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22485    { (exit 1); exit 1; }; }; }
22486   ac_builddir=.
22487
22488 case "$ac_dir" in
22489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22490 *)
22491   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22492   # A ".." for each directory in $ac_dir_suffix.
22493   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22494   case $ac_top_builddir_sub in
22495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22497   esac ;;
22498 esac
22499 ac_abs_top_builddir=$ac_pwd
22500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22501 # for backward compatibility:
22502 ac_top_builddir=$ac_top_build_prefix
22503
22504 case $srcdir in
22505   .)  # We are building in place.
22506     ac_srcdir=.
22507     ac_top_srcdir=$ac_top_builddir_sub
22508     ac_abs_top_srcdir=$ac_pwd ;;
22509   [\\/]* | ?:[\\/]* )  # Absolute name.
22510     ac_srcdir=$srcdir$ac_dir_suffix;
22511     ac_top_srcdir=$srcdir
22512     ac_abs_top_srcdir=$srcdir ;;
22513   *) # Relative name.
22514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22515     ac_top_srcdir=$ac_top_build_prefix$srcdir
22516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22517 esac
22518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22519
22520
22521   case $ac_mode in
22522   :F)
22523   #
22524   # CONFIG_FILE
22525   #
22526
22527   case $INSTALL in
22528   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22529   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22530   esac
22531   ac_MKDIR_P=$MKDIR_P
22532   case $MKDIR_P in
22533   [\\/$]* | ?:[\\/]* ) ;;
22534   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22535   esac
22536 _ACEOF
22537
22538 cat >>$CONFIG_STATUS <<\_ACEOF
22539 # If the template does not know about datarootdir, expand it.
22540 # FIXME: This hack should be removed a few years after 2.60.
22541 ac_datarootdir_hack=; ac_datarootdir_seen=
22542
22543 case `sed -n '/datarootdir/ {
22544   p
22545   q
22546 }
22547 /@datadir@/p
22548 /@docdir@/p
22549 /@infodir@/p
22550 /@localedir@/p
22551 /@mandir@/p
22552 ' $ac_file_inputs` in
22553 *datarootdir*) ac_datarootdir_seen=yes;;
22554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22555   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22556 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22557 _ACEOF
22558 cat >>$CONFIG_STATUS <<_ACEOF
22559   ac_datarootdir_hack='
22560   s&@datadir@&$datadir&g
22561   s&@docdir@&$docdir&g
22562   s&@infodir@&$infodir&g
22563   s&@localedir@&$localedir&g
22564   s&@mandir@&$mandir&g
22565     s&\\\${datarootdir}&$datarootdir&g' ;;
22566 esac
22567 _ACEOF
22568
22569 # Neutralize VPATH when `$srcdir' = `.'.
22570 # Shell code in configure.ac might set extrasub.
22571 # FIXME: do we really want to maintain this feature?
22572 cat >>$CONFIG_STATUS <<_ACEOF
22573   sed "$ac_vpsub
22574 $extrasub
22575 _ACEOF
22576 cat >>$CONFIG_STATUS <<\_ACEOF
22577 :t
22578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22579 s&@configure_input@&$configure_input&;t t
22580 s&@top_builddir@&$ac_top_builddir_sub&;t t
22581 s&@srcdir@&$ac_srcdir&;t t
22582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22583 s&@top_srcdir@&$ac_top_srcdir&;t t
22584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22585 s&@builddir@&$ac_builddir&;t t
22586 s&@abs_builddir@&$ac_abs_builddir&;t t
22587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22588 s&@INSTALL@&$ac_INSTALL&;t t
22589 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22590 $ac_datarootdir_hack
22591 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22592
22593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22594   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22595   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22596   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22597 which seems to be undefined.  Please make sure it is defined." >&5
22598 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22599 which seems to be undefined.  Please make sure it is defined." >&2;}
22600
22601   rm -f "$tmp/stdin"
22602   case $ac_file in
22603   -) cat "$tmp/out"; rm -f "$tmp/out";;
22604   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22605   esac
22606  ;;
22607   :H)
22608   #
22609   # CONFIG_HEADER
22610   #
22611 _ACEOF
22612
22613 # Transform confdefs.h into a sed script `conftest.defines', that
22614 # substitutes the proper values into config.h.in to produce config.h.
22615 rm -f conftest.defines conftest.tail
22616 # First, append a space to every undef/define line, to ease matching.
22617 echo 's/$/ /' >conftest.defines
22618 # Then, protect against being on the right side of a sed subst, or in
22619 # an unquoted here document, in config.status.  If some macros were
22620 # called several times there might be several #defines for the same
22621 # symbol, which is useless.  But do not sort them, since the last
22622 # AC_DEFINE must be honored.
22623 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22624 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22625 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22626 # PARAMS is the parameter list in the macro definition--in most cases, it's
22627 # just an empty string.
22628 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22629 ac_dB='\\)[      (].*,\\1define\\2'
22630 ac_dC=' '
22631 ac_dD=' ,'
22632
22633 uniq confdefs.h |
22634   sed -n '
22635         t rset
22636         :rset
22637         s/^[     ]*#[    ]*define[       ][      ]*//
22638         t ok
22639         d
22640         :ok
22641         s/[\\&,]/\\&/g
22642         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22643         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22644   ' >>conftest.defines
22645
22646 # Remove the space that was appended to ease matching.
22647 # Then replace #undef with comments.  This is necessary, for
22648 # example, in the case of _POSIX_SOURCE, which is predefined and required
22649 # on some systems where configure will not decide to define it.
22650 # (The regexp can be short, since the line contains either #define or #undef.)
22651 echo 's/ $//
22652 s,^[     #]*u.*,/* & */,' >>conftest.defines
22653
22654 # Break up conftest.defines:
22655 ac_max_sed_lines=50
22656
22657 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22658 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22659 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22660 # et cetera.
22661 ac_in='$ac_file_inputs'
22662 ac_out='"$tmp/out1"'
22663 ac_nxt='"$tmp/out2"'
22664
22665 while :
22666 do
22667   # Write a here document:
22668     cat >>$CONFIG_STATUS <<_ACEOF
22669     # First, check the format of the line:
22670     cat >"\$tmp/defines.sed" <<\\CEOF
22671 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22672 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22673 b
22674 :def
22675 _ACEOF
22676   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22677   echo 'CEOF
22678     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22679   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22680   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22681   grep . conftest.tail >/dev/null || break
22682   rm -f conftest.defines
22683   mv conftest.tail conftest.defines
22684 done
22685 rm -f conftest.defines conftest.tail
22686
22687 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22688 cat >>$CONFIG_STATUS <<\_ACEOF
22689   if test x"$ac_file" != x-; then
22690     echo "/* $configure_input  */" >"$tmp/config.h"
22691     cat "$ac_result" >>"$tmp/config.h"
22692     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22693       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22694 echo "$as_me: $ac_file is unchanged" >&6;}
22695     else
22696       rm -f $ac_file
22697       mv "$tmp/config.h" $ac_file
22698     fi
22699   else
22700     echo "/* $configure_input  */"
22701     cat "$ac_result"
22702   fi
22703   rm -f "$tmp/out12"
22704 # Compute $ac_file's index in $config_headers.
22705 _am_arg=$ac_file
22706 _am_stamp_count=1
22707 for _am_header in $config_headers :; do
22708   case $_am_header in
22709     $_am_arg | $_am_arg:* )
22710       break ;;
22711     * )
22712       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22713   esac
22714 done
22715 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22716 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22717          X"$_am_arg" : 'X\(//\)[^/]' \| \
22718          X"$_am_arg" : 'X\(//\)$' \| \
22719          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22720 echo X"$_am_arg" |
22721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22722             s//\1/
22723             q
22724           }
22725           /^X\(\/\/\)[^/].*/{
22726             s//\1/
22727             q
22728           }
22729           /^X\(\/\/\)$/{
22730             s//\1/
22731             q
22732           }
22733           /^X\(\/\).*/{
22734             s//\1/
22735             q
22736           }
22737           s/.*/./; q'`/stamp-h$_am_stamp_count
22738  ;;
22739
22740   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22741 echo "$as_me: executing $ac_file commands" >&6;}
22742  ;;
22743   esac
22744
22745
22746   case $ac_file$ac_mode in
22747     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22748   # Strip MF so we end up with the name of the file.
22749   mf=`echo "$mf" | sed -e 's/:.*$//'`
22750   # Check whether this is an Automake generated Makefile or not.
22751   # We used to match only the files named `Makefile.in', but
22752   # some people rename them; so instead we look at the file content.
22753   # Grep'ing the first line is not enough: some people post-process
22754   # each Makefile.in and add a new line on top of each file to say so.
22755   # Grep'ing the whole file is not good either: AIX grep has a line
22756   # limit of 2048, but all sed's we know have understand at least 4000.
22757   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22758     dirpart=`$as_dirname -- "$mf" ||
22759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22760          X"$mf" : 'X\(//\)[^/]' \| \
22761          X"$mf" : 'X\(//\)$' \| \
22762          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22763 echo X"$mf" |
22764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22765             s//\1/
22766             q
22767           }
22768           /^X\(\/\/\)[^/].*/{
22769             s//\1/
22770             q
22771           }
22772           /^X\(\/\/\)$/{
22773             s//\1/
22774             q
22775           }
22776           /^X\(\/\).*/{
22777             s//\1/
22778             q
22779           }
22780           s/.*/./; q'`
22781   else
22782     continue
22783   fi
22784   # Extract the definition of DEPDIR, am__include, and am__quote
22785   # from the Makefile without running `make'.
22786   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22787   test -z "$DEPDIR" && continue
22788   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22789   test -z "am__include" && continue
22790   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22791   # When using ansi2knr, U may be empty or an underscore; expand it
22792   U=`sed -n 's/^U = //p' < "$mf"`
22793   # Find all dependency output files, they are included files with
22794   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22795   # simplest approach to changing $(DEPDIR) to its actual value in the
22796   # expansion.
22797   for file in `sed -n "
22798     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22799        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22800     # Make sure the directory exists.
22801     test -f "$dirpart/$file" && continue
22802     fdir=`$as_dirname -- "$file" ||
22803 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22804          X"$file" : 'X\(//\)[^/]' \| \
22805          X"$file" : 'X\(//\)$' \| \
22806          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22807 echo X"$file" |
22808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22809             s//\1/
22810             q
22811           }
22812           /^X\(\/\/\)[^/].*/{
22813             s//\1/
22814             q
22815           }
22816           /^X\(\/\/\)$/{
22817             s//\1/
22818             q
22819           }
22820           /^X\(\/\).*/{
22821             s//\1/
22822             q
22823           }
22824           s/.*/./; q'`
22825     { as_dir=$dirpart/$fdir
22826   case $as_dir in #(
22827   -*) as_dir=./$as_dir;;
22828   esac
22829   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22830     as_dirs=
22831     while :; do
22832       case $as_dir in #(
22833       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22834       *) as_qdir=$as_dir;;
22835       esac
22836       as_dirs="'$as_qdir' $as_dirs"
22837       as_dir=`$as_dirname -- "$as_dir" ||
22838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22839          X"$as_dir" : 'X\(//\)[^/]' \| \
22840          X"$as_dir" : 'X\(//\)$' \| \
22841          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22842 echo X"$as_dir" |
22843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22844             s//\1/
22845             q
22846           }
22847           /^X\(\/\/\)[^/].*/{
22848             s//\1/
22849             q
22850           }
22851           /^X\(\/\/\)$/{
22852             s//\1/
22853             q
22854           }
22855           /^X\(\/\).*/{
22856             s//\1/
22857             q
22858           }
22859           s/.*/./; q'`
22860       test -d "$as_dir" && break
22861     done
22862     test -z "$as_dirs" || eval "mkdir $as_dirs"
22863   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22864 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22865    { (exit 1); exit 1; }; }; }
22866     # echo "creating $dirpart/$file"
22867     echo '# dummy' > "$dirpart/$file"
22868   done
22869 done
22870  ;;
22871
22872   esac
22873 done # for ac_tag
22874
22875
22876 { (exit 0); exit 0; }
22877 _ACEOF
22878 chmod +x $CONFIG_STATUS
22879 ac_clean_files=$ac_clean_files_save
22880
22881
22882 # configure is writing to config.log, and then calls config.status.
22883 # config.status does its own redirection, appending to config.log.
22884 # Unfortunately, on DOS this fails, as config.log is still kept open
22885 # by configure, so config.status won't be able to write to it; its
22886 # output is simply discarded.  So we exec the FD to /dev/null,
22887 # effectively closing config.log, so it can be properly (re)opened and
22888 # appended to by config.status.  When coming back to configure, we
22889 # need to make the FD available again.
22890 if test "$no_create" != yes; then
22891   ac_cs_success=:
22892   ac_config_status_args=
22893   test "$silent" = yes &&
22894     ac_config_status_args="$ac_config_status_args --quiet"
22895   exec 5>/dev/null
22896   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22897   exec 5>>config.log
22898   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22899   # would make configure fail if this is the last instruction.
22900   $ac_cs_success || { (exit 1); exit 1; }
22901 fi
22902